Skip to content

API / DoubleValueTimelineState

类: abstract DoubleValueTimelineState

定义于: animation/BaseTimelineState.ts:424

Internal

继承

继承于

构造函数

构造函数

ts
new DoubleValueTimelineState(): DoubleValueTimelineState;

返回

DoubleValueTimelineState

继承自

TweenTimelineState.constructor

属性

currentPlayTimes

ts
currentPlayTimes: number;

定义于: animation/BaseTimelineState.ts:38

继承自

TweenTimelineState.currentPlayTimes


currentTime

ts
currentTime: number;

定义于: animation/BaseTimelineState.ts:39

继承自

TweenTimelineState.currentTime


dirty

ts
dirty: boolean;

定义于: animation/BaseTimelineState.ts:33

继承自

TweenTimelineState.dirty


hashCode

ts
readonly hashCode: number;

定义于: core/BaseObject.ts:156

分配给此实例的唯一标识号。

继承自

TweenTimelineState.hashCode


playState

ts
playState: number;

定义于: animation/BaseTimelineState.ts:37

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

继承自

TweenTimelineState.playState


target

ts
target: BaseObject;

定义于: animation/BaseTimelineState.ts:40

继承自

TweenTimelineState.target

方法

blend()

ts
blend(_isDirty: boolean): void;

定义于: animation/BaseTimelineState.ts:231

参数

参数类型
_isDirtyboolean

返回

void

继承自

TweenTimelineState.blend


fadeOut()

ts
fadeOut(): void;

定义于: animation/BaseTimelineState.ts:198

返回

void

继承自

TweenTimelineState.fadeOut


init()

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

定义于: animation/BaseTimelineState.ts:168

参数

参数类型
armatureArmature
animationStateAnimationState
timelineDataTimelineData

返回

void

继承自

TweenTimelineState.init


returnToPool()

ts
returnToPool(): void;

定义于: core/BaseObject.ts:167

清除该实例的所有数据并将其返还对象池。

返回

void

继承自

TweenTimelineState.returnToPool


update()

ts
update(passedTime: number): void;

定义于: animation/BaseTimelineState.ts:202

参数

参数类型
passedTimenumber

返回

void

继承自

TweenTimelineState.update


borrowObject()

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

定义于: core/BaseObject.ts:136

从对象池中获取特定类的实例。

类型参数

类型参数
T extends BaseObject

参数

参数类型描述
objectConstructor() => T特定的类。

返回

T

继承自

TweenTimelineState.borrowObject


clearPool()

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

定义于: core/BaseObject.ts:111

清除特定对象池的缓存实例。

参数

参数类型默认值描述
objectConstructortypeof BaseObjectnull特定的类。 (不设置则清除所有缓存的实例)

返回

void

继承自

TweenTimelineState.clearPool


setMaxCount()

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

定义于: core/BaseObject.ts:72

设置特定对象池的最大缓存数量。

参数

参数类型描述
objectConstructortypeof BaseObject特定的类。 (不设置则设置所有对象池的最大缓存数量)
maxCountnumber最大缓存数量。

返回

void

继承自

TweenTimelineState.setMaxCount


toString()

ts
static toString(): string;

定义于: core/BaseObject.ts:56

返回

string

继承自

TweenTimelineState.toString

Released under the MIT License.