aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/ninja.reel')
-rwxr-xr-xjs/ninja.reel/ninja.html8
-rwxr-xr-xjs/ninja.reel/ninja.js20
2 files changed, 28 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.html b/js/ninja.reel/ninja.html
index 51d74cb2..1f0582b1 100755
--- a/js/ninja.reel/ninja.html
+++ b/js/ninja.reel/ninja.html
@@ -323,6 +323,13 @@
323 "prototype": "js/controllers/code-editor-controller" 323 "prototype": "js/controllers/code-editor-controller"
324 }, 324 },
325 325
326 "objectsController" : {
327 "prototype": "js/controllers/objects-controller",
328 "bindings": {
329 "activeDocument": {"<-": "@owner.currentDocument"}
330 }
331 },
332
326 "owner": { 333 "owner": {
327 "prototype": "js/ninja.reel", 334 "prototype": "js/ninja.reel",
328 "properties": { 335 "properties": {
@@ -352,6 +359,7 @@
352 "timeline": {"@": "timeline"}, 359 "timeline": {"@": "timeline"},
353 "mainMenuController": {"@": "mainMenuController"}, 360 "mainMenuController": {"@": "mainMenuController"},
354 "codeEditorController": {"@": "codeEditorController"}, 361 "codeEditorController": {"@": "codeEditorController"},
362 "objectsController": {"@": "objectsController"},
355 "rightPanelContainer": {"#": "rightPanelContainer" }, 363 "rightPanelContainer": {"#": "rightPanelContainer" },
356 "panelSplitter": {"@": "splitter3"}, 364 "panelSplitter": {"@": "splitter3"},
357 "timelineSplitter": {"@": "splitter4"}, 365 "timelineSplitter": {"@": "splitter4"},
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index d0eb1557..9f5a65bd 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -18,6 +18,25 @@ exports.Ninja = Montage.create(Component, {
18 value: null 18 value: null
19 }, 19 },
20 20
21 _workspaceMode: {
22 value: null
23 },
24
25 workspaceMode: {
26 get: function() {
27 return this.workspaceMode;
28 },
29 set: function(val) {
30 if(this._workspaceMode !== val ) {
31 if(this._workspaceMode !== null) {
32 document.body.classList.remove("ws-" + this._workspaceMode);
33 }
34 document.body.classList.add("ws-" + val);
35 this._workspaceMode = val;
36 }
37 }
38 },
39
21 toolsData: { value: null }, 40 toolsData: { value: null },
22 appData: { value: AppData }, 41 appData: { value: AppData },
23 42
@@ -159,6 +178,7 @@ exports.Ninja = Montage.create(Component, {
159 178
160 prepareForDraw: { 179 prepareForDraw: {
161 value: function() { 180 value: function() {
181 this.workspaceMode = "default";
162 console.log("Loading Ninja --> ", this.ninjaVersion); 182 console.log("Loading Ninja --> ", this.ninjaVersion);
163 183
164 this.application.ninja = this; 184 this.application.ninja = this;