Appearance
@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
| Name | Type |
|---|---|
begin | string |
end | number |
Inherited from
AnimationSystemBase.timeline
Methods
addAENode
addAENode(aeNode): void
添加一个对象AENode到动画系统
Parameters
| Name | Type |
|---|---|
aeNode | AENode |
Returns
void
anim
anim(opt): Animation
生成一个动画实例
Parameters
| Name | Type |
|---|---|
opt | AnimationOption |
Returns
Inherited from
AnimationSystemBase.anim
anime
anime(opt): Animation
生成一个动画实例
Deprecated
请使用更剪短anim代替
Parameters
| Name | Type |
|---|---|
opt | AnimationOption |
Returns
Inherited from
AnimationSystemBase.anime
cancelAll
cancelAll(): void
取消并移除所有动画
Returns
void
Inherited from
AnimationSystemBase.cancelAll
hasAENode
hasAENode(obj): boolean
是否在动画系统中
Parameters
| Name | Type |
|---|---|
obj | AENode |
Returns
boolean
removeAENode
removeAENode(aeNode): void
Parameters
| Name | Type |
|---|---|
aeNode | AENode |
Returns
void
tick
tick(now): boolean
Parameters
| Name | Type |
|---|---|
now | number |
Returns
boolean
Inherited from
AnimationSystemBase.tick