API / SView / Animation / AnimationStep
Class: AnimationStep
Memberof
SView.Animation
Author
YW
Date
2022-1-20
Hierarchy
-
↳
AnimationStep
Table of contents
Constructors
Methods
- active
- animationGetTick
- animationPlay
- animationRewind
- animationSetActiveStep
- animationSetTick
- getId
- getName
- getProcess
- getProcessId
- getStepInfo
- getType
- isRun
- pause
- percent
- play
- setId
- setName
- setPercent
- setProcess
- setProcessId
- setStepInfo
- stop
Constructors
constructor
• new AnimationStep(view
): AnimationStep
Parameters
Name | Type |
---|---|
view | Scene |
Returns
Overrides
Methods
active
▸ active(): void
Returns
void
Description
激活动画步骤
Overrides
AnimationTask.active
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
getId
▸ getId(): number