Skip to content

API / SurfaceTimelineState

Class: SurfaceTimelineState ​

Defined in: animation/TimelineState.ts:512

Internal

Extends ​

Constructors ​

Constructor ​

ts
new SurfaceTimelineState(): SurfaceTimelineState;

Returns ​

SurfaceTimelineState

Inherited from ​

MutilpleValueTimelineState.constructor

Properties ​

currentPlayTimes ​

ts
currentPlayTimes: number;

Defined in: animation/BaseTimelineState.ts:38

Inherited from ​

MutilpleValueTimelineState.currentPlayTimes


currentTime ​

ts
currentTime: number;

Defined in: animation/BaseTimelineState.ts:39

Inherited from ​

MutilpleValueTimelineState.currentTime


dirty ​

ts
dirty: boolean;

Defined in: animation/BaseTimelineState.ts:33

Inherited from ​

MutilpleValueTimelineState.dirty


hashCode ​

ts
readonly hashCode: number;

Defined in: core/BaseObject.ts:156

A unique identification number assigned to the object.

Inherited from ​

MutilpleValueTimelineState.hashCode


playState ​

ts
playState: number;

Defined in: animation/BaseTimelineState.ts:37

-1: start, 0: play, 1: complete;

Inherited from ​

MutilpleValueTimelineState.playState


target ​

ts
target: BaseObject;

Defined in: animation/BaseTimelineState.ts:40

Inherited from ​

MutilpleValueTimelineState.target

Methods ​

blend() ​

ts
blend(isDirty: boolean): void;

Defined in: animation/TimelineState.ts:550

Parameters ​

ParameterType
isDirtyboolean

Returns ​

void

Overrides ​

MutilpleValueTimelineState.blend


fadeOut() ​

ts
fadeOut(): void;

Defined in: animation/BaseTimelineState.ts:198

Returns ​

void

Inherited from ​

MutilpleValueTimelineState.fadeOut


init() ​

ts
init(
   armature: Armature, 
   animationState: AnimationState, 
   timelineData: TimelineData): void;

Defined in: animation/TimelineState.ts:529

Parameters ​

ParameterType
armatureArmature
animationStateAnimationState
timelineDataTimelineData

Returns ​

void

Overrides ​

MutilpleValueTimelineState.init


returnToPool() ​

ts
returnToPool(): void;

Defined in: core/BaseObject.ts:167

Clear the object and return it back to object pool。

Returns ​

void

Inherited from ​

MutilpleValueTimelineState.returnToPool


update() ​

ts
update(passedTime: number): void;

Defined in: animation/BaseTimelineState.ts:202

Parameters ​

ParameterType
passedTimenumber

Returns ​

void

Inherited from ​

MutilpleValueTimelineState.update


borrowObject() ​

ts
static borrowObject<T>(objectConstructor: () => T): T;

Defined in: core/BaseObject.ts:136

Get an instance of the specify class from object pool.

Type Parameters ​

Type Parameter
T extends BaseObject

Parameters ​

ParameterTypeDescription
objectConstructor() => TThe specify class.

Returns ​

T

Inherited from ​

MutilpleValueTimelineState.borrowObject


clearPool() ​

ts
static clearPool(objectConstructor: typeof BaseObject): void;

Defined in: core/BaseObject.ts:111

Clear the cached instances of a specify object pool.

Parameters ​

ParameterTypeDefault valueDescription
objectConstructortypeof BaseObjectnullSpecify class. (Clear all cached instances if not set)

Returns ​

void

Inherited from ​

MutilpleValueTimelineState.clearPool


setMaxCount() ​

ts
static setMaxCount(objectConstructor: typeof BaseObject, maxCount: number): void;

Defined in: core/BaseObject.ts:72

Set the maximum cache count of the specify object pool.

Parameters ​

ParameterTypeDescription
objectConstructortypeof BaseObjectThe specify class. (Set all object pools max cache count if not set)
maxCountnumberMax count.

Returns ​

void

Inherited from ​

MutilpleValueTimelineState.setMaxCount


toString() ​

ts
static toString(): string;

Defined in: animation/TimelineState.ts:513

Returns ​

string

Overrides ​

MutilpleValueTimelineState.toString

Released under the MIT License.