@algorisys/tinyfly 0.125.0 → 0.126.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/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 +4 -0
- package/docs/maps.md +2 -2
- package/docs/math.md +1 -1
- package/docs/props.md +5 -1
- package/docs/teaching.md +1 -1
- package/lib/addons/characters.js +798 -796
- package/lib/browser/tinyfly.iife.js +14 -14
- package/lib/browser/tinyfly.js +652 -650
- package/lib/browser/tinyfly.umd.js +14 -14
- package/lib/types/characters/props/families/environment.d.ts +7 -1
- package/llms-full.txt +19 -11
- package/llms.txt +32 -32
- package/package.json +1 -1
- package/skills/tinyfly/SKILL.md +3 -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.126.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.126.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.126.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.126.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
551
551
|
```
|
|
552
552
|
|
|
553
553
|
### Audio / Video Sync
|
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.126.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.126.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.126.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.126.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
|
@@ -391,6 +391,10 @@ Loops chapter of `docs/video-rendering.md`.
|
|
|
391
391
|
- **Walk figures in front of props, not through them.** A prop stands on its
|
|
392
392
|
middle; its front comes forward of that. Use its front line as the
|
|
393
393
|
figure's `ground` (a house's `anchor:doorstep`).
|
|
394
|
+
- **Open a door from its handle side.** A house's door hangs on its left edge
|
|
395
|
+
by default; a figure coming from the left opens it from the hinge. Hang it
|
|
396
|
+
on the far side (`house({ door: { hinge: 'right', opens: 'in' } })`) and aim
|
|
397
|
+
the grab at `anchor:handle`, not `anchor:door`.
|
|
394
398
|
- **Angles are degrees.** Stick-figure arms: 0 hangs down, 90 straight out,
|
|
395
399
|
180 straight up; in profile the left arm's forward is negative.
|
|
396
400
|
- **A character's look is data, and names are checked.** `hair: 'bob'`, not
|
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.126.0/cdn/tinyfly.iife.js"></script>
|
|
18
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.126.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.126.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/props.md
CHANGED
|
@@ -172,7 +172,11 @@ Make your own from the family generators: `vehicle(spec)` takes:
|
|
|
172
172
|
- wheels (any radius; `side: 0` for a bike's middle line; `style: 'spoked'`)
|
|
173
173
|
- doors, lights, side windows, frame tubes, an antenna, a seat and extra parts
|
|
174
174
|
|
|
175
|
-
`tree(spec)` and `house(spec)` take sizes and colours.
|
|
175
|
+
`tree(spec)` and `house(spec)` take sizes and colours. A house's front door
|
|
176
|
+
hangs on its left edge and swings out unless told otherwise
|
|
177
|
+
(`house({ door: { hinge: 'right', opens: 'in' } })`); its `handle` anchor is on
|
|
178
|
+
the free edge, so hang the door on the side away from the figure that opens it
|
|
179
|
+
and aim the grab at `anchor:handle`.
|
|
176
180
|
|
|
177
181
|
**Furniture.** `chair()`, `desk()`, `bed()` and `door()` stand on the ground
|
|
178
182
|
facing the viewer, and their places are anchors a figure uses them at: a
|
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.126.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
|