1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
|
declare class TweenMax {
constructor(target:any, duration:Number, vars:any ); static to(target:any, duration:Number, vars:any ) : TweenMax; static from(target:any, duration:Number, vars:any ) : TweenMax; static fromTo(target:any, duration:Number, fromVars:any, toVars:any ) : TweenMax; static staggerFrom(target:any, duration:Number, fromVars:any, toVars:any ) : TweenMax; static staggerTo(targets:Array<any>, duration:Number, vars:any, stagger?:Number, onCompleteAll?:Function, onCompleteAllParams?:Array<any>, onCompleteAllScope?:any ) : Array<any>; static staggerFromTo(targets:Array<any>, duration:Number, fromVars:any, toVars:any, stagger?:Number, onCompleteAll?:Function, onCompleteAllParams?:Array<any>, onCompleteAllScope?:any ) : Array<any> static getTweensOf(target:any, onlyActive:Boolean ); static delayedCall(delay:Number, callback:Function, params?:Array<any>, scope?:any, useFrames?:Boolean ) : TweenMax; static killDelayedCallsTo(func:Function ); static killTweensOf(target:any, vars?:any ); static killAll(complete?:Boolean, tweens?:Boolean, delayedCalls?:Boolean, timelines?:Boolean ); static killChildTweensOf(parent:any, complete?:Boolean ); static pauseAll(tweens:Boolean, delayedCalls:Boolean, timelines:Boolean ); static resumeAll(tweens:Boolean, delayedCalls:Boolean, timelines:Boolean ); static set(target:any, vars:any ) : TweenMax;
isActive() : Boolean; delay(value?:Number ) :any; duration(value:Number ) :any; eventCallback(type:String, callback?:Function, params?:Array<any>, scope?:any ) :any; endTime(includeRepeats:Boolean ) : Number;
invalidate(); kill(vars?:any, target?:any ) :any; pause(atTime:any, suppressEvents:Boolean ) :any; paused(value:Boolean ) :any; play(from:any, suppressEvents:Boolean ) :any; progress(value:Number, suppressEvents:Boolean ) :any;
restart(includeDelay?:Boolean, suppressEvents?:Boolean ) :any; resume(from?:any, suppressEvents?:Boolean ) :any;
reverse(from?:any, suppressEvents?:Boolean ) :any;
reversed(value?:Boolean ) :any;
repeat(value:Number ) :any;
repeatDelay(value:Number ) :any;
seek(time:any, suppressEvents?:Boolean ) :any; startTime(value:Number ) :any; time(value:Number ) :any; timeScale(value:Number ) :any;
totalDuration(value:Number ) :any; totalProgress(value:Number, suppressEvents:Boolean ) :any; totalTime(time:Number, suppressEvents:Boolean ) :any;
updateTo(vars:object, resetDuration?:Boolean ) :any;
data: any; target: any; readonly timeline: any; vars: any; } class Ease { constructor(func?: (...args: any[]) => void, extraParams?: any[], type?: number, power?: number);
getRatio(p: number): number; }
interface EaseLookup { find(name: string): Ease; }
class Back extends Ease { static easeIn: Back; static easeInOut: Back; static easeOut: Back; config(overshoot: number): Elastic; } class Bounce extends Ease { static easeIn: Bounce; static easeInOut: Bounce; static easeOut: Bounce; } class Circ extends Ease { static easeIn: Circ; static easeInOut: Circ; static easeOut: Circ; } class Cubic extends Ease { static easeIn: Cubic; static easeInOut: Cubic; static easeOut: Cubic; }
class Elastic extends Ease { static easeIn: Elastic; static easeInOut: Elastic; static easeOut: Elastic; config(amplitude: number, period: number): Elastic; }
class Expo extends Ease { static easeIn: Expo; static easeInOut: Expo; static easeOut: Expo; }
class Linear extends Ease { static ease: Linear; static easeIn: Linear; static easeInOut: Linear; static easeNone: Linear; static easeOut: Linear; }
class Quad extends Ease { static easeIn: Quad; static easeInOut: Quad; static easeOut: Quad; }
class Quart extends Ease { static easeIn: Quart; static easeInOut: Quart; static easeOut: Quart; }
class Quint extends Ease { static easeIn: Quint; static easeInOut: Quint; static easeOut: Quint; }
class Sine extends Ease { static easeIn: Sine; static easeInOut: Sine; static easeOut: Sine; }
class SlowMo extends Ease { static ease: SlowMo; config(linearRatio: number, power: number, yoyoMode: boolean): SlowMo; }
class SteppedEase extends Ease { constructor(staps: number); config(steps: number): SteppedEase; }
interface RoughEaseConfig { clamp?: boolean; points?: number; randomize?: boolean; strength?: number; taper?: "in" | "out" | "both" | "none"; template?: Ease; }
class RoughEase extends Ease { static ease: RoughEase; constructor(vars: RoughEaseConfig); config(steps?: number): RoughEase; }
const Power0: typeof Linear; const Power1: typeof Quad; const Power2: typeof Cubic; const Power3: typeof Quart; const Power4: typeof Quint; const Strong: typeof Quint;
|