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.js715
1 files changed, 358 insertions, 357 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
index 11d275ce..fc9f9cf3 100644
--- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
@@ -1,24 +1,25 @@
1/* <copyright> 1/* <copyright>
2Copyright (c) 2012, Motorola Mobility, Inc 2Copyright (c) 2012, Motorola Mobility LLC.
3All Rights Reserved. 3All Rights Reserved.
4BSD License.
5 4
6Redistribution and use in source and binary forms, with or without 5Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are met: 6modification, are permitted provided that the following conditions are met:
8 7
9 - Redistributions of source code must retain the above copyright notice, 8* Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer. 9 this list of conditions and the following disclaimer.
11 - Redistributions in binary form must reproduce the above copyright 10
12 notice, this list of conditions and the following disclaimer in the 11* Redistributions in binary form must reproduce the above copyright notice,
13 documentation and/or other materials provided with the distribution. 12 this list of conditions and the following disclaimer in the documentation
14 - Neither the name of Motorola Mobility nor the names of its contributors 13 and/or other materials provided with the distribution.
15 may be used to endorse or promote products derived from this software 14
16 without specific prior written permission. 15* Neither the name of Motorola Mobility LLC nor the names of its
16 contributors may be used to endorse or promote products derived from this
17 software without specific prior written permission.
17 18
18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 22ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
@@ -45,10 +46,10 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
45 return this._trackID; 46 return this._trackID;
46 }, 47 },
47 set:function (value) { 48 set:function (value) {
48 if (value !== this._trackID) { 49 if (value !== this._trackID) {
49 this._trackID = value; 50 this._trackID = value;
50 this.trackData.layerID = value; 51 this.trackData.layerID = value;
51 } 52 }
52 } 53 }
53 }, 54 },
54 55
@@ -69,9 +70,9 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
69 positionPropertyTrack:{ 70 positionPropertyTrack:{
70 value:null 71 value:null
71 }, 72 },
72 73
73 _isFirstDraw: { 74 _isFirstDraw: {
74 value: true 75 value: true
75 }, 76 },
76 77
77 _isVisible:{ 78 _isVisible:{
@@ -83,31 +84,31 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
83 return this._isVisible; 84 return this._isVisible;
84 }, 85 },
85 set:function(value){ 86 set:function(value){
86 if (this._isVisible !== value) { 87 if (this._isVisible !== value) {
87 this._isVisible = value; 88 this._isVisible = value;
88 if (this.element !== null) { 89 if (this.element !== null) {
89 if (value === true) { 90 if (value === true) {
90 this.element.classList.remove("layer-hidden"); 91 this.element.classList.remove("layer-hidden");
91 } else { 92 } else {
92 this.element.classList.add("layer-hidden"); 93 this.element.classList.add("layer-hidden");
93 } 94 }
94 } 95 }
95 } 96 }
96 this.trackData.isVisible = value; 97 this.trackData.isVisible = value;
97 } 98 }
98 }, 99 },
99 100
100 _stageElement: { 101 _stageElement: {
101 value: null 102 value: null
102 }, 103 },
103 stageElement: { 104 stageElement: {
104 get: function() { 105 get: function() {
105 return this._stageElement; 106 return this._stageElement;
106 }, 107 },
107 set: function(newVal) { 108 set: function(newVal) {
108 this._stageElement = newVal; 109 this._stageElement = newVal;
109 this.trackData.stageElement = newVal; 110 this.trackData.stageElement = newVal;
110 } 111 }
111 }, 112 },
112 113
113 // Are the various collapsers collapsed or not 114 // Are the various collapsers collapsed or not
@@ -160,88 +161,88 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
160 } 161 }
161 }, 162 },
162 _bypassAnimation : { 163 _bypassAnimation : {
163 value: false 164 value: false
164 }, 165 },
165 bypassAnimation : { 166 bypassAnimation : {
166 serializable: true, 167 serializable: true,
167 get: function() { 168 get: function() {
168 return this._bypassAnimation; 169 return this._bypassAnimation;
169 }, 170 },
170 set: function(newVal) { 171 set: function(newVal) {
171 if (typeof(this.trackData) !== "undefined") { 172 if (typeof(this.trackData) !== "undefined") {
172 this._bypassAnimation = newVal; 173 this._bypassAnimation = newVal;
173 this.trackData.bypassAnimation = newVal; 174 this.trackData.bypassAnimation = newVal;
174 } 175 }
175 } 176 }
176 }, 177 },
177 178
178 _arrStyleTracks : { 179 _arrStyleTracks : {
179 value: [] 180 value: []
180 }, 181 },
181 arrStyleTracks: { 182 arrStyleTracks: {
182 serializable:true, 183 serializable:true,
183 get: function() { 184 get: function() {
184 return this._arrStyleTracks; 185 return this._arrStyleTracks;
185 }, 186 },
186 set: function(newVal) { 187 set: function(newVal) {
187 this._arrStyleTracks = newVal; 188 this._arrStyleTracks = newVal;
188 this.trackData.arrStyleTracks = newVal; 189 this.trackData.arrStyleTracks = newVal;
189 } 190 }
190 }, 191 },
191 _styleTracksRepetition: { 192 _styleTracksRepetition: {
192 value: null 193 value: null
193 }, 194 },
194 styleTracksRepetition : { 195 styleTracksRepetition : {
195 serializable:true, 196 serializable:true,
196 get: function() { 197 get: function() {
197 return this._styleTracksRepetition; 198 return this._styleTracksRepetition;
198 }, 199 },
199 set: function(newVal) { 200 set: function(newVal) {
200 this._styleTracksRepetition = newVal; 201 this._styleTracksRepetition = newVal;
201 } 202 }
202 }, 203 },
203 204
204 /* Position Property Tracks */ 205 /* Position Property Tracks */
205 _arrPositionTracks : { 206 _arrPositionTracks : {
206 value: [] 207 value: []
207 }, 208 },
208 arrPositionTracks: { 209 arrPositionTracks: {
209 serializable:true, 210 serializable:true,
210 get: function() { 211 get: function() {
211 return this._arrPositionTracks; 212 return this._arrPositionTracks;
212 }, 213 },
213 set: function(newVal) { 214 set: function(newVal) {
214 this._arrPositionTracks = newVal; 215 this._arrPositionTracks = newVal;
215 this.trackData.arrPositionTracks = newVal; 216 this.trackData.arrPositionTracks = newVal;
216 217
217 } 218 }
218 }, 219 },
219 _positionTracksRepetition: {