跳到主要内容
版本:v10.0

API / SView / Animation / AnimationStep

Class: AnimationStep

SView.Animation.AnimationStep

Memberof

SView.Animation

Author

YW

Date

2022-1-20

Hierarchy​

Table of contents​

Constructors​

Methods​

Constructors​

constructor​

• new AnimationStep(view): AnimationStep

Parameters​

NameType
viewScene

Returns​

AnimationStep

Overrides​

AnimationTask.constructor

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​

AnimationTask.animationPlay


animationRewind​

▸ animationRewind(): boolean

Returns​

boolean

Description

是否倒播

Inherited from​

AnimationTask.animationRewind


animationSetActiveStep​

▸ animationSetActiveStep(processId, stepId): boolean

Parameters​

NameTypeDescription
processIdnumber过程ID
stepIdnumber步骤ID

Returns​

boolean

是否成功

Description

激活动画

Inherited from​

AnimationTask.animationSetActiveStep


animationSetTick​

▸ animationSetTick(percentage): boolean

Parameters​

NameType
percentagenumber

Returns​

boolean

是否设置成功

Description

设置动画百分比

Inherited from​

AnimationTask.animationSetTick


getId​

▸ getId(): number

Returns​

number

Description

获取ID

Inherited from​

AnimationTask.getId


getName​

▸ getName(): string

Returns​

string

Description

获取名称

Inherited from​

AnimationTask.getName


getProcess​

▸ getProcess(): AnimationProcess

Returns​

AnimationProcess

过程对象

Description

获取过程对象


getProcessId​

▸ getProcessId(): any

Returns​

any

过程ID *

Description

获取过程ID *


getStepInfo​

▸ getStepInfo(): string

Returns​

string

步骤信息

Description

获取步骤信息


getType​

▸ getType(): number

Returns​

number

Description

获取类型

Inherited from​

AnimationTask.getType


isRun​

▸ isRun(): boolean

Returns​

boolean

Description

动画是否正在进行 @returns: boolean

Inherited from​

AnimationTask.isRun


pause​

▸ pause(): void

Returns​

void

Description

暂停动画播放

Overrides​

AnimationTask.pause


percent​

▸ percent(): number

Returns​

number

Description

获取动画进度

Overrides​

AnimationTask.percent


play​

▸ play(): void

Returns​

void

Description

播放动画

Overrides​

AnimationTask.play


setId​

▸ setId(id): void

Parameters​

NameType
idnumber

Returns​

void

Description

设置ID

Inherited from​

AnimationTask.setId


setName​

▸ setName(name): void

Parameters​

NameType
namestring

Returns​

void

Description

设置名称

Inherited from​

AnimationTask.setName


setPercent​

▸ setPercent(percent): void

Parameters​

NameType
percentnumber

Returns​

void

Description

设置动画进度

Overrides​

AnimationTask.setPercent


setProcess​

▸ setProcess(process): void

Parameters​

NameType
processAnimationProcess

Returns​

void

Description

设置过程对象


setProcessId​

▸ setProcessId(id): void

Parameters​

NameTypeDescription
idnumber过程ID

Returns​

void

Description

设置过程ID


setStepInfo​

▸ setStepInfo(info): void

Parameters​

NameTypeDescription
infostring步骤信息

Returns​

void

Description

设置步骤信息


stop​

▸ stop(): void

Returns​

void

Description

停止动画播放

Overrides​

AnimationTask.stop