diff options
Diffstat (limited to 'js/panels/Timeline/Layer.reel/Layer.js')
-rw-r--r-- | js/panels/Timeline/Layer.reel/Layer.js | 140 |
1 files changed, 70 insertions, 70 deletions
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js index 77588f47..48596703 100644 --- a/js/panels/Timeline/Layer.reel/Layer.js +++ b/js/panels/Timeline/Layer.reel/Layer.js | |||
@@ -69,9 +69,9 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
69 | value: null, | 69 | value: null, |
70 | serializable: true | 70 | serializable: true |
71 | }, | 71 | }, |
72 | 72 | ||
73 | /* Begin: Models */ | 73 | /* Begin: Models */ |
74 | 74 | ||
75 | /* Main collapser model: the main collapser for the layer */ | 75 | /* Main collapser model: the main collapser for the layer */ |
76 | _mainCollapser : { | 76 | _mainCollapser : { |
77 | value: false | 77 | value: false |
@@ -85,7 +85,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
85 | }, | 85 | }, |
86 | serializable: true | 86 | serializable: true |
87 | }, | 87 | }, |
88 | 88 | ||
89 | /* Style models: the array of styles, and the repetition that uses them */ | 89 | /* Style models: the array of styles, and the repetition that uses them */ |
90 | _arrLayerStyles : { | 90 | _arrLayerStyles : { |
91 | value: [] | 91 | value: [] |
@@ -148,7 +148,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
148 | _layerName:{ | 148 | _layerName:{ |
149 | value: "" | 149 | value: "" |
150 | }, | 150 | }, |
151 | 151 | ||
152 | layerName:{ | 152 | layerName:{ |
153 | serializable: true, | 153 | serializable: true, |
154 | get:function(){ | 154 | get:function(){ |
@@ -190,7 +190,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
190 | _layerTag:{ | 190 | _layerTag:{ |
191 | value: "tag" | 191 | value: "tag" |
192 | }, | 192 | }, |
193 | 193 | ||
194 | layerTag:{ | 194 | layerTag:{ |
195 | serializable: true, | 195 | serializable: true, |
196 | get:function(){ | 196 | get:function(){ |
@@ -213,11 +213,11 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
213 | this._docUUID = newVal; | 213 | this._docUUID = newVal; |
214 | } | 214 | } |
215 | }, | 215 | }, |
216 | 216 | ||
217 | _stageElement: { | 217 | _stageElement: { |
218 | value: null | 218 | value: null |
219 | }, | 219 | }, |
220 | 220 | ||
221 | stageElement: { | 221 | stageElement: { |
222 | get: function() { | 222 | get: function() { |
223 | return this._stageElement; | 223 | return this._stageElement; |
@@ -227,8 +227,8 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
227 | this.layerData.stageElement = newVal; | 227 | this.layerData.stageElement = newVal; |
228 | } | 228 | } |
229 | }, | 229 | }, |
230 | 230 | ||
231 | 231 | ||
232 | _elementsList : { | 232 | _elementsList : { |
233 | value: [] | 233 | value: [] |
234 | }, | 234 | }, |
@@ -241,7 +241,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
241 | this._elementsList = newVal; | 241 | this._elementsList = newVal; |
242 | } | 242 | } |
243 | }, | 243 | }, |
244 | 244 | ||
245 | /* Position and Size hottext values */ | 245 | /* Position and Size hottext values */ |
246 | _dtextPositionX : { | 246 | _dtextPositionX : { |
247 | value:null | 247 | value:null |
@@ -259,7 +259,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
259 | } | 259 | } |
260 | } | 260 | } |
261 | }, | 261 | }, |
262 | 262 | ||
263 | _dtextPositionY : { | 263 | _dtextPositionY : { |
264 | value:null | 264 | value:null |
265 | }, | 265 | }, |
@@ -274,10 +274,10 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
274 | this._dtextPositionY = value; | 274 | this._dtextPositionY = value; |
275 | this.layerData.dtextPositionY = value; | 275 | this.layerData.dtextPositionY = value; |
276 | } | 276 | } |
277 | 277 | ||
278 | } | 278 | } |
279 | }, | 279 | }, |
280 | 280 | ||
281 | _dtextScaleX : { | 281 | _dtextScaleX : { |
282 | value:null | 282 | value:null |
283 | }, | 283 | }, |
@@ -292,10 +292,10 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
292 | this._dtextScaleX = value; | 292 | this._dtextScaleX = value; |
293 | this.layerData.dtextScaleX = value; | 293 | this.layerData.dtextScaleX = value; |
294 | } | 294 | } |
295 | 295 | ||
296 | } | 296 | } |
297 | }, | 297 | }, |
298 | 298 | ||
299 | _dtextScaleY : { | 299 | _dtextScaleY : { |
300 | value:null | 300 | value:null |
301 | }, | 301 | }, |
@@ -310,10 +310,10 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
310 | this._dtextScaleY = value; | 310 | this._dtextScaleY = value; |
311 | this.layerData.dtextScaleY = value; | 311 | this.layerData.dtextScaleY = value; |
312 | } | 312 | } |
313 | 313 | ||
314 | } | 314 | } |
315 | }, | 315 | }, |
316 | 316 | ||
317 | /* isSelected: whether or not the layer is currently selected. */ | 317 | /* isSelected: whether or not the layer is currently selected. */ |
318 | _isSelected:{ | 318 | _isSelected:{ |
319 | value: false | 319 | value: false |
@@ -338,10 +338,10 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
338 | this.layerData.isSelected = value; | 338 | this.layerData.isSelected = value; |
339 | this.needsDraw = true; | 339 | this.needsDraw = true; |
340 | } | 340 | } |
341 | 341 | ||
342 | } | 342 | } |
343 | }, | 343 | }, |
344 | 344 | ||
345 | /* isActive: Whether or not the user is actively clicking within the layer; used to communicate state with | 345 | /* isActive: Whether or not the user is actively clicking within the layer; used to communicate state with |
346 | * TimelinePanel. | 346 | * TimelinePanel. |
347 | */ | 347 | */ |
@@ -358,8 +358,8 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
358 | this.layerData.isActive = newVal; | 358 | this.layerData.isActive = newVal; |
359 | } | 359 | } |
360 | }, | 360 | }, |
361 | 361 | ||
362 | 362 | ||
363 | _isAnimated:{ | 363 | _isAnimated:{ |
364 | value: false | 364 | value: false |
365 | }, | 365 | }, |
@@ -428,7 +428,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
428 | } | 428 | } |
429 | }, | 429 | }, |
430 | 430 | ||
431 | 431 | ||
432 | _justAdded: { | 432 | _justAdded: { |
433 | value: false | 433 | value: false |
434 | }, | 434 | }, |
@@ -448,7 +448,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
448 | this._dynamicLayerName = newVal; | 448 | this._dynamicLayerName = newVal; |
449 | } | 449 | } |
450 | }, | 450 | }, |
451 | 451 | ||
452 | // Are the various collapsers collapsed or not | 452 | // Are the various collapsers collapsed or not |
453 | _isMainCollapsed : { | 453 | _isMainCollapsed : { |
454 | value: true | 454 | value: true |
@@ -464,7 +464,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
464 | 464 | ||
465 | } | 465 | } |
466 | }, | 466 | }, |
467 | 467 | ||
468 | _isPositionCollapsed : { | 468 | _isPositionCollapsed : { |
469 | value: true | 469 | value: true |
470 | }, | 470 | }, |
@@ -478,7 +478,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
478 | this.layerData.isPositionCollapsed = newVal; | 478 | this.layerData.isPositionCollapsed = newVal; |
479 | } | 479 | } |
480 | }, | 480 | }, |
481 | 481 | ||
482 | _isStyleCollapsed : { | 482 | _isStyleCollapsed : { |
483 | value: true | 483 | value: true |
484 | }, | 484 | }, |
@@ -503,11 +503,11 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
503 | set: function(newVal) { | 503 | set: function(newVal) { |
504 | if (typeof(this.layerData) !== "undefined") { | 504 | if (typeof(this.layerData) !== "undefined") { |
505 | this._bypassAnimation = newVal; | 505 | this._bypassAnimation = newVal; |
506 | this.layerData.bypassAnimation = newVal; | 506 | this.layerData.bypassAnimation = newVal; |
507 | } | 507 | } |
508 | } | 508 | } |
509 | }, | 509 | }, |
510 | 510 | ||
511 | // Is this the first draw? | 511 | // Is this the first draw? |
512 | _isFirstDraw : { | 512 | _isFirstDraw : { |
513 | value: true | 513 | value: true |
@@ -534,16 +534,16 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
534 | value:function(boolNeedsDraw){ | 534 | value:function(boolNeedsDraw){ |
535 | if (typeof(this._layerData) === "undefined") { | 535 | if (typeof(this._layerData) === "undefined") { |