vendor/assets/javascripts/greensock/TweenMax.js in greensock-rails-1.14.0.0 vs vendor/assets/javascripts/greensock/TweenMax.js in greensock-rails-1.14.1.0
- old
+ new
@@ -1,8 +1,8 @@
/*!
- * VERSION: 1.14.0
- * DATE: 2014-10-14
+ * VERSION: 1.14.1
+ * DATE: 2014-10-16
* UPDATES AND DOCS AT: http://www.greensock.com
*
* Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
*
* @license Copyright (c) 2008-2014, GreenSock. All rights reserved.
@@ -39,11 +39,11 @@
_isSelector = TweenLiteInternals.isSelector,
_isArray = TweenLiteInternals.isArray,
p = TweenMax.prototype = TweenLite.to({}, 0.1, {}),
_blankArray = [];
- TweenMax.version = "1.14.0";
+ TweenMax.version = "1.14.1";
p.constructor = TweenMax;
p.kill()._gc = false;
TweenMax.killTweensOf = TweenMax.killDelayedCallsTo = TweenLite.killTweensOf;
TweenMax.getTweensOf = TweenLite.getTweensOf;
TweenMax.lagSmoothing = TweenLite.lagSmoothing;
@@ -655,11 +655,11 @@
for (i = 0; i !== l; b.push(a[i++]));
return b;
},
p = TimelineLite.prototype = new SimpleTimeline();
- TimelineLite.version = "1.14.0";
+ TimelineLite.version = "1.14.1";
p.constructor = TimelineLite;
p.kill()._gc = p._forcingPlayhead = false;
/* might use later...
//translates a local time inside an animation to the corresponding time on the root/global timeline, factoring in all nesting and timeScales.
@@ -1306,11 +1306,11 @@
_easeNone = new Ease(null, null, 1, 0),
p = TimelineMax.prototype = new TimelineLite();
p.constructor = TimelineMax;
p.kill()._gc = false;
- TimelineMax.version = "1.14.0";
+ TimelineMax.version = "1.14.1";
p.invalidate = function() {
this._yoyo = (this.vars.yoyo === true);
this._repeat = this.vars.repeat || 0;
this._repeatDelay = this.vars.repeatDelay || 0;
@@ -2339,11 +2339,11 @@
_overwriteProps, //alias to the currently instantiating CSSPlugin's _overwriteProps array. We use this closure in order to avoid having to pass a reference around from method to method and aid in minification.
_specialProps = {},
p = CSSPlugin.prototype = new TweenPlugin("css");
p.constructor = CSSPlugin;
- CSSPlugin.version = "1.14.0";
+ CSSPlugin.version = "1.14.1";
CSSPlugin.API = 2;
CSSPlugin.defaultTransformPerspective = 0;
CSSPlugin.defaultSkewType = "compensated";
p = "px"; //we'll reuse the "p" variable to keep file size down
CSSPlugin.suffixMap = {top:p, right:p, bottom:p, left:p, width:p, height:p, fontSize:p, padding:p, margin:p, perspective:p, lineHeight:""};
@@ -3779,28 +3779,28 @@
a34 -= zOrigin;
a14 = a13*a34;
a24 = a23*a34;
a34 = a33*a34+zOrigin;
}
- //we round the x, y, and z slightly differently to allow even larger values.
- a14 = (t1 = (a14 += x) - (a14 |= 0)) ? ((t1 * rnd + (t1 < 0 ? -0.5 : 0.5)) | 0) / rnd + a14 : a14;
- a24 = (t1 = (a24 += y) - (a24 |= 0)) ? ((t1 * rnd + (t1 < 0 ? -0.5 : 0.5)) | 0) / rnd + a24 : a24;
- a34 = (t1 = (a34 += z) - (a34 |= 0)) ? ((t1 * rnd + (t1 < 0 ? -0.5 : 0.5)) | 0) / rnd + a34 : a34;
if (t.svg) { //due to bugs in some browsers, we need to manage the transform-origin of SVG manually
a14 += t.xOrigin - (t.xOrigin * a11 + t.yOrigin * a12);
a24 += t.yOrigin - (t.xOrigin * a21 + t.yOrigin * a22);
}
+ //we round the x, y, and z slightly differently to allow even larger values.
+ a14 = (t1 = (a14 += x) - (a14 |= 0)) ? ((t1 * rnd + (t1 < 0 ? -0.5 : 0.5)) | 0) / rnd + a14 : a14;
+ a24 = (t1 = (a24 += y) - (a24 |= 0)) ? ((t1 * rnd + (t1 < 0 ? -0.5 : 0.5)) | 0) / rnd + a24 : a24;
+ a34 = (t1 = (a34 += z) - (a34 |= 0)) ? ((t1 * rnd + (t1 < 0 ? -0.5 : 0.5)) | 0) / rnd + a34 : a34;
style[_transformProp] = ((t.xPercent || t.yPercent) ? "translate(" + t.xPercent + "%," + t.yPercent + "%) matrix3d(" : "matrix3d(") + [ (((a11 * rnd) | 0) / rnd), (((a21 * rnd) | 0) / rnd), (((a31 * rnd) | 0) / rnd), (((a41 * rnd) | 0) / rnd), (((a12 * rnd) | 0) / rnd), (((a22 * rnd) | 0) / rnd), (((a32 * rnd) | 0) / rnd), (((a42 * rnd) | 0) / rnd), (((a13 * rnd) | 0) / rnd), (((a23 * rnd) | 0) / rnd), (((a33 * rnd) | 0) / rnd), (((a43 * rnd) | 0) / rnd), a14, a24, a34, (perspective ? (1 + (-a34 / perspective)) : 1) ].join(",") + ")";
},
_set2DTransformRatio = _internals.set2DTransformRatio = function(v) {
var t = this.data, //refers to the element's _gsTransform object
targ = this.t,
style = targ.style,
x = t.x,
y = t.y,
- ang, skew, rnd, sx, sy, a, b, c, d, matrix;
+ ang, skew, rnd, sx, sy, a, b, c, d, matrix, min;
if ((t.rotationX || t.rotationY || t.z || t.force3D === true || (t.force3D === "auto" && v !== 1 && v !== 0)) && !(t.svg && _forceSVGTransformToAttr) && _supports3D) { //if a 3D tween begins while a 2D one is running, we need to kick the rendering over to the 3D method. For example, imagine a yoyo-ing, infinitely repeating scale tween running, and then the object gets rotated in 3D space with a different tween.
this.setRatio = _set3DTransformRatio;
_set3DTransformRatio.call(this, v);
return;
}
@@ -3815,10 +3815,17 @@
c = Math.sin(skew) * -sy;
d = Math.cos(skew) * sy;
if (t.svg) {
x += t.xOrigin - (t.xOrigin * a + t.yOrigin * c);
y += t.yOrigin - (t.xOrigin * b + t.yOrigin * d);
+ min = 0.000001;
+ if (x < min) if (x > -min) {
+ x = 0;
+ }
+ if (y < min) if (y > -min) {
+ y = 0;
+ }
}
matrix = (((a * rnd) | 0) / rnd) + "," + (((b * rnd) | 0) / rnd) + "," + (((c * rnd) | 0) / rnd) + "," + (((d * rnd) | 0) / rnd) + "," + x + "," + y + ")";
if (t.svg && _forceSVGTransformToAttr) {
targ.setAttribute("transform", "matrix(" + matrix);
} else {
@@ -6163,10 +6170,10 @@
p.ratio = 0;
p._firstPT = p._targets = p._overwrittenProps = p._startAt = null;
p._notifyPluginsOfEnabled = p._lazy = false;
- TweenLite.version = "1.14.0";
+ TweenLite.version = "1.14.1";
TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1);
TweenLite.defaultOverwrite = "auto";
TweenLite.ticker = _ticker;
TweenLite.autoSleep = true;
TweenLite.lagSmoothing = function(threshold, adjustedLag) {
\ No newline at end of file