untitled-pixi-live2d-engine 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cubism-legacy.es.js +22 -7
- package/dist/cubism-legacy.js +22 -7
- package/dist/cubism-legacy.min.js +1 -1
- package/dist/cubism.es.js +22 -7
- package/dist/cubism.js +22 -7
- package/dist/cubism.min.js +1 -1
- package/dist/index.es.js +22 -7
- package/dist/index.js +22 -7
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +8 -0
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -4284,6 +4284,13 @@ declare class Automator {
|
|
|
4284
4284
|
export declare class Live2DTransform extends Transform {
|
|
4285
4285
|
}
|
|
4286
4286
|
export interface Live2DModelOptions extends InternalModelOptions, AutomatorOptions {
|
|
4287
|
+
/**
|
|
4288
|
+
* Defines which bounds are used to resolve the normalized {@link Live2DModel.anchor}.
|
|
4289
|
+
* `'canvas'` preserves the historical model-canvas behavior, while `'drawable'`
|
|
4290
|
+
* resolves the anchor against the visible drawable bounds.
|
|
4291
|
+
* @default 'canvas'
|
|
4292
|
+
*/
|
|
4293
|
+
anchorMode?: "canvas" | "drawable";
|
|
4287
4294
|
/**
|
|
4288
4295
|
* Texture loading and atlas LOD options for this model.
|
|
4289
4296
|
*
|
|
@@ -4393,6 +4400,7 @@ export declare class Live2DModel<IM extends InternalModel = InternalModel> exten
|
|
|
4393
4400
|
*/
|
|
4394
4401
|
textures: Texture[];
|
|
4395
4402
|
private readonly textureOptions?;
|
|
4403
|
+
readonly anchorMode: NonNullable<Live2DModelOptions["anchorMode"]>;
|
|
4396
4404
|
private readonly textureLODStates;
|
|
4397
4405
|
private readonly textureLODFailures;
|
|
4398
4406
|
/** @override
|