greensock-rails 1.20.3.0 → 1.20.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +2 -2
  3. data/README.md +2 -2
  4. data/lib/greensock/rails/version.rb +1 -1
  5. data/vendor/assets/javascripts/greensock/TimelineLite.js +4 -4
  6. data/vendor/assets/javascripts/greensock/TimelineMax.js +11 -10
  7. data/vendor/assets/javascripts/greensock/TweenLite.js +7 -7
  8. data/vendor/assets/javascripts/greensock/TweenMax.js +39 -24
  9. data/vendor/assets/javascripts/greensock/easing/EasePack.js +24 -4
  10. data/vendor/assets/javascripts/greensock/jquery.gsap.js +2 -2
  11. data/vendor/assets/javascripts/greensock/plugins/AttrPlugin.js +2 -2
  12. data/vendor/assets/javascripts/greensock/plugins/BezierPlugin.js +2 -2
  13. data/vendor/assets/javascripts/greensock/plugins/CSSPlugin.js +7 -11
  14. data/vendor/assets/javascripts/greensock/plugins/CSSRulePlugin.js +3 -3
  15. data/vendor/assets/javascripts/greensock/plugins/ColorPropsPlugin.js +3 -3
  16. data/vendor/assets/javascripts/greensock/plugins/DirectionalRotationPlugin.js +2 -2
  17. data/vendor/assets/javascripts/greensock/plugins/EaselPlugin.js +2 -2
  18. data/vendor/assets/javascripts/greensock/plugins/EndArrayPlugin.js +2 -2
  19. data/vendor/assets/javascripts/greensock/plugins/ModifiersPlugin.js +2 -2
  20. data/vendor/assets/javascripts/greensock/plugins/PixiPlugin.js +7 -4
  21. data/vendor/assets/javascripts/greensock/plugins/RaphaelPlugin.js +2 -2
  22. data/vendor/assets/javascripts/greensock/plugins/RoundPropsPlugin.js +2 -2
  23. data/vendor/assets/javascripts/greensock/plugins/ScrollToPlugin.js +2 -2
  24. data/vendor/assets/javascripts/greensock/plugins/TEMPLATE_Plugin.js +2 -2
  25. data/vendor/assets/javascripts/greensock/plugins/TextPlugin.js +2 -2
  26. data/vendor/assets/javascripts/greensock/utils/Draggable.js +15 -7
  27. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2cecef6361c91a71e4d37f69b2b17191d33f94f
4
- data.tar.gz: 64cbfae4cabe48cfcb905dd2ab7930c7e54cd622
3
+ metadata.gz: a004f60829d7f8e3d58d46a6c78feacc02e50c09
4
+ data.tar.gz: 7028e1c97e66322ad123bc11d9a3e7bbb7d5e925
5
5
  SHA512:
6
- metadata.gz: 7d197ebec7cf91617bbd69a9dc05af83000845e7e328fd7f8c53e0c0c0f870774c0272bf08de6b7b331a4692d0960a124b28276ba9c3966788c97cc27b0af043
7
- data.tar.gz: 8cb4db8dcb1965e6bc19d034b79e091694d318efc798bd0f65c0b7c0c9e8bac0b3c7154d0e95a58d72a4b9a39d087ea00a7ff3a9fd350d9c35b5589ab8ef545c
6
+ metadata.gz: 48bc0f41787af0098b613bb7e64df72e04d9b9a8f8735e24ac9d68484e1881bc95e40eb6ba25ff26b5fda792dce372ca3e144edb77a6c85fd3f23ece645179d7
7
+ data.tar.gz: c6158f685a8616b3bbc38aefd6b9274e8e76469bf5caa376166076cf0a9f734fb6ea8a73e75a4d37d055903181a58dd525c99601501b70ec351f4bf9846d0978
@@ -1,2 +1,2 @@
1
- Greensock JS: Copyright (c) 2017, GreenSock. All rights reserved.
2
- Greensock Rails Ruby gem: Copyright (c) 2017, Rob Pataki.
1
+ Greensock JS: Copyright (c) 2018, GreenSock. All rights reserved.
2
+ Greensock Rails Ruby gem: Copyright (c) 2018, Rob Pataki.
data/README.md CHANGED
@@ -55,7 +55,7 @@ Please do not open an issue if there is a bug in GSAP itself. Any bugs of the Gr
55
55
  <img width="150" src="https://raw.githubusercontent.com/robertpataki/greensock-rails/master/greensock_logo_64.png" alt="Greensock Logo"/>
56
56
  </a>
57
57
 
58
- Copyright &copy; 2017, GreenSock. All rights reserved.
58
+ Copyright &copy; 2018, GreenSock. All rights reserved.
59
59
 
60
60
  <br/>
61
61
 
@@ -63,4 +63,4 @@ Copyright &copy; 2017, GreenSock. All rights reserved.
63
63
  <img width="144" src="https://robertpataki.com/rob-p-logo.svg" alt="Rob P | Freelance interaction designer and developer"/>
64
64
  </a>
65
65
 
66
- Copyright &copy; 2017 The <a href="https://github.com/robertpataki/greensock-rails" target="_blank">greensock-rails</a> gem was created and has been maintained by [Rob Pataki](https://robertpataki.com) since 2014.
66
+ Copyright &copy; 2018 The <a href="https://github.com/robertpataki/greensock-rails" target="_blank">greensock-rails</a> gem was created and has been maintained by [Rob Pataki](https://robertpataki.com) since 2014.
@@ -1,5 +1,5 @@
1
1
  module Greensock
2
2
  module Rails
3
- VERSION = "1.20.3.0"
3
+ VERSION = "1.20.4.0"
4
4
  end
5
5
  end
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * VERSION: 1.20.3
3
- * DATE: 2017-10-02
2
+ * VERSION: 1.20.4
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -69,7 +69,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
69
69
  },
70
70
  p = TimelineLite.prototype = new SimpleTimeline();
71
71
 
72
- TimelineLite.version = "1.20.3";
72
+ TimelineLite.version = "1.20.4";
73
73
  p.constructor = TimelineLite;
74
74
  p.kill()._gc = p._forcingPlayhead = p._hasPause = false;
75
75
 
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * VERSION: 1.20.3
3
- * DATE: 2017-10-02
2
+ * VERSION: 1.20.4
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -34,7 +34,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
34
34
 
35
35
  p.constructor = TimelineMax;
36
36
  p.kill()._gc = false;
37
- TimelineMax.version = "1.20.3";
37
+ TimelineMax.version = "1.20.4";
38
38
 
39
39
  p.invalidate = function() {
40
40
  this._yoyo = (this.vars.yoyo === true);
@@ -69,10 +69,10 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
69
69
  p.removePause = function(position) {
70
70
  return this.removeCallback(TimelineLite._internals.pauseCallback, position);
71
71
  };
72
-
72
+
73
73
  p.tweenTo = function(position, vars) {
74
74
  vars = vars || {};
75
- var copy = {ease:_easeNone, useFrames:this.usesFrames(), immediateRender:false},
75
+ var copy = {ease:_easeNone, useFrames:this.usesFrames(), immediateRender:false, lazy:false},
76
76
  Engine = (vars.repeat && _globals.TweenMax) || TweenLite,
77
77
  duration, p, t;
78
78
  for (p in vars) {
@@ -83,8 +83,8 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
83
83
  t = new Engine(this, duration, copy);
84
84
  copy.onStart = function() {
85
85
  t.target.paused(true);
86
- if (t.vars.time !== t.target.time() && duration === t.duration()) { //don't make the duration zero - if it's supposed to be zero, don't worry because it's already initting the tween and will complete immediately, effectively making the duration zero anyway. If we make duration zero, the tween won't run at all.
87
- t.duration( Math.abs( t.vars.time - t.target.time()) / t.target._timeScale );
86
+ if (t.vars.time !== t.target.time() && duration === t.duration() && !t.isFromTo) { //don't make the duration zero - if it's supposed to be zero, don't worry because it's already initting the tween and will complete immediately, effectively making the duration zero anyway. If we make duration zero, the tween won't run at all.
87
+ t.duration( Math.abs( t.vars.time - t.target.time()) / t.target._timeScale ).render(t.time(), true, true); //render() right away to ensure that things look right, especially in the case of .tweenTo(0).
88
88
  }
89
89
  if (vars.onStart) { //in case the user had an onStart in the vars - we don't want to overwrite it.
90
90
  vars.onStart.apply(vars.onStartScope || vars.callbackScope || t, vars.onStartParams || []); //don't use t._callback("onStart") or it'll point to the copy.onStart and we'll get a recursion error.
@@ -92,13 +92,14 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
92
92
  };
93
93
  return t;
94
94
  };
95
-
95
+
96
96
  p.tweenFromTo = function(fromPosition, toPosition, vars) {
97
97
  vars = vars || {};
98
98
  fromPosition = this._parseTimeOrLabel(fromPosition);
99
99
  vars.startAt = {onComplete:this.seek, onCompleteParams:[fromPosition], callbackScope:this};
100
100
  vars.immediateRender = (vars.immediateRender !== false);
101
101
  var t = this.tweenTo(toPosition, vars);
102
+ t.isFromTo = 1; //to ensure we don't mess with the duration in the onStart (we've got the start and end values here, so lock it in)
102
103
  return t.duration((Math.abs( t.vars.time - fromPosition) / this._timeScale) || 0.001);
103
104
  };
104
105
 
@@ -587,7 +588,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
587
588
  },
588
589
  p = TimelineLite.prototype = new SimpleTimeline();
589
590
 
590
- TimelineLite.version = "1.20.3";
591
+ TimelineLite.version = "1.20.4";
591
592
  p.constructor = TimelineLite;
592
593
  p.kill()._gc = p._forcingPlayhead = p._hasPause = false;
593
594
 
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * VERSION: 1.20.3
3
- * DATE: 2017-10-02
2
+ * VERSION: 1.20.4
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -391,7 +391,7 @@
391
391
 
392
392
  //a bug in iOS 6 Safari occasionally prevents the requestAnimationFrame from working initially, so we use a 1.5-second timeout that automatically falls back to setTimeout() if it senses this condition.
393
393
  setTimeout(function() {
394
- if (_useRAF === "auto" && _self.frame < 5 && _doc.visibilityState !== "hidden") {
394
+ if (_useRAF === "auto" && _self.frame < 5 && (_doc || {}).visibilityState !== "hidden") {
395
395
  _self.useRAF(false);
396
396
  }
397
397
  }, 1500);
@@ -441,7 +441,7 @@
441
441
 
442
442
  //some browsers (like iOS) occasionally drop the requestAnimationFrame event when the user switches to a different tab and then comes back again, so we use a 2-second setTimeout() to sense if/when that condition occurs and then wake() the ticker.
443
443
  var _checkTimeout = function() {
444
- if (_tickerActive && _getTime() - _lastUpdate > 2000 && (_doc.visibilityState !== "hidden" || !_ticker.lagSmoothing())) { //note: if the tab is hidden, we should still wake if lagSmoothing has been disabled.
444
+ if (_tickerActive && _getTime() - _lastUpdate > 2000 && ((_doc || {}).visibilityState !== "hidden" || !_ticker.lagSmoothing())) { //note: if the tab is hidden, we should still wake if lagSmoothing has been disabled.
445
445
  _ticker.wake();
446
446
  }
447
447
  var t = setTimeout(_checkTimeout, 2000);
@@ -958,7 +958,7 @@
958
958
  p._firstPT = p._targets = p._overwrittenProps = p._startAt = null;
959
959
  p._notifyPluginsOfEnabled = p._lazy = false;
960
960
 
961
- TweenLite.version = "1.20.3";
961
+ TweenLite.version = "1.20.4";
962
962
  TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1);
963
963
  TweenLite.defaultOverwrite = "auto";
964
964
  TweenLite.ticker = _ticker;
@@ -1077,7 +1077,7 @@
1077
1077
  if (funcParam || isNaN(s) || (!isRelative && isNaN(end)) || typeof(s) === "boolean" || typeof(end) === "boolean") {
1078
1078
  //a blob (string that has multiple numbers in it)
1079
1079
  pt.fp = funcParam;
1080
- blob = _blobDif(s, (isRelative ? parseFloat(pt.s) + pt.c : end), stringFilter || TweenLite.defaultStringFilter, pt);
1080
+ blob = _blobDif(s, (isRelative ? (parseFloat(pt.s) + pt.c) + (pt.s + "").replace(/[0-9\-\.]/g, "") : end), stringFilter || TweenLite.defaultStringFilter, pt);
1081
1081
  pt = {t: blob, p: "setRatio", s: 0, c: 1, f: 2, pg: 0, n: overwriteProp || prop, pr: 0, m: 0}; //"2" indicates it's a Blob property tween. Needed for RoundPropsPlugin for example.
1082
1082
  } else {
1083
1083
  pt.s = parseFloat(s);
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * VERSION: 1.20.3
3
- * DATE: 2017-10-02
2
+ * VERSION: 1.20.4
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
6
  * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
7
7
  *
8
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
8
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
9
9
  * This work is subject to the terms at http://greensock.com/standard-license or for
10
10
  * Club GreenSock members, the software agreement that was issued with your membership.
11
11
  *
@@ -52,7 +52,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
52
52
  p = TweenMax.prototype = TweenLite.to({}, 0.1, {}),
53
53
  _blankArray = [];
54
54
 
55
- TweenMax.version = "1.20.3";
55
+ TweenMax.version = "1.20.4";
56
56
  p.constructor = TweenMax;
57
57
  p.kill()._gc = false;
58
58
  TweenMax.killTweensOf = TweenMax.killDelayedCallsTo = TweenLite.killTweensOf;
@@ -211,7 +211,6 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
211
211
  this._time = 0;
212
212
  }
213
213
  }
214
-
215
214
  if (this._easeType && !yoyoEase) {
216
215
  r = this._time / duration;
217
216
  type = this._easeType;
@@ -702,7 +701,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
702
701
  },
703
702
  p = TimelineLite.prototype = new SimpleTimeline();
704
703
 
705
- TimelineLite.version = "1.20.3";
704
+ TimelineLite.version = "1.20.4";
706
705
  p.constructor = TimelineLite;
707
706
  p.kill()._gc = p._forcingPlayhead = p._hasPause = false;
708
707
 
@@ -1453,7 +1452,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
1453
1452
 
1454
1453
  p.constructor = TimelineMax;
1455
1454
  p.kill()._gc = false;
1456
- TimelineMax.version = "1.20.3";
1455
+ TimelineMax.version = "1.20.4";
1457
1456
 
1458
1457
  p.invalidate = function() {
1459
1458
  this._yoyo = (this.vars.yoyo === true);
@@ -1491,7 +1490,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
1491
1490
 
1492
1491
  p.tweenTo = function(position, vars) {
1493
1492
  vars = vars || {};
1494
- var copy = {ease:_easeNone, useFrames:this.usesFrames(), immediateRender:false},
1493
+ var copy = {ease:_easeNone, useFrames:this.usesFrames(), immediateRender:false, lazy:false},
1495
1494
  Engine = (vars.repeat && _globals.TweenMax) || TweenLite,
1496
1495
  duration, p, t;
1497
1496
  for (p in vars) {
@@ -1502,8 +1501,8 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
1502
1501
  t = new Engine(this, duration, copy);
1503
1502
  copy.onStart = function() {
1504
1503
  t.target.paused(true);
1505
- if (t.vars.time !== t.target.time() && duration === t.duration()) { //don't make the duration zero - if it's supposed to be zero, don't worry because it's already initting the tween and will complete immediately, effectively making the duration zero anyway. If we make duration zero, the tween won't run at all.
1506
- t.duration( Math.abs( t.vars.time - t.target.time()) / t.target._timeScale );
1504
+ if (t.vars.time !== t.target.time() && duration === t.duration() && !t.isFromTo) { //don't make the duration zero - if it's supposed to be zero, don't worry because it's already initting the tween and will complete immediately, effectively making the duration zero anyway. If we make duration zero, the tween won't run at all.
1505
+ t.duration( Math.abs( t.vars.time - t.target.time()) / t.target._timeScale ).render(t.time(), true, true); //render() right away to ensure that things look right, especially in the case of .tweenTo(0).
1507
1506
  }
1508
1507
  if (vars.onStart) { //in case the user had an onStart in the vars - we don't want to overwrite it.
1509
1508
  vars.onStart.apply(vars.onStartScope || vars.callbackScope || t, vars.onStartParams || []); //don't use t._callback("onStart") or it'll point to the copy.onStart and we'll get a recursion error.
@@ -1518,6 +1517,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
1518
1517
  vars.startAt = {onComplete:this.seek, onCompleteParams:[fromPosition], callbackScope:this};
1519
1518
  vars.immediateRender = (vars.immediateRender !== false);
1520
1519
  var t = this.tweenTo(toPosition, vars);
1520
+ t.isFromTo = 1; //to ensure we don't mess with the duration in the onStart (we've got the start and end values here, so lock it in)
1521
1521
  return t.duration((Math.abs( t.vars.time - fromPosition) / this._timeScale) || 0.001);
1522
1522
  };
1523
1523
 
@@ -1948,7 +1948,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
1948
1948
 
1949
1949
 
1950
1950
 
1951
-
1951
+
1952
1952
 
1953
1953
  /*
1954
1954
  * ----------------------------------------------------------------
@@ -2583,7 +2583,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
2583
2583
  p = CSSPlugin.prototype = new TweenPlugin("css");
2584
2584
 
2585
2585
  p.constructor = CSSPlugin;
2586
- CSSPlugin.version = "1.20.3";
2586
+ CSSPlugin.version = "1.20.4";
2587
2587
  CSSPlugin.API = 2;
2588
2588
  CSSPlugin.defaultTransformPerspective = 0;
2589
2589
  CSSPlugin.defaultSkewType = "compensated";
@@ -3923,13 +3923,9 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
3923
3923
  }
3924
3924
  m = e.getAttribute("transform");
3925
3925
  if (isDefault && m) {
3926
- if (m.indexOf("matrix") !== -1) { //just in case there's a "transform" value specified as an attribute instead of CSS style. Accept either a matrix() or simple translate() value though.
3927
- s = m;
3928
- isDefault = 0;
3929
- } else if (m.indexOf("translate") !== -1) {
3930
- s = "matrix(1,0,0,1," + m.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",") + ")";
3931
- isDefault = 0;
3932
- }
3926
+ m = e.transform.baseVal.consolidate().matrix; //ensures that even complex values like "translate(50,60) rotate(135,0,0)" are parsed because it mashes it into a matrix.
3927
+ s = "matrix(" + m.a + "," + m.b + "," + m.c + "," + m.d + "," + m.e + "," + m.f + ")";
3928
+ isDefault = 0;
3933
3929
  }
3934
3930
  }
3935
3931
  if (isDefault) {
@@ -5758,7 +5754,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
5758
5754
  this._calcEnd = (yoyoMode === true);
5759
5755
  }, true),
5760
5756
  p = SlowMo.prototype = new Ease(),
5761
- SteppedEase, RoughEase, _createElastic;
5757
+ SteppedEase, ExpoScaleEase, RoughEase, _createElastic;
5762
5758
 
5763
5759
  p.constructor = SlowMo;
5764
5760
  p.getRatio = function(p) {
@@ -5798,6 +5794,25 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
5798
5794
  return new SteppedEase(steps, immediateStart);
5799
5795
  };
5800
5796
 
5797
+ //ExpoScaleEase
5798
+ ExpoScaleEase = _class("easing.ExpoScaleEase", function(start, end, ease) {
5799
+ this._p1 = Math.log(end / start);
5800
+ this._p2 = end - start;
5801
+ this._p3 = start;
5802
+ this._ease = ease;
5803
+ }, true);
5804
+ p = ExpoScaleEase.prototype = new Ease();
5805
+ p.constructor = ExpoScaleEase;
5806
+ p.getRatio = function(p) {
5807
+ if (this._ease) {
5808
+ p = this._ease.getRatio(p);
5809
+ }
5810
+ return (this._p3 * Math.exp(this._p1 * p) - this._p3) / this._p2;
5811
+ };
5812
+ p.config = ExpoScaleEase.config = function(start, end, ease) {
5813
+ return new ExpoScaleEase(start, end, ease);
5814
+ };
5815
+
5801
5816
 
5802
5817
  //RoughEase
5803
5818
  RoughEase = _class("easing.RoughEase", function(vars) {
@@ -6411,7 +6426,7 @@ if (_gsScope._gsDefine) { _gsScope._gsQueue.pop()(); } //necessary in case Tween
6411
6426
 
6412
6427
  //a bug in iOS 6 Safari occasionally prevents the requestAnimationFrame from working initially, so we use a 1.5-second timeout that automatically falls back to setTimeout() if it senses this condition.
6413
6428
  setTimeout(function() {
6414
- if (_useRAF === "auto" && _self.frame < 5 && _doc.visibilityState !== "hidden") {
6429
+ if (_useRAF === "auto" && _self.frame < 5 && (_doc || {}).visibilityState !== "hidden") {
6415
6430
  _self.useRAF(false);
6416
6431
  }
6417
6432
  }, 1500);
@@ -6461,7 +6476,7 @@ if (_gsScope._gsDefine) { _gsScope._gsQueue.pop()(); } //necessary in case Tween
6461
6476
 
6462
6477
  //some browsers (like iOS) occasionally drop the requestAnimationFrame event when the user switches to a different tab and then comes back again, so we use a 2-second setTimeout() to sense if/when that condition occurs and then wake() the ticker.
6463
6478
  var _checkTimeout = function() {
6464
- if (_tickerActive && _getTime() - _lastUpdate > 2000 && (_doc.visibilityState !== "hidden" || !_ticker.lagSmoothing())) { //note: if the tab is hidden, we should still wake if lagSmoothing has been disabled.
6479
+ if (_tickerActive && _getTime() - _lastUpdate > 2000 && ((_doc || {}).visibilityState !== "hidden" || !_ticker.lagSmoothing())) { //note: if the tab is hidden, we should still wake if lagSmoothing has been disabled.
6465
6480
  _ticker.wake();
6466
6481
  }
6467
6482
  var t = setTimeout(_checkTimeout, 2000);
@@ -6978,7 +6993,7 @@ if (_gsScope._gsDefine) { _gsScope._gsQueue.pop()(); } //necessary in case Tween
6978
6993
  p._firstPT = p._targets = p._overwrittenProps = p._startAt = null;
6979
6994
  p._notifyPluginsOfEnabled = p._lazy = false;
6980
6995
 
6981
- TweenLite.version = "1.20.3";
6996
+ TweenLite.version = "1.20.4";
6982
6997
  TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1);
6983
6998
  TweenLite.defaultOverwrite = "auto";
6984
6999
  TweenLite.ticker = _ticker;
@@ -7097,7 +7112,7 @@ if (_gsScope._gsDefine) { _gsScope._gsQueue.pop()(); } //necessary in case Tween
7097
7112
  if (funcParam || isNaN(s) || (!isRelative && isNaN(end)) || typeof(s) === "boolean" || typeof(end) === "boolean") {
7098
7113
  //a blob (string that has multiple numbers in it)
7099
7114
  pt.fp = funcParam;
7100
- blob = _blobDif(s, (isRelative ? parseFloat(pt.s) + pt.c : end), stringFilter || TweenLite.defaultStringFilter, pt);
7115
+ blob = _blobDif(s, (isRelative ? (parseFloat(pt.s) + pt.c) + (pt.s + "").replace(/[0-9\-\.]/g, "") : end), stringFilter || TweenLite.defaultStringFilter, pt);
7101
7116
  pt = {t: blob, p: "setRatio", s: 0, c: 1, f: 2, pg: 0, n: overwriteProp || prop, pr: 0, m: 0}; //"2" indicates it's a Blob property tween. Needed for RoundPropsPlugin for example.
7102
7117
  } else {
7103
7118
  pt.s = parseFloat(s);
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * VERSION: 1.15.6
3
- * DATE: 2017-06-19
2
+ * VERSION: 1.16.0
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -92,7 +92,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
92
92
  this._calcEnd = (yoyoMode === true);
93
93
  }, true),
94
94
  p = SlowMo.prototype = new Ease(),
95
- SteppedEase, RoughEase, _createElastic;
95
+ SteppedEase, ExpoScaleEase, RoughEase, _createElastic;
96
96
 
97
97
  p.constructor = SlowMo;
98
98
  p.getRatio = function(p) {
@@ -133,6 +133,26 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
133
133
  };
134
134
 
135
135
 
136
+ //ExpoScaleEase
137
+ ExpoScaleEase = _class("easing.ExpoScaleEase", function(start, end, ease) {
138
+ this._p1 = Math.log(end / start);
139
+ this._p2 = end - start;
140
+ this._p3 = start;
141
+ this._ease = ease;
142
+ }, true);
143
+ p = ExpoScaleEase.prototype = new Ease();
144
+ p.constructor = ExpoScaleEase;
145
+ p.getRatio = function(p) {
146
+ if (this._ease) {
147
+ p = this._ease.getRatio(p);
148
+ }
149
+ return (this._p3 * Math.exp(this._p1 * p) - this._p3) / this._p2;
150
+ };
151
+ p.config = ExpoScaleEase.config = function(start, end, ease) {
152
+ return new ExpoScaleEase(start, end, ease);
153
+ };
154
+
155
+
136
156
  //RoughEase
137
157
  RoughEase = _class("easing.RoughEase", function(vars) {
138
158
  vars = vars || {};
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * VERSION: 0.1.12
3
- * DATE: 2017-01-17
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com/jquery-gsap-plugin/
5
5
  *
6
6
  * Requires TweenLite version 1.8.0 or higher and CSSPlugin.
7
7
  *
8
- * @license Copyright (c) 2013-2017, GreenSock. All rights reserved.
8
+ * @license Copyright (c) 2013-2018, GreenSock. All rights reserved.
9
9
  * This work is subject to the terms at http://greensock.com/standard-license or for
10
10
  * Club GreenSock members, the software agreement that was issued with your membership.
11
11
  *
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * VERSION: 0.6.1
3
- * DATE: 2017-06-19
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * VERSION: 1.3.8
3
- * DATE: 2017-06-19
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * VERSION: 1.20.3
3
- * DATE: 2017-10-02
2
+ * VERSION: 1.20.4
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -31,7 +31,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
31
31
  p = CSSPlugin.prototype = new TweenPlugin("css");
32
32
 
33
33
  p.constructor = CSSPlugin;
34
- CSSPlugin.version = "1.20.3";
34
+ CSSPlugin.version = "1.20.4";
35
35
  CSSPlugin.API = 2;
36
36
  CSSPlugin.defaultTransformPerspective = 0;
37
37
  CSSPlugin.defaultSkewType = "compensated";
@@ -1371,13 +1371,9 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
1371
1371
  }
1372
1372
  m = e.getAttribute("transform");
1373
1373
  if (isDefault && m) {
1374
- if (m.indexOf("matrix") !== -1) { //just in case there's a "transform" value specified as an attribute instead of CSS style. Accept either a matrix() or simple translate() value though.
1375
- s = m;
1376
- isDefault = 0;
1377
- } else if (m.indexOf("translate") !== -1) {
1378
- s = "matrix(1,0,0,1," + m.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",") + ")";
1379
- isDefault = 0;
1380
- }
1374
+ m = e.transform.baseVal.consolidate().matrix; //ensures that even complex values like "translate(50,60) rotate(135,0,0)" are parsed because it mashes it into a matrix.
1375
+ s = "matrix(" + m.a + "," + m.b + "," + m.c + "," + m.d + "," + m.e + "," + m.f + ")";
1376
+ isDefault = 0;
1381
1377
  }
1382
1378
  }
1383
1379
  if (isDefault) {
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * VERSION: 0.6.6
3
- * DATE: 2017-06-29
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -39,7 +39,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
39
39
  * @return a reference to the style sheet (or an array of them in the case of a pseudo selector). If none was found, null is returned (or an empty array for a pseudo selector)
40
40
  */
41
41
  CSSRulePlugin.getRule = function(selector) {
42
- var ruleProp = _doc.all ? 'rules' : 'cssRules',
42
+ var ruleProp = _doc.all ? "rules" : "cssRules",
43
43
  ss = _doc.styleSheets,
44
44
  i = ss.length,
45
45
  pseudo = (selector.charAt(0) === ":"),
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * VERSION: beta 1.5.3
3
- * DATE: 2017-09-14
2
+ * VERSION: 1.5.3
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * VERSION: 0.3.1
3
- * DATE: 2017-06-19
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * VERSION: 0.2.2
3
- * DATE: 2017-06-19
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * VERSION: 0.1.3
3
- * DATE: 2017-01-17
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * VERSION: 0.0.3
3
- * DATE: 2017-06-19
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * VERSION: 0.2.0
3
- * DATE: 2017-07-13
2
+ * VERSION: 0.2.1
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * PixiPlugin is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -228,6 +228,9 @@ var _gsScope = (typeof module !== "undefined" && module.exports && typeof global
228
228
  combine = v.combineCMF && !("colorMatrixFilter" in v && !v.colorMatrixFilter),
229
229
  i, matrix, startMatrix;
230
230
  startMatrix = filter.matrix;
231
+ if (v.resolution) {
232
+ filter.resolution = v.resolution;
233
+ }
231
234
  if (v.matrix && v.matrix.length === startMatrix.length) {
232
235
  matrix = v.matrix;
233
236
  if (cache.contrast !== 1) {
@@ -385,7 +388,7 @@ var _gsScope = (typeof module !== "undefined" && module.exports && typeof global
385
388
  priority: 0,
386
389
  API: 2,
387
390
  global: true,
388
- version: "0.2.0",
391
+ version: "0.2.1",
389
392
 
390
393
  init: function (target, values, tween, index) {
391
394
  if (!target instanceof _gsScope.PIXI.DisplayObject) {
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * VERSION: 0.2.2
3
- * DATE: 2017-01-17
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * VERSION: 1.6.0
3
- * DATE: 2017-01-17
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * VERSION: 1.9.0
3
- * DATE: 2017-06-19
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * VERSION: 1.2.0
3
- * DATE: 2017-01-17
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
6
  * This file is to be used as a simple template for writing your own plugin. See the
@@ -10,7 +10,7 @@
10
10
  * of your property is. This way of defining a plugin was introduced in version 1.9.0 - previous versions
11
11
  * of TweenLite won't work with this.
12
12
  *
13
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
13
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
14
14
  * This work is subject to the terms at http://greensock.com/standard-license or for
15
15
  * Club GreenSock members, the software agreement that was issued with your membership.
16
16
  *
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * VERSION: 0.6.2
3
- * DATE: 2017-08-02
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
6
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
7
7
  * This work is subject to the terms at http://greensock.com/standard-license or for
8
8
  * Club GreenSock members, the software agreement that was issued with your membership.
9
9
  *
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * VERSION: 0.16.0
3
- * DATE: 2017-10-02
2
+ * VERSION: 0.16.2
3
+ * DATE: 2018-02-15
4
4
  * UPDATES AND DOCS AT: http://greensock.com
5
5
  *
6
6
  * Requires TweenLite and CSSPlugin version 1.17.0 or later (TweenMax contains both TweenLite and CSSPlugin). ThrowPropsPlugin is required for momentum-based continuation of movement after the mouse/touch is released (ThrowPropsPlugin is a membership benefit of Club GreenSock - http://greensock.com/club/).
7
7
  *
8
- * @license Copyright (c) 2008-2017, GreenSock. All rights reserved.
8
+ * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
9
9
  * This work is subject to the terms at http://greensock.com/standard-license or for
10
10
  * Club GreenSock members, the software agreement that was issued with your membership.
11
11
  *
@@ -792,7 +792,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
792
792
  var standard = types.split(","),
793
793
  converted = ((_tempDiv.onpointerdown !== undefined) ? "pointerdown,pointermove,pointerup,pointercancel" : (_tempDiv.onmspointerdown !== undefined) ? "MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel" : types).split(","),
794
794
  obj = {},
795
- i = 8;
795
+ i = 4;
796
796
  while (--i > -1) {
797
797
  obj[standard[i]] = converted[i];
798
798
  obj[converted[i]] = standard[i];
@@ -802,7 +802,10 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
802
802
 
803
803
  _addListener = function(element, type, func, capture) {
804
804
  if (element.addEventListener) {
805
- element.addEventListener(_touchEventLookup[type] || type, func, capture);
805
+ element.addEventListener(_touchEventLookup[type], func, capture);
806
+ if (type !== _touchEventLookup[type]) { //some browsers actually support both, so must we.
807
+ element.addEventListener(type, func, capture);
808
+ }
806
809
  } else if (element.attachEvent) {
807
810
  element.attachEvent("on" + type, func);
808
811
  }
@@ -810,7 +813,10 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
810
813
 
811
814
  _removeListener = function(element, type, func) {
812
815
  if (element.removeEventListener) {
813
- element.removeEventListener(_touchEventLookup[type] || type, func);
816
+ element.removeEventListener(_touchEventLookup[type], func);
817
+ if (type !== _touchEventLookup[type]) {
818
+ element.removeEventListener(type, func);
819
+ }
814
820
  } else if (element.detachEvent) {
815
821
  element.detachEvent("on" + type, func);
816
822
  }
@@ -1805,8 +1811,10 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
1805
1811
  dif = self.y - y;
1806
1812
  if (dif > 180) {
1807
1813
  startElementY -= 360;
1814
+ self.y = y;
1808
1815
  } else if (dif < -180) {
1809
1816
  startElementY += 360;
1817
+ self.y = y;
1810
1818
  }
1811
1819
  if (self.x !== startElementX || Math.abs(startElementY - y) > minimumMovement) {
1812
1820
  self.y = y;
@@ -2364,7 +2372,7 @@ var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(globa
2364
2372
  p.constructor = Draggable;
2365
2373
  p.pointerX = p.pointerY = p.startX = p.startY = p.deltaX = p.deltaY = 0;
2366
2374
  p.isDragging = p.isPressed = false;
2367
- Draggable.version = "0.16.0";
2375
+ Draggable.version = "0.16.1";
2368
2376
  Draggable.zIndex = 1000;
2369
2377
 
2370
2378
  _addListener(_doc, "touchcancel", function() {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: greensock-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.3.0
4
+ version: 1.20.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Pataki, Greensock Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-11 00:00:00.000000000 Z
11
+ date: 2018-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -74,7 +74,7 @@ files:
74
74
  - vendor/assets/javascripts/greensock/utils/Draggable.js
75
75
  homepage: https://rubygems.org/gems/greensock-rails/
76
76
  licenses:
77
- - Copyright (c) 2017, GreenSock.
77
+ - Copyright (c) 2018, GreenSock.
78
78
  metadata: {}
79
79
  post_install_message:
80
80
  rdoc_options: []