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

API / SView / Animation / AnimationProcess

Class: AnimationProcess

SView.Animation.AnimationProcess

Memberof

SView.Animation

Author

YW

Date

2022-1-20

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new AnimationProcess(view): AnimationProcess

Parameters

NameType
viewScene

Returns

AnimationProcess

Overrides

AnimationTask.constructor

Methods

addChildProcess

addChildProcess(process): void

Parameters

NameType
processAnimationProcess

Returns

void

Description

添加子步骤


addStep

addStep(step): void

Parameters

NameType
stepAnimationStep

Returns

void

Description

添加动画步骤


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


getChildProcessList

getChildProcessList(): AnimationProcess[]

Returns

AnimationProcess[]

Description

获取子步骤列表


getId

getId(): number

Returns

number

Description

获取ID

Inherited from

AnimationTask.getId


getName

getName(): string

Returns

string

Description

获取名称

Inherited from

AnimationTask.getName


getProcessId

getProcessId(): number

Returns

number

Description

获取过程ID


getStepList

getStepList(): AnimationStep[]

Returns

AnimationStep[]

Description

获取步骤列表


getType

getType(): number

Returns

number

Description

获取类型

Inherited from

AnimationTask.getType


isRun

isRun(): boolean

Returns

boolean

Description

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

Inherited from

AnimationTask.isRun


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


setProcessId

setProcessId(id): void

Parameters

NameType
idnumber

Returns

void

Description

设置过程ID