spine-html 1.25.0 → 1.26.0

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.
@@ -0,0 +1,26 @@
1
+ import type { BoneLocals } from './player.js';
2
+ export type TurnAxis = 'yaw' | 'pitch' | 'body';
3
+ /** A discovered slider's input range in the driven bone channel's local units. */
4
+ export interface TurnDial {
5
+ axis: TurnAxis;
6
+ bone: string;
7
+ slider: string;
8
+ channel: keyof BoneLocals;
9
+ min: number;
10
+ max: number;
11
+ provenance: string;
12
+ }
13
+ /**
14
+ * Reads the turn sliders in parsed compiled model JSON, in yaw, pitch, body order.
15
+ * Supply the matching ModelAssets.animations to use runtime animation durations.
16
+ */
17
+ export declare function discoverTurnDials(model: unknown, durations?: readonly {
18
+ name: string;
19
+ duration: number;
20
+ }[]): TurnDial[];
21
+ /** Maps normalized input around zero, interpolating each side of the range independently. */
22
+ export declare function normalizedDial(value: number, range: {
23
+ min: number;
24
+ max: number;
25
+ }): number;
26
+ //# sourceMappingURL=turnDials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"turnDials.d.ts","sourceRoot":"","sources":["../src/turnDials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAEhD,kFAAkF;AAClF,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,UAAU,CAAC;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB;AAgCD;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,OAAO,EACd,SAAS,CAAC,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAAE,GACxD,QAAQ,EAAE,CAsDZ;AAMD,6FAA6F;AAC7F,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAKzF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spine-html",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
4
4
  "description": "Plays skeleton.model.json written by rigc build as plain DOM elements — rigid slots as <img> posed by CSS matrix, deform meshes on small per-part canvases — or as one canvas.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -61,6 +61,8 @@
61
61
  "dist/liveFrame.d.ts.map",
62
62
  "dist/liveFrameSource.d.ts",
63
63
  "dist/liveFrameSource.d.ts.map",
64
+ "dist/turnDials.d.ts",
65
+ "dist/turnDials.d.ts.map",
64
66
  "skills"
65
67
  ],
66
68
  "sideEffects": false,