aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Tween.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/Tween.reel')
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js
index 7339139f..5410c77c 100644
--- a/js/panels/Timeline/Tween.reel/Tween.js
+++ b/js/panels/Timeline/Tween.reel/Tween.js
@@ -44,6 +44,8 @@ var Tween = exports.Tween = Montage.create(Component, {
44 }, 44 },
45 set: function(value){ 45 set: function(value){
46 this._spanWidth = value; 46 this._spanWidth = value;
47 this.tweenData.spanWidth = value;
48 this.needsDraw=true;
47 } 49 }
48 }, 50 },
49 51
@@ -58,6 +60,8 @@ var Tween = exports.Tween = Montage.create(Component, {
58 }, 60 },
59 set:function (value) { 61 set:function (value) {
60 this._spanPosition = value; 62 this._spanPosition = value;
63 this.tweenData.spanPosition = value;
64 this.needsDraw=true;
61 } 65 }
62 }, 66 },
63 67
@@ -72,6 +76,8 @@ var Tween = exports.Tween = Montage.create(Component, {
72 }, 76 },
73 set:function (value) { 77 set:function (value) {
74 this._keyFramePosition = value; 78 this._keyFramePosition = value;
79 this.tweenData.keyFramePosition = value;
80 this.needsDraw=true;
75 } 81 }
76 }, 82 },
77 83
@@ -133,6 +139,7 @@ var Tween = exports.Tween = Montage.create(Component, {
133 } 139 }
134 }, 140 },
135 141
142
136 draw:{ 143 draw:{
137 value:function () { 144 value:function () {
138 this.element.style.left = this.spanPosition + "px"; 145 this.element.style.left = this.spanPosition + "px";
@@ -203,6 +210,7 @@ var Tween = exports.Tween = Montage.create(Component, {
203 // move animated element to correct position on stage 210 // move animated element to correct position on stage
204 var currentTop = this.tweenedProperties["top"] + "px"; 211 var currentTop = this.tweenedProperties["top"] + "px";
205 var currentLeft = this.tweenedProperties["left"] + "px"; 212 var currentLeft = this.tweenedProperties["left"] + "px";
213
206 ElementsMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "top", [currentTop], "Change", "tween"); 214 ElementsMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "top", [currentTop], "Change", "tween");
207 ElementsMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "left", [currentLeft], "Change", "tween"); 215 ElementsMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "left", [currentLeft], "Change", "tween");
208 216
@@ -218,4 +226,5 @@ var Tween = exports.Tween = Montage.create(Component, {
218 this.keyframe.deselectKeyframe(); 226 this.keyframe.deselectKeyframe();
219 } 227 }
220 } 228 }
229
221}); 230});