rig-play 1.2.0 → 1.4.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/README.md +22 -9
- package/dist/CanvasRenderer.d.ts +16 -1
- package/dist/CanvasRenderer.d.ts.map +1 -1
- package/dist/DomRenderer.d.ts.map +1 -1
- package/dist/DomTexture.d.ts +11 -1
- package/dist/DomTexture.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +100 -33
- package/dist/index.js.map +1 -1
- package/dist/loadModel.d.ts +24 -4
- package/dist/loadModel.d.ts.map +1 -1
- package/dist/pixelRatio.d.ts +22 -0
- package/dist/pixelRatio.d.ts.map +1 -0
- package/dist/player.d.ts +18 -2
- package/dist/player.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/loadModel.d.ts
CHANGED
|
@@ -28,7 +28,19 @@ export interface LoadModelOptions {
|
|
|
28
28
|
crossOrigin?: string;
|
|
29
29
|
/** fetch implementation, for custom headers or a test double. */
|
|
30
30
|
fetch?: typeof globalThis.fetch;
|
|
31
|
+
/**
|
|
32
|
+
* What the region cut produces — the rigid tier's per-region bitmaps, which
|
|
33
|
+
* only the DOM mode draws. `'blob'` (the default): `blob:` URLs the load
|
|
34
|
+
* owns and `dispose` frees. `'data'`: `data:` URLs, for a content policy or
|
|
35
|
+
* a snapshot that does not carry `blob:`; nothing to free. `'none'`: no cut
|
|
36
|
+
* at all, for a load that only ever draws in the canvas mode — the pages
|
|
37
|
+
* are loaded, `regionImages` is empty, and a DOM-mode player opened on the
|
|
38
|
+
* assets is refused by name.
|
|
39
|
+
*/
|
|
40
|
+
regions?: RegionLoading;
|
|
31
41
|
}
|
|
42
|
+
/** `LoadModelOptions.regions`: how, or whether, the regions are cut. */
|
|
43
|
+
export type RegionLoading = 'blob' | 'data' | 'none';
|
|
32
44
|
/**
|
|
33
45
|
* What `new RigPlayer(root, assets)` draws from. The caller owns it: one load
|
|
34
46
|
* can back any number of players, and nothing a player does disposes it.
|
|
@@ -44,9 +56,15 @@ export interface ModelAssets {
|
|
|
44
56
|
/** Every skin the document declares, in its order. */
|
|
45
57
|
readonly skins: readonly string[];
|
|
46
58
|
/**
|
|
47
|
-
* The
|
|
48
|
-
* the rig's own framing, for laying out a stage — or null
|
|
49
|
-
* none.
|
|
59
|
+
* The document's `stage` section, in world units (Y up): the stage the
|
|
60
|
+
* build declared — the rig's own framing, for laying out a stage — or null
|
|
61
|
+
* where the document has none. Where its value comes from is rigc's rule,
|
|
62
|
+
* not this package's (rigc `docs/AUTHORING.md`, *Where the rebuild's stage
|
|
63
|
+
* comes from*): a source that states a stage is written as stated, and a
|
|
64
|
+
* source that states none gets the setup pose's bounding box in its place.
|
|
65
|
+
* So one rig's `stage` is a declared frame and another's is a box, and the
|
|
66
|
+
* field does not say which. For the box of what a pose draws, read
|
|
67
|
+
* `player.bounds()`.
|
|
50
68
|
*/
|
|
51
69
|
readonly stage: {
|
|
52
70
|
readonly x: number;
|
|
@@ -54,7 +72,9 @@ export interface ModelAssets {
|
|
|
54
72
|
readonly width: number;
|
|
55
73
|
readonly height: number;
|
|
56
74
|
} | null;
|
|
57
|
-
/**
|
|
75
|
+
/** How the regions were cut (`LoadModelOptions.regions`): `'none'` means `regionImages` is empty and only the canvas mode can draw. */
|
|
76
|
+
readonly regions: RegionLoading;
|
|
77
|
+
/** Unpacked per-region bitmaps, keyed by region name — the rigid tier's. Empty on a `regions: 'none'` load. */
|
|
58
78
|
readonly regionImages: Map<string, RegionImage>;
|
|
59
79
|
/** Page images, keyed by the document's page names — the mesh tier's. */
|
|
60
80
|
readonly pageImages: Map<string, HTMLImageElement>;
|
package/dist/loadModel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadModel.d.ts","sourceRoot":"","sources":["../src/loadModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAgC,MAAM,iBAAiB,CAAC;AA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,SAAS,MAAM,EAAE,CAAC;IAClC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACnH,uIAAuI;IACvI,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,+GAA+G;IAC/G,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAChD,yEAAyE;IACzE,QAAQ,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACnD;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC;;;;OAIG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB;AAED,mEAAmE;AACnE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAgED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC,CA0C/E"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one forced layout both renderers share: how many device pixels one of
|
|
3
|
+
* the root's CSS pixels covers on screen, read off a throwaway box.
|
|
4
|
+
*
|
|
5
|
+
* A renderer rasters at `world × pixelRatio` in the root's own coordinates,
|
|
6
|
+
* so a `transform: scale(z)` on an ancestor — how a pan/zoom stage is built —
|
|
7
|
+
* oversamples by 1/z² in backing pixels unless the zoom is folded into the
|
|
8
|
+
* ratio. Neither renderer measures this on its own: it is a layout read, and
|
|
9
|
+
* there is no per-frame layout read anywhere in this library. The caller
|
|
10
|
+
* invokes `syncPixelRatio()` when a zoom or a resize settles.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Measures `root`'s effective on-screen scale once and returns the ratio now
|
|
14
|
+
* in effect: `devicePixelRatio × scale` when that differs from `current` by
|
|
15
|
+
* more than the deadband, else `current` unchanged. A root that is not laid
|
|
16
|
+
* out (a `display: none` ancestor, a detached root) measures nothing, so
|
|
17
|
+
* nothing is decided and `current` comes back. Appends a hidden box to the
|
|
18
|
+
* root, reads its rect, removes it — the root's children are the same
|
|
19
|
+
* elements in the same order on both sides of the call.
|
|
20
|
+
*/
|
|
21
|
+
export declare function syncedPixelRatio(root: HTMLElement, current: number): number;
|
|
22
|
+
//# sourceMappingURL=pixelRatio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pixelRatio.d.ts","sourceRoot":"","sources":["../src/pixelRatio.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CA2B3E"}
|
package/dist/player.d.ts
CHANGED
|
@@ -132,8 +132,10 @@ export declare class RigPlayer {
|
|
|
132
132
|
private readonly root;
|
|
133
133
|
private readonly assets;
|
|
134
134
|
private readonly meshBackend;
|
|
135
|
-
private
|
|
136
|
-
private
|
|
135
|
+
private view;
|
|
136
|
+
private source;
|
|
137
|
+
private readonly read;
|
|
138
|
+
private skinName;
|
|
137
139
|
private readonly seekStep;
|
|
138
140
|
private track;
|
|
139
141
|
private animation;
|
|
@@ -177,6 +179,8 @@ export declare class RigPlayer {
|
|
|
177
179
|
* reaches `time`. Events and completes crossed on the way are not fired.
|
|
178
180
|
*/
|
|
179
181
|
seek(time: number): void;
|
|
182
|
+
/** Steps the freshly opened track forward to `time` in `seekStep` increments, the last one shorter. */
|
|
183
|
+
private stepTo;
|
|
180
184
|
/** Adds a listener; returns a function that removes it. */
|
|
181
185
|
on(type: 'event', listener: Listener<RigEvent>): () => void;
|
|
182
186
|
on(type: 'complete', listener: Listener<{
|
|
@@ -196,6 +200,18 @@ export declare class RigPlayer {
|
|
|
196
200
|
advance(dt: number): void;
|
|
197
201
|
/** Draws the pose the player holds. */
|
|
198
202
|
draw(): void;
|
|
203
|
+
/**
|
|
204
|
+
* The skin the rig is posed under — `RigPlayerOptions.skin`, or undefined
|
|
205
|
+
* for no skin set. Setting it re-resolves the pose under the new skin
|
|
206
|
+
* (which attachment each slot shows, which bones and constraints are
|
|
207
|
+
* active) and keeps the animation, its loop and its track time: the track
|
|
208
|
+
* is reopened under the new skin and stepped to the same time the way
|
|
209
|
+
* `seek` does, so a physics rig's history restarts there and nothing is
|
|
210
|
+
* fired on the way. The pose is drawn on the next `draw`/`frame`. An
|
|
211
|
+
* unknown skin is refused by name, and the player is left as it was.
|
|
212
|
+
*/
|
|
213
|
+
get skin(): string | undefined;
|
|
214
|
+
set skin(name: string | undefined);
|
|
199
215
|
/**
|
|
200
216
|
* The per-pose adjustment of bone locals (`BoneAdjust`), or null for none.
|
|
201
217
|
* It is applied by every track the player opens — `play`, the reopen inside
|
package/dist/player.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"player.d.ts","sourceRoot":"","sources":["../src/player.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAA0C,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE1F;;;;;;;;;GASG;AAEH;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE1C,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yFAAyF;IACzF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,IAAI,MAAM,IAAI,UAAU,GAAG,IAAI,CAE9B;IAED,IAAI,MAAM,CAAC,EAAE,EAAE,UAAU,GAAG,IAAI,EAI/B;IAED;;;;;;OAMG;IACH,MAAM,IAAI,IAAI;IAKd;;;;;OAKG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS;IAsB7B;;;;;;;;OAQG;IACH,MAAM,IAAI,UAAU,GAAG,IAAI;IA6B3B,+FAA+F;IAC/F,OAAO,CAAC,KAAK;IAMb,yEAAyE;IACzE,UAAU,IAAI,UAAU;IAKxB,kGAAkG;IAClG,OAAO,IAAI,IAAI;IAMf,OAAO,CAAC,IAAI;IAKZ;;;;;;;;;OASG;IACH,OAAO,CAAC,QAAQ;CAkBjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rig-play",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.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",
|