import {...} from "";
Interpolation and timing of tweens.
Interfaces
Variables
BeatSpring
const BeatSpring: Spring = ...
BounceSpring
const BounceSpring: Spring = ...
JumpSpring
const JumpSpring: Spring = ...
PlopSpring
const PlopSpring: Spring = ...
SmoothSpring
const SmoothSpring: Spring = ...
StrikeSpring
const StrikeSpring: Spring = ...
SwingSpring
const SwingSpring: Spring = ...
Functions
arcLerp
Parameters
boolLerp
Type Parameters
Parameters
clamp
Parameters
clampRemap
Parameters
cos
Parameters
createEaseInBack
public createEaseInBacks: number = 1.70158: TimingFunction
Parameters
s: number = 1.70158
createEaseInBounce
Parameters
createEaseInElastic
public createEaseInElastics: number = 2.094395: TimingFunction
Parameters
s: number = 2.094395
createEaseInOutBack
Parameters
createEaseInOutBounce
Parameters
createEaseInOutElastic
public createEaseInOutElastics: number = 1.39626: TimingFunction
Parameters
s: number = 1.39626
createEaseOutBack
public createEaseOutBacks: number = 1.70158: TimingFunction
Parameters
s: number = 1.70158
createEaseOutBounce
Parameters
createEaseOutElastic
public createEaseOutElastics: number = 2.094395: TimingFunction
Parameters
s: number = 2.094395
deepLerp
public deepLerpTFrom extends RecordanyunknownTTo extends Recordanyunknownfrom: TFromto: TTovalue: number: TFromTTo
public deepLerpTFrom extends RecordanyunknownTTo extends Recordanyunknownfrom: TFromto: TTovalue: numbersuppressWarnings: boolean: TFromTTo
public deepLerpTfrom: Tto: Tvalue: numbersuppressWarnings: boolean: T
Interpolate between any two Records, including objects and Maps, even with mismatched keys.
Any old key that is missing in to will be removed immediately once value is
not 0. Any new key that is missing in from will be added once value reaches
1.
Type Parameters
Parameters
from: TFromThe input to favor when value is 0.
to: TToThe input to favor when value is 1.
value: numberOn a scale between 0 and 1, how closely to favor from vs to.