Skip to content

API / IArmatureProxy

Interface: IArmatureProxy ​

Defined in: armature/IArmatureProxy.ts:36

The armature proxy interface, the docking engine needs to implement it concretely.

Extends ​

Properties ​

animation ​

ts
readonly animation: Animation;

Defined in: armature/IArmatureProxy.ts:77

The animation player.


armature ​

ts
readonly armature: Armature;

Defined in: armature/IArmatureProxy.ts:69

The armature.

Methods ​

addDBEventListener() ​

ts
addDBEventListener(
   type: EventStringType, 
   listener: Function, 
   thisObject: any): void;

Defined in: event/IEventDispatcher.ts:84

Add an event listener object so that the listener receives notification of an event.

Parameters ​

ParameterTypeDescription
typeEventStringTypeEvent type.
listenerFunctionEvent listener.
thisObjectanyThe listener function's "this".

Returns ​

void

Inherited from ​

IEventDispatcher.addDBEventListener


dbClear() ​

ts
dbClear(): void;

Defined in: armature/IArmatureProxy.ts:44

Internal

Returns ​

void


dbInit() ​

ts
dbInit(armature: Armature): void;

Defined in: armature/IArmatureProxy.ts:40

Internal

Parameters ​

ParameterType
armatureArmature

Returns ​

void


dbUpdate() ​

ts
dbUpdate(): void;

Defined in: armature/IArmatureProxy.ts:48

Internal

Returns ​

void


dispatchDBEvent() ​

ts
dispatchDBEvent(type: EventStringType, eventObject: EventObject): void;

Defined in: event/IEventDispatcher.ts:67

Dispatches an event into the event flow.

Parameters ​

ParameterTypeDescription
typeEventStringTypeEvent type.
eventObjectEventObjectEvent object.

Returns ​

void

Inherited from ​

IEventDispatcher.dispatchDBEvent


dispose() ​

ts
dispose(disposeProxy: boolean): void;

Defined in: armature/IArmatureProxy.ts:61

Dispose the instance and the Armature instance. (The Armature instance will return to the object pool)

Parameters ​

ParameterType
disposeProxyboolean

Returns ​

void

Example ​

ts
    removeChild(armatureDisplay);
    armatureDisplay.dispose();

hasDBEventListener() ​

ts
hasDBEventListener(type: EventStringType): boolean;

Defined in: event/IEventDispatcher.ts:52

Checks whether the object has any listeners registered for a specific type of event。

Parameters ​

ParameterTypeDescription
typeEventStringTypeEvent type.

Returns ​

boolean

Inherited from ​

IEventDispatcher.hasDBEventListener


removeDBEventListener() ​

ts
removeDBEventListener(
   type: EventStringType, 
   listener: Function, 
   thisObject: any): void;

Defined in: event/IEventDispatcher.ts:101

Removes a listener from the object.

Parameters ​

ParameterTypeDescription
typeEventStringTypeEvent type.
listenerFunctionEvent listener.
thisObjectanyThe listener function's "this".

Returns ​

void

Inherited from ​

IEventDispatcher.removeDBEventListener

Released under the MIT License.