aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/components/button.reel/button.js2
-rw-r--r--js/components/editable.reel/editable.js250
-rw-r--r--js/components/hintable.reel/hintable.js360
-rwxr-xr-xjs/components/layout/bread-crumb.reel/bread-crumb.js108
-rwxr-xr-xjs/components/package.json8
-rwxr-xr-xjs/components/tools-properties/text-properties.reel/text-properties.css30
-rwxr-xr-xjs/components/tools-properties/text-properties.reel/text-properties.html326
-rwxr-xr-xjs/components/tools-properties/text-properties.reel/text-properties.js236
-rwxr-xr-xjs/controllers/styles-controller.js4
-rwxr-xr-xjs/helper-classes/Utils.js33
-rwxr-xr-xjs/io/document/document-controller.js (renamed from js/controllers/document-controller.js)112
-rwxr-xr-xjs/io/document/html-document.js84
-rwxr-xr-xjs/io/ui/cloudpopup.reel/cloudpopup.js3
-rwxr-xr-xjs/lib/NJUtils.js21
-rwxr-xr-xjs/mediators/element-mediator.js19
-rwxr-xr-xjs/ninja.reel/ninja.html14
-rwxr-xr-xjs/panels/CSSPanel/CSSPanel.js6
-rwxr-xr-xjs/panels/Resizer.js4
-rw-r--r--js/panels/Timeline/Collapser.js320
-rw-r--r--js/panels/Timeline/Keyframe.reel/Keyframe.html27
-rw-r--r--js/panels/Timeline/Keyframe.reel/Keyframe.js154
-rw-r--r--js/panels/Timeline/Keyframe.reel/css/Keyframe.css15
-rw-r--r--js/panels/Timeline/Layer.reel/Layer.html168
-rw-r--r--js/panels/Timeline/Layer.reel/Layer.js626
-rw-r--r--js/panels/Timeline/Layer.reel/css/Layer.css322
-rw-r--r--js/panels/Timeline/Layer.reel/images/eye.pngbin1331 -> 0 bytes
-rw-r--r--js/panels/Timeline/Layer.reel/images/icon-collapsed.pngbin325 -> 0 bytes
-rw-r--r--js/panels/Timeline/Layer.reel/images/icon-eye.pngbin550 -> 0 bytes
-rw-r--r--js/panels/Timeline/Layer.reel/images/icon-lock.pngbin475 -> 0 bytes
-rw-r--r--js/panels/Timeline/Layer.reel/images/icon-minus.pngbin161 -> 0 bytes
-rw-r--r--js/panels/Timeline/Layer.reel/images/icon-open.pngbin323 -> 0 bytes
-rw-r--r--js/panels/Timeline/Layer.reel/images/icon-plus.pngbin230 -> 0 bytes
-rw-r--r--js/panels/Timeline/Layer.reel/images/lock_closed.pngbin1208 -> 0 bytes
-rw-r--r--js/panels/Timeline/Layer.reel/images/lock_open.pngbin1186 -> 0 bytes
-rw-r--r--js/panels/Timeline/Layer.reel/images/panelDisclosureIcon.pngbin3028 -> 0 bytes
-rw-r--r--js/panels/Timeline/Layer.reel/scss/Layer.scss220
-rw-r--r--js/panels/Timeline/Layer.reel/scss/config.rb9
-rw-r--r--js/panels/Timeline/Span.reel/Span.html27
-rw-r--r--js/panels/Timeline/Span.reel/Span.js41
-rw-r--r--js/panels/Timeline/Span.reel/css/Span.css11
-rw-r--r--js/panels/Timeline/Style.reel/Style.html91
-rw-r--r--js/panels/Timeline/Style.reel/Style.js648
-rw-r--r--js/panels/Timeline/Style.reel/css/Style.css133
-rw-r--r--js/panels/Timeline/Style.reel/scss/Style.scss70
-rw-r--r--js/panels/Timeline/Style.reel/scss/config.rb9
-rwxr-xr-xjs/panels/Timeline/TimelineController.js13
-rwxr-xr-xjs/panels/Timeline/TimelinePanel.reel/TimelinePanel.css6
-rwxr-xr-xjs/panels/Timeline/TimelinePanel.reel/TimelinePanel.html242
-rwxr-xr-xjs/panels/Timeline/TimelinePanel.reel/TimelinePanel.js1027
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/css/TimelinePanel.css251
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/images/pause.pngbin1076 -> 0 bytes
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/images/play.pngbin1190 -> 0 bytes
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/images/play_next.pngbin1185 -> 0 bytes
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/images/play_prev.pngbin1199 -> 0 bytes
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/images/plus.pngbin1133 -> 0 bytes
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/images/timetick.jpgbin737 -> 0 bytes
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/images/trash.pngbin1154 -> 0 bytes
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html112
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js433
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/css/TimelineTrack.css117
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/images/gridline.jpgbin724 -> 0 bytes
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/scss/TimelineTrack.scss65
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/scss/config.rb9
-rw-r--r--js/panels/Timeline/Track.reel/Track.html61
-rw-r--r--js/panels/Timeline/Track.reel/Track.js186
-rw-r--r--js/panels/Timeline/Track.reel/css/Track.css26
-rw-r--r--js/panels/Timeline/Track.reel/images/gridline.jpgbin724 -> 0 bytes
-rw-r--r--js/panels/Timeline/TrackSpacer.reel/TrackSpacer.html26
-rw-r--r--js/panels/Timeline/TrackSpacer.reel/TrackSpacer.js15
-rw-r--r--js/panels/Timeline/TrackSpacer.reel/css/TrackSpacer.css5
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.html48
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.js109
-rw-r--r--js/panels/Timeline/Tween.reel/css/Tween.css4
-rwxr-xr-xjs/stage/stage.reel/stage.html12
-rwxr-xr-xjs/stage/stage.reel/stage.js7
-rwxr-xr-xjs/tools/TextTool.js97
76 files changed, 583 insertions, 6799 deletions
diff --git a/js/components/button.reel/button.js b/js/components/button.reel/button.js
index 2d26c8b4..ce5ac1af 100755
--- a/js/components/button.reel/button.js
+++ b/js/components/button.reel/button.js
@@ -179,7 +179,7 @@ var Button = exports.Button = Montage.create(Component, {
179 value: function() { 179 value: function() {
180 if(this.isToggleButton) 180 if(this.isToggleButton)
181 { 181 {
182 if(this._value === true) 182 if(this._value)
183 { 183 {
184 this.element.classList.remove(this.offState); 184 this.element.classList.remove(this.offState);
185 this.element.classList.add(this.onState); 185 this.element.classList.add(this.onState);
diff --git a/js/components/editable.reel/editable.js b/js/components/editable.reel/editable.js
deleted file mode 100644
index 1d0ad776..00000000
--- a/js/components/editable.reel/editable.js
+++ /dev/null
@@ -1,250 +0,0 @@
1/* ComputedStyleSubPanel.js */
2var Montage = require("montage").Montage,
3 Component = require("montage/ui/component").Component;
4
5
6/*
7
8EDITABLE - Methods
9- startEdit
10- stopEdit
11- value
12-
13- _suggest
14- _suggestNext
15- _suggestPrev
16- _clearSuggest
17- _accept
18- _revert
19- _setCaret
20
21*/
22
23
24exports.Editable = Montage.create(Component, {
25 hasTemplate: { value: false },
26
27 _element : { value : null },
28 element : {
29 get : function() {
30 return this._element;
31 },
32 set : function(el) {
33 this._element = el;
34 this._element.addEventListener('keydown', this, false);
35 this._element.addEventListener('input', this, false);
36
37 if(this.startOnEvent) {
38 this._element.addEventListener(this.startOnEvent, this, false);
39 }
40
41 }
42 },
43 _readOnly : {
44 value: false
45 },
46 readOnly : {
47 get : function() { return this._readOnly; },
48 set : function(makeReadOnly) {
49 var action = makeReadOnly ? 'add' : 'remove';
50
51 this._element.classList[action](this.readOnlyClass);
52
53 if(this.isEditable) {
54 this.stop();
55 }
56 this._readOnly = makeReadOnly;
57 }
58 },
59 _isEditable : {
60 value : false
61 },
62 isEditable : {
63 get : function() {
64 return this._isEditable;
65 },
66 set: function(makeEditable) {
67 if(this._readOnly && makeEditable) { return false; }
68 this._isEditable = makeEditable;
69 }
70 },
71 _isDirty : {
72 value: false
73 },
74 isDirty : {
75 get : function() {
76 return this._isDirty;
77 },
78 set : function(setDirty) {
79 if(setDirty) {
80 this._isDirty = true;
81 this._sendEvent('dirty');
82 } else {
83 this._isDirty = false;
84 }
85 }
86 },