aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcss/ninja.css12
-rw-r--r--images/cursors/binding.pngbin0 -> 1359 bytes
-rw-r--r--images/tools/binding.pngbin0 -> 1140 bytes
-rwxr-xr-xjs/components/layout/documents-tab.reel/documents-tab.html6
-rwxr-xr-xjs/components/layout/tools-list.reel/tools-list.html4
-rwxr-xr-xjs/components/layout/tools-properties.reel/tools-properties.html10
-rwxr-xr-xjs/components/tools-properties/binding-properties.reel/binding-properties.css17
-rwxr-xr-xjs/components/tools-properties/binding-properties.reel/binding-properties.html35
-rwxr-xr-xjs/components/tools-properties/binding-properties.reel/binding-properties.js25
-rwxr-xr-xjs/controllers/document-controller.js2
-rwxr-xr-xjs/controllers/elements/body-controller.js28
-rwxr-xr-xjs/controllers/selection-controller.js12
-rwxr-xr-xjs/data/menu-data.js16
-rw-r--r--js/data/panels-data.js26
-rwxr-xr-xjs/data/tools-data.js11
-rwxr-xr-xjs/document/document-html.js411
-rwxr-xr-xjs/document/helpers/url-parser.js86
-rwxr-xr-xjs/document/helpers/webgl-helper.js218
-rwxr-xr-xjs/document/models/base.js90
-rwxr-xr-xjs/document/models/html.js16
-rwxr-xr-xjs/document/templates/montage-web/default_html.css28
-rwxr-xr-xjs/document/templates/montage-web/index.html36
-rw-r--r--js/document/templates/montage-web/main.js (renamed from js/document/templates/montage-web/main.reel/main.js)0
-rwxr-xr-xjs/document/views/base.js46
-rwxr-xr-xjs/document/views/design.js259
-rwxr-xr-xjs/helper-classes/3D/draw-utils.js12
-rwxr-xr-xjs/helper-classes/3D/snap-manager.js12
-rwxr-xr-xjs/helper-classes/3D/view-utils.js8
-rwxr-xr-xjs/io/system/coreioapi.js64
-rwxr-xr-xjs/io/system/fileio.js4
-rw-r--r--js/io/system/ninjalibrary.js2
-rwxr-xr-xjs/io/templates/files/html.txt4
-rw-r--r--js/mediators/io-mediator.js4
-rwxr-xr-xjs/mediators/keyboard-mediator.js31
-rwxr-xr-xjs/ninja.reel/ninja.js20
-rwxr-xr-xjs/panels/Panel.reel/Panel.js10
-rwxr-xr-xjs/panels/PanelContainer.reel/PanelContainer.html20
-rwxr-xr-xjs/panels/PanelContainer.reel/PanelContainer.js29
-rw-r--r--js/panels/binding-panel.reel/binding-panel.css0
-rw-r--r--js/panels/binding-panel.reel/binding-panel.html28
-rw-r--r--js/panels/binding-panel.reel/binding-panel.js12
-rw-r--r--js/panels/objects.reel/objects.css0
-rw-r--r--js/panels/objects.reel/objects.html28
-rw-r--r--js/panels/objects.reel/objects.js7
-rwxr-xr-xjs/stage/layout.js2
-rwxr-xr-xjs/stage/stage.reel/stage.js4
-rwxr-xr-xjs/tools/RotateStage3DTool.js20
-rwxr-xr-xjs/tools/SelectionTool.js5
-rwxr-xr-xjs/tools/ZoomTool.js4
-rw-r--r--js/tools/bindingTool.js51
-rwxr-xr-xscss/imports/scss/_MainWindow.scss4
-rwxr-xr-xscss/imports/scss/_Workspace.scss20
-rwxr-xr-xscss/imports/scss/_toolbar.scss4
-rwxr-xr-xscss/ninja.scss1
54 files changed, 1315 insertions, 489 deletions
diff --git a/css/ninja.css b/css/ninja.css
index cd7a35ab..db2497c8 100755
--- a/css/ninja.css
+++ b/css/ninja.css
@@ -118,9 +118,9 @@ body { position: absolute; margin: 0px; width: 100%; height: 100%; background-co
118 118
119#sceneBar { height: 70px; background-color: #474747; } 119#sceneBar { height: 70px; background-color: #474747; }
120 120
121#mainContainer .rulerTop { display: none; background: gray url("../images/temp/ruler-top.png"); height: 15px; margin-bottom: 0px; border-right: 11px solid black; } 121#mainContainer .rulerTop { display: none; background: gray url("../images/temp/ruler-top.png"); height: 15px; margin-bottom: 0px; }
122 122
123.rulerLeft { display: none; background: gray url("../images/temp/ruler-left.png"); width: 16px; border-bottom: 11px solid black; } 123.rulerLeft { display: none; background: gray url("../images/temp/ruler-left.png"); width: 16px; }
124 124
125#stateBar { height: 20px; background-color: #282828; margin-bottom: 0px; } 125#stateBar { height: 20px; background-color: #282828; margin-bottom: 0px; }
126 126
@@ -863,6 +863,8 @@ input[type="radio"]:disabled { opacity: .3; background: #282828; border-width: 1
863 863
864.InkBottleTool { background-image: url("../images/tools/Tool-FillColor.png"); } 864.InkBottleTool { background-image: url("../images/tools/Tool-FillColor.png"); }
865 865
866.bindingTool { background-image: url("../images/tools/binding.png"); }
867
866.toolsList .colortoolbar { padding-left: 1px; padding-top: 4px; } 868.toolsList .colortoolbar { padding-left: 1px; padding-top: 4px; }
867 869
868.toolsList .colortoolbar button { width: 27px; height: 27px; background: black; border: 1px solid #000; padding: 0; margin: 0px; } 870.toolsList .colortoolbar button { width: 27px; height: 27px; background: black; border: 1px solid #000; padding: 0; margin: 0px; }
@@ -987,4 +989,10 @@ input[type="radio"]:disabled { opacity: .3; background: #282828; border-width: 1
987 989
988.montage-invisible { display: none; } 990.montage-invisible { display: none; }
989 991
992body .panel.ws-binding { display: none; -webkit-box-flex-group: 2; }
993
994body.ws-binding .rightPanelContent .panel { display: none; }
995
996body.ws-binding .rightPanelContent .panel.ws-binding { display: -webkit-box; }
997
990/*77*/ 998/*77*/
diff --git a/images/cursors/binding.png b/images/cursors/binding.png
new file mode 100644
index 00000000..16e84574
--- /dev/null
+++ b/images/cursors/binding.png
Binary files differ
diff --git a/images/tools/binding.png b/images/tools/binding.png
new file mode 100644
index 00000000..33545ee1
--- /dev/null
+++ b/images/tools/binding.png
Binary files differ
diff --git a/js/components/layout/documents-tab.reel/documents-tab.html b/js/components/layout/documents-tab.reel/documents-tab.html
index 4aed23d9..cf3dbbf5 100755
--- a/js/components/layout/documents-tab.reel/documents-tab.html
+++ b/js/components/layout/documents-tab.reel/documents-tab.html
@@ -33,17 +33,17 @@
33 }, 33 },
34 "name": { 34 "name": {
35 "boundObject": {"@": "repetition1"}, 35 "boundObject": {"@": "repetition1"},
36 "boundObjectPropertyPath": "objectAtCurrentIteration.name", 36 "boundObjectPropertyPath": "objectAtCurrentIteration.model.file.name",
37 "oneway": true 37 "oneway": true
38 }, 38 },
39 "saveFlag": { 39 "saveFlag": {
40 "boundObject": {"@": "repetition1"}, 40 "boundObject": {"@": "repetition1"},
41 "boundObjectPropertyPath": "objectAtCurrentIteration.needsSave", 41 "boundObjectPropertyPath": "objectAtCurrentIteration.model.needsSave",
42 "oneway": true 42 "oneway": true
43 }, 43 },
44 "active": { 44 "active": {
45 "boundObject": {"@": "repetition1"}, 45 "boundObject": {"@": "repetition1"},
46 "boundObjectPropertyPath": "objectAtCurrentIteration.isActive", 46 "boundObjectPropertyPath": "objectAtCurrentIteration.model.isActive",
47 "oneway": true 47 "oneway": true
48 } 48 }
49 } 49 }
diff --git a/js/components/layout/tools-list.reel/tools-list.html b/js/components/layout/tools-list.reel/tools-list.html
index 9aa05e5d..25aac8fb 100755
--- a/js/components/layout/tools-list.reel/tools-list.html
+++ b/js/components/layout/tools-list.reel/tools-list.html
@@ -112,6 +112,9 @@
112 "ZoomTool1": { 112 "ZoomTool1": {
113 "prototype": "js/tools/ZoomTool" 113 "prototype": "js/tools/ZoomTool"
114 }, 114 },
115 "BindingTool1": {
116 "prototype": "js/tools/BindingTool"
117 },
115 118
116 "disable": { 119 "disable": {
117 "prototype": "montage/ui/condition.reel", 120 "prototype": "montage/ui/condition.reel",
@@ -151,6 +154,7 @@
151 "RotateStageTool3D": {"@": "RotateStageTool3D1"}, 154 "RotateStageTool3D": {"@": "RotateStageTool3D1"},
152 "PanTool": {"@": "PanTool1"}, 155 "PanTool": {"@": "PanTool1"},
153 "ZoomTool": {"@": "ZoomTool1"}, 156 "ZoomTool": {"@": "ZoomTool1"},
157 "bindingTool": {"@": "BindingTool1"},
154 "components": [ 158 "components": [
155 {"@": "repetition1"} 159 {"@": "repetition1"}
156 ] 160 ]
diff --git a/js/components/layout/tools-properties.reel/tools-properties.html b/js/components/layout/tools-properties.reel/tools-properties.html
index 10309ec4..9061cd12 100755
--- a/js/components/layout/tools-properties.reel/tools-properties.html
+++ b/js/components/layout/tools-properties.reel/tools-properties.html
@@ -120,6 +120,12 @@
120 "element": {"#": "zoomProperties"} 120 "element": {"#": "zoomProperties"}
121 } 121 }
122 }, 122 },
123 "bindingProperties1": {
124 "prototype": "js/components/tools-properties/binding-properties.reel",
125 "properties": {
126 "element": {"#": "bindingProperties"}
127 }
128 },
123 129
124 "disable": { 130 "disable": {
125 "prototype": "montage/ui/condition.reel", 131 "prototype": "montage/ui/condition.reel",
@@ -155,7 +161,8 @@
155 "eraserProperties": {"@": "eraserProperties1"}, 161 "eraserProperties": {"@": "eraserProperties1"},
156 "rotateStageProperties": {"@": "rotateStageProperties1"}, 162 "rotateStageProperties": {"@": "rotateStageProperties1"},
157 "panProperties": {"@": "panProperties1"}, 163 "panProperties": {"@": "panProperties1"},
158 "zoomProperties": {"@": "zoomProperties1"} 164 "zoomProperties": {"@": "zoomProperties1"},
165 "bindingProperties": {"@": "bindingProperties1"}
159 }, 166