spine-rigc 0.5.0 → 0.6.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 +21 -0
- package/README.md +323 -224
- package/bin/rigc.cjs +40 -0
- package/cli.ts +558 -49
- package/docs/AUTHORING.md +60 -23
- package/docs/PROMPTING.md +106 -0
- package/docs/SPEC_COVERAGE.md +16 -14
- package/package.json +4 -2
- package/src/compile.ts +189 -142
- package/src/emit.ts +88 -0
- package/src/json-position.ts +253 -0
- package/src/png.ts +72 -7
- package/src/preview.ts +243 -0
- package/src/render.ts +58 -0
- package/src/types.ts +8 -0
- package/src/validate.ts +58 -13
- package/tools/plate.ts +164 -21
package/NOTICE.md
CHANGED
|
@@ -30,6 +30,27 @@ Software's terms, not a licence term of this project:
|
|
|
30
30
|
> creates one where none existed nor removes one that did. It is not a route around
|
|
31
31
|
> the editor licence.
|
|
32
32
|
|
|
33
|
+
### The Spine Web Player, and what `rigc preview` does with it
|
|
34
|
+
|
|
35
|
+
`rigc preview` writes an HTML file that plays a compiled rig in the **Spine Web
|
|
36
|
+
Player** (`@esotericsoftware/spine-player`), also part of the Spine Runtimes and
|
|
37
|
+
under the same licence as above.
|
|
38
|
+
|
|
39
|
+
⚖️ **It is referenced, never redistributed.** The generated page loads the player
|
|
40
|
+
from a CDN with a `<script src>` and a `<link rel="stylesheet">`; no byte of it is
|
|
41
|
+
committed to this repository, bundled into the published npm package, or copied
|
|
42
|
+
into the generated file. What the generated file *does* contain is the user's own
|
|
43
|
+
skeleton, atlas and page images, embedded as data URIs so the page opens without a
|
|
44
|
+
server — those are the user's, not Esoteric Software's.
|
|
45
|
+
|
|
46
|
+
Two consequences worth stating plainly:
|
|
47
|
+
|
|
48
|
+
- a generated preview needs a network connection the first time it is opened, and
|
|
49
|
+
says so in the page when the player does not arrive;
|
|
50
|
+
- the obligation above is unchanged by it. Playing Spine skeleton data in the
|
|
51
|
+
Spine Web Player is a Spine Runtimes integration like any other, so **each user
|
|
52
|
+
of a product built this way needs their own Spine Editor license.**
|
|
53
|
+
|
|
33
54
|
## Example assets
|
|
34
55
|
|
|
35
56
|
The official Spine example projects are the yardstick this compiler is measured
|