# Class: CubismLegacyInternalModel (/pixi-vn-live2d/core/classes/CubismLegacyInternalModel)



Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5112

A wrapper that manages the states of a Live2D core model, and delegates all operations to it.

## Emits [#emits]

[InternalModelEvents](/pixi-vn-live2d/core/interfaces/InternalModelEvents)

## Extends [#extends]

* [`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel)

## Constructors [#constructors]

### Constructor [#constructor]

\> **new CubismLegacyInternalModel**(`coreModel`, `settings`, `options?`): `CubismLegacyInternalModel`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5141

#### Parameters [#parameters]

##### coreModel [#coremodel]

`Live2DModelWebGL`

##### settings [#settings]

[`CubismLegacyModelSettings`](/pixi-vn-live2d/core/classes/CubismLegacyModelSettings)

##### options? [#options]

[`InternalModelOptions`](/pixi-vn-live2d/core/interfaces/InternalModelOptions)

#### Returns [#returns]

`CubismLegacyInternalModel`

#### Overrides [#overrides]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`constructor`](/pixi-vn-live2d/core/classes/InternalModel#constructor)

## Properties [#properties]

### angleXParamIndex [#anglexparamindex]

\> **angleXParamIndex**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5123

***

### angleYParamIndex [#angleyparamindex]

\> **angleYParamIndex**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5124

***

### angleZParamIndex [#anglezparamindex]

\> **angleZParamIndex**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5125

***

### bodyAngleXParamIndex [#bodyanglexparamindex]

\> **bodyAngleXParamIndex**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5126

***

### breathParamIndex [#breathparamindex]

\> **breathParamIndex**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5127

***

### coreModel [#coremodel-1]

\> **coreModel**: `Live2DModelWebGL`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5115

The managed Live2D core model.

#### Overrides [#overrides-1]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`coreModel`](/pixi-vn-live2d/core/classes/InternalModel#coremodel)

***

### destroyed [#destroyed]

\> **destroyed**: `boolean`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3203

Flags this instance has been destroyed.

#### Inherited from [#inherited-from]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`destroyed`](/pixi-vn-live2d/core/classes/InternalModel#destroyed)

***

### disableCulling [#disableculling]

\> **disableCulling**: `boolean`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5138

If true, the face culling will always be disabled when drawing the model,
regardless of the model's internal flags.

***

### drawDataCount [#drawdatacount]

\> **drawDataCount**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5133

Number of the drawables in this model.

***

### drawingMatrix [#drawingmatrix]

\> **drawingMatrix**: `Matrix`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3182

The final matrix to draw the model.

#### Inherited from [#inherited-from-1]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`drawingMatrix`](/pixi-vn-live2d/core/classes/InternalModel#drawingmatrix)

***

### eyeballXParamIndex [#eyeballxparamindex]

\> **eyeballXParamIndex**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5121

***

### eyeballYParamIndex [#eyeballyparamindex]

\> **eyeballYParamIndex**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5122

***

### eyeBlink? [#eyeblink]

\> `optional` **eyeBlink?**: [`Live2DEyeBlink`](/pixi-vn-live2d/core/classes/Live2DEyeBlink)

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5118

***

### focusController [#focuscontroller]

\> **focusController**: [`FocusController`](/pixi-vn-live2d/core/classes/FocusController)

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3152

#### Inherited from [#inherited-from-2]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`focusController`](/pixi-vn-live2d/core/classes/InternalModel#focuscontroller)

***

### height [#height]

\> `readonly` **height**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3174

Canvas height of the model, scaled by the `height` of the model's layout.

#### Inherited from [#inherited-from-3]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`height`](/pixi-vn-live2d/core/classes/InternalModel#height)

***

### hitAreas [#hitareas]

\> **hitAreas**: `Record`\<`string`, [`CommonHitArea`](/pixi-vn-live2d/core/interfaces/CommonHitArea)>

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3186

The hit area definitions, keyed by their names.

#### Inherited from [#inherited-from-4]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`hitAreas`](/pixi-vn-live2d/core/classes/InternalModel#hitareas)

***

### lipSync [#lipsync]

\> **lipSync**: `boolean`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5129

***

### localTransform [#localtransform]

\> **localTransform**: `Matrix`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3178

Local transformation, calculated from the model's layout.

#### Inherited from [#inherited-from-5]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`localTransform`](/pixi-vn-live2d/core/classes/InternalModel#localtransform)

***

### motionManager [#motionmanager]

\> **motionManager**: [`CubismLegacyMotionManager`](/pixi-vn-live2d/core/classes/CubismLegacyMotionManager)

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5116

#### Overrides [#overrides-2]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`motionManager`](/pixi-vn-live2d/core/classes/InternalModel#motionmanager)

***

### options [#options-1]

\> **options**: [`InternalModelOptions`](/pixi-vn-live2d/core/interfaces/InternalModelOptions)

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5114

#### Overrides [#overrides-3]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`options`](/pixi-vn-live2d/core/classes/InternalModel#options)

***

### originalHeight [#originalheight]

\> `readonly` **originalHeight**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3166

Original canvas height of the model. Note this doesn't represent the model's real size,
as the model can overflow from its canvas.

#### Inherited from [#inherited-from-6]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`originalHeight`](/pixi-vn-live2d/core/classes/InternalModel#originalheight)

***

### originalWidth [#originalwidth]

\> `readonly` **originalWidth**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3161

Original canvas width of the model. Note this doesn't represent the model's real size,
as the model can overflow from its canvas.

#### Inherited from [#inherited-from-7]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`originalWidth`](/pixi-vn-live2d/core/classes/InternalModel#originalwidth)

***

### parallelMotionManager [#parallelmotionmanager]

\> **parallelMotionManager**: [`CubismLegacyParallelMotionManager`](/pixi-vn-live2d/core/classes/CubismLegacyParallelMotionManager)\[]

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5117

#### Overrides [#overrides-4]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`parallelMotionManager`](/pixi-vn-live2d/core/classes/InternalModel#parallelmotionmanager)

***

### physics? [#physics]

\> `optional` **physics?**: [`Live2DPhysics`](/pixi-vn-live2d/core/classes/Live2DPhysics)

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5119

#### Overrides [#overrides-5]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`physics`](/pixi-vn-live2d/core/classes/InternalModel#physics)

***

### pose? [#pose]

\> `optional` **pose?**: [`Live2DPose`](/pixi-vn-live2d/core/classes/Live2DPose)

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5120

#### Overrides [#overrides-6]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`pose`](/pixi-vn-live2d/core/classes/InternalModel#pose)

***

### settings [#settings-1]

\> **settings**: [`CubismLegacyModelSettings`](/pixi-vn-live2d/core/classes/CubismLegacyModelSettings)

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5113

#### Overrides [#overrides-7]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`settings`](/pixi-vn-live2d/core/classes/InternalModel#settings)

***

### textureFlipY [#textureflipy]

\> **textureFlipY**: `boolean`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5128

Flags whether `gl.UNPACK_FLIP_Y_WEBGL` should be enabled when binding the textures.

#### Overrides [#overrides-8]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`textureFlipY`](/pixi-vn-live2d/core/classes/InternalModel#textureflipy)

***

### viewport [#viewport]

\> **viewport**: \[`number`, `number`, `number`, `number`]

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3194

WebGL viewport when drawing the model. The format is `[x, y, width, height]`.

#### Inherited from [#inherited-from-8]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`viewport`](/pixi-vn-live2d/core/classes/InternalModel#viewport)

***

### width [#width]

\> `readonly` **width**: `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3170

Canvas width of the model, scaled by the `width` of the model's layout.

#### Inherited from [#inherited-from-9]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`width`](/pixi-vn-live2d/core/classes/InternalModel#width)

***

### prefixed [#prefixed]

\> `static` **prefixed**: `string` | `boolean`

Defined in: node_modules/eventemitter3/index.d.ts:9

#### Inherited from [#inherited-from-10]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`prefixed`](/pixi-vn-live2d/core/classes/InternalModel#prefixed)

## Methods [#methods]

### addListener() [#addlistener]

\> **addListener**\<`T`>(`event`, `fn`, `context?`): `this`

Defined in: node_modules/eventemitter3/index.d.ts:45

#### Type Parameters [#type-parameters]

##### T [#t]

`T` *extends* `string` | `symbol`

#### Parameters [#parameters-1]

##### event [#event]

`T`

##### fn [#fn]

(...`args`) => `void`

##### context? [#context]

`any`

#### Returns [#returns-1]

`this`

#### Inherited from [#inherited-from-11]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`addListener`](/pixi-vn-live2d/core/classes/InternalModel#addlistener)

***

### bindTexture() [#bindtexture]

\> **bindTexture**(`index`, `texture`): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5149

Binds a texture to the model. The index must be the same as that of this texture
in the [ModelSettings.textures](/pixi-vn-live2d/core/classes/ModelSettings#textures) array.

#### Parameters [#parameters-2]

##### index [#index]

`number`

##### texture [#texture]

`WebGLTexture`

#### Returns [#returns-2]

`void`

#### Overrides [#overrides-9]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`bindTexture`](/pixi-vn-live2d/core/classes/InternalModel#bindtexture)

***

### destroy() [#destroy]

\> **destroy**(): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5160

Destroys the model and all related resources.

#### Returns [#returns-3]

`void`

#### Emits [#emits-1]

\`InternalModelEvents.destroy\` | destroy

#### Overrides [#overrides-10]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`destroy`](/pixi-vn-live2d/core/classes/InternalModel#destroy)

***

### draw() [#draw]

\> **draw**(`gl`): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5158

Draws the model.

#### Parameters [#parameters-3]

##### gl [#gl]

`WebGLRenderingContext`

#### Returns [#returns-4]

`void`

#### Overrides [#overrides-11]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`draw`](/pixi-vn-live2d/core/classes/InternalModel#draw)

***

### emit() [#emit]

\> **emit**\<`T`>(`event`, ...`args`): `boolean`

Defined in: node_modules/eventemitter3/index.d.ts:32

Calls each of the listeners registered for a given event.

#### Type Parameters [#type-parameters-1]

##### T [#t-1]

`T` *extends* `string` | `symbol`

#### Parameters [#parameters-4]

##### event [#event-1]

`T`

##### args [#args]

...`any`\[]

#### Returns [#returns-5]

`boolean`

#### Inherited from [#inherited-from-12]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`emit`](/pixi-vn-live2d/core/classes/InternalModel#emit)

***

### eventNames() [#eventnames]

\> **eventNames**(): (`string` | `symbol`)\[]

Defined in: node_modules/eventemitter3/index.d.ts:15

Return an array listing the events for which the emitter has registered
listeners.

#### Returns [#returns-6]

(`string` | `symbol`)\[]

#### Inherited from [#inherited-from-13]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`eventNames`](/pixi-vn-live2d/core/classes/InternalModel#eventnames)

***

### extendParallelMotionManager() [#extendparallelmotionmanager]

\> **extendParallelMotionManager**(`managerCount`): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5159

Add parallel motion manager.

#### Parameters [#parameters-5]

##### managerCount [#managercount]

`number`

Count of parallel motion managers.

#### Returns [#returns-7]

`void`

#### Overrides [#overrides-12]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`extendParallelMotionManager`](/pixi-vn-live2d/core/classes/InternalModel#extendparallelmotionmanager)

***

### getDrawableBounds() [#getdrawablebounds]

\> **getDrawableBounds**(`index`, `bounds?`): `Bounds`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3237

Gets a drawable's bounds.

#### Parameters [#parameters-6]

##### index [#index-1]

`number`

Index of the drawable.

##### bounds? [#bounds]

`Bounds`

Object to store the output values.

#### Returns [#returns-8]

`Bounds`

The bounds in model canvas space.

#### Inherited from [#inherited-from-14]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`getDrawableBounds`](/pixi-vn-live2d/core/classes/InternalModel#getdrawablebounds)

***

### getDrawableIDs() [#getdrawableids]

\> **getDrawableIDs**(): `string`\[]

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5151

Gets all the drawables' IDs.

#### Returns [#returns-9]

`string`\[]

IDs.

#### Overrides [#overrides-13]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`getDrawableIDs`](/pixi-vn-live2d/core/classes/InternalModel#getdrawableids)

***

### getDrawableIndex() [#getdrawableindex]

\> **getDrawableIndex**(`id`): `number`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5152

Finds the index of a drawable by its ID.

#### Parameters [#parameters-7]

##### id [#id]

`string`

#### Returns [#returns-10]

`number`

The index.

#### Overrides [#overrides-14]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`getDrawableIndex`](/pixi-vn-live2d/core/classes/InternalModel#getdrawableindex)

***

### getDrawableVertices() [#getdrawablevertices]

\> **getDrawableVertices**(`drawIndex`): `Float32Array`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5153

Gets a drawable's vertices.

#### Parameters [#parameters-8]

##### drawIndex [#drawindex]

`string` | `number`

#### Returns [#returns-11]

`Float32Array`

#### Throws [#throws]

Error when the drawable cannot be found.

#### Overrides [#overrides-15]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`getDrawableVertices`](/pixi-vn-live2d/core/classes/InternalModel#getdrawablevertices)

***

### getHitAreaDefs() [#gethitareadefs]

\> `protected` **getHitAreaDefs**(): [`CommonHitArea`](/pixi-vn-live2d/core/interfaces/CommonHitArea)\[]

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5150

Gets all the hit area definitions.

#### Returns [#returns-12]

[`CommonHitArea`](/pixi-vn-live2d/core/interfaces/CommonHitArea)\[]

Normalized definitions.

#### Overrides [#overrides-16]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`getHitAreaDefs`](/pixi-vn-live2d/core/classes/InternalModel#gethitareadefs)

***

### getLayout() [#getlayout]

\> `protected` **getLayout**(): [`CommonLayout`](/pixi-vn-live2d/core/interfaces/CommonLayout)

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5147

Gets the layout definition.

#### Returns [#returns-13]

[`CommonLayout`](/pixi-vn-live2d/core/interfaces/CommonLayout)

Normalized definition.

#### Overrides [#overrides-17]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`getLayout`](/pixi-vn-live2d/core/classes/InternalModel#getlayout)

***

### getSize() [#getsize]

\> `protected` **getSize**(): \[`number`, `number`]

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5143

Gets the model's original canvas size.

#### Returns [#returns-14]

\[`number`, `number`]

`[width, height]`

#### Overrides [#overrides-18]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`getSize`](/pixi-vn-live2d/core/classes/InternalModel#getsize)

***

### hitTest() [#hittest]

\> **hitTest**(`x`, `y`): `string`\[]

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5154

Hit-test on the model.

#### Parameters [#parameters-9]

##### x [#x]

`number`

Position in model canvas.

##### y [#y]

`number`

Position in model canvas.

#### Returns [#returns-15]

`string`\[]

The names of the *hit* hit areas. Can be empty if none is hit.

#### Overrides [#overrides-19]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`hitTest`](/pixi-vn-live2d/core/classes/InternalModel#hittest)

***

### init() [#init]

\> `protected` **init**(): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5142

Should be called in the constructor of derived class.

#### Returns [#returns-16]

`void`

#### Overrides [#overrides-20]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`init`](/pixi-vn-live2d/core/classes/InternalModel#init)

***

### isHit() [#ishit]

\> **isHit**(`hitAreaName`, `x`, `y`): `boolean`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3230

Hit-test for a single hit area.

#### Parameters [#parameters-10]

##### hitAreaName [#hitareaname]

`string`

The hit area's name.

##### x [#x-1]

`number`

Position in model canvas.

##### y [#y-1]

`number`

Position in model canvas.

#### Returns [#returns-17]

`boolean`

True if hit.

#### Inherited from [#inherited-from-15]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`isHit`](/pixi-vn-live2d/core/classes/InternalModel#ishit)

***

### listenerCount() [#listenercount]

\> **listenerCount**(`event`): `number`

Defined in: node_modules/eventemitter3/index.d.ts:27

Return the number of listeners listening to a given event.

#### Parameters [#parameters-11]

##### event [#event-2]

`string` | `symbol`

#### Returns [#returns-18]

`number`

#### Inherited from [#inherited-from-16]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`listenerCount`](/pixi-vn-live2d/core/classes/InternalModel#listenercount)

***

### listeners() [#listeners]

\> **listeners**\<`T`>(`event`): (...`args`) => `void`\[]

Defined in: node_modules/eventemitter3/index.d.ts:20

Return the listeners registered for a given event.

#### Type Parameters [#type-parameters-2]

##### T [#t-2]

`T` *extends* `string` | `symbol`

#### Parameters [#parameters-12]

##### event [#event-3]

`T`

#### Returns [#returns-19]

(...`args`) => `void`\[]

#### Inherited from [#inherited-from-17]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`listeners`](/pixi-vn-live2d/core/classes/InternalModel#listeners)

***

### off() [#off]

\> **off**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this`

Defined in: node_modules/eventemitter3/index.d.ts:69

#### Type Parameters [#type-parameters-3]

##### T [#t-3]

`T` *extends* `string` | `symbol`

#### Parameters [#parameters-13]

##### event [#event-4]

`T`

##### fn? [#fn-1]

(...`args`) => `void`

##### context? [#context-1]

`any`

##### once? [#once]

`boolean`

#### Returns [#returns-20]

`this`

#### Inherited from [#inherited-from-18]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`off`](/pixi-vn-live2d/core/classes/InternalModel#off)

***

### on() [#on]

\> **on**\<`T`>(`event`, `fn`, `context?`): `this`

Defined in: node_modules/eventemitter3/index.d.ts:40

Add a listener for a given event.

#### Type Parameters [#type-parameters-4]

##### T [#t-4]

`T` *extends* `string` | `symbol`

#### Parameters [#parameters-14]

##### event [#event-5]

`T`

##### fn [#fn-2]

(...`args`) => `void`

##### context? [#context-2]

`any`

#### Returns [#returns-21]

`this`

#### Inherited from [#inherited-from-19]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`on`](/pixi-vn-live2d/core/classes/InternalModel#on)

***

### once() [#once-1]

\> **once**\<`T`>(`event`, `fn`, `context?`): `this`

Defined in: node_modules/eventemitter3/index.d.ts:54

Add a one-time listener for a given event.

#### Type Parameters [#type-parameters-5]

##### T [#t-5]

`T` *extends* `string` | `symbol`

#### Parameters [#parameters-15]

##### event [#event-6]

`T`

##### fn [#fn-3]

(...`args`) => `void`

##### context? [#context-3]

`any`

#### Returns [#returns-22]

`this`

#### Inherited from [#inherited-from-20]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`once`](/pixi-vn-live2d/core/classes/InternalModel#once)

***

### removeAllListeners() [#removealllisteners]

\> **removeAllListeners**(`event?`): `this`

Defined in: node_modules/eventemitter3/index.d.ts:79

Remove all listeners, or those of the specified event.

#### Parameters [#parameters-16]

##### event? [#event-7]

`string` | `symbol`

#### Returns [#returns-23]

`this`

#### Inherited from [#inherited-from-21]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`removeAllListeners`](/pixi-vn-live2d/core/classes/InternalModel#removealllisteners)

***

### removeListener() [#removelistener]

\> **removeListener**\<`T`>(`event`, `fn?`, `context?`, `once?`): `this`

Defined in: node_modules/eventemitter3/index.d.ts:63

Remove the listeners of a given event.

#### Type Parameters [#type-parameters-6]

##### T [#t-6]

`T` *extends* `string` | `symbol`

#### Parameters [#parameters-17]

##### event [#event-8]

`T`

##### fn? [#fn-4]

(...`args`) => `void`

##### context? [#context-4]

`any`

##### once? [#once-2]

`boolean`

#### Returns [#returns-24]

`this`

#### Inherited from [#inherited-from-22]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`removeListener`](/pixi-vn-live2d/core/classes/InternalModel#removelistener)

***

### setupHitAreas() [#setuphitareas]

\> `protected` **setupHitAreas**(): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3215

Sets up the hit areas by their definitions in settings.

#### Returns [#returns-25]

`void`

#### Inherited from [#inherited-from-23]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`setupHitAreas`](/pixi-vn-live2d/core/classes/InternalModel#setuphitareas)

***

### setupLayout() [#setuplayout]

\> `protected` **setupLayout**(): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3211

Sets up the model's size and local transform by the model's layout.

#### Returns [#returns-26]

`void`

#### Inherited from [#inherited-from-24]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`setupLayout`](/pixi-vn-live2d/core/classes/InternalModel#setuplayout)

***

### update() [#update]

\> **update**(`dt`, `now`): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5155

Updates the model's parameters.

#### Parameters [#parameters-18]

##### dt [#dt]

`number`

Elapsed time in milliseconds from last frame.

##### now [#now]

`number`

#### Returns [#returns-27]

`void`

#### Overrides [#overrides-21]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`update`](/pixi-vn-live2d/core/classes/InternalModel#update)

***

### updateFocus() [#updatefocus]

\> **updateFocus**(): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5156

#### Returns [#returns-28]

`void`

***

### updateMotions() [#updatemotions]

\> `protected` **updateMotions**(`model`, `now`): `boolean`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3270

Updates all active motions for the model and emits lifecycle events.

This method coordinates the update cycle for both primary and parallel motion managers,
ensuring all animations are synchronized with the current timestamp. It emits events
before and after the update process, allowing external listeners to hook into the motion
lifecycle. The return value indicates whether any motion was actively updated during this cycle.

#### Parameters [#parameters-19]

##### model [#model]

`object`

The model instance to apply motion updates to.

##### now [#now-1]

`number`

The current timestamp (in milliseconds) used to calculate motion progress.

#### Returns [#returns-29]

`boolean`

Returns `true` if any motion (primary or parallel) was updated; `false` otherwise.

#### Emits [#emits-2]

beforeMotionUpdate - Triggered before any motion updates are processed.

#### Emits [#emits-3]

afterMotionUpdate - Triggered after all motion updates are completed.

#### Inherited from [#inherited-from-25]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`updateMotions`](/pixi-vn-live2d/core/classes/InternalModel#updatemotions)

***

### updateNaturalMovements() [#updatenaturalmovements]

\> **updateNaturalMovements**(`_dt`, `now`): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5157

#### Parameters [#parameters-20]

##### \_dt [#_dt]

`number`

##### now [#now-2]

`number`

#### Returns [#returns-30]

`void`

***

### updateTransform() [#updatetransform]

\> **updateTransform**(`transform`): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:3242

Updates the model's transform.

#### Parameters [#parameters-21]

##### transform [#transform]

`Matrix`

The world transform.

#### Returns [#returns-31]

`void`

#### Inherited from [#inherited-from-26]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`updateTransform`](/pixi-vn-live2d/core/classes/InternalModel#updatetransform)

***

### updateWebGLContext() [#updatewebglcontext]

\> **updateWebGLContext**(`gl`, `glContextID`): `void`

Defined in: node_modules/untitled-pixi-live2d-engine/types/index.d.ts:5148

Updates WebGL context bound to this model.

#### Parameters [#parameters-22]

##### gl [#gl-1]

`WebGLRenderingContext`

WebGL context.

##### glContextID [#glcontextid]

`number`

Unique ID for given WebGL context.

#### Returns [#returns-32]

`void`

#### Overrides [#overrides-22]

[`InternalModel`](/pixi-vn-live2d/core/classes/InternalModel).[`updateWebGLContext`](/pixi-vn-live2d/core/classes/InternalModel#updatewebglcontext)
