@algorisys/tinyfly 0.124.0 → 0.125.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 +4 -4
- package/docs/character-system-m1.md +15 -4
- package/docs/editor-guide.md +1 -1
- package/docs/examples.md +1 -1
- package/docs/getting-started.md +1 -1
- package/docs/gsap-compat.md +1 -1
- package/docs/llm-guide.md +6 -0
- package/docs/maps.md +2 -2
- package/docs/math.md +1 -1
- package/docs/teaching.md +1 -1
- package/lib/addons/characters.js +2 -2
- package/lib/addons/{cricket-play-B8PSBPDd.js → cricket-play-a5jHHZVh.js} +1571 -1537
- package/lib/addons/sports.js +1 -1
- package/lib/browser/tinyfly.iife.js +14 -14
- package/lib/browser/tinyfly.js +6812 -6778
- package/lib/browser/tinyfly.umd.js +14 -14
- package/lib/types/characters/rig/skeleton.d.ts +36 -5
- package/llms-full.txt +15 -9
- package/llms.txt +32 -32
- package/package.json +1 -1
- package/skills/tinyfly/SKILL.md +4 -0
package/README.md
CHANGED
|
@@ -302,7 +302,7 @@ GSAP-shaped functions at the top level. Teaching embeds are included: add
|
|
|
302
302
|
itself.
|
|
303
303
|
|
|
304
304
|
```html
|
|
305
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
305
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly.iife.js"></script>
|
|
306
306
|
<script>
|
|
307
307
|
tinyfly.to('.box', { x: 200, rotate: 90, duration: 1, ease: 'power2.out' })
|
|
308
308
|
|
|
@@ -339,7 +339,7 @@ A teaching figure needs no code at all:
|
|
|
339
339
|
<script type="application/json" data-tinyfly-timeline>{ …timeline JSON with markers… }</script>
|
|
340
340
|
<figcaption>Appending to a full slice</figcaption>
|
|
341
341
|
</figure>
|
|
342
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
342
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly.iife.js" data-tinyfly-auto></script>
|
|
343
343
|
```
|
|
344
344
|
|
|
345
345
|
See [Teaching Animations](docs/teaching.md).
|
|
@@ -438,7 +438,7 @@ Without a build step, the player bundle puts the same functions on a `tinyfly` g
|
|
|
438
438
|
<div data-tinyfly="box" style="width: 60px; height: 60px; background: #4a9eff;"></div>
|
|
439
439
|
</div>
|
|
440
440
|
|
|
441
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
441
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly-player.iife.js"></script>
|
|
442
442
|
<script>
|
|
443
443
|
tinyfly.play('#animation', './animation.json', { loop: -1 })
|
|
444
444
|
</script>
|
|
@@ -547,7 +547,7 @@ Or skip the code entirely with declarative embeds (see [Teaching Animations](doc
|
|
|
547
547
|
<svg viewBox="0 0 720 200">…</svg>
|
|
548
548
|
<script type="application/json" data-tinyfly-timeline>{ …timeline JSON… }</script>
|
|
549
549
|
</figure>
|
|
550
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
550
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
551
551
|
```
|
|
552
552
|
|
|
553
553
|
### Audio / Video Sync
|
|
@@ -95,10 +95,21 @@ angles in degrees:
|
|
|
95
95
|
- **swing**: forward (+) and back (−), about the character's x axis;
|
|
96
96
|
- **spread**: away from the body (+) and across it (−), about its z axis.
|
|
97
97
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
spread
|
|
101
|
-
|
|
98
|
+
Each bone turns in its parent bone's frame, as v1's elbow turns with its
|
|
99
|
+
shoulder: an elbow bends about the upper arm wherever the upper arm points.
|
|
100
|
+
Swing and spread are taken together as one tilt about a level axis, the way a
|
|
101
|
+
joystick leans: the end of a hanging bone moves forward by the swing and out
|
|
102
|
+
by the spread, however large either is (swing alone is Rx(swing), spread alone
|
|
103
|
+
Rz(spread · side)). So a thigh swung level still spreads its knee, and an arm
|
|
104
|
+
held forward still swings in to meet the other hand; only a bone tilted
|
|
105
|
+
straight up from hanging is past spreading. Seen from the front a swing
|
|
106
|
+
foreshortens and a spread shows; seen from the side, the other way round. This
|
|
107
|
+
is what fixes the "arms forward and back in profile" problem.
|
|
108
|
+
|
|
109
|
+
(Up to v0.124.0, a bone's swing and spread were added to its parent's and
|
|
110
|
+
applied spread after swing, so spread and forearm bend did nothing on a limb
|
|
111
|
+
swung straight forward. Poses that mix large swings with spreads, mostly
|
|
112
|
+
forward arms with a forearm `bend`, now look as their numbers say.)
|
|
102
113
|
|
|
103
114
|
## Pose
|
|
104
115
|
|
package/docs/editor-guide.md
CHANGED
|
@@ -1143,7 +1143,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
|
|
|
1143
1143
|
**Steps to embed:**
|
|
1144
1144
|
1. Build the player: `npm run build:player`
|
|
1145
1145
|
2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
|
|
1146
|
-
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
1146
|
+
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly-player.iife.js`
|
|
1147
1147
|
instead; see [Deployment](DEPLOYMENT.md))
|
|
1148
1148
|
3. Copy the generated code into your HTML
|
|
1149
1149
|
4. Adjust the script `src` path if needed
|
package/docs/examples.md
CHANGED
|
@@ -754,7 +754,7 @@ For simple website embedding without a build system.
|
|
|
754
754
|
</html>
|
|
755
755
|
```
|
|
756
756
|
|
|
757
|
-
Build the player with `npm run build:player` to generate `lib/player/tinyfly-player.iife.js`, or load it from the CDN: `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
757
|
+
Build the player with `npm run build:player` to generate `lib/player/tinyfly-player.iife.js`, or load it from the CDN: `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly-player.iife.js`.
|
|
758
758
|
|
|
759
759
|
---
|
|
760
760
|
|
package/docs/getting-started.md
CHANGED
|
@@ -185,7 +185,7 @@ with a GSAP-style call (durations are in seconds here):
|
|
|
185
185
|
```html
|
|
186
186
|
<div class="box" style="width:60px;height:60px;background:#4a9eff"></div>
|
|
187
187
|
|
|
188
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
188
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly.iife.js"></script>
|
|
189
189
|
<script>
|
|
190
190
|
tinyfly.to('.box', { x: 200, duration: 1 })
|
|
191
191
|
</script>
|
package/docs/gsap-compat.md
CHANGED
|
@@ -74,7 +74,7 @@ Without a build step, the all-in-one bundle exposes the same functions on a
|
|
|
74
74
|
global — `tinyfly.to()`, `tinyfly.timeline()` and so on:
|
|
75
75
|
|
|
76
76
|
```html
|
|
77
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
77
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly.iife.js"></script>
|
|
78
78
|
<script>
|
|
79
79
|
tinyfly.to('.box', { x: 200, duration: 1 })
|
|
80
80
|
</script>
|
package/docs/llm-guide.md
CHANGED
|
@@ -311,6 +311,12 @@ and the checks accept them. See "Your own actions, gaits and personas" in
|
|
|
311
311
|
`flight: true` (airborne with the legs apart, grounded as they pass) and a
|
|
312
312
|
knee `give` of 20–30 so it lands on a bent knee.
|
|
313
313
|
|
|
314
|
+
On the human rig a limb's `swing` and `spread` combine as one tilt, and each
|
|
315
|
+
bone turns with the one it hangs from, so both work at any angle: a seated
|
|
316
|
+
figure opens its knees with `leg.*.spread`, and arms held forward
|
|
317
|
+
(`swing: 90`) bring the hands together with a negative `spread` or forearm
|
|
318
|
+
`bend`. (Up to v0.124.0 spread and bend did nothing on a limb swung level.)
|
|
319
|
+
|
|
314
320
|
## 2. Ask a target what it can do
|
|
315
321
|
|
|
316
322
|
```js
|
package/docs/maps.md
CHANGED
|
@@ -14,8 +14,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
|
|
|
14
14
|
adds to the same `tinyfly` global:
|
|
15
15
|
|
|
16
16
|
```html
|
|
17
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
18
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
17
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly.iife.js"></script>
|
|
18
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly-maps.iife.js"></script>
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
It is a separate script because the offline world map it carries adds about
|
package/docs/math.md
CHANGED
|
@@ -258,7 +258,7 @@ lesson's step options (`duration`, `easing`, `delay`).
|
|
|
258
258
|
<figcaption>The determinant is the area of the unit square after the map.</figcaption>
|
|
259
259
|
</figure>
|
|
260
260
|
|
|
261
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
261
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly-math.iife.js" data-tinyfly-auto></script>
|
|
262
262
|
```
|
|
263
263
|
|
|
264
264
|
The figure draws itself into an SVG and redraws from the timeline whenever the
|
package/docs/teaching.md
CHANGED
|
@@ -25,7 +25,7 @@ path for all of that:
|
|
|
25
25
|
</figure>
|
|
26
26
|
|
|
27
27
|
<!-- once, anywhere on the page (a site-wide footer is fine) -->
|
|
28
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
28
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.125.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
|
package/lib/addons/characters.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as we, A as Pt, R as de, B as Ie, D as rn, E as yo, F as gt, G as Sr, I as be, J as Mr, K as Qn, L as wo, M as $r, N as Er, O as da, P as ko, Q as fa, S as Tr, T as Ar, U as Pr, V as Re, W as Or, X as ze, Y as ua, Z as ga, _ as Go, $ as Hr, a0 as Ke, a1 as Ge, a2 as xe, a3 as Ir, a4 as jr, a5 as xr, a6 as pa, a7 as Pe, a8 as Te, a9 as ma, aa as _r, ab as eo, ac as We, ad as ba, ae as Cr, af as Nr, ag as ya, ah as Kr, ai as Wr, aj as Rr, ak as zr, al as Fr, i as Dr, h as Lr, c as Br, j as qr, f as Gr, d as Yr, b as Ur, e as Xr, C as Vr, am as Jr, an as Zr, ao as Qr, ap as ei, aq as ti, ar as ni, as as oi, at as si } from "./cricket-play-
|
|
2
|
-
import { au as ku, av as vu, aw as Su, ax as Mu, ay as $u, az as Eu, aA as Tu, aB as Au, aC as Pu, aD as Ou, aE as Hu, aF as Iu, aG as ju, aH as xu, aI as _u, aJ as Cu, aK as Nu, aL as Ku, aM as Wu, aN as Ru, aO as zu, aP as Fu, aQ as Du, aR as Lu, aS as Bu, aT as qu, aU as Gu, aV as Yu, aW as Uu, aX as Xu, aY as Vu, aZ as Ju, a_ as Zu, a$ as Qu, b0 as eg, b1 as tg, b2 as ng, b3 as og, b4 as sg, b5 as ag, b6 as rg, b7 as ig, b8 as lg, b9 as hg, ba as cg, bb as dg, bc as fg, bd as ug, be as gg, bf as pg, bg as mg, bh as bg, bi as yg, bj as wg, bk as kg, bl as vg, bm as Sg, bn as Mg, bo as $g, bp as Eg, bq as Tg, br as Ag, bs as Pg, bt as Og, bu as Hg, bv as Ig, bw as jg, bx as xg, by as _g, bz as Cg, bA as Ng, bB as Kg, bC as Wg, bD as Rg, bE as zg, bF as Fg, bG as Dg, bH as Lg, bI as Bg, bJ as qg, bK as Gg, bL as Yg } from "./cricket-play-
|
|
1
|
+
import { H as we, A as Pt, R as de, B as Ie, D as rn, E as yo, F as gt, G as Sr, I as be, J as Mr, K as Qn, L as wo, M as $r, N as Er, O as da, P as ko, Q as fa, S as Tr, T as Ar, U as Pr, V as Re, W as Or, X as ze, Y as ua, Z as ga, _ as Go, $ as Hr, a0 as Ke, a1 as Ge, a2 as xe, a3 as Ir, a4 as jr, a5 as xr, a6 as pa, a7 as Pe, a8 as Te, a9 as ma, aa as _r, ab as eo, ac as We, ad as ba, ae as Cr, af as Nr, ag as ya, ah as Kr, ai as Wr, aj as Rr, ak as zr, al as Fr, i as Dr, h as Lr, c as Br, j as qr, f as Gr, d as Yr, b as Ur, e as Xr, C as Vr, am as Jr, an as Zr, ao as Qr, ap as ei, aq as ti, ar as ni, as as oi, at as si } from "./cricket-play-a5jHHZVh.js";
|
|
2
|
+
import { au as ku, av as vu, aw as Su, ax as Mu, ay as $u, az as Eu, aA as Tu, aB as Au, aC as Pu, aD as Ou, aE as Hu, aF as Iu, aG as ju, aH as xu, aI as _u, aJ as Cu, aK as Nu, aL as Ku, aM as Wu, aN as Ru, aO as zu, aP as Fu, aQ as Du, aR as Lu, aS as Bu, aT as qu, aU as Gu, aV as Yu, aW as Uu, aX as Xu, aY as Vu, aZ as Ju, a_ as Zu, a$ as Qu, b0 as eg, b1 as tg, b2 as ng, b3 as og, b4 as sg, b5 as ag, b6 as rg, b7 as ig, b8 as lg, b9 as hg, ba as cg, bb as dg, bc as fg, bd as ug, be as gg, bf as pg, bg as mg, bh as bg, bi as yg, bj as wg, bk as kg, bl as vg, bm as Sg, bn as Mg, bo as $g, bp as Eg, bq as Tg, br as Ag, bs as Pg, bt as Og, bu as Hg, bv as Ig, bw as jg, bx as xg, by as _g, bz as Cg, bA as Ng, bB as Kg, bC as Wg, bD as Rg, bE as zg, bF as Fg, bG as Dg, bH as Lg, bI as Bg, bJ as qg, bK as Gg, bL as Yg } from "./cricket-play-a5jHHZVh.js";
|
|
3
3
|
import { getEasingFunction as $t, hashSeed as Ye, mat4 as oe, vec3 as ke, quat as Be, Timeline as ve, unknownName as ce, createRandom as Et, springFollow as tn, closestName as to } from "@algorisys/tinyfly";
|
|
4
4
|
import { f as ln, h as ai, a as wa } from "./load-scene-oWNsYYC1.js";
|
|
5
5
|
import { l as ka, f as va } from "./shading-0lPgnXmD.js";
|