Skip to content

@jtopo/core / AnimationSystem

Class: AnimationSystem ​

Hierarchy ​

  • AnimationSystem

    ↳ AnimationSystem

Table of contents ​

Constructors ​

Properties ​

Methods ​

Constructors ​

constructor ​

new AnimationSystem()

Overrides ​

AnimationSystemBase.constructor

Properties ​

aeNodes ​

aeNodes: WeakSet<AENode>

对象集合

Overrides ​

AnimationSystemBase.aeNodes


animations ​

animations: Set<Animation>

当前的动画集合

Inherited from ​

AnimationSystemBase.animations


timeline ​

Readonly timeline: Object

Type declaration ​

NameType
beginstring
endnumber

Inherited from ​

AnimationSystemBase.timeline

Methods ​

addAENode ​

addAENode(aeNode): void

添加一个对象AENode到动画系统

Parameters ​

NameType
aeNodeAENode

Returns ​

void


anim ​

anim(opt): Animation

生成一个动画实例

Parameters ​

NameType
optAnimationOption

Returns ​

Animation

Inherited from ​

AnimationSystemBase.anim


anime ​

anime(opt): Animation

生成一个动画实例

Deprecated

请使用更剪短anim代替

Parameters ​

NameType
optAnimationOption

Returns ​

Animation

Inherited from ​

AnimationSystemBase.anime


cancelAll ​

cancelAll(): void

取消并移除所有动画

Returns ​

void

Inherited from ​

AnimationSystemBase.cancelAll


hasAENode ​

hasAENode(obj): boolean

是否在动画系统中

Parameters ​

NameType
objAENode

Returns ​

boolean


removeAENode ​

removeAENode(aeNode): void

Parameters ​

NameType
aeNodeAENode

Returns ​

void


tick ​

tick(now): boolean

Parameters ​

NameType
nownumber

Returns ​

boolean

Inherited from ​

AnimationSystemBase.tick