aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelineTrack.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel')
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html2
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js201
2 files changed, 142 insertions, 61 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html
index 7e9b8a21..2d508b3c 100644
--- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.html
@@ -200,7 +200,7 @@
200 "properties" : { 200 "properties" : {
201 "element" : {"#" : "content-styles"}, 201 "element" : {"#" : "content-styles"},
202 "myContent" : {"#":"content-styles"}, 202 "myContent" : {"#":"content-styles"},
203 "contentHeight" : 40, 203 "contentHeight" : 0,
204 "isLabelClickable" : false, 204 "isLabelClickable" : false,
205 "clicker" : {"#" : "label-styles"}, 205 "clicker" : {"#" : "label-styles"},
206 "isCollapsed" : true, 206 "isCollapsed" : true,
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
index c6b67c9c..8b639758 100644
--- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
@@ -26,8 +26,10 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
26 return this._trackID; 26 return this._trackID;
27 }, 27 },
28 set:function (value) { 28 set:function (value) {
29 this._trackID = value; 29 if (value !== this._trackID) {
30 //this.needsDraw = true; 30 this._trackID = value;
31 this.trackData.layerID = value;
32 }
31 } 33 }
32 }, 34 },
33 35
@@ -40,11 +42,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
40 return this._isMainCollapsed; 42 return this._isMainCollapsed;
41 }, 43 },
42 set:function (newVal) { 44 set:function (newVal) {
43 this.log('TimelineTrack.js: isMainCollapsed: ', newVal); 45 this._isMainCollapsed = newVal;
44 if (newVal !== this._isMainCollapsed) { 46 this.trackData.isMainCollapsed = newVal;
45 this._isMainCollapsed = newVal;
46 }
47
48 } 47 }
49 }, 48 },
50 _isTransformCollapsed:{ 49 _isTransformCollapsed:{
@@ -55,9 +54,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
55 return this._isTransformCollapsed; 54 return this._isTransformCollapsed;
56 }, 55 },
57 set:function (newVal) { 56 set:function (newVal) {
58 if (newVal !== this._isTransformCollapsed) { 57 this._isTransformCollapsed = newVal;
59 this._isTransformCollapsed = newVal; 58 this.trackData.isTransformCollapsed = newVal;
60 }
61 } 59 }
62 }, 60 },
63 _isPositionCollapsed:{ 61 _isPositionCollapsed:{
@@ -68,9 +66,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
68 return this._isPositionCollapsed; 66 return this._isPositionCollapsed;
69 }, 67 },
70 set:function (newVal) { 68 set:function (newVal) {
71 if (newVal !== this._isPositionCollapsed) { 69 this._isPositionCollapsed = newVal;
72 this._isPositionCollapsed = newVal; 70 this.trackData.isPositionCollapsed = newVal;
73 }
74 } 71 }
75 }, 72 },
76 _isStyleCollapsed:{ 73 _isStyleCollapsed:{
@@ -81,9 +78,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
81 return this._isStyleCollapsed; 78 return this._isStyleCollapsed;
82 }, 79 },
83 set:function (newVal) { 80 set:function (newVal) {
84 if (newVal !== this._isStyleCollapsed) { 81 this._isStyleCollapsed = newVal;
85 this._isStyleCollapsed = newVal; 82 this.trackData.isStyleCollapsed = newVal;
86 }
87 } 83 }
88 }, 84 },
89 _bypassAnimation : { 85 _bypassAnimation : {
@@ -96,8 +92,10 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
96 return this._bypassAnimation; 92 return this._bypassAnimation;
97 }, 93 },
98 set: function(newVal) { 94 set: function(newVal) {
99 //console.log("timelinetrack bypassAnimation setter " + newVal) 95 if (typeof(this.trackData) !== "undefined") {
100 this._bypassAnimation = newVal; 96 this._bypassAnimation = newVal;
97 this.trackData.bypassAnimation = newVal;
98 }
101 } 99 }
102 }, 100 },
103 101
@@ -114,7 +112,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
114 }, 112 },
115 set: function(newVal) { 113 set: function(newVal) {
116 this._arrStyleTracks = newVal; 114 this._arrStyleTracks = newVal;
117 //this.needsDraw = true; 115 this.trackData.arrStyleTracks = newVal;
118 } 116 }
119 }, 117 },
120 _styleTracksRepetition: { 118 _styleTracksRepetition: {
@@ -128,7 +126,6 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
128 }, 126 },
129 set: function(newVal) { 127 set: function(newVal) {
130 this._styleTracksRepetition = newVal; 128 this._styleTracksRepetition = newVal;
131 //needsDraw = true;
132 } 129 }
133 }, 130 },
134 131
@@ -146,7 +143,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
146 }, 143 },
147 set: function(newVal) { 144 set: function(newVal) {
148 this._arrPositionTracks = newVal; 145 this._arrPositionTracks = newVal;
149 //this.needsDraw = true; 146 this.trackData.arrPositionTracks = newVal;
150 } 147 }
151 }, 148 },
152 _positionTracksRepetition: { 149 _positionTracksRepetition: {
@@ -160,7 +157,6 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
160 }, 157 },
161 set: function(newVal) { 158 set: function(newVal) {
162 this._positionTracksRepetition = newVal; 159 this._positionTracksRepetition = newVal;
163 //this.needsDraw = true;
164 } 160 }
165 }, 161 },
166 162
@@ -179,7 +175,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
179 }, 175 },
180 set: function(newVal) { 176 set: function(newVal) {
181 this._arrTransformTracks = newVal; 177 this._arrTransformTracks = newVal;
182 //this.needsDraw = true; 178 this.trackData.arrTransformTracks = newVal;
183 } 179 }
184 }, 180 },
185 _transformTracksRepetition: { 181 _transformTracksRepetition: {
@@ -193,7 +189,6 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
193 }, 189 },
194 set: function(newVal) { 190 set: function(newVal) {
195 this._transformTracksRepetition = newVal; 191 this._transformTracksRepetition = newVal;
196 //this.needsDraw = true;
197 } 192 }
198 }, 193 },
199 194
@@ -209,7 +204,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
209 }, 204 },
210 set:function (newVal) { 205 set:function (newVal) {
211 this._tweens = newVal; 206 this._tweens = newVal;
212 //this.needsDraw=true; 207 this.trackData.tweens = newVal;
213 } 208 }
214 }, 209 },
215 210
@@ -243,6 +238,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
243 if(this._trackDuration > this.application.ninja.timeline.masterDuration){ 238 if(this._trackDuration > this.application.ninja.timeline.masterDuration){
244 this.application.ninja.timeline.masterDuration = this._trackDuration; 239 this.application.ninja.timeline.masterDuration = this._trackDuration;
245 } 240 }
241 this.trackData.trackDuration = val;
246 } 242 }
247 }, 243 },
248 244
@@ -258,6 +254,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
258 }, 254 },
259 set:function (val) { 255 set:function (val) {
260 this._trackPosition = val; 256 this._trackPosition = val;
257 this.trackData.trackPosition = val;
261 } 258 }
262 }, 259 },
263 260
@@ -273,6 +270,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
273 }, 270 },
274 set:function(val){ 271 set:function(val){
275 this._currentKeyframeRule = val; 272 this._currentKeyframeRule = val;
273 this.trackData.currentKeyframeRule = val;
276 } 274 }
277 },