Skip to content

Commit

Permalink
2.0.1
Browse files Browse the repository at this point in the history
- IMPROVED: added ".js" file extensions to imports in ES module files so that they can be used in vanilla JS (directly in browser)

- IMPROVED: there was one export line in the ES module TweenLite.js that used ES6 syntax which caused some problems in certain build systems, so that was now replaced with a more compatible syntax (no destructuring).

- FIXED: in the UMD version of the files, if you imported a plugin (in a Node/CommonJS environment) BEFORE importing TweenMax, it could result in TweenMax being an empty object.

- FIXED: if you kill() a Draggable instance, it now clears the userSelect inline style.
  • Loading branch information
gsap-dev committed May 30, 2018
1 parent 733e99c commit bd9f073
Show file tree
Hide file tree
Showing 37 changed files with 175 additions and 158 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ This is the public repository for GreenSock's JavaScript tools like <a href="htt
### CDN
TweenMax is most popular because it has all the essential tools plus several common <a href="https://greensock.com/plugins/?product_id=4921">plugins</a>, all in one file:
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.0/TweenMax.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.1/TweenMax.min.js"></script>
```
Click the green "Download GSAP" button at <a href="https://greensock.com/?download=GSAP-JS">greensock.com</a> for more options. Click "customize" at the bottom of the resulting window to see all the extra plugins and tool URLs.

Draggable, for example, is at:
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.0/utils/Draggable.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.1/utils/Draggable.min.js"></script>
```

Most ad networks have GSAP on their CDNs as well, so contact them for the appropriate URL(s).
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gsap",
"version": "2.0.0",
"version": "2.0.1",
"description": "The most flexible, high-performance animation library on the planet. Animate any property of any object. Solves browser quirks.",
"author": {
"name": "Jack Doyle",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gsap",
"version": "2.0.0",
"version": "2.0.1",
"description": "GSAP is a JavaScript library for creating high-performance animations that work in **every** major browser (or beyond the browser). No other library delivers such advanced sequencing, reliability, API efficiency, and tight control while solving real-world problems on over 4 million sites. GSAP works around countless browser inconsistencies; your animations 'just work'. Animate CSS properties, SVG, canvas libraries, custom properties of generic objects, colors, strings...pretty much anything! At its core, GSAP is a property manipulator, updating values over time very quickly with extreme accuracy. And it's up to 20x faster than jQuery! See http://greensock.com/why-gsap/ for details about what makes GSAP so special.",
"homepage": "https://greensock.com/gsap/",
"module": "./src/esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/esm/AttrPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 0.6.1
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -10,7 +10,7 @@
* @author: Jack Doyle, [email protected]
*/

import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";

export const AttrPlugin = _gsScope._gsDefine.plugin({
propName: "attr",
Expand Down
4 changes: 2 additions & 2 deletions src/esm/BezierPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 1.3.8
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -9,7 +9,7 @@
*
* @author: Jack Doyle, [email protected]
**/
import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";

var _RAD2DEG = 180 / Math.PI,
_r1 = [],
Expand Down
4 changes: 2 additions & 2 deletions src/esm/CSSPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 1.20.5
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -9,7 +9,7 @@
*
* @author: Jack Doyle, [email protected]
*/
import TweenLite, { _gsScope, TweenPlugin } from "./TweenLite";
import TweenLite, { _gsScope, TweenPlugin } from "./TweenLite.js";

_gsScope._gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin","TweenLite"], function() {

Expand Down
6 changes: 3 additions & 3 deletions src/esm/CSSRulePlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 0.6.6
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -9,8 +9,8 @@
*
* @author: Jack Doyle, [email protected]
*/
import TweenLite, { _gsScope, TweenPlugin } from "./TweenLite";
import CSSPlugin from "./CSSPlugin";
import TweenLite, { _gsScope, TweenPlugin } from "./TweenLite.js";
import CSSPlugin from "./CSSPlugin.js";

_gsScope._gsDefine("plugins.CSSRulePlugin", ["plugins.TweenPlugin","TweenLite","plugins.CSSPlugin"], function() {

Expand Down
4 changes: 2 additions & 2 deletions src/esm/ColorPropsPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 1.5.3
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -9,7 +9,7 @@
*
* @author: Jack Doyle, [email protected]
**/
import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";


var _numExp = /(\d|\.)+/g,
Expand Down
4 changes: 2 additions & 2 deletions src/esm/DirectionalRotationPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 0.3.1
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -10,7 +10,7 @@
* @author: Jack Doyle, [email protected]
**/

import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";

export const DirectionalRotationPlugin = _gsScope._gsDefine.plugin({
propName: "directionalRotation",
Expand Down
11 changes: 6 additions & 5 deletions src/esm/Draggable.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 0.16.3
* DATE: 2018-05-14
* VERSION: 0.16.4
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* 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/).
Expand All @@ -12,8 +12,8 @@
* @author: Jack Doyle, [email protected]
*/

import TweenLite, { _gsScope, EventDispatcher } from "./TweenLite";
import CSSPlugin from "./CSSPlugin";
import TweenLite, { _gsScope, EventDispatcher } from "./TweenLite.js";
import CSSPlugin from "./CSSPlugin.js";

_gsScope._gsDefine("utils.Draggable", ["events.EventDispatcher","TweenLite","plugins.CSSPlugin"], function() {

Expand Down Expand Up @@ -2327,6 +2327,7 @@ import CSSPlugin from "./CSSPlugin";
self.isThrowing = false;
TweenLite.killTweensOf(scrollProxy || target, true, killProps);
self.disable();
TweenLite.set(triggers, {clearProps:"userSelect"});
delete _lookup[target._gsDragID];
return self;
};
Expand Down Expand Up @@ -2372,7 +2373,7 @@ import CSSPlugin from "./CSSPlugin";
p.constructor = Draggable;
p.pointerX = p.pointerY = p.startX = p.startY = p.deltaX = p.deltaY = 0;
p.isDragging = p.isPressed = false;
Draggable.version = "0.16.3";
Draggable.version = "0.16.4";
Draggable.zIndex = 1000;

_addListener(_doc, "touchcancel", function() {
Expand Down
4 changes: 2 additions & 2 deletions src/esm/EasePack.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 1.16.0
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -10,7 +10,7 @@
* @author: Jack Doyle, [email protected]
**/

import { _gsScope, Ease, Linear, Power0, Power1, Power2, Power3, Power4 } from "./TweenLite";
import { _gsScope, Ease, Linear, Power0, Power1, Power2, Power3, Power4 } from "./TweenLite.js";

_gsScope._gsDefine("easing.Back", ["easing.Ease"], function() {

Expand Down
4 changes: 2 additions & 2 deletions src/esm/EaselPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 0.2.2
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -10,7 +10,7 @@
* @author: Jack Doyle, [email protected]
**/

import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";


var _numExp = /(\d|\.)+/g,
Expand Down
4 changes: 2 additions & 2 deletions src/esm/EndArrayPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 0.1.3
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -9,7 +9,7 @@
*
* @author: Jack Doyle, [email protected]
*/
import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";

export const EndArrayPlugin = _gsScope._gsDefine.plugin({
propName: "endArray",
Expand Down
4 changes: 2 additions & 2 deletions src/esm/ModifiersPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 0.0.4
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -10,7 +10,7 @@
* @author: Jack Doyle, [email protected]
*/

import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";


var _cssRatioSetter = function(pt, cssp, mod) { //Takes an individual CSSPropTween and converts it into a type:2 that has a setRatio that does everything the regular CSSPlugin.setRatio() method does but applying the mod() too. We do this to keep the main CSSPlugin.setRatio() as fast as possible (the vast majority of times, no mod() will be necessary)
Expand Down
4 changes: 2 additions & 2 deletions src/esm/PixiPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 0.2.1
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -10,7 +10,7 @@
* @author: Jack Doyle, [email protected]
*/

import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";


var _numExp = /(\d|\.)+/g,
Expand Down
4 changes: 2 additions & 2 deletions src/esm/RoundPropsPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 1.6.0
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -9,7 +9,7 @@
*
* @author: Jack Doyle, [email protected]
**/
import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";

export const RoundPropsPlugin = _gsScope._gsDefine.plugin({
propName: "roundProps",
Expand Down
4 changes: 2 additions & 2 deletions src/esm/ScrollToPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 1.9.1
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -9,7 +9,7 @@
*
* @author: Jack Doyle, [email protected]
**/
import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";


var _doc = (_gsScope.document || {}).documentElement,
Expand Down
4 changes: 2 additions & 2 deletions src/esm/TEMPLATE_Plugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 1.2.0
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* This file is to be used as a simple template for writing your own plugin. See the
Expand All @@ -16,7 +16,7 @@
*
* @author: Jack Doyle, [email protected]
**/
import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";

export const YourPlugin = _gsScope._gsDefine.plugin({
propName: "yourCustomProperty", //the name of the property that will get intercepted and handled by this plugin (obviously change it to whatever you want, typically it is camelCase starting with lowercase).
Expand Down
4 changes: 2 additions & 2 deletions src/esm/TextPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 0.6.2
* DATE: 2018-05-14
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -10,7 +10,7 @@
* @author: Jack Doyle, [email protected]
*/

import { _gsScope } from "./TweenLite";
import { _gsScope } from "./TweenLite.js";

var _getText = function(e) {
var type = e.nodeType,
Expand Down
8 changes: 4 additions & 4 deletions src/esm/TimelineLite.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 2.0.0
* DATE: 2018-05-23
* VERSION: 2.0.1
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -9,7 +9,7 @@
*
* @author: Jack Doyle, [email protected]
*/
import TweenLite, { _gsScope, Animation, SimpleTimeline } from "./TweenLite";
import TweenLite, { _gsScope, Animation, SimpleTimeline } from "./TweenLite.js";

_gsScope._gsDefine("TimelineLite", ["core.Animation","core.SimpleTimeline","TweenLite"], function() {

Expand Down Expand Up @@ -66,7 +66,7 @@ _gsScope._gsDefine("TimelineLite", ["core.Animation","core.SimpleTimeline","Twee
},
p = TimelineLite.prototype = new SimpleTimeline();

TimelineLite.version = "2.0.0";
TimelineLite.version = "2.0.1";
p.constructor = TimelineLite;
p.kill()._gc = p._forcingPlayhead = p._hasPause = false;

Expand Down
10 changes: 5 additions & 5 deletions src/esm/TimelineMax.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* VERSION: 2.0.0
* DATE: 2018-05-23
* VERSION: 2.0.1
* DATE: 2018-05-30
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
Expand All @@ -10,8 +10,8 @@
* @author: Jack Doyle, [email protected]
*/

import TweenLite, { _gsScope, Ease, Animation } from "./TweenLite";
import TimelineLite from "./TimelineLite";
import TweenLite, { _gsScope, Ease, Animation } from "./TweenLite.js";
import TimelineLite from "./TimelineLite.js";

_gsScope._gsDefine("TimelineMax", ["TimelineLite","TweenLite","easing.Ease"], function() {

Expand All @@ -33,7 +33,7 @@ _gsScope._gsDefine("TimelineMax", ["TimelineLite","TweenLite","easing.Ease"], fu

p.constructor = TimelineMax;
p.kill()._gc = false;
TimelineMax.version = "2.0.0";
TimelineMax.version = "2.0.1";

p.invalidate = function() {
this._yoyo = (this.vars.yoyo === true);
Expand Down
Loading

0 comments on commit bd9f073

Please sign in to comment.