@doki-land/live2d 0.0.24 → 0.0.25

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/README.md CHANGED
@@ -28,7 +28,7 @@ The implementation packages are installed transitively. Most applications should
28
28
  ## 🧭 Source Layout
29
29
 
30
30
  ```text
31
- src/facade/ createLive2D() — default stage + single actor
31
+ src/facade/ createLive2d() — default stage + single actor
32
32
  src/motion/ motion3 parse, curves, MotionPlayer
33
33
  src/stage/ Live2dStage, actors, asset registry, transforms
34
34
  src/reexports/ optional subpath exports for core / loader / renderer
@@ -37,7 +37,7 @@ src/reexports/ optional subpath exports for core / loader / renderer
37
37
  ## 🚀 Quick Start
38
38
 
39
39
  ```ts
40
- import {createLive2D} from "@doki-land/live2d";
40
+ import {createLive2d} from "@doki-land/live2d";
41
41
 
42
42
  const canvas = document.querySelector<HTMLCanvasElement>("#live2d");
43
43
 
@@ -45,7 +45,7 @@ if (!canvas) {
45
45
  throw new Error("Missing Live2D canvas");
46
46
  }
47
47
 
48
- const runtime = createLive2D({
48
+ const runtime = createLive2d({
49
49
  prefer: ["webgpu", "webgl2", "canvas2d"],
50
50
  });
51
51
 
@@ -159,7 +159,7 @@ scheduling costs.
159
159
  Advanced applications can provide a renderer or model backends:
160
160
 
161
161
  ```ts
162
- const runtime = createLive2D({
162
+ const runtime = createLive2d({
163
163
  renderer: customRenderer,
164
164
  backends: [customBackend],
165
165
  });
package/dist/index.d.ts CHANGED
@@ -418,15 +418,9 @@ interface Live2dRuntime extends Live2dSession {
418
418
  quality?: number;
419
419
  }): Promise<Blob>;
420
420
  }
421
- /** @deprecated Use `CreateLive2dOptions`. */
422
- type CreateLive2DOptions = CreateLive2dOptions;
423
- /** @deprecated Use `Live2dRuntime`. */
424
- type Live2DRuntime = Live2dRuntime;
425
421
 
426
422
  /** Wire moc backends and a renderer into one single-actor session. */
427
423
  declare function createLive2d(options?: CreateLive2dOptions): Live2dRuntime;
428
- /** @deprecated Use `createLive2d`. */
429
- declare const createLive2D: typeof createLive2d;
430
424
 
431
425
  /** One physics output destination (parameter id only for the thin gate). */
432
426
  interface Physics3Output {
@@ -521,4 +515,4 @@ declare function resolveHitAreaName(input: ResolveHitAreaInput): string;
521
515
 
522
516
  declare const LIVE2D_VERSION: "0.0.0";
523
517
 
524
- export { type CreateLive2DOptions, type CreateLive2dOptions, type CreateLive2dStageFullOptions, type Expression3Clip, type Expression3Parameter, type ExpressionBlendMode, LIVE2D_VERSION, type Live2DRuntime, type Live2dRuntime, type Motion3Clip, type MotionApplySample, MotionPlayer, MotionPriority, type Physics3ApplyBinding, type Physics3Clip, type Physics3Output, type Physics3Setting, type PlayMotionOptions, type Pose3Clip, allocateActorId, applyExpression3Clip, applyPhysics3, applyPose3Activation, blendMotionLayers, createLive2D, createLive2d, createLive2dStage, evaluateCurve, evaluateMotion3, focusParameterUpdates, parseExpression3, parseMotion3, parsePhysics3, parsePose3, resolveHitAreaName };
518
+ export { type CreateLive2dOptions, type CreateLive2dStageFullOptions, type Expression3Clip, type Expression3Parameter, type ExpressionBlendMode, LIVE2D_VERSION, type Live2dRuntime, type Motion3Clip, type MotionApplySample, MotionPlayer, MotionPriority, type Physics3ApplyBinding, type Physics3Clip, type Physics3Output, type Physics3Setting, type PlayMotionOptions, type Pose3Clip, allocateActorId, applyExpression3Clip, applyPhysics3, applyPose3Activation, blendMotionLayers, createLive2d, createLive2dStage, evaluateCurve, evaluateMotion3, focusParameterUpdates, parseExpression3, parseMotion3, parsePhysics3, parsePose3, resolveHitAreaName };
package/dist/index.js CHANGED
@@ -2298,7 +2298,6 @@ function createLive2d(options = {}) {
2298
2298
  });
2299
2299
  return createSingleActorFacade(stage, actor, backends);
2300
2300
  }
2301
- var createLive2D = createLive2d;
2302
2301
 
2303
2302
  // src/index.ts
2304
2303
  var LIVE2D_VERSION = "0.0.0";
@@ -2315,7 +2314,6 @@ export {
2315
2314
  applyPose3Activation,
2316
2315
  blendMotionLayers,
2317
2316
  createCanvas2DRenderer,
2318
- createLive2D,
2319
2317
  createLive2d,
2320
2318
  createLive2dStage,
2321
2319
  createMoc2Backend3 as createMoc2Backend,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doki-land/live2d",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Live2D in the browser — load moc2/moc3 models, Stage + multi-actor, motion; WebGPU/WebGL2/Canvas2D. Main entry for live2d.ts.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -59,9 +59,9 @@
59
59
  "test": "vitest run --passWithNoTests"
60
60
  },
61
61
  "dependencies": {
62
- "@doki-land/live2d-core": "0.0.24",
63
- "@doki-land/live2d-loader": "0.0.24",
64
- "@doki-land/live2d-renderer": "0.0.24"
62
+ "@doki-land/live2d-core": "0.0.25",
63
+ "@doki-land/live2d-loader": "0.0.25",
64
+ "@doki-land/live2d-renderer": "0.0.25"
65
65
  },
66
66
  "sideEffects": false
67
67
  }
@@ -14,10 +14,6 @@ import { createLive2dStage } from "../stage/stage.js";
14
14
  export type {
15
15
  CreateLive2dOptions,
16
16
  Live2dRuntime,
17
- /** @deprecated Use `CreateLive2dOptions`. */
18
- CreateLive2DOptions,
19
- /** @deprecated Use `Live2dRuntime`. */
20
- Live2DRuntime,
21
17
  } from "../stage/single-facade.js";
22
18
  export {
23
19
  MotionPriority,
@@ -41,6 +37,3 @@ export function createLive2d(options: CreateLive2dOptions = {}): Live2dRuntime {
41
37
  }) as import("../stage/actor.js").Live2dActorImpl;
42
38
  return createSingleActorFacade(stage, actor, backends);
43
39
  }
44
-
45
- /** @deprecated Use `createLive2d`. */
46
- export const createLive2D = createLive2d;
package/src/index.ts CHANGED
@@ -77,12 +77,6 @@ export {
77
77
  type CreateLive2dOptions,
78
78
  createLive2d,
79
79
  type Live2dRuntime,
80
- /** @deprecated Use `createLive2d`. */
81
- createLive2D,
82
- /** @deprecated Use `CreateLive2dOptions`. */
83
- type CreateLive2DOptions,
84
- /** @deprecated Use `Live2dRuntime`. */
85
- type Live2DRuntime,
86
80
  MotionPriority,
87
81
  type PlayMotionOptions,
88
82
  } from "./facade/create-live2d.js";
@@ -4,10 +4,6 @@ export {
4
4
  type CreateLive2dOptions,
5
5
  createSingleActorFacade,
6
6
  type Live2dRuntime,
7
- /** @deprecated Use `CreateLive2dOptions`. */
8
- type CreateLive2DOptions,
9
- /** @deprecated Use `Live2dRuntime`. */
10
- type Live2DRuntime,
11
7
  } from "./single-facade.js";
12
8
  export { createLive2dStage, Live2dStageImpl } from "./stage.js";
13
9
  export {
@@ -243,8 +243,3 @@ export function createSingleActorFacade(
243
243
  }
244
244
 
245
245
  export { MotionPriority, type PlayMotionOptions };
246
-
247
- /** @deprecated Use `CreateLive2dOptions`. */
248
- export type CreateLive2DOptions = CreateLive2dOptions;
249
- /** @deprecated Use `Live2dRuntime`. */
250
- export type Live2DRuntime = Live2dRuntime;