@rig-c/play 1.20.0 → 1.21.1
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 +6 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1880 -123
- package/dist/index.js.map +1 -1
- package/dist/liveFrame.d.ts +2 -2
- package/dist/liveFrame.d.ts.map +1 -1
- package/dist/player.d.ts +28 -0
- package/dist/player.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,8 +14,8 @@ DOM**: one absolutely-positioned `<img>` per rigid slot, posed with a single CSS
|
|
|
14
14
|
`matrix()` write per frame, and deforming meshes on small per-part canvases; or
|
|
15
15
|
as **one canvas** per player. It poses through `rig-c/core`, rigc's own posing
|
|
16
16
|
core, bundled into the package, and links nothing from Esoteric Software.
|
|
17
|
-
`rig-play`
|
|
18
|
-
|
|
17
|
+
`rig-play` is the convenience install name; `spine-html` is the legacy install name.
|
|
18
|
+
The compiler is [@rig-c/core](https://github.com/rig-c/core) (npm `@rig-c/core`)
|
|
19
19
|
and the part generator [rig-c/parts](https://github.com/rig-c/parts).
|
|
20
20
|
|
|
21
21
|
## Why
|
|
@@ -103,7 +103,7 @@ and the 0.x numbers are in [docs/BENCHMARK.md](docs/BENCHMARK.md).
|
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
105
|
npm i @rig-c/play
|
|
106
|
-
npm i -D rig-c # the build tool: `rigc build` writes the model the player loads
|
|
106
|
+
npm i -D @rig-c/core # the build tool: `rigc build` writes the model the player loads
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
The package plays rigs built by [rigc](https://github.com/rig-c/core):
|
|
@@ -183,6 +183,9 @@ package built from this tree.
|
|
|
183
183
|
- [docs/REFERENCE.md](docs/REFERENCE.md) — what the player does once it is on
|
|
184
184
|
the page: what ships and what is measured (*Status*), then every API section
|
|
185
185
|
from wind, gravity and dragging to the runtime knobs and what they cost.
|
|
186
|
+
`physicsMoved(scope, motion)` supplies apparent world movement to named bone,
|
|
187
|
+
subtree or constraint physics; `moved()` continues to report whole-rig motion.
|
|
188
|
+
See the reference for explicit pivots, units and evaluation/history limits.
|
|
186
189
|
- [docs/MIGRATION.md](docs/MIGRATION.md) — coming from 1.8 (meshes draw through
|
|
187
190
|
WebGL by default since 1.9) and from `spine-html` 0.8 (the 0.8 → 1.0 table,
|
|
188
191
|
what has no counterpart, before and after).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { type CanvasBackend, CanvasRenderer, type CanvasViewport } from './Canva
|
|
|
2
2
|
export { DomRenderer, type MeshBackend, type MeshSourceRect } from './DomRenderer.js';
|
|
3
3
|
export { type AtlasRegion, createAtlasRegions, type PageLayout, type PageRegion, type RegionEncoding, type RegionImage, revokeRegions, type UnpackRegionsOptions, unpackRegions } from './DomTexture.js';
|
|
4
4
|
export { type LoadModelOptions, loadModel, type ModelAssets, type ModelDocument, readSetupMesh, type RegionLoading, type RigSet, type SetupMesh, type SetupMeshTarget } from './loadModel.js';
|
|
5
|
-
export { type AdjustableBones, type BoneAdjust, type BoneAdjustContext, type BoneLocals, type BoneWorld, type PhysicsParameters, type PhysicsParameterPatch, type PhysicsParameterRead, type PlayOptions, type PoseBounds, type QueueOptions, type RenderMode, type RigComplete, type RigEnvironment, type RigEvent, RigPlayer, type RigPlayerOptions, type SetActivationOptions, type SlotFilter, type SlotIdentity, type SlotIdentityReason, type SlotIdentitySnapshot, type TrackEntry } from './player.js';
|
|
5
|
+
export { type AdjustableBones, type BoneAdjust, type BoneAdjustContext, type BoneLocals, type BoneWorld, type PhysicsMotion, type PhysicsMotionScope, type PhysicsParameters, type PhysicsParameterPatch, type PhysicsParameterRead, type PlayOptions, type PoseBounds, type QueueOptions, type RenderMode, type RigComplete, type RigEnvironment, type RigEvent, RigPlayer, type RigPlayerOptions, type SetActivationOptions, type SlotFilter, type SlotIdentity, type SlotIdentityReason, type SlotIdentitySnapshot, type TrackEntry } from './player.js';
|
|
6
6
|
export type { BlendMode, PosedClip, PosedFrame, PosedMesh, PosedRegion, PosedSlot, } from './posedFrame.js';
|
|
7
7
|
export type { LiveFrame, LiveNumbers, LiveAttachment, LiveClip } from './liveFrame.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,EAAE,KAAK,WAAW,EAAE,kBAAkB,EAAE,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACzM,OAAO,EAAE,KAAK,gBAAgB,EAAE,SAAS,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,MAAM,EAAE,KAAK,SAAS,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9L,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,QAAQ,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,KAAK,UAAU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