spine-html 1.25.0 → 1.27.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.
- package/NOTICE.md +1 -1
- package/README.md +33 -16
- package/dist/CanvasRenderer.d.ts.map +1 -1
- package/dist/_play-runtime.js +15022 -0
- package/dist/_play-runtime.js.map +1 -0
- package/dist/composed-camera.d.ts +30 -0
- package/dist/composed-camera.d.ts.map +1 -0
- package/dist/composed-take.d.ts +74 -0
- package/dist/composed-take.d.ts.map +1 -0
- package/dist/composed-take.js +906 -0
- package/dist/composed-take.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -14895
- package/dist/index.js.map +1 -1
- package/dist/turnDials.d.ts +26 -0
- package/dist/turnDials.d.ts.map +1 -0
- package/docs/MIGRATION.md +201 -0
- package/docs/REFERENCE.md +1419 -0
- package/docs/STABILITY.md +31 -0
- package/package.json +18 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @rig-c/play stability inventory
|
|
2
|
+
|
|
3
|
+
## Turn dials
|
|
4
|
+
|
|
5
|
+
| Root export | Stable contract |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| `discoverTurnDials(model, durations?)` | Reads compiled model JSON and returns at most one dial per axis in yaw, pitch, body order. A supplied duration list takes precedence over the serialized durations. The model's bindings and slider mapping determine the exact bone, channel and range. Ambiguous or unusable bindings are skipped. |
|
|
8
|
+
| `TurnAxis` | The literals `'yaw'`, `'pitch'` and `'body'`. |
|
|
9
|
+
| `TurnDial` | The fields `axis`, `bone`, `slider`, `channel`, `min`, `max` and `provenance`. Bone and slider names retain their namespaces. Provenance is human-readable and its wording may evolve. |
|
|
10
|
+
| `normalizedDial(value, range)` | Maps normalized input to a range around zero (or the nearest endpoint if zero is outside the range). Inputs outside `[-1, 1]` clamp to the corresponding endpoint. |
|
|
11
|
+
|
|
12
|
+
See the [turn dial reference](REFERENCE.md#discovering-turn-dials) for matching,
|
|
13
|
+
range calculation and use with `BoneAdjust`.
|
|
14
|
+
|
|
15
|
+
## Composed takes
|
|
16
|
+
|
|
17
|
+
| Export from `@rig-c/play/composed-take` | Supported contract |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| `mountComposedTake(root, options)` | Mounts a compiled take in a browser and resolves to a `MountedTake`. |
|
|
20
|
+
| `ComposedTakeError` | Use `code` to handle a refusal. Message wording and underlying causes may evolve. |
|
|
21
|
+
| `CameraMode` | The literals `'fixed'`, `'pan'` and `'parallax'`. |
|
|
22
|
+
| `ComposedPlane` | A plane declares `slots`, `role` and optional `gain` and `baked`. |
|
|
23
|
+
| `ComposedTakeOptions` | Supported option names are `modelUrl`, `animation`, `loop`, `planes`, `camera`, `maxDisplacement`, `backend`, `autoStart`, `autoSweep`, `transitionMs` and `pointerTurn`. |
|
|
24
|
+
| `MountedTake` | The mounted canvas and player, camera and turn readouts, refusal state, and camera, frame and disposal methods. |
|
|
25
|
+
|
|
26
|
+
`dist/composed-camera.d.ts` ships as a type dependency of `@rig-c/play/composed-take`. It has no export-map key and is outside the public import surface.
|
|
27
|
+
The supported refusal codes are listed in the [composed take reference](REFERENCE.md#composed-take-refusals).
|
|
28
|
+
Until the demo page uses this entry, a minor release may retune the handoff
|
|
29
|
+
duration (`transitionMs`), automatic sweep (`autoSweep`) or pointer hover excursion
|
|
30
|
+
(`maxDisplacement`). The [reference](REFERENCE.md#mounting-a-composed-take)
|
|
31
|
+
records the current defaults.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spine-html",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.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",
|
|
@@ -33,11 +33,19 @@
|
|
|
33
33
|
".": {
|
|
34
34
|
"types": "./dist/index.d.ts",
|
|
35
35
|
"import": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./composed-take": {
|
|
38
|
+
"types": "./dist/composed-take.d.ts",
|
|
39
|
+
"import": "./dist/composed-take.js"
|
|
36
40
|
}
|
|
37
41
|
},
|
|
38
42
|
"files": [
|
|
39
43
|
"dist/index.js",
|
|
40
44
|
"dist/index.js.map",
|
|
45
|
+
"dist/composed-take.js",
|
|
46
|
+
"dist/composed-take.js.map",
|
|
47
|
+
"dist/_play-runtime.js",
|
|
48
|
+
"dist/_play-runtime.js.map",
|
|
41
49
|
"dist/CanvasRenderer.d.ts",
|
|
42
50
|
"dist/CanvasRenderer.d.ts.map",
|
|
43
51
|
"dist/DomRenderer.d.ts",
|
|
@@ -48,6 +56,10 @@
|
|
|
48
56
|
"dist/MeshGlBlitter.d.ts.map",
|
|
49
57
|
"dist/index.d.ts",
|
|
50
58
|
"dist/index.d.ts.map",
|
|
59
|
+
"dist/composed-take.d.ts",
|
|
60
|
+
"dist/composed-take.d.ts.map",
|
|
61
|
+
"dist/composed-camera.d.ts",
|
|
62
|
+
"dist/composed-camera.d.ts.map",
|
|
51
63
|
"dist/loadModel.d.ts",
|
|
52
64
|
"dist/loadModel.d.ts.map",
|
|
53
65
|
"dist/pixelRatio.d.ts",
|
|
@@ -61,6 +73,11 @@
|
|
|
61
73
|
"dist/liveFrame.d.ts.map",
|
|
62
74
|
"dist/liveFrameSource.d.ts",
|
|
63
75
|
"dist/liveFrameSource.d.ts.map",
|
|
76
|
+
"dist/turnDials.d.ts",
|
|
77
|
+
"dist/turnDials.d.ts.map",
|
|
78
|
+
"docs/MIGRATION.md",
|
|
79
|
+
"docs/REFERENCE.md",
|
|
80
|
+
"docs/STABILITY.md",
|
|
64
81
|
"skills"
|
|
65
82
|
],
|
|
66
83
|
"sideEffects": false,
|