Skip to content

API / PathConstraintData

Class: PathConstraintData

Defined in: model/ConstraintData.ts:71

Internal

Extends

  • ConstraintData

Constructors

Constructor

ts
new PathConstraintData(): PathConstraintData;

Returns

PathConstraintData

Inherited from

ts
ConstraintData.constructor

Properties

bone

ts
bone: BoneData;

Defined in: model/ConstraintData.ts:37

Inherited from

ts
ConstraintData.bone

bones

ts
bones: BoneData[] = [];

Defined in: model/ConstraintData.ts:78


hashCode

ts
readonly hashCode: number;

Defined in: core/BaseObject.ts:156

A unique identification number assigned to the object.

Inherited from

ts
ConstraintData.hashCode

name

ts
name: string;

Defined in: model/ConstraintData.ts:33

Inherited from

ts
ConstraintData.name

order

ts
order: number;

Defined in: model/ConstraintData.ts:32

Inherited from

ts
ConstraintData.order

pathDisplayData

ts
pathDisplayData: PathDisplayData;

Defined in: model/ConstraintData.ts:77


pathSlot

ts
pathSlot: SlotData;

Defined in: model/ConstraintData.ts:76


position

ts
position: number;

Defined in: model/ConstraintData.ts:84


positionMode

ts
positionMode: PositionMode;

Defined in: model/ConstraintData.ts:80


root

ts
root: BoneData;

Defined in: model/ConstraintData.ts:36

Inherited from

ts
ConstraintData.root

rotateMix

ts
rotateMix: number;

Defined in: model/ConstraintData.ts:87


rotateMode

ts
rotateMode: RotateMode;

Defined in: model/ConstraintData.ts:82


rotateOffset

ts
rotateOffset: number;

Defined in: model/ConstraintData.ts:86


spacing

ts
spacing: number;

Defined in: model/ConstraintData.ts:85


spacingMode

ts
spacingMode: SpacingMode;

Defined in: model/ConstraintData.ts:81


target

ts
target: BoneData;

Defined in: model/ConstraintData.ts:35

Inherited from

ts
ConstraintData.target

translateMix

ts
translateMix: number;

Defined in: model/ConstraintData.ts:88


type

ts
type: ConstraintType;

Defined in: model/ConstraintData.ts:34

Inherited from

ts
ConstraintData.type

Methods

AddBone()

ts
AddBone(value: BoneData): void;

Defined in: model/ConstraintData.ts:108

Parameters

ParameterType
valueBoneData

Returns

void


returnToPool()

ts
returnToPool(): void;

Defined in: core/BaseObject.ts:167

Clear the object and return it back to object pool。

Returns

void

Inherited from

ts
ConstraintData.returnToPool

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

ts
ConstraintData.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

ts
ConstraintData.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

ts
ConstraintData.setMaxCount

toString()

ts
static toString(): string;

Defined in: model/ConstraintData.ts:72

Returns

string

Overrides

ts
ConstraintData.toString

Released under the MIT License.