Added properties and methods to complete.

This commit is contained in:
Richard Davey 2017-05-09 20:36:29 +01:00
parent b769fe3cb1
commit 68202fd6e7
2 changed files with 78 additions and 0 deletions

View file

@ -1,11 +1,47 @@
var GetValue = require('../utils/object/GetValue');
var TweenData = require('./TweenData');
var Tween = function (manager)
{
this.manager = manager;
this.targets;
this.ease;
this.yoyo;
this.repeat;
this.loop; // same as repeat -1 (if set, overrides repeat value)
this.paused;
this.onStart;
this.onStartScope;
this.onStartParams;
this.onUpdate;
this.onUpdateScope;
this.onUpdateParams;
this.onRepeat;
this.onRepeatScope;
this.onRepeatParams;
this.onComplete;
this.onCompleteScope;
this.onCompleteParams;
this.callbackScope;
this.useFrames = false;
};
Tween.prototype.constructor = Tween;
Tween.prototype = {
timeScale: function ()
{
},
};
module.exports = Tween;

View file

@ -29,6 +29,8 @@ TweenManager.prototype = {
{
},
// Add a 'to' GSAP equivalent?
exists: function (tween)
{
},
@ -42,6 +44,46 @@ TweenManager.prototype = {
},
globalTimeScale: function ()
{
},
getAllTweens: function ()
{
},
getTweensOf: function (target)
{
},
isTweening: function (target)
{
},
kill: function (vars, target)
{
},
killAll: function ()
{
},
killTweensOf: function (target)
{
},
pauseAll: function ()
{
},
resumeAll: function ()
{
},
delayedCall: function ()
{
},
/**
* Passes all Tweens to the given callback.
*