aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-04-20 10:44:02 -0700
committerJose Antonio Marquez2012-04-20 10:44:02 -0700
commit0b7848540a7ca84b7c67821fedc275cf243eff2f (patch)
treea26b2986d412a02eb93fc7fa1b0f495cab40e757 /js
parent154d1a8fdbbe050dbfc97cd13baa8981d8fc1e47 (diff)
parent8a546291a9d0de3bda1a7765ae9008f2ad052bba (diff)
downloadninja-0b7848540a7ca84b7c67821fedc275cf243eff2f.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into FileIO
Diffstat (limited to 'js')
-rwxr-xr-xjs/components/colorwheel.reel/colorwheel.html10
-rwxr-xr-xjs/components/gradientpicker.reel/gradientpicker.html10
-rwxr-xr-xjs/components/tree.reel/tree.css26
-rwxr-xr-xjs/components/tree.reel/tree.html28
-rwxr-xr-xjs/components/tree.reel/tree.js789
-rwxr-xr-xjs/components/tree.reel/treeDisclosure.pngbin995 -> 0 bytes
-rwxr-xr-xjs/components/tree.reel/treeFolderClosed.pngbin1345 -> 0 bytes
-rwxr-xr-xjs/components/tree.reel/treeFolderOpen.pngbin1323 -> 0 bytes
-rwxr-xr-xjs/components/tree.reel/treeItem.pngbin2935 -> 0 bytes
-rwxr-xr-xjs/components/ui/modalDialog/modal-dialog-manager.js123
-rwxr-xr-xjs/components/ui/modalDialog/modalDialogHeader.js82
-rwxr-xr-xjs/components/ui/modalDialog/modalDialogHeader.reel/modalDialogHeader.css30
-rwxr-xr-xjs/components/ui/modalDialog/modalDialogHeader.reel/modalDialogHeader.html33
-rwxr-xr-xjs/components/ui/radio-button.reel/radio-button.html32
-rwxr-xr-xjs/components/ui/radio-button.reel/radio-button.js44
-rwxr-xr-xjs/components/ui/row-renderer.reel/row-renderer.html37
-rwxr-xr-xjs/components/ui/row-renderer.reel/row-renderer.js18
-rwxr-xr-xjs/controllers/elements/canvas-controller.js14
-rwxr-xr-xjs/controllers/elements/element-controller.js112
-rwxr-xr-xjs/controllers/elements/shapes-controller.js59
-rwxr-xr-xjs/controllers/elements/stage-controller.js58
-rw-r--r--js/data/panels-data.js12
-rwxr-xr-xjs/data/tools-data.js6
-rwxr-xr-xjs/helper-classes/3D/draw-utils.js79
-rwxr-xr-xjs/helper-classes/3D/hit-record.js55
-rwxr-xr-xjs/helper-classes/3D/snap-manager.js11
-rwxr-xr-xjs/helper-classes/3D/view-utils.js35
-rwxr-xr-xjs/lib/geom/brush-stroke.js3
-rwxr-xr-xjs/lib/geom/geom-obj.js3
-rwxr-xr-xjs/lib/geom/line.js2
-rwxr-xr-xjs/mediators/drag-drop-mediator.js4
-rwxr-xr-xjs/mediators/element-mediator.js225
-rwxr-xr-xjs/mediators/keyboard-mediator.js18
-rwxr-xr-xjs/models/element-model.js36
-rwxr-xr-xjs/panels/Panel.reel/Panel.js5
-rwxr-xr-xjs/panels/PanelContainer.reel/PanelContainer.html11
-rwxr-xr-xjs/panels/PanelContainer.reel/PanelContainer.js1
-rwxr-xr-xjs/panels/components-panel.reel/components-panel.js7
-rw-r--r--js/panels/history-panel/history-item.reel/history-item.css0
-rw-r--r--js/panels/history-panel/history-item.reel/history-item.html29
-rw-r--r--js/panels/history-panel/history-item.reel/history-item.js32
-rw-r--r--js/panels/history-panel/history.reel/history.css34
-rw-r--r--js/panels/history-panel/history.reel/history.html106
-rw-r--r--js/panels/history-panel/history.reel/history.js26
-rwxr-xr-xjs/panels/properties.reel/properties.js5
-rwxr-xr-xjs/tools/Rotate3DToolBase.js506
-rwxr-xr-xjs/tools/RotateObject3DTool.js5
-rwxr-xr-xjs/tools/RotateStage3DTool.js24
-rwxr-xr-xjs/tools/SelectionTool.js367
-rwxr-xr-xjs/tools/Translate3DToolBase.js276
-rwxr-xr-xjs/tools/TranslateObject3DTool.js18
-rwxr-xr-xjs/tools/modifier-tool-base.js53
52 files changed, 1346 insertions, 2153 deletions
diff --git a/js/components/colorwheel.reel/colorwheel.html b/js/components/colorwheel.reel/colorwheel.html
index 0374e6a3..a9fbfbd9 100755
--- a/js/components/colorwheel.reel/colorwheel.html
+++ b/js/components/colorwheel.reel/colorwheel.html
@@ -12,15 +12,7 @@
12 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 12 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
13 13
14 <link rel="stylesheet" type="text/css" href="css/colorwheel.css"> 14 <link rel="stylesheet" type="text/css" href="css/colorwheel.css">
15 15
16 <script type="text/m-objects">
17 {
18 "$rootObject": U("m-obj://colorwheel/uuid?mId=js/components/colorwheel", {
19 "element": E("#colorwheel")
20 })
21 }
22 </script>
23
24 <script type="text/montage-serialization"> 16 <script type="text/montage-serialization">
25 { 17 {
26 "owner": { 18 "owner": {
diff --git a/js/components/gradientpicker.reel/gradientpicker.html b/js/components/gradientpicker.reel/gradientpicker.html
index 361e36b2..f71c6705 100755
--- a/js/components/gradientpicker.reel/gradientpicker.html
+++ b/js/components/gradientpicker.reel/gradientpicker.html
@@ -12,15 +12,7 @@
12 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 12 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
13 13
14 <link rel="stylesheet" type="text/css" href="css/gradientpicker.css"> 14 <link rel="stylesheet" type="text/css" href="css/gradientpicker.css">
15 15
16 <script type="text/m-objects">
17 {
18 "$rootObject": U("m-obj://gradientpicker/uuid?mId=js/components/gradientpicker", {
19 "element": E("#gradientpicker")
20 })
21 }
22 </script>
23
24 <script type="text/montage-serialization"> 16 <script type="text/montage-serialization">
25 { 17 {
26 "owner": { 18 "owner": {
diff --git a/js/components/tree.reel/tree.css b/js/components/tree.reel/tree.css
deleted file mode 100755
index 8872341f..00000000
--- a/js/components/tree.reel/tree.css
+++ /dev/null
@@ -1,26 +0,0 @@
1/* <copyright>
2 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright> */
6
7.tree
8{
9 -webkit-user-select:none;
10 cursor:default;
11 float: left;
12 padding-left: 0;
13}
14
15.tree li
16{
17 -webkit-margin-before: 0px;
18 -webkit-margin-after: 0px;
19 list-style-type:none;
20}
21
22.tree li > text > img
23{
24 margin-right:8px;
25 -webkit-transition: -webkit-transform 0.05s linear;
26} \ No newline at end of file
diff --git a/js/components/tree.reel/tree.html b/js/components/tree.reel/tree.html
deleted file mode 100755
index 66838d82..00000000
--- a/js/components/tree.reel/tree.html
+++ /dev/null
@@ -1,28 +0,0 @@
1<!DOCTYPE HTML>
2<!-- <copyright>
3 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
5 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
6 </copyright> -->
7<html>
8<head>
9 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
10 <script type="text/montage-serialization">
11 {
12 "owner": {
13 "module": "js/components/tree.reel",
14 "name": "Tree",
15 "properties": {
16 "element": {"#": "tree"}
17 }
18 }
19
20 }
21 </script>
22
23</head>
24<body>
25<ul id="tree" class="tree">
26</ul>
27</body>
28</html> \ No newline at end of file
diff --git a/js/components/tree.reel/tree.js b/js/components/tree.reel/tree.js
deleted file mode 100755
index 7084ba99..00000000
--- a/js/components/tree.reel/tree.js
+++ /dev/null
@@ -1,789 +0,0 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6
7var Montage = require("montage/core/core").Montage;
8var Component = require("montage/ui/component").Component;
9var nj = require("js/lib/NJUtils").NJUtils;
10
11exports.Tree = Montage.create(Component, {
12
13 _treeDepth: {
14 value: 1
15 },
16 treeDepth: {
17 get: function() {
18 return this._treeDepth;
19 },
20 set: function(value) {
21 this._treeDepth = value;
22 }
23 },
24 _depthHash: {
25 value: ""
26 },
27 depthHash: {
28 get: function() {
29 return this._depthHash;
30 },
31 set: function(strValue) {
32 this._depthHash = strValue;
33 }
34 },
35 _firstLevel: {
36 value: true
37 },
38 firstLevel: {
39 get: function() {
40 return this._firstLevel;