API / SView / Animation / AnimationProcess
Class: AnimationProcess
SView.Animation.AnimationProcess
Memberof
SView.Animation
Author
YW
Date
2022-1-20
Hierarchy
-
↳
AnimationProcess
Table of contents
Constructors
Methods
- addChildProcess
- addStep
- animationGetTick
- animationPlay
- animationRewind
- animationSetActiveStep
- animationSetTick
- getChildProcessList
- getId
- getName
- getProcessId
- getStepList
- getType
- isRun
- setId
- setName
- setProcessId
Constructors
constructor
• new AnimationProcess(view
): AnimationProcess
Parameters
Name | Type |
---|---|
view | Scene |
Returns
Overrides
Methods
addChildProcess
▸ addChildProcess(process
): void
Parameters
Name | Type |
---|---|
process | AnimationProcess |
Returns
void
Description
添加子步骤
addStep
▸ addStep(step
): void
Parameters
Name | Type |
---|---|
step | AnimationStep |
Returns
void
Description
添加动画步骤
animationGetTick
▸ animationGetTick(): number
Returns
number
Description
获取动画百分比
Inherited from
AnimationTask.animationGetTick
animationPlay
▸ animationPlay(): boolean
Returns
boolean
Description
播放/停止动画,动画正在播放时则为停止播放
Inherited from
animationRewind
▸ animationRewind(): boolean
Returns
boolean
Description
是否倒播
Inherited from
animationSetActiveStep
▸ animationSetActiveStep(processId
, stepId
): boolean
Parameters
Name | Type | Description |
---|---|---|
processId | number | 过程ID |
stepId | number | 步骤ID |
Returns
boolean
是否成功
Description
激活动画
Inherited from
AnimationTask.animationSetActiveStep
animationSetTick
▸ animationSetTick(percentage
): boolean
Parameters
Name | Type |
---|---|
percentage | number |
Returns
boolean
是否设置成功
Description
设置动画百分比
Inherited from
AnimationTask.animationSetTick
getChildProcessList
▸ getChildProcessList(): AnimationProcess
[]
Returns
Description
获取子步骤列表
getId
▸ getId(): number
Returns
number
Description
获取ID
Inherited from
getName
▸ getName(): string
Returns
string
Description
获取名称
Inherited from
getProcessId
▸ getProcessId(): number
Returns
number
Description
获取过程ID