aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Layer.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/Layer.reel')
-rw-r--r--js/panels/Timeline/Layer.reel/Layer.js41
1 files changed, 38 insertions, 3 deletions
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index 81bd1867..df1770da 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.js
@@ -38,13 +38,11 @@ var Layer = exports.Layer = Montage.create(Component, {
38 _arrLayerStyles : { 38 _arrLayerStyles : {
39 serializable: true, 39 serializable: true,
40 enumerable: true, 40 enumerable: true,
41 serializable: true,
42 value: [] 41 value: []
43 }, 42 },
44 arrLayerStyles : { 43 arrLayerStyles : {
45 serializable: true, 44 serializable: true,
46 enumerable: true, 45 enumerable: true,
47 serializable: true,
48 get: function() { 46 get: function() {
49 return this._arrLayerStyles; 47 return this._arrLayerStyles;
50 }, 48 },
@@ -386,7 +384,44 @@ var Layer = exports.Layer = Montage.create(Component, {
386 this._bypassAnimation = newVal; 384 this._bypassAnimation = newVal;
387 } 385 }
388 }, 386 },
389 387
388 _layerData:{
389 serializable:true,
390 value:{}
391 },
392
393 layerData:{
394 serializable:true,
395 get:function(){
396 return this._layerData;
397 },
398 set:function(val){
399 this._layerData = val;
400 this.setData();
401 }
402 },
403
404 setData:{
405 value:function(){
406 this.layerName = this.layerData.layerName;
407 this.layerID = this.layerData.layerID;
408 this.arrLayerStyles = this.layerData.arrLayerStyles;
409 this.isMainCollapsed = this.layerData.isMainCollapsed;
410 this.isPositionCollapsed = this.layerData.isPositionCollapsed;
411 this.isTransformCollapsed = this.layerData.isTransformCollapsed;
412 this.isSelected = this.layerData.isSelected;
413 this.isActive = this.layerData.isActive;
414 this.isStyleCollapsed = this.layerData.isStyleCollapsed;
415 this.bypassAnimation = this.layerData.bypassAnimation;
416 this.dtextPositionX = this.layerData.dtextPositionX;
417 this.dtextPositionY = this.layerData.dtextPositionY;
418 this.dtextSkewX = this.layerData.dtextSkewX;
419 this.dtextSkewY = this.layerData.dtextSkewY;
420 this.dtextScaleX = this.layerData.dtextScaleX;
421 this.dtextScaleY = this.layerData.dtextScaleY;
422 this.dtextRotate = this.layerData.dtextRotate;
423 }
424 },
390 425
391 /* END: Models */ 426 /* END: Models */
392 427