diff options
author | Jonathan Duran | 2012-04-10 10:11:21 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-04-10 10:11:21 -0700 |
commit | 422b14fc60be84c116115f2e71e3499e232f3f05 (patch) | |
tree | 75c2fb643fd358ca3ef80c032bb95d1a26f466e6 /js/panels | |
parent | e0f67d9075f53ef95a9c811c6737cd4f1c9d96da (diff) | |
download | ninja-422b14fc60be84c116115f2e71e3499e232f3f05.tar.gz |
Abs. vs. Rel. animation postion functions
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels')
-rw-r--r-- | js/panels/Timeline/Tween.reel/Tween.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js index 5410c77c..0a67df43 100644 --- a/js/panels/Timeline/Tween.reel/Tween.js +++ b/js/panels/Timeline/Tween.reel/Tween.js | |||
@@ -187,6 +187,25 @@ var Tween = exports.Tween = Montage.create(Component, { | |||
187 | } | 187 | } |
188 | }, | 188 | }, |
189 | 189 | ||
190 | setAbsoluteTweenProperties:{ | ||
191 | value:function () { | ||
192 | if (this.parentComponent.parentComponent.animatedElement.offsetTop != this.tweenedProperties["top"] && this.parentComponent.parentComponent.animatedElement.offsetLeft != this.tweenedProperties["left"]) { | ||
193 | this.tweenedProperties["top"] = this.parentComponent.parentComponent.animatedElement.offsetTop; | ||
194 | this.tweenedProperties["left"] = this.parentComponent.parentComponent.animatedElement.offsetLeft; | ||
195 | this.parentComponent.parentComponent.updateKeyframeRule(); | ||
196 | } | ||
197 | // highlight the tween's span | ||
198 | this.tweenspan.highlightSpan(); | ||
199 | this.isTweenAnimated = true; | ||
200 | } | ||
201 | }, | ||
202 | |||
203 | setRelativeTweenProperties:{ | ||
204 | value:function(){ | ||
205 | |||
206 | } | ||
207 | }, | ||
208 | |||
190 | selectTween:{ | 209 | selectTween:{ |
191 | value: function(){ | 210 | value: function(){ |
192 | // turn on event listener for element change | 211 | // turn on event listener for element change |