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 是一个工具函数,帮助实例化 Tween 实例。

    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 是一个工具函数,帮助实例化 Tween 实例。

    deprecated

    please use tween instead.

    Type parameters

    • T

    Parameters

    • Optional target: T

    Returns Tween<T>

Generated using TypeDoc