Frame / SView / Animation / AnimationTask
Class: AnimationTask
Memberof
SView.Animation
Author
YW
Date
2022-1-20
Hierarchy
-
AnimationTask
Table of contents
Constructors
Methods
- animationGetTick
- animationPlay
- animationRewind
- animationSetActiveStep
- animationSetTick
- getId
- getName
- getType
- isRun
- setId
- setName
Constructors
constructor
• new AnimationTask(view
): AnimationTask
Parameters
Name | Type |
---|---|
view | Scene |
Returns
Methods
animationGetTick
▸ animationGetTick(): number
Returns
number
Description
获取动画百分比
animationPlay
▸ animationPlay(): boolean
Returns
boolean
Description
播放/停止动画,动画正在播放时则为停止播放
animationRewind
▸ animationRewind(): boolean
Returns
boolean
Description
是否倒播
animationSetActiveStep
▸ animationSetActiveStep(processId
, stepId
): boolean
Parameters
Name | Type | Description |
---|---|---|
processId | number | 过程ID |
stepId | number | 步骤ID |
Returns
boolean
是否成功
Description
激活动画
animationSetTick
▸ animationSetTick(percentage
): boolean
Parameters
Name | Type |
---|---|
percentage | number |
Returns
boolean
是否设置成功
Description
设置动画百分比
getId
▸ getId(): number
Returns
number
Description
获取ID
getName
▸ getName(): string
Returns
string
Description
获取名 称
getType
▸ getType(): number
Returns
number
Description
获取类型
isRun
▸ isRun(): boolean
Returns
boolean
Description
动画是否正在进行 @returns: boolean
setId
▸ setId(id
): void
Parameters
Name | Type |
---|---|
id | number |
Returns
void
Description
设置ID
setName
▸ setName(name
): void
Parameters
Name | Type |
---|---|
name | string |
Returns
void
Description
设置名称