rig-play 0.8.0 → 1.1.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 +50 -23
- package/README.md +511 -456
- package/dist/CanvasRenderer.d.ts +139 -0
- package/dist/CanvasRenderer.d.ts.map +1 -0
- package/dist/{SpineHtmlRenderer.d.ts → DomRenderer.d.ts} +70 -65
- package/dist/DomRenderer.d.ts.map +1 -0
- package/dist/DomTexture.d.ts +34 -14
- package/dist/DomTexture.d.ts.map +1 -1
- package/dist/MeshGlBlitter.d.ts +67 -1
- package/dist/MeshGlBlitter.d.ts.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7470 -5
- package/dist/index.js.map +1 -1
- package/dist/loadModel.d.ts +92 -0
- package/dist/loadModel.d.ts.map +1 -0
- package/dist/player.d.ts +198 -0
- package/dist/player.d.ts.map +1 -0
- package/dist/posedFrame.d.ts +99 -0
- package/dist/posedFrame.d.ts.map +1 -0
- package/package.json +13 -19
- package/dist/DomTexture.js +0 -520
- package/dist/DomTexture.js.map +0 -1
- package/dist/MeshGlBlitter.js +0 -365
- package/dist/MeshGlBlitter.js.map +0 -1
- package/dist/SpineHtmlRenderer.d.ts.map +0 -1
- package/dist/SpineHtmlRenderer.js +0 -1107
- package/dist/SpineHtmlRenderer.js.map +0 -1
- package/dist/binary.d.ts +0 -48
- package/dist/binary.d.ts.map +0 -1
- package/dist/binary.js +0 -29
- package/dist/binary.js.map +0 -1
- package/dist/coreCompat.d.ts +0 -153
- package/dist/coreCompat.d.ts.map +0 -1
- package/dist/coreCompat.js +0 -136
- package/dist/coreCompat.js.map +0 -1
- package/dist/loadAtlasAssets.d.ts +0 -73
- package/dist/loadAtlasAssets.d.ts.map +0 -1
- package/dist/loadAtlasAssets.js +0 -75
- package/dist/loadAtlasAssets.js.map +0 -1
- package/dist/loadSkeletonAssets.d.ts +0 -88
- package/dist/loadSkeletonAssets.d.ts.map +0 -1
- package/dist/loadSkeletonAssets.js +0 -79
- package/dist/loadSkeletonAssets.js.map +0 -1
package/NOTICE.md
CHANGED
|
@@ -2,29 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
## Spine Runtimes
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Runtimes
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
`@esotericsoftware/spine-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
`
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
it
|
|
5
|
+
**The published package links nothing from Esoteric Software.** An install of
|
|
6
|
+
`rig-play` (or of `spine-html`, the same files under the name the package first
|
|
7
|
+
shipped as) carries one JavaScript module, `dist/index.js`, plus type
|
|
8
|
+
declarations, and that module bundles two things: the renderer, and
|
|
9
|
+
`rig-c/core` (MIT), rigc's own posing core, which poses the compiled model
|
|
10
|
+
document `rigc build` writes. No part of the
|
|
11
|
+
[Spine Runtimes](https://github.com/EsotericSoftware/spine-runtimes) is in it,
|
|
12
|
+
imported by it, or required beside it.
|
|
13
|
+
|
|
14
|
+
**This repository links no Spine runtime either**, since #63.
|
|
15
|
+
`@esotericsoftware/spine-core` and `@esotericsoftware/spine-webgl` are not
|
|
16
|
+
dependencies of any kind — not `dependencies`, not `peerDependencies`, not
|
|
17
|
+
`devDependencies` — and no lockfile entry names them. The test suite and the
|
|
18
|
+
benchmark compare the package's two render modes with each other; the poses
|
|
19
|
+
are rig-c's, held to the Spine runtime by rig-c's own CI, not here.
|
|
20
|
+
`tests/package.spec.ts` asserts all of that, and that nothing the published
|
|
21
|
+
package contains names an `@esotericsoftware/` package.
|
|
22
|
+
|
|
23
|
+
One thing in this repository is Spine data, and it is worth stating where it
|
|
24
|
+
sits. `rigc build`, which `scripts/fetch-assets.sh` runs to make the fixtures,
|
|
25
|
+
writes **Spine skeleton data** (`skeleton.json` and `skeleton.atlas`) beside
|
|
26
|
+
each model document, into the gitignored `public/rigs/`. Nothing here reads
|
|
27
|
+
it, and it is neither committed nor published.
|
|
28
|
+
|
|
29
|
+
### What that means, as a chain of facts
|
|
30
|
+
|
|
31
|
+
rig-play's own code is MIT (see `LICENSE`). The following is a restatement of
|
|
32
|
+
Esoteric Software's terms, not a licence term of this project:
|
|
33
|
+
|
|
34
|
+
1. rigc writes two things side by side: the model document this package plays,
|
|
35
|
+
and Spine skeleton data.
|
|
36
|
+
2. A product that plays that Spine data with **a Spine Runtime** has integrated
|
|
37
|
+
the Spine Runtimes, licensed under the
|
|
38
|
+
[Spine Runtimes License Agreement](https://esotericsoftware.com/spine-runtimes-license).
|
|
39
|
+
3. That licence permits integration **under the terms and conditions of
|
|
40
|
+
Section 2 of the
|
|
41
|
+
[Spine Editor License Agreement](https://esotericsoftware.com/spine-editor-license)**,
|
|
42
|
+
or otherwise **provided that each user of the Products obtains their own
|
|
43
|
+
Spine Editor license** and any redistribution of the Products includes the
|
|
44
|
+
licence and copyright notice — the two routes, in its words.
|
|
45
|
+
4. Playing the model document with this package integrates no Spine runtime,
|
|
46
|
+
because the package links none.
|
|
47
|
+
|
|
48
|
+
> **What a consumer does with rigc's Spine-format output is governed by
|
|
49
|
+
> Esoteric Software's terms**, not by this package — rig-play neither adds those
|
|
50
|
+
> terms nor removes them.
|
|
24
51
|
|
|
25
52
|
## Example assets
|
|
26
53
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
54
|
+
None are fetched or redistributed. The rigs the demo, the tests and the benchmark
|
|
55
|
+
read are rigc's gallery rigs — rigc's own procedural art, built from a pinned rigc
|
|
56
|
+
tag by `scripts/fetch-assets.sh` — and this repository's test rigs under
|
|
57
|
+
`tests/rigs/`, whose parts `tests/rigs/make_parts.ts` paints.
|