Skip to content

API / PathConstraint

Class: PathConstraint

Defined in: armature/Constraint.ts:237

Internal

Extends

Constructors

Constructor

ts
new PathConstraint(): PathConstraint;

Returns

PathConstraint

Inherited from

Constraint.constructor

Properties

_constraintData

ts
_constraintData: ConstraintData;

Defined in: armature/Constraint.ts:42

Internal

  • For timeline state.

Inherited from

Constraint._constraintData


_root

ts
_root: Bone;

Defined in: armature/Constraint.ts:53

Internal

  • For sort bones.

Inherited from

Constraint._root


_target

ts
_target: Bone;

Defined in: armature/Constraint.ts:48

Internal

  • For sort bones.

Inherited from

Constraint._target


dirty

ts
dirty: boolean;

Defined in: armature/Constraint.ts:239


hashCode

ts
readonly hashCode: number;

Defined in: core/BaseObject.ts:156

A unique identification number assigned to the object.

Inherited from

Constraint.hashCode


pathOffset

ts
pathOffset: number;

Defined in: armature/Constraint.ts:240


position

ts
position: number;

Defined in: armature/Constraint.ts:241


rotateMix

ts
rotateMix: number;

Defined in: armature/Constraint.ts:244


rotateOffset

ts
rotateOffset: number;

Defined in: armature/Constraint.ts:243


spacing

ts
spacing: number;

Defined in: armature/Constraint.ts:242


translateMix

ts
translateMix: number;

Defined in: armature/Constraint.ts:245

Accessors

name

Get Signature

ts
get name(): string;

Defined in: armature/Constraint.ts:67

Returns

string

Inherited from

Constraint.name

Methods

init()

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

Defined in: armature/Constraint.ts:643

Parameters

ParameterType
constraintDataConstraintData
armatureArmature

Returns

void

Overrides

Constraint.init


invalidUpdate()

ts
invalidUpdate(): void;

Defined in: armature/Constraint.ts:838

Returns

void

Overrides

Constraint.invalidUpdate


returnToPool()

ts
returnToPool(): void;

Defined in: core/BaseObject.ts:167

Clear the object and return it back to object pool。

Returns

void

Inherited from

Constraint.returnToPool


update()

ts
update(): void;

Defined in: armature/Constraint.ts:677

Returns

void

Overrides

Constraint.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

Constraint.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

Constraint.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

Constraint.setMaxCount


toString()

ts
static toString(): string;

Defined in: armature/Constraint.ts:258

Returns

string

Overrides

Constraint.toString

Released under the MIT License.