aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Layer.reel/Layer.js
diff options
context:
space:
mode:
authorKris Kowal2012-07-09 16:38:08 -0700
committerKris Kowal2012-07-09 16:38:08 -0700
commit7bee50379c1df86bb571e0e8d6c08e24d25231f5 (patch)
tree5b11abd0414e0a3ab50ec6276b6334fbd168db7e /js/panels/Timeline/Layer.reel/Layer.js
parent26d4b5ce30e6e0ea6e0fde870853c1e2a673a7b4 (diff)
downloadninja-7bee50379c1df86bb571e0e8d6c08e24d25231f5.tar.gz
BSD License
Diffstat (limited to 'js/panels/Timeline/Layer.reel/Layer.js')
-rw-r--r--js/panels/Timeline/Layer.reel/Layer.js163
1 files changed, 82 insertions, 81 deletions
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js
index 3be766c4..d40da863 100644
--- a/js/panels/Timeline/Layer.reel/Layer.js
+++ b/js/panels/Timeline/Layer.reel/Layer.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
@@ -69,9 +70,9 @@ var Layer = exports.Layer = Montage.create(Component, {
69 value: null, 70 value: null,
70 serializable: true 71 serializable: true
71 }, 72 },
72 73
73 /* Begin: Models */ 74 /* Begin: Models */
74 75
75 /* Main collapser model: the main collapser for the layer */ 76 /* Main collapser model: the main collapser for the layer */
76 _mainCollapser : { 77 _mainCollapser : {
77 value: false 78 value: false
@@ -85,7 +86,7 @@ var Layer = exports.Layer = Montage.create(Component, {
85 }, 86 },
86 serializable: true 87 serializable: true
87 }, 88 },
88 89
89 /* Style models: the array of styles, and the repetition that uses them */ 90 /* Style models: the array of styles, and the repetition that uses them */
90 _arrLayerStyles : { 91 _arrLayerStyles : {
91 value: [] 92 value: []
@@ -148,7 +149,7 @@ var Layer = exports.Layer = Montage.create(Component, {
148 _layerName:{ 149 _layerName:{
149 value: "" 150 value: ""
150 }, 151 },
151 152
152 layerName:{ 153 layerName:{
153 serializable: true, 154 serializable: true,
154 get:function(){ 155 get:function(){
@@ -190,7 +191,7 @@ var Layer = exports.Layer = Montage.create(Component, {
190 _layerTag:{ 191 _layerTag:{
191 value: "tag" 192 value: "tag"
192 }, 193 },
193 194
194 layerTag:{ 195 layerTag:{
195 serializable: true, 196 serializable: true,
196 get:function(){ 197 get:function(){
@@ -213,11 +214,11 @@ var Layer = exports.Layer = Montage.create(Component, {
213 this._docUUID = newVal; 214 this._docUUID = newVal;
214 } 215 }
215 }, 216 },
216 217
217 _stageElement: { 218 _stageElement: {
218 value: null 219 value: null
219 }, 220 },
220 221
221 stageElement: { 222 stageElement: {
222 get: function() { 223 get: function() {
223 return this._stageElement; 224 return this._stageElement;
@@ -227,8 +228,8 @@ var Layer = exports.Layer = Montage.create(Component, {
227 this.layerData.stageElement = newVal; 228 this.layerData.stageElement = newVal;
228 } 229 }
229 }, 230 },
230 231
231 232
232 _elementsList : { 233 _elementsList : {
233 value: [] 234 value: []
234 }, 235 },
@@ -241,7 +242,7 @@ var Layer = exports.Layer = Montage.create(Component, {
241 this._elementsList = newVal; 242 this._elementsList = newVal;
242 } 243 }
243 }, 244 },
244 245
245 /* Position and Size hottext values */ 246 /* Position and Size hottext values */
246 _dtextPositionX : { 247 _dtextPositionX : {
247 value:null 248 value:null
@@ -259,7 +260,7 @@ var Layer = exports.Layer = Montage.create(Component, {
259 } 260 }
260 } 261 }
261 }, 262 },
262 263
263 _dtextPositionY : { 264 _dtextPositionY : {
264 value:null 265 value:null
265 }, 266 },
@@ -274,10 +275,10 @@ var Layer = exports.Layer = Montage.create(Component, {
274 this._dtextPositionY = value; 275 this._dtextPositionY = value;
275 this.layerData.dtextPositionY = value; 276 this.layerData.dtextPositionY = value;
276 } 277 }
277 278
278 } 279 }
279 }, 280 },
280 281
281 _dtextScaleX : { 282 _dtextScaleX : {
282 value:null 283 value:null
283 }, 284 },
@@ -292,10 +293,10 @@ var Layer = exports.Layer = Montage.create(Component, {
292 this._dtextScaleX = value; 293 this._dtextScaleX = value;
293 this.layerData.dtextScaleX = value; 294 this.layerData.dtextScaleX = value;
294 } 295 }
295 296
296 } 297 }
297 }, 298 },
298 299
299 _dtextScaleY : { 300 _dtextScaleY : {
300 value:null 301 value:null
301 }, 302 },
@@ -310,10 +311,10 @@ var Layer = exports.Layer = Montage.create(Component, {
310 this._dtextScaleY = value; 311 this._dtextScaleY = value;
311 this.layerData.dtextScaleY = value; 312 this.layerData.dtextScaleY = value;
312 } 313 }
313 314
314 } 315 }
315 }, 316 },
316 317
317 /* isSelected: whether or not the layer is currently selected. */ 318 /* isSelected: whether or not the layer is currently selected. */
318 _isSelected:{ 319 _isSelected:{
319 value: false 320 value: false
@@ -338,10 +339,10 @@ var Layer = exports.Layer = Montage.create(Component, {
338 this.layerData.isSelected = value; 339 this.layerData.isSelected = value;
339 this.needsDraw = true; 340 this.needsDraw = true;
340 } 341 }
341 342
342 } 343 }
343 }, 344 },
344 345
345 /* isActive: Whether or not the user is actively clicking within the layer; used to communicate state with 346 /* isActive: Whether or not the user is actively clicking within the layer; used to communicate state with
346 * TimelinePanel. 347 * TimelinePanel.
347 */ 348 */
@@ -358,8 +359,8 @@ var Layer = exports.Layer = Montage.create(Component, {
358 this.layerData.isActive = newVal; 359 this.layerData.isActive = newVal;
359 } 360 }
360 }, 361 },
361 362
362 363
363 _isAnimated:{ 364 _isAnimated:{
364 value: false 365 value: false
365 }, 366 },
@@ -428,7 +429,7 @@ var Layer = exports.Layer = Montage.create(Component, {
428 } 429 }
429 }, 430 },
430 431
431 432
432 _justAdded: { 433 _justAdded: {
433 value: false 434 value: false
434 }, 435 },
@@ -448,7 +449,7 @@ var Layer = exports.Layer = Montage.create(Component, {
448 this._dynamicLayerName = newVal;