From ec6759f9821a5647905617e3992fdda1cea390ef Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Tue, 26 Jun 2012 17:17:43 -0700 Subject: Binding View - Hide in Live Preview Signed-off-by: Armen Kesablyan --- js/ninja.reel/ninja.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/ninja.reel') diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index f1825b9a..0b7748e5 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js @@ -519,10 +519,12 @@ exports.Ninja = Montage.create(Component, { // background = "#000000"; // overflow = "hidden"; transitionStopRule = "nj-css-garbage-selector"; + this.stage.bindingView.hide = true; } else { // background = "#808080"; // overflow = "visible"; transitionStopRule = "*" + this.stage.bindingView.hide = false; } // TODO: Remove marker for old template: NINJA-STAGE-REWORK -- cgit v1.2.3 From c5204cc96a08413d48bd8148034189b6f710ade9 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 28 Jun 2012 16:24:24 -0700 Subject: Changing the livePreview button to do a chromePreview and keeping the canvas when doing a timeline play Signed-off-by: Valerio Virgillito --- js/ninja.reel/ninja.html | 2 +- js/ninja.reel/ninja.js | 14 ++------------ 2 files changed, 3 insertions(+), 13 deletions(-) (limited to 'js/ninja.reel') diff --git a/js/ninja.reel/ninja.html b/js/ninja.reel/ninja.html index 5429e7d0..1ebf8413 100755 --- a/js/ninja.reel/ninja.html +++ b/js/ninja.reel/ninja.html @@ -163,7 +163,7 @@ "element": {"#": "stageMode"} }, "bindings" : { - "livePreview": {"<->": "@appModel.livePreview"} + "chromePreview": {"<->": "@appModel.chromePreview"} } }, diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 859268a0..e325316b 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js @@ -511,25 +511,15 @@ exports.Ninja = Montage.create(Component, { executeLivePreview: { value: function() { - var background, overflow, transitionStopRule; - this.stage.hideCanvas(this.appModel.livePreview); + var transitionStopRule; +// this.stage.hideCanvas(this.appModel.livePreview); - // TODO: Remove marker for old template: NINJA-STAGE-REWORK if(this.appModel.livePreview) { -// background = "#000000"; -// overflow = "hidden"; transitionStopRule = "nj-css-garbage-selector"; } else { -// background = "#808080"; -// overflow = "visible"; transitionStopRule = "*" } - // TODO: Remove marker for old template: NINJA-STAGE-REWORK -// this.currentDocument.model.documentRoot.elementModel.controller.setProperty(this.currentDocument.model.documentRoot, "body-background", background); -// this.currentDocument.model.documentRoot.elementModel.controller.setProperty(this.currentDocument.model.documentRoot, "overflow", overflow); -// this.currentDocument.model.documentRoot.elementModel.controller.changeSelector(this.currentDocument.model.documentRoot, "transitionStopRule", transitionStopRule); - this.application.ninja.stylesController._stageStylesheet.rules[0].selectorText = transitionStopRule; this._toggleWebGlAnimation(this.appModel.livePreview); -- cgit v1.2.3