-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
Showing
37 changed files
with
175 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -9,7 +9,7 @@ | |
* | ||
* @author: Jack Doyle, [email protected] | ||
**/ | ||
import { _gsScope } from "./TweenLite"; | ||
import { _gsScope } from "./TweenLite.js"; | ||
|
||
var _RAD2DEG = 180 / Math.PI, | ||
_r1 = [], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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() { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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() { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -9,7 +9,7 @@ | |
* | ||
* @author: Jack Doyle, [email protected] | ||
**/ | ||
import { _gsScope } from "./TweenLite"; | ||
import { _gsScope } from "./TweenLite.js"; | ||
|
||
|
||
var _numExp = /(\d|\.)+/g, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/). | ||
|
@@ -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() { | ||
|
||
|
@@ -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; | ||
}; | ||
|
@@ -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() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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() { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -10,7 +10,7 @@ | |
* @author: Jack Doyle, [email protected] | ||
**/ | ||
|
||
import { _gsScope } from "./TweenLite"; | ||
import { _gsScope } from "./TweenLite.js"; | ||
|
||
|
||
var _numExp = /(\d|\.)+/g, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -10,7 +10,7 @@ | |
* @author: Jack Doyle, [email protected] | ||
*/ | ||
|
||
import { _gsScope } from "./TweenLite"; | ||
import { _gsScope } from "./TweenLite.js"; | ||
|
||
|
||
var _numExp = /(\d|\.)+/g, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -9,7 +9,7 @@ | |
* | ||
* @author: Jack Doyle, [email protected] | ||
**/ | ||
import { _gsScope } from "./TweenLite"; | ||
import { _gsScope } from "./TweenLite.js"; | ||
|
||
|
||
var _doc = (_gsScope.document || {}).documentElement, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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() { | ||
|
||
|
@@ -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; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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() { | ||
|
||
|
@@ -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); | ||
|
Oops, something went wrong.