From 422b14fc60be84c116115f2e71e3499e232f3f05 Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Tue, 10 Apr 2012 10:11:21 -0700 Subject: Abs. vs. Rel. animation postion functions Signed-off-by: Jonathan Duran --- js/panels/Timeline/Tween.reel/Tween.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'js') 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, { } }, + setAbsoluteTweenProperties:{ + value:function () { + if (this.parentComponent.parentComponent.animatedElement.offsetTop != this.tweenedProperties["top"] && this.parentComponent.parentComponent.animatedElement.offsetLeft != this.tweenedProperties["left"]) { + this.tweenedProperties["top"] = this.parentComponent.parentComponent.animatedElement.offsetTop; + this.tweenedProperties["left"] = this.parentComponent.parentComponent.animatedElement.offsetLeft; + this.parentComponent.parentComponent.updateKeyframeRule(); + } + // highlight the tween's span + this.tweenspan.highlightSpan(); + this.isTweenAnimated = true; + } + }, + + setRelativeTweenProperties:{ + value:function(){ + + } + }, + selectTween:{ value: function(){ // turn on event listener for element change -- cgit v1.2.3