diff options
author | Valerio Virgillito | 2012-03-13 11:55:11 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-03-13 11:55:11 -0700 |
commit | f56b8cf4d3316d250c0f0045fb78f0dbd5c56e94 (patch) | |
tree | d48c090f71ed2cd6bd6ce38ff68c36ab69299985 /js/panels/Timeline/Tween.reel/Tween.js | |
parent | e464677ee84361d24c77896ee465555629f739dd (diff) | |
parent | e8f207dc50ad942ee8c1c1db6b146c0110ce3216 (diff) | |
download | ninja-f56b8cf4d3316d250c0f0045fb78f0dbd5c56e94.tar.gz |
Merge pull request #109 from imix23ways/TimelineUber
Timeline uber
Diffstat (limited to 'js/panels/Timeline/Tween.reel/Tween.js')
-rw-r--r-- | js/panels/Timeline/Tween.reel/Tween.js | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js index 6ff38bef..77c0dfa8 100644 --- a/js/panels/Timeline/Tween.reel/Tween.js +++ b/js/panels/Timeline/Tween.reel/Tween.js | |||
@@ -14,6 +14,24 @@ var Tween = exports.Tween = Montage.create(Component, { | |||
14 | value: true | 14 | value: true |
15 | }, | 15 | }, |
16 | 16 | ||
17 | _tweenData:{ | ||
18 | serializable: true, | ||
19 | value:{} | ||
20 | }, | ||
21 | |||
22 | tweenData:{ | ||
23 | serializable: true, | ||
24 | get:function(){ | ||
25 | return this._tweenData; | ||
26 | }, | ||
27 | set:function(val){ | ||
28 | this._tweenData = val; | ||
29 | if(this._tweenData){ | ||
30 | this.setData(); | ||
31 | } | ||
32 | } | ||
33 | }, | ||
34 | |||
17 | _spanWidth: { | 35 | _spanWidth: { |
18 | serializable: true, | 36 | serializable: true, |
19 | value: 0 | 37 | value: 0 |
@@ -118,21 +136,6 @@ var Tween = exports.Tween = Montage.create(Component, { | |||
118 | this.needsDraw = true; | 136 | this.needsDraw = true; |
119 | } | 137 | } |
120 | }, | 138 | }, |
121 | |||
122 | _isClearing : { | ||
123 | serializable: true, | ||
124 | value: false | ||
125 | }, | ||
126 | isClearing : { | ||
127 | get: function() { | ||
128 | return this._isClearing; | ||
129 | }, | ||
130 | set: function(newVal) { | ||
131 | if (newVal === "clear it") { | ||
132 | this.eventManager.removeEventListener("elementChange", this, false); | ||
133 | } | ||
134 | } | ||
135 | }, | ||
136 | 139 | ||
137 | draw:{ | 140 | draw:{ |
138 | value:function () { | 141 | value:function () { |
@@ -145,6 +148,18 @@ var Tween = exports.Tween = Montage.create(Component, { | |||
145 | } | 148 | } |
146 | }, | 149 | }, |
147 | 150 | ||
151 | setData:{ | ||
152 | value:function(){ | ||
153 | this.spanWidth = this.tweenData.spanWidth; | ||
154 | this.keyFramePosition = this.tweenData.keyFramePosition; | ||
155 | this.spanPosition = this.tweenData.spanPosition; | ||
156 | this.keyFrameMillisec = this.tweenData.keyFrameMillisec; | ||
157 | this.tweenID = this.tweenData.tweenID; | ||
158 | this.tweenedProperties = this.tweenData.tweenedProperties; | ||
159 | this.isTweenAnimated = this.tweenData.isTweenAnimated; | ||
160 | } | ||
161 | }, | ||
162 | |||
148 | handleElementChange:{ | 163 | handleElementChange:{ |
149 | value:function (event) { | 164 | value:function (event) { |
150 | 165 | ||