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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "untitled-pixi-live2d-engine",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "PixiJS v8 Live2D Engine | Supports Cubism 2-5 SDK | Lip-sync & Parallel Motion",
5
5
  "packageManager": "pnpm@10.26.2",
6
6
  "main": "dist/index.js",
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