Options
All
  • Public
  • Public/Protected
  • All
Menu

Module tween

Index

Type aliases

AllowedNames

AllowedNames<Base, Type>: FlagExcludedType<Base, Type>[keyof Base]

Type parameters

  • Base

  • Type

ConstructorType

ConstructorType<T>: OmitType<T, Function>

Type parameters

  • T

FlagExcludedType

FlagExcludedType<Base, Type>: {}

Type parameters

  • Base

  • Type

Type declaration

KeyPartial

KeyPartial<T, K>: {}

Type parameters

  • T

  • K: keyof T

Type declaration

OmitType

OmitType<Base, Type>: KeyPartial<Base, AllowedNames<Base, Type>>

Type parameters

  • Base

  • Type

TweenEasing

TweenEasing: "linear" | "smooth" | "fade" | "quadIn" | "quadOut" | "quadInOut" | "quadOutIn" | "cubicIn" | "cubicOut" | "cubicInOut" | "cubicOutIn" | "quartIn" | "quartOut" | "quartInOut" | "quartOutIn" | "quintIn" | "quintOut" | "quintInOut" | "quintOutIn" | "sineIn" | "sineOut" | "sineInOut" | "sineOutIn" | "expoIn" | "expoOut" | "expoInOut" | "expoOutIn" | "circIn" | "circOut" | "circInOut" | "circOutIn" | "elasticIn" | "elasticOut" | "elasticInOut" | "elasticOutIn" | "backIn" | "backOut" | "backInOut" | "backOutIn" | "bounceIn" | "bounceOut" | "bounceInOut" | "bounceOutIn"
en

Built-in string value definition for the cache function.

zh

内置缓动函数的字符串值定义。

Functions

tween

  • tween<T>(target?: T): Tween<T>
  • tween is a utility function that helps instantiate Tween instances.

    example

    tween(this.node) .to(1, {scale: new Vec3(2, 2, 2), position: new Vec3(5, 5, 5)}) .call(() => { console.log('This is a callback'); }) .by(1, {scale: new Vec3(-1, -1, -1)}, {easing: 'sineOutIn'}) .start()

    Type parameters

    • T

    Parameters

    • Optional target: T

      缓动的目标

    Returns Tween<T>

    Tween 实例

tweenUtil

  • tweenUtil<T>(target?: T): Tween<T>
  • tweenUtil is a utility function that helps instantiate Tween instances.

    deprecated

    please use tween instead.

    Type parameters

    • T

    Parameters

    • Optional target: T

    Returns Tween<T>

Generated using TypeDoc