aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/components/controllers/tree-controller.js5
-rwxr-xr-xjs/components/tools-properties/text-properties.reel/text-properties.css4
-rwxr-xr-xjs/components/tools-properties/text-properties.reel/text-properties.html38
-rwxr-xr-xjs/components/tools-properties/text-properties.reel/text-properties.js116
-rw-r--r--js/components/treeview/ninja-branch.reel/ninja-branch.css1
-rw-r--r--js/components/treeview/ninja-leaf.reel/ninja-leaf.css1
-rw-r--r--js/components/treeview/ninja-leaf.reel/ninja-leaf.js10
-rw-r--r--js/components/treeview/tree-node.js2
-rwxr-xr-xjs/controllers/document-controller.js39
-rwxr-xr-xjs/controllers/elements/component-controller.js44
-rwxr-xr-xjs/controllers/elements/shapes-controller.js1
-rwxr-xr-xjs/data/menu-data.js9
-rwxr-xr-xjs/document/html-document.js111
-rwxr-xr-xjs/document/templates/montage-html/default_html.css75
-rwxr-xr-xjs/document/templates/montage-html/index.html50
-rw-r--r--js/document/templates/montage-html/main.reel/main.js54
-rwxr-xr-xjs/document/templates/montage-html/package.json8
-rwxr-xr-xjs/document/templates/montage-html/styles.css5
-rwxr-xr-xjs/document/text-document.js5
-rwxr-xr-xjs/io/system/coreioapi.js20
-rw-r--r--js/io/system/ninjalibrary.js27
-rw-r--r--js/io/system/ninjalibrary.json4
-rwxr-xr-xjs/io/ui/cloudpopup.reel/cloudpopup.html2
-rwxr-xr-xjs/io/ui/cloudpopup.reel/cloudpopup.js8
-rwxr-xr-xjs/lib/NJUtils.js22
-rwxr-xr-xjs/mediators/drag-drop-mediator.js17
-rw-r--r--js/mediators/io-mediator.js11
-rwxr-xr-xjs/models/app-model.js13
-rwxr-xr-xjs/ninja.reel/ninja.html1
-rwxr-xr-xjs/panels/CSSPanel/CSSPanelBase.reel/CSSPanelBase.css6
-rwxr-xr-xjs/panels/CSSPanel/CSSPanelBase.reel/CSSPanelBase.html11
-rwxr-xr-xjs/panels/Components/Components.xml28
-rwxr-xr-xjs/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.html39
-rwxr-xr-xjs/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js423
-rwxr-xr-xjs/panels/PanelContainer/PanelContainer.reel/PanelContainer.js4
-rw-r--r--js/panels/presets/content.reel/content.css52
-rw-r--r--js/panels/presets/content.reel/content.html66
-rw-r--r--js/panels/presets/content.reel/content.js79
-rw-r--r--js/panels/presets/default-style-presets.js72
-rw-r--r--js/panels/presets/default-transition-presets.js93
-rw-r--r--js/panels/presets/presets-panel.js15
-rw-r--r--js/panels/presets/style-presets.reel/style-presets.css0
-rw-r--r--js/panels/presets/style-presets.reel/style-presets.html59
-rw-r--r--js/panels/presets/style-presets.reel/style-presets.js79
-rw-r--r--js/panels/presets/transitions-presets.reel/transitions-presets.css0
-rw-r--r--js/panels/presets/transitions-presets.reel/transitions-presets.html58
-rw-r--r--js/panels/presets/transitions-presets.reel/transitions-presets.js46
-rwxr-xr-xjs/stage/stage-view.reel/stage-view.js8
-rwxr-xr-xjs/stage/stage.reel/stage.js1
-rwxr-xr-xjs/tools/BrushTool.js2
-rwxr-xr-xjs/tools/LineTool.js2
-rwxr-xr-xjs/tools/PenTool.js2
-rwxr-xr-xjs/tools/ShapeTool.js2
-rwxr-xr-xjs/tools/TextTool.js1
54 files changed, 1562 insertions, 289 deletions
diff --git a/js/components/controllers/tree-controller.js b/js/components/controllers/tree-controller.js
index 03ef7b9e..1e9222fd 100644
--- a/js/components/controllers/tree-controller.js
+++ b/js/components/controllers/tree-controller.js
@@ -28,7 +28,7 @@ var TreeController = exports.TreeController = Montage.create(ObjectController, /
28 }, 28 },
29 29
30 branchKey : { 30 branchKey : {
31 value: 'children' 31 value: null
32 }, 32 },
33 33
34 _root : { 34 _root : {
@@ -98,7 +98,8 @@ var TreeController = exports.TreeController = Montage.create(ObjectController, /
98 }, 98 },
99 99
100 branchControllers: { 100 branchControllers: {
101 value: [] 101 value: [],
102 distinct: true
102 }, 103 },
103 104
104 addBranchController : { 105 addBranchController : {
diff --git a/js/components/tools-properties/text-properties.reel/text-properties.css b/js/components/tools-properties/text-properties.reel/text-properties.css
index 6aa61812..f7bb8295 100755
--- a/js/components/tools-properties/text-properties.reel/text-properties.css
+++ b/js/components/tools-properties/text-properties.reel/text-properties.css
@@ -12,6 +12,10 @@
12 padding: 0px 8px; 12 padding: 0px 8px;
13} 13}
14 14
15.optionsTextTool select {
16 margin: 2px;
17}
18
15.optionsTextTool > *, .optionsTextTool .btnGroup > * { 19.optionsTextTool > *, .optionsTextTool .btnGroup > * {
16 float:left; 20 float:left;
17} 21}
diff --git a/js/components/tools-properties/text-properties.reel/text-properties.html b/js/components/tools-properties/text-properties.reel/text-properties.html
index 7ded1236..13a88ba7 100755
--- a/js/components/tools-properties/text-properties.reel/text-properties.html
+++ b/js/components/tools-properties/text-properties.reel/text-properties.html
@@ -100,7 +100,8 @@
100 "pressedClass": "active", 100 "pressedClass": "active",
101 "preventFocus": true, 101 "preventFocus": true,
102 "identifier": "btnBold", 102 "identifier": "btnBold",
103 "label": "B" 103 "pressedLabel": "B",
104 "unpressedLabel": "B"
104 }, 105 },
105 "listeners": [ 106 "listeners": [
106 { 107 {
@@ -117,7 +118,8 @@
117 "pressedClass": "active", 118 "pressedClass": "active",
118 "preventFocus": true, 119 "preventFocus": true,
119 "identifier": "btnItalic", 120 "identifier": "btnItalic",
120 "label": "I" 121 "pressedLabel": "I",
122 "unpressedLabel": "I"
121 }, 123 },
122 "listeners": [ 124 "listeners": [
123 { 125 {
@@ -134,7 +136,8 @@
134 "pressedClass": "active", 136 "pressedClass": "active",
135 "preventFocus": true, 137 "preventFocus": true,
136 "identifier": "btnUnderline", 138 "identifier": "btnUnderline",
137 "label": "U" 139 "pressedLabel": "U",
140 "unpressedLabel": "U"
138 }, 141 },
139 "listeners": [ 142 "listeners": [
140 { 143 {
@@ -151,7 +154,8 @@
151 "pressedClass": "active", 154 "pressedClass": "active",
152 "preventFocus": true, 155 "preventFocus": true,
153 "identifier": "btnStrikethrough", 156 "identifier": "btnStrikethrough",
154 "label": "S" 157 "pressedLabel": "S",
158 "unpressedLabel": "S"
155 }, 159 },
156 "listeners": [ 160 "listeners": [
157 { 161 {
@@ -169,7 +173,8 @@
169 "pressedClass": "active", 173 "pressedClass": "active",
170 "preventFocus": true, 174 "preventFocus": true,
171 "identifier": "alignLeft", 175 "identifier": "alignLeft",
172 "label": "Left" 176 "pressedLabel": "Left",
177 "unpressedLabel": "Left"
173 }, 178 },
174 "listeners": [ 179 "listeners": [
175 { 180 {
@@ -186,7 +191,8 @@
186 "pressedClass": "active", 191 "pressedClass": "active",
187 "preventFocus": true, 192 "preventFocus": true,
188 "identifier": "alignCenter", 193 "identifier": "alignCenter",
189 "label": "Center" 194 "pressedLabel": "Center",
195 "unpressedLabel": "Center"
190 }, 196 },
191 "listeners": [ 197 "listeners": [
192 { 198 {
@@ -203,7 +209,8 @@
203 "pressedClass": "active", 209 "pressedClass": "active",
204 "preventFocus": true, 210 "preventFocus": true,
205 "identifier": "alignRight", 211 "identifier": "alignRight",
206 "label": "Right" 212 "pressedLabel": "Right",
213 "unpressedLabel": "Right"
207 },