diff options
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 594 |
1 files changed, 235 insertions, 359 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index 11d275ce..9a67c969 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -35,10 +35,10 @@ var defaultEventManager = require("montage/core/event/event-manager").defaultEve | |||
35 | 35 | ||
36 | var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | 36 | var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { |
37 | 37 | ||
38 | // ==== Begin Models | ||
38 | _trackID:{ | 39 | _trackID:{ |
39 | value:null | 40 | value:null |
40 | }, | 41 | }, |
41 | |||
42 | trackID:{ | 42 | trackID:{ |
43 | serializable:true, | 43 | serializable:true, |
44 | get:function () { | 44 | get:function () { |
@@ -55,7 +55,6 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
55 | _tween:{ | 55 | _tween:{ |
56 | value:[] | 56 | value:[] |
57 | }, | 57 | }, |
58 | |||
59 | tween:{ | 58 | tween:{ |
60 | serializable:true, | 59 | serializable:true, |
61 | get:function () { | 60 | get:function () { |
@@ -77,7 +76,6 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
77 | _isVisible:{ | 76 | _isVisible:{ |
78 | value: true | 77 | value: true |
79 | }, | 78 | }, |
80 | |||
81 | isVisible:{ | 79 | isVisible:{ |
82 | get:function(){ | 80 | get:function(){ |
83 | return this._isVisible; | 81 | return this._isVisible; |
@@ -96,6 +94,21 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
96 | this.trackData.isVisible = value; | 94 | this.trackData.isVisible = value; |
97 | } | 95 | } |
98 | }, | 96 | }, |
97 | |||
98 | _bindingPoint : { | ||
99 | value : {} | ||
100 | }, | ||
101 | bindingPoint: { | ||
102 | get: function() { | ||
103 | return this._bindingPoint; | ||
104 | }, | ||
105 | set: function(newVal) { | ||
106 | if (newVal !== this._bindingPoint) { | ||
107 | this._bindingPoint = newVal; | ||
108 | this.setData(); | ||
109 | } | ||
110 | } | ||
111 | }, | ||
99 | 112 | ||
100 | _stageElement: { | 113 | _stageElement: { |
101 | value: null | 114 | value: null |
@@ -110,7 +123,6 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
110 | } | 123 | } |
111 | }, | 124 | }, |
112 | 125 | ||
113 | // Are the various collapsers collapsed or not | ||
114 | _isMainCollapsed:{ | 126 | _isMainCollapsed:{ |
115 | value: true | 127 | value: true |
116 | }, | 128 | }, |
@@ -123,18 +135,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
123 | this.trackData.isMainCollapsed = newVal; | 135 | this.trackData.isMainCollapsed = newVal; |
124 | } | 136 | } |
125 | }, | 137 | }, |
126 | _isTransformCollapsed:{ | 138 | |
127 | value:true | ||
128 | }, | ||
129 | isTransformCollapsed:{ | ||
130 | get:function () { | ||
131 | return this._isTransformCollapsed; | ||
132 | }, | ||
133 | set:function (newVal) { | ||
134 | this._isTransformCollapsed = newVal; | ||
135 | this.trackData.isTransformCollapsed = newVal; | ||
136 | } | ||
137 | }, | ||
138 | _isPositionCollapsed:{ | 139 | _isPositionCollapsed:{ |
139 | value:true | 140 | value:true |
140 | }, | 141 | }, |
@@ -147,6 +148,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
147 | this.trackData.isPositionCollapsed = newVal; | 148 | this.trackData.isPositionCollapsed = newVal; |
148 | } | 149 | } |
149 | }, | 150 | }, |
151 | |||
150 | _isStyleCollapsed:{ | 152 | _isStyleCollapsed:{ |
151 | value:true | 153 | value:true |
152 | }, | 154 | }, |
@@ -159,6 +161,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
159 | this.trackData.isStyleCollapsed = newVal; | 161 | this.trackData.isStyleCollapsed = newVal; |
160 | } | 162 | } |
161 | }, | 163 | }, |
164 | |||
162 | _bypassAnimation : { | 165 | _bypassAnimation : { |
163 | value: false | 166 | value: false |
164 | }, | 167 | }, |
@@ -188,6 +191,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
188 | this.trackData.arrStyleTracks = newVal; | 191 | this.trackData.arrStyleTracks = newVal; |
189 | } | 192 | } |
190 | }, | 193 | }, |
194 | |||
191 | _styleTracksRepetition: { | 195 | _styleTracksRepetition: { |
192 | value: null | 196 | value: null |
193 | }, | 197 | }, |
@@ -200,8 +204,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
200 | this._styleTracksRepetition = newVal; | 204 | this._styleTracksRepetition = newVal; |
201 | } | 205 | } |
202 | }, | 206 | }, |
203 | 207 | ||
204 | /* Position Property Tracks */ | ||
205 | _arrPositionTracks : { | 208 | _arrPositionTracks : { |
206 | value: [] | 209 | value: [] |
207 | }, | 210 | }, |
@@ -216,6 +219,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
216 | 219 | ||
217 | } | 220 | } |
218 | }, | 221 | }, |
222 | |||
219 | _positionTracksRepetition: { | 223 | _positionTracksRepetition: { |
220 | value: null | 224 | value: null |
221 | }, | 225 | }, |
@@ -228,26 +232,9 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
228 | } | 232 | } |
229 | }, | 233 | }, |
230 | 234 | ||
231 | |||
232 | /* Transform Property Tracks */ | ||
233 | _arrTransformTracks : { | ||
234 | value: [] | ||
235 | }, | ||
236 | arrTransformTracks: { | ||
237 | serializable:true, | ||
238 | get: function() { | ||
239 | return this._arrTransformTracks; | ||
240 | }, | ||
241 | set: function(newVal) { | ||
242 | this._arrTransformTracks = newVal; | ||
243 | this.trackData.arrTransformTracks = newVal; | ||
244 | } | ||
245 | }, | ||
246 | |||
247 | _tweens:{ | 235 | _tweens:{ |
248 | value:[] | 236 | value:[] |
249 | }, | 237 | }, |
250 | |||
251 | tweens:{ | 238 | tweens:{ |
252 | serializable: true, | 239 | serializable: true, |
253 | get:function () { | 240 | get:function () { |
@@ -262,7 +249,6 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
262 | _tweenRepetition:{ | 249 | _tweenRepetition:{ |
263 | value:null | 250 | value:null |
264 | }, | 251 | }, |
265 | |||
266 | tweenRepetition:{ | 252 | tweenRepetition:{ |
267 | get:function () { | 253 | get:function () { |
268 | return this._tweenRepetition; | 254 | return this._tweenRepetition; |
@@ -275,7 +261,6 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
275 | _trackDuration:{ | 261 | _trackDuration:{ |
276 | value:0 | 262 | value:0 |
277 | }, | 263 | }, |
278 | |||
279 | trackDuration:{ | 264 | trackDuration:{ |
280 | serializable:true, | 265 | serializable:true, |
281 | get:function () { | 266 | get:function () { |
@@ -293,7 +278,6 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
293 | _trackPosition:{ | 278 | _trackPosition:{ |
294 | value:0 | 279 | value:0 |
295 | }, | 280 | }, |
296 | |||
297 | trackPosition:{ | 281 | trackPosition:{ |
298 | serializable:true, | 282 | serializable:true, |
299 | get:function () { | 283 | get:function () { |
@@ -308,7 +292,6 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
308 | _currentKeyframeRule:{ | 292 | _currentKeyframeRule:{ |
309 | value:null | 293 | value:null |
310 | }, | 294 | }, |
311 | |||
312 | currentKeyframeRule:{ | 295 | currentKeyframeRule:{ |
313 | serializable: true, | 296 | serializable: true, |
314 | get:function(){ | 297 |