Skip to content

API / PathConstraint

类: PathConstraint ​

定义于: armature/Constraint.ts:237

Internal

继承 ​

构造函数 ​

构造函数 ​

ts
new PathConstraint(): PathConstraint;

返回 ​

PathConstraint

继承自 ​

Constraint.constructor

属性 ​

_constraintData ​

ts
_constraintData: ConstraintData;

定义于: armature/Constraint.ts:42

Internal

  • For timeline state.

继承自 ​

Constraint._constraintData


_root ​

ts
_root: Bone;

定义于: armature/Constraint.ts:53

Internal

  • For sort bones.

继承自 ​

Constraint._root


_target ​

ts
_target: Bone;

定义于: armature/Constraint.ts:48

Internal

  • For sort bones.

继承自 ​

Constraint._target


dirty ​

ts
dirty: boolean;

定义于: armature/Constraint.ts:239


hashCode ​

ts
readonly hashCode: number;

定义于: core/BaseObject.ts:156

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

继承自 ​

Constraint.hashCode


pathOffset ​

ts
pathOffset: number;

定义于: armature/Constraint.ts:240


position ​

ts
position: number;

定义于: armature/Constraint.ts:241


rotateMix ​

ts
rotateMix: number;

定义于: armature/Constraint.ts:244


rotateOffset ​

ts
rotateOffset: number;

定义于: armature/Constraint.ts:243


spacing ​

ts
spacing: number;

定义于: armature/Constraint.ts:242


translateMix ​

ts
translateMix: number;

定义于: armature/Constraint.ts:245

访问器 ​

name ​

Getter 签名 ​

ts
get name(): string;

定义于: armature/Constraint.ts:67

返回 ​

string

继承自 ​

Constraint.name

方法 ​

init() ​

ts
init(constraintData: ConstraintData, armature: Armature): void;

定义于: armature/Constraint.ts:643

参数 ​

参数类型
constraintDataConstraintData
armatureArmature

返回 ​

void

重写了 ​

Constraint.init


invalidUpdate() ​

ts
invalidUpdate(): void;

定义于: armature/Constraint.ts:838

返回 ​

void

重写了 ​

Constraint.invalidUpdate


returnToPool() ​

ts
returnToPool(): void;

定义于: core/BaseObject.ts:167

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

返回 ​

void

继承自 ​

Constraint.returnToPool


update() ​

ts
update(): void;

定义于: armature/Constraint.ts:677

返回 ​

void

重写了 ​

Constraint.update


borrowObject() ​

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

定义于: core/BaseObject.ts:136

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

类型参数 ​

类型参数
T extends BaseObject

参数 ​

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

返回 ​

T

继承自 ​

Constraint.borrowObject


clearPool() ​

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

定义于: core/BaseObject.ts:111

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

参数 ​

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

返回 ​

void

继承自 ​

Constraint.clearPool


setMaxCount() ​

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

定义于: core/BaseObject.ts:72

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

参数 ​

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

返回 ​

void

继承自 ​

Constraint.setMaxCount


toString() ​

ts
static toString(): string;

定义于: armature/Constraint.ts:258

返回 ​

string

重写了 ​

Constraint.toString

Released under the MIT License.