Skip to content

API / SurfaceData

Class: SurfaceData

Defined in: model/ArmatureData.ts:546

Internal

Extends

Constructors

Constructor

ts
new SurfaceData(): SurfaceData;

Returns

SurfaceData

Inherited from

BoneData.constructor

Properties

geometry

ts
readonly geometry: GeometryData;

Defined in: model/ArmatureData.ts:553


hashCode

ts
readonly hashCode: number;

Defined in: core/BaseObject.ts:156

A unique identification number assigned to the object.

Inherited from

BoneData.hashCode


length

ts
length: number;

Defined in: model/ArmatureData.ts:495

The bone length.

Inherited from

BoneData.length


name

ts
name: string;

Defined in: model/ArmatureData.ts:507

The bone name.

Inherited from

BoneData.name


parent

ts
parent: BoneData;

Defined in: model/ArmatureData.ts:523

The parent bone data.

Inherited from

BoneData.parent


segmentX

ts
segmentX: number;

Defined in: model/ArmatureData.ts:551


segmentY

ts
segmentY: number;

Defined in: model/ArmatureData.ts:552

Methods

returnToPool()

ts
returnToPool(): void;

Defined in: core/BaseObject.ts:167

Clear the object and return it back to object pool。

Returns

void

Inherited from

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

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

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

BoneData.setMaxCount


toString()

ts
static toString(): string;

Defined in: model/ArmatureData.ts:547

Returns

string

Overrides

BoneData.toString

Released under the MIT License.