aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js24
1 files changed, 23 insertions, 1 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
index 8b639758..64ac08d3 100644
--- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
@@ -32,6 +32,28 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
32 } 32 }
33 } 33 }
34 }, 34 },
35 _isVisible:{
36 value: true
37 },
38
39 isVisible:{
40 get:function(){
41 return this._isVisible;
42 },
43 set:function(value){
44 if (this._isVisible !== value) {
45 this._isVisible = value;
46 if (this.element !== null) {
47 if (value === true) {
48 this.element.classList.remove("layer-hidden");
49 } else {
50 this.element.classList.add("layer-hidden");
51 }
52 }
53 }
54 this.trackData.isVisible = value;
55 }
56 },
35 57
36 // Are the various collapsers collapsed or not 58 // Are the various collapsers collapsed or not
37 _isMainCollapsed:{ 59 _isMainCollapsed:{
@@ -390,6 +412,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
390 this.isTransformCollapsed = this.trackData.isTransformCollapsed; 412 this.isTransformCollapsed = this.trackData.isTransformCollapsed;
391 this.isStyleCollapsed = this.trackData.isStyleCollapsed; 413 this.isStyleCollapsed = this.trackData.isStyleCollapsed;
392 this.trackPosition = this.trackData.trackPosition; 414 this.trackPosition = this.trackData.trackPosition;
415 this.isVisible = this.trackData.isVisible;
393 this.needsDraw = true; 416 this.needsDraw = true;
394 } 417 }
395 }, 418 },
@@ -454,7 +477,6 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
454 this.retrieveStoredTweens(); 477 this.retrieveStoredTweens();
455 } 478 }
456 } 479 }
457
458 } 480 }
459 } 481 }
460 } 482 }