@algorisys/tinyfly 0.97.0 → 0.98.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.
Files changed (37) hide show
  1. package/README.md +7 -7
  2. package/docs/character-appearance.md +281 -0
  3. package/docs/editor-guide.md +14 -6
  4. package/docs/examples.md +1 -1
  5. package/docs/getting-started.md +1 -1
  6. package/docs/gsap-compat.md +1 -1
  7. package/docs/llm-guide.md +21 -1
  8. package/docs/maps.md +2 -2
  9. package/docs/props.md +8 -6
  10. package/docs/teaching.md +1 -1
  11. package/lib/addons/characters.js +5720 -4476
  12. package/lib/browser/tinyfly.iife.js +15 -15
  13. package/lib/browser/tinyfly.js +7928 -6684
  14. package/lib/browser/tinyfly.umd.js +15 -15
  15. package/lib/types/characters/capabilities.d.ts +15 -0
  16. package/lib/types/characters/cast.d.ts +284 -0
  17. package/lib/types/characters/character.d.ts +22 -4
  18. package/lib/types/characters/hands/held-items.d.ts +88 -0
  19. package/lib/types/characters/hands/index.d.ts +1 -0
  20. package/lib/types/characters/head/ears.d.ts +10 -0
  21. package/lib/types/characters/head/facial-hair.d.ts +118 -0
  22. package/lib/types/characters/head/glasses.d.ts +24 -0
  23. package/lib/types/characters/head/hair.d.ts +560 -0
  24. package/lib/types/characters/head/hats.d.ts +58 -0
  25. package/lib/types/characters/head/head-look.d.ts +53 -0
  26. package/lib/types/characters/head/index.d.ts +5 -0
  27. package/lib/types/characters/head/shell.d.ts +64 -0
  28. package/lib/types/characters/index.d.ts +4 -1
  29. package/lib/types/characters/interactions.d.ts +69 -0
  30. package/lib/types/characters/props/families/animals.d.ts +6 -0
  31. package/lib/types/characters/species/human-motion.d.ts +5 -2
  32. package/lib/types/characters/species/human.d.ts +111 -4
  33. package/lib/types/characters/wardrobe/basic-outfit.d.ts +19 -5
  34. package/llms-full.txt +355 -27
  35. package/llms.txt +29 -28
  36. package/package.json +1 -1
  37. package/skills/tinyfly/SKILL.md +10 -1
package/llms-full.txt CHANGED
@@ -204,7 +204,7 @@ with a GSAP-style call (durations are in seconds here):
204
204
  ```html
205
205
  <div class="box" style="width:60px;height:60px;background:#4a9eff"></div>
206
206
 
207
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.97.0/cdn/tinyfly.iife.js"></script>
207
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly.iife.js"></script>
208
208
  <script>
209
209
  tinyfly.to('.box', { x: 200, duration: 1 })
210
210
  </script>
@@ -412,7 +412,7 @@ Without a build step, the all-in-one bundle exposes the same functions on a
412
412
  global — `tinyfly.to()`, `tinyfly.timeline()` and so on:
413
413
 
414
414
  ```html
415
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.97.0/cdn/tinyfly.iife.js"></script>
415
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly.iife.js"></script>
416
416
  <script>
417
417
  tinyfly.to('.box', { x: 200, duration: 1 })
418
418
  </script>
@@ -2278,7 +2278,7 @@ For simple website embedding without a build system.
2278
2278
  </html>
2279
2279
  ```
2280
2280
 
2281
- 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.97.0/cdn/tinyfly-player.iife.js`.
2281
+ 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.98.0/cdn/tinyfly-player.iife.js`.
2282
2282
 
2283
2283
  ---
2284
2284
 
@@ -5545,12 +5545,19 @@ its box; resize the box to change its height. In the property panel:
5545
5545
  traditional stick figure).
5546
5546
  - **Look**: *Clean*, *Pencil* (hand-drawn strokes that boil, with faint
5547
5547
  construction lines) or *Silhouette*.
5548
- - **Build**: *Standard*, *Slim*, *Kid* (big head), *Broad*, *Curvy* or
5549
- *Stocky*, or set **Head**, **Shoulders** and **Hips** with the sliders (the
5550
- Stick figure has a head size only). Clothes, gags, walks and dances fit
5551
- every build.
5548
+ - **Build**: *Standard*, *Slim*, *Kid* (big head), *Child*, *Toddler*, *Tall*,
5549
+ *Short*, *Broad*, *Curvy* or *Stocky*, or set **Head**, **Shoulders**,
5550
+ **Hips**, **Legs** and **Arms** with the sliders (the Stick figure has no
5551
+ shoulders or hips). Clothes, gags, walks and dances fit every build.
5552
5552
  - **Line**, **Skin**, and **Clothes** (a T-shirt and trousers, with their
5553
5553
  colours, or none).
5554
+ - **Head**: **Cast** dresses the character as one of the ready-made cast
5555
+ (boy, girl, young man, young woman, man, woman, grandpa, grandma: build,
5556
+ hair, facial hair, glasses and clothes in one step); then **Hair** (34
5557
+ styles, from buzz cut to twin braids) and its **Hair colour**, **Facial
5558
+ hair** (20 styles), **Glasses**, **Hat** and **Ears** change one thing at a
5559
+ time. Hair and hats turn with the head in every view (see
5560
+ [Character Appearance](character-appearance.md)).
5554
5561
  - **Hands**: *Round*, *Cartoon gloves* (a thumb and three plump fingers), or
5555
5562
  *Natural* (five fingers, best for mudras). Gloves and natural hands take hand
5556
5563
  shapes: dances key them (jazz hands, mudras), and each finger is a track
@@ -5562,7 +5569,8 @@ its box; resize the box to change its height. In the property panel:
5562
5569
  - **Body**: a pose (standing, waving, pointing, cheering, hands on hips,
5563
5570
  thinking, shrugging, sitting, kneeling, crouching, crawling, lying down).
5564
5571
  Poses that rest on a knee, the hands or the back are set down on the ground.
5565
- - **Face**: an expression (happy, sad, surprised, angry…), or the pose's own.
5572
+ - **Face**: an expression (happy, sad, surprised, angry, embarrassed with a
5573
+ blush, crying with tears, afraid with a bead of sweat…), or the pose's own.
5566
5574
 
5567
5575
  To animate a character, pick a view, a pose and a face, and click
5568
5576
  **◆ Keyframe pose at playhead**. Move the playhead, pick the next pose, and
@@ -6466,7 +6474,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
6466
6474
  **Steps to embed:**
6467
6475
  1. Build the player: `npm run build:player`
6468
6476
  2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
6469
- `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.97.0/cdn/tinyfly-player.iife.js`
6477
+ `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly-player.iife.js`
6470
6478
  instead; see [Deployment](DEPLOYMENT.md))
6471
6479
  3. Copy the generated code into your HTML
6472
6480
  4. Adjust the script `src` path if needed
@@ -7449,11 +7457,11 @@ one probably meant, and `propScript` throws on them.
7449
7457
  | `house()` | `door` (`open`), `lights` (`on`), `smoke` (`for`, runs in the background), `shake` |
7450
7458
  | `helicopter()` | `takeOff` (`height`), `fly` (`to`, `height`), `hover`, `land` |
7451
7459
  | `airplane()` | `takeOff` (`to`, `height`), `fly` (`to`, `height`), `loop`, `land` (`to`) |
7452
- | `horse()` | `walk`, `trot`, `canter`, `gallop` (`to`), `rear`, `buck`, `neigh`, `graze`, `sit`, `jump`, `nod`, `swish` |
7453
- | `dog()` | `walk`, `trot`, `run` (`to`), `bark`, `wag`, `sniff`, `sit`, `jump`, `nod`, `swish` |
7454
- | `cat()` | `walk`, `trot`, `run` (`to`), `meow`, `arch`, `pounce` (`to`), `sit`, `jump`, `nod`, `swish` |
7455
- | `cow()` | `walk`, `trot` (`to`), `moo`, `graze`, `sit`, `jump`, `nod`, `swish` |
7456
- | `songbird()`, `crow()` | `hop`, `walk` (`to`), `peck` (`for`), `flap` (`for`), `fly` (`to`, `height`), `land` (`height`, `to`), `tweet` / `caw` |
7460
+ | `horse()` | `walk`, `trot`, `canter`, `gallop` (`to`), `rear`, `buck`, `neigh`, `graze`, `sit`, `lie`, `jump`, `nod`, `swish` |
7461
+ | `dog()` | `walk`, `trot`, `run` (`to`), `bark`, `wag`, `sniff`, `sit`, `lie`, `jump`, `nod`, `swish` |
7462
+ | `cat()` | `walk`, `trot`, `run` (`to`), `meow`, `arch`, `pounce` (`to`), `sit`, `lie`, `jump`, `nod`, `swish` |
7463
+ | `cow()` | `walk`, `trot` (`to`), `moo`, `graze`, `sit`, `lie`, `jump`, `nod`, `swish` |
7464
+ | `songbird()`, `crow()` | `hop`, `walk` (`to`), `peck` (`for`), `flap` (`for`), `fly` (`to`, `height`), `glide` (`to`, `height`), `land` (`height`, `to`), `tweet` / `caw` |
7457
7465
  | `chicken()` | `walk` (`to`), `peck`, `flap`, `flutter`, `cluck` (it cannot fly) |
7458
7466
 
7459
7467
  **Line art.** `propTarget({ …, style: 'stick' })` (or `drawSolvedProp(…, { style: 'stick' })`)
@@ -7478,7 +7486,9 @@ and while `flapping` is on, the rig's `derive` beats them from a phase,
7478
7486
  a second, a crow four). Its head pecks from a neck joint (`peck`; a chicken's
7479
7487
  neck stretches down to reach), and it walks with its head bobbing or hops.
7480
7488
  `fly` takes off with a crouch and a leap (no crouch if it is already in the
7481
- air) and flies to `height` metres; `land` comes down to the ground or to a
7489
+ air) and flies to `height` metres; `glide` holds the wings out still and sinks
7490
+ gently toward `height` on the way to `to` (from the ground it flies the first
7491
+ stretch); `land` comes down to the ground or to a
7482
7492
  perch (`height`). Perch it with anchors:
7483
7493
 
7484
7494
  ```js
@@ -7565,7 +7575,8 @@ npx @algorisys/tinyfly capabilities --json # the same as data
7565
7575
  It lists the easings, track kinds, every property each canvas shape can
7566
7576
  animate (with units and ranges), the stick figure's joints, poses,
7567
7577
  expressions, gags, gaits, beat actions, dances, flips and hand shapes, the v2
7568
- character's poses, the code panel's languages, every surface's anchors and
7578
+ character's poses, expressions, builds, hairstyles, facial hair, glasses,
7579
+ hats and cast, the code panel's languages, every surface's anchors and
7569
7580
  edits (code panel, whiteboard, chart), camera shots and the teaching
7570
7581
  helpers. It is generated from the code, so it can't
7571
7582
  fall behind: **a name in it is accepted, and a name not in it is rejected.**
@@ -7591,6 +7602,21 @@ Characters in a 3D scene walk the same way with `characterScript3D`
7591
7602
  (`{ do: 'walk', to: [x, z] }`, `pose`, `gag`, `face`, `place`); a rider is
7592
7603
  seated with `propRide3D` and spliced into its script with `spliceTracks`. See `docs/props.md`.
7593
7604
 
7605
+ ## Characters with a look
7606
+
7607
+ A v2 character's appearance is plain options to `character()`, never drawing
7608
+ code: `build` (`child`, `tall`, `short`…), `hair` (a style name, or
7609
+ `{ style, color, length, … }`), `facialHair`, `glasses`, `hat`, `ears: true`
7610
+ and `outfit: { shirt, trousers }`. `castMember('grandpa', 300)` gives a whole
7611
+ ready-made character to start from. Expressions come from `HUMAN_EXPRESSIONS`
7612
+ and are pose fields, as are the face marks `blush`, `tears` and `sweat` (0–1),
7613
+ so any face goes with any action or view. Hair and hats turn with the head:
7614
+ don't draw a different hairstyle per view. Put things in hands with `holding`
7615
+ (`{ right: 'mug' }`, `{ both: 'parcel' }`; the pose field `held.both` lets go),
7616
+ and for two characters touching use `meetHands('handshake', a, b)` with the
7617
+ two standing `meetingSpacing(…)` apart, never two separate clips. See
7618
+ `docs/character-appearance.md`.
7619
+
7594
7620
  ## Surfaces
7595
7621
 
7596
7622
  Code panels (`codePanel()`), whiteboards (`whiteboard()`), charts
@@ -7675,6 +7701,10 @@ Fix, render again.
7675
7701
  figure's `ground` (a house's `anchor:doorstep`).
7676
7702
  - **Angles are degrees.** Stick-figure arms: 0 hangs down, 90 straight out,
7677
7703
  180 straight up; in profile the left arm's forward is negative.
7704
+ - **A character's look is data, and names are checked.** `hair: 'bob'`, not
7705
+ a drawing in `layers`; a style name not in the catalog throws (`hair:
7706
+ unknown style`). Side names (`at: 'left'`, `arm.left`) are the character's
7707
+ own: from the front its left is on screen right.
7678
7708
  - **Aim beats at anchors, not guessed numbers**: `code.line(7)`,
7679
7709
  `code.token(3, 'var')`, `code.spot(2, 8, 4)`, `piece.home`.
7680
7710
  - **Key reactions to contact times.** Beats that touch something report
@@ -7747,7 +7777,7 @@ path for all of that:
7747
7777
  </figure>
7748
7778
 
7749
7779
  <!-- once, anywhere on the page (a site-wide footer is fine) -->
7750
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.97.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
7780
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
7751
7781
  ```
7752
7782
 
7753
7783
  Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
@@ -8822,8 +8852,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
8822
8852
  adds to the same `tinyfly` global:
8823
8853
 
8824
8854
  ```html
8825
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.97.0/cdn/tinyfly.iife.js"></script>
8826
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.97.0/cdn/tinyfly-maps.iife.js"></script>
8855
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly.iife.js"></script>
8856
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly-maps.iife.js"></script>
8827
8857
  ```
8828
8858
 
8829
8859
  It is a separate script because the offline world map it carries adds about
@@ -9026,6 +9056,292 @@ prop, or the depths to slot it between fingers.
9026
9056
 
9027
9057
  ---
9028
9058
 
9059
+ <!-- docs/character-appearance.md -->
9060
+
9061
+ # Character Appearance
9062
+
9063
+ Hair, facial hair, glasses, hats, ears, builds, a ready-made cast, held items
9064
+ and meeting hands for the v2 character (`character()` in `@algorisys/tinyfly/characters`). Every choice
9065
+ is plain data, so a character can be saved, synced, generated by a language
9066
+ model and changed one field at a time.
9067
+
9068
+ ![Character appearance sheet: the cast, every hairstyle, facial-hair style, glasses, hats and expressions](model-sheet/appearance.png)
9069
+
9070
+ The sheet is drawn by `examples/headless-video/appearance-sheet.mjs`
9071
+ (`npx tinyfly video examples/headless-video/appearance-sheet.mjs --stills stills/`).
9072
+
9073
+ ## Quick start
9074
+
9075
+ ```js
9076
+ import { character, characterTarget, drawCharacter, humanPose, castMember, HUMAN_EXPRESSIONS } from '@algorisys/tinyfly/characters'
9077
+
9078
+ // Pick everything by name…
9079
+ const maya = character({
9080
+ height: 300,
9081
+ build: 'slim',
9082
+ hair: { style: 'highPonytail', color: '#9a4426' },
9083
+ glasses: 'round',
9084
+ ears: true,
9085
+ outfit: { shirt: '#f0b43c', trousers: '#36507a' },
9086
+ })
9087
+
9088
+ // …or start from the cast and change what you like.
9089
+ const grandpa = character(castMember('grandpa', 300, { look: 'pencil' }))
9090
+
9091
+ // Faces are pose fields, so any expression goes with any action and view.
9092
+ drawCharacter(ctx, maya, humanPose({ ...HUMAN_EXPRESSIONS.embarrassed, turn: 0.5 }))
9093
+ ```
9094
+
9095
+ A plain figure (no `hair`, `facialHair`, `glasses`, `hat` or `ears`) draws
9096
+ exactly as it did before these options existed.
9097
+
9098
+ ## How it turns
9099
+
9100
+ Hair, beards and hats are not flat drawings pasted on the face. Each is a
9101
+ region on the head's surface (where the hairline runs, how far the hair stands
9102
+ off the head, how far it hangs), drawn wherever the head's `turn`, `head.turn`,
9103
+ `head.nod` and `head.tilt` put it:
9104
+
9105
+ - the part facing away is drawn before the body, so long hair hangs behind the
9106
+ shoulders seen from the front, and a bob shows beside the face;
9107
+ - the part facing the viewer is drawn over the head, so a fringe crosses the
9108
+ forehead and, from behind, the hair covers the whole head;
9109
+ - turned away (past about `turn` 1.2), the hair is drawn after the whole body,
9110
+ over an arm at the side;
9111
+ - a parting, a side ponytail or a braid stays on the character's own side
9112
+ through a turn: left and right are the character's, never mirrored.
9113
+
9114
+ Glasses, moustaches and the face marks sit on the face itself, placed like the
9115
+ eyes and mouth, so they slide round with the face and hide with it.
9116
+
9117
+ **Which part wins where two overlap** is fixed: eyes and brows draw over a
9118
+ fringe; the mouth draws over a beard, which leaves an opening for it (so every
9119
+ lip-sync shape stays readable); a moustache draws over the top of the mouth;
9120
+ glasses over the eyes; a hat over the hair. Ears are hidden by hair that
9121
+ `coversEars`.
9122
+
9123
+ ## Views
9124
+
9125
+ `turn` runs 0 → 4. The eight reference views:
9126
+
9127
+ | View | `turn` |
9128
+ |---|---|
9129
+ | Front | 0 |
9130
+ | Front 3/4 right (nose toward screen right) | 0.5 |
9131
+ | Right profile | 1 |
9132
+ | Back 3/4 right | 1.5 |
9133
+ | Back | 2 |
9134
+ | Back 3/4 left | 2.5 |
9135
+ | Left profile | 3 |
9136
+ | Front 3/4 left | 3.5 |
9137
+
9138
+ The view names describe the screen; limb and side names (`arm.left`,
9139
+ `at: 'left'`) are always the character's own.
9140
+
9141
+ ## Hair
9142
+
9143
+ `hair` takes a style name, a style with changes, or `null`:
9144
+
9145
+ ```js
9146
+ character({ hair: 'bob' })
9147
+ character({ hair: { style: 'bob', color: HAIR_COLORS.auburn, length: 1.4 } })
9148
+ character({ hair: { volume: 0.2, hairline: { front: 0.3 }, ties: [{ kind: 'bun', at: 'top' }] } })
9149
+ ```
9150
+
9151
+ Short cuts and hairlines: `bald`, `buzzCut`, `crewCut`, `short`, `sidePart`,
9152
+ `sideSwept`, `slickBack`, `quiff`, `spiky`, `undercut`, `curlyCrop`, `afro`,
9153
+ `wavyCrop`, `shortLocs`, `flatTop`, `receding`, `thinning`.
9154
+
9155
+ Medium and long hair: `pixie`, `bob`, `longBob`, `wavyBob`, `shoulderStraight`,
9156
+ `shoulderWaves`, `longStraight`, `longWaves`, `longCurls`, `longLocs`,
9157
+ `lowPonytail`, `highPonytail`, `ponytail`, `sidePonytail`, `topBun`, `lowBun`,
9158
+ `singleBraid`, `twinBraids`, `braids`.
9159
+
9160
+ Every style is the same few fields (`resolveHair(spec)` fills them all in):
9161
+
9162
+ | Field | Meaning |
9163
+ |---|---|
9164
+ | `color` | Fill colour. `HAIR_COLORS` has `black`, `brown`, `chestnut`, `auburn`, `blond`, `ginger`, `gray`, `white` |
9165
+ | `volume` | How far the hair stands off the head (head radii) |
9166
+ | `hairline` | `{ front, side, back }`: its height at the forehead, temples and nape (head radii, +up from the head's centre) |
9167
+ | `sweep` | A side fringe: the hairline drops toward the character's left (+) or right (−) |
9168
+ | `recede` | Temples pushed back |
9169
+ | `length` | Long hair: where it ends, head radii below the head's centre (`0` short; about 1.75 is the shoulders) |
9170
+ | `opening` | Long hair: half the opening left for the face, degrees |
9171
+ | `texture`, `textureAmount` | `smooth`, `spiky`, `curly`, `wavy` or `locs`, and how strong |
9172
+ | `quiff`, `flat` | Volume swept up over the forehead; a flat top's height |
9173
+ | `part`, `strands` | A parting (degrees round from the middle of the face) and the detail lines: `none`, `part`, `sweep`, `combed`, `hanging`, `thin` |
9174
+ | `fill` | `solid`, or `stipple` (close-cropped: dots on the scalp) |
9175
+ | `ties` | Ponytails, buns and braids: `{ kind: 'ponytail' \| 'bun' \| 'braid', at: 'top' \| 'high' \| 'low' \| 'left' \| 'right', length?, size? }` |
9176
+ | `coversEars` | The hair hides the ears |
9177
+
9178
+ A style stays a starting point: any style suits anyone.
9179
+
9180
+ ## Facial hair
9181
+
9182
+ `facialHair` takes a style name or `{ moustache, beard, color }` (the colour
9183
+ defaults to the hair's):
9184
+
9185
+ `cleanShaven`, `stubble`, `pencilMoustache`, `shortMoustache`, `chevron`,
9186
+ `handlebar`, `walrus`, `goatee`, `vanDyke`, `circleBeard`, `shortBoxed`,
9187
+ `fullBeard`, `longBeard`, `roundedBeard`, `pointedBeard`, `chinStrap`,
9188
+ `soulPatch`, `sideburns`, `muttonChops`, `moustacheStubble`.
9189
+
9190
+ Moustaches: `none`, `pencil`, `short`, `chevron`, `handlebar`, `walrus`.
9191
+ Beards: `none`, `stubble`, `goatee`, `soulPatch`, `chinStrap`, `circle`,
9192
+ `boxed`, `full`, `rounded`, `pointed`, `long`, `sideburns`, `muttonChops`.
9193
+
9194
+ ## Glasses, hats and ears
9195
+
9196
+ - `glasses`: `round`, `square`, `sunglasses` (drawn in the ink; the near arm
9197
+ runs back to the ear in profile).
9198
+ - `hat`: `cap`, `beanie`, `hardHat`, `sunHat`, `bowler`, or `{ style, color }`.
9199
+ The crown sits over the hair; hair below the brim still shows.
9200
+ - `ears: true` adds ears: they stick out past the head from the front and
9201
+ behind, and sit on the head with a curl when turned toward the viewer.
9202
+
9203
+ ## Builds
9204
+
9205
+ `build` sets proportions; `height` sets how tall the character stands. Any
9206
+ field can still be set on its own (`headSize`, `shoulderWidth`, `hipWidth`,
9207
+ `legLength`, `armLength`).
9208
+
9209
+ | Build | What changes |
9210
+ |---|---|
9211
+ | `standard` | Nothing |
9212
+ | `slim` | Smaller head, narrower |
9213
+ | `tall` | Smaller head, longer legs and arms |
9214
+ | `short` | Larger head, shorter legs, a little wider |
9215
+ | `broad`, `curvy`, `stocky` | Shoulder and hip widths (stocky: a larger head) |
9216
+ | `kid`, `child`, `toddler` | Larger head, shorter limbs |
9217
+
9218
+ Age, posture and accessories are separate choices: a child build is only
9219
+ proportions, and an older character is shown by hair and glasses, never by a
9220
+ stoop unless one is posed. The same poses, gaits and actions work on every
9221
+ build; `humanGaitStrideLength(gait, height, stride, legLength)` gives a build's
9222
+ stride so its feet stay planted.
9223
+
9224
+ ## Clothes
9225
+
9226
+ `outfit` dresses the character as data (any `layers` are drawn over it):
9227
+
9228
+ ```js
9229
+ character({ outfit: { shirt: '#7a8fa6', trousers: '#3b3f46', sleeves: 'long', collar: true, tie: '#2b4f8c' } })
9230
+ character({ outfit: { bottom: 'skirt' } })
9231
+ character({ outfit: { over: 'labCoat' } })
9232
+ ```
9233
+
9234
+ | Field | Choices |
9235
+ |---|---|
9236
+ | `shirt`, `trousers` | Colours (the trousers' colour also colours shorts and a skirt) |
9237
+ | `sleeves` | `short` (default), `long`, `none` |
9238
+ | `bottom` | `trousers` (default), `shorts`, `skirt` |
9239
+ | `collar` | `true` for a shirt collar |
9240
+ | `tie` | A colour, for a tie down the front |
9241
+ | `over`, `overColor` | `apron` or `labCoat`, and its colour |
9242
+
9243
+ The front details (collar, tie, apron, the coat's opening) show from the
9244
+ front and turn away with the body; from behind an apron shows its ties.
9245
+ `basicOutfit(options)` gives the same clothes as layers.
9246
+
9247
+ ## The cast
9248
+
9249
+ `castMember(name, height, changes?)` returns character options for a recurring
9250
+ cast member at an adult `height` (each stands at their own scale of it). The
9251
+ family: `boy`, `girl`, `youngMan`, `youngWoman`, `man`, `woman`, `grandpa`,
9252
+ `grandma`; at work (from the occupations sheet): `doctor`, `cook`, `builder`,
9253
+ `courier`, `teacher`, `farmer`. `CHARACTER_CAST` has each one's `label`,
9254
+ `group` (`family` or `work`), `scale` and `options`.
9255
+
9256
+ ```js
9257
+ const family = ['man', 'woman', 'girl', 'grandma'].map((name) => character(castMember(name, 280)))
9258
+ ```
9259
+
9260
+ ## Expressions and face marks
9261
+
9262
+ `HUMAN_EXPRESSIONS` sets every face field, so applying one replaces the whole
9263
+ face, and any two blend. Besides the stick figure's faces (`neutral`, `happy`,
9264
+ `joyful`, `sad`, `crying`, `surprised`, `shocked`, `angry`, `furious`,
9265
+ `worried`, `scared`, `confused`, `skeptical`, `thinking`, `sleepy`,
9266
+ `disgusted`, `smug`, `wink`) there are `laughing`, `afraid`, `bored`, `tired`,
9267
+ `embarrassed`, `proud`, `determined`, `affectionate`, `hurt`, `suspicious`,
9268
+ `relieved` and `excited`.
9269
+
9270
+ Three face marks fade in from 0 to 1 and are pose fields like any other (so
9271
+ tracks animate them): `blush` (rosy cheeks, with hatch lines past 0.5),
9272
+ `tears` (a drop under each eye, running down past 0.6) and `sweat` (a bead at
9273
+ the temple).
9274
+
9275
+ ## Everyday actions, held items and meeting hands
9276
+
9277
+ The motion and everyday-life sheets add poses to `HUMAN_POSES`: `sleep`,
9278
+ `stretch`, `sitFloor` (cross-legged), `carry`, `lift`, `push`, `pull`,
9279
+ `drink`, `phone`, `read` and `type` (seated, for a desk). Like every pose they
9280
+ blend, turn and take any face.
9281
+
9282
+ **Holding things.** `holding` puts an item in a hand, as data:
9283
+
9284
+ ```js
9285
+ character({ holding: { right: 'mug' } }) // drink
9286
+ character({ holding: { left: 'bag', right: 'bag' } }) // carry
9287
+ character({ holding: { both: { item: 'parcel', color: '#c9a06a' } } })
9288
+ ```
9289
+
9290
+ Items: `mug`, `phone`, `briefcase`, `bag`, `umbrella` and `broom` (one hand,
9291
+ `left` or `right`), `book` (one hand or `both`) and `parcel` (`both`). Each is
9292
+ drawn at the hand's grip, so it follows the hand through any pose, gait or
9293
+ turn, and sorts with that arm (a mug goes behind the body with the far arm).
9294
+ An umbrella's canopy sits just over the head. `handGrip(joints, side)` gives
9295
+ the grip point and the forearm's direction for drawing anything else in a
9296
+ hand.
9297
+
9298
+ Whether an item shows is a pose field, `held.left`, `held.right` or
9299
+ `held.both` (1 by default; below 0.5 it has been let go), so a track lets go
9300
+ of it at a moment: a parcel handed over is the giver's `held.both` going to 0
9301
+ as the taker's goes to 1.
9302
+
9303
+ **Meeting hands.** `meetHands(kind, a, b, options?)` poses two characters so
9304
+ their hands meet at one point, rather than playing two clips and hoping they
9305
+ line up: `handshake`, `highFive`, `fistBump` and `handOver` (four hands round
9306
+ one parcel). Each partner is `{ character, x, pose? }` on the same ground
9307
+ line; the one on the left turns to face right and the other left,
9308
+ three-quarters on (`view: 'side'` for profiles). Stand them
9309
+ `meetingSpacing(kind, a, b)` apart; the result's `reached` says whether both
9310
+ got there.
9311
+
9312
+ ```js
9313
+ const gap = meetingSpacing('handOver', courier, neighbour)
9314
+ const give = meetHands('handOver', { character: courier, x: 300 }, { character: neighbour, x: 300 + gap })
9315
+ // give.a and give.b are poses to key; give.point is where the parcel is.
9316
+ ```
9317
+
9318
+ ## In the editor
9319
+
9320
+ Select a 🧍 Character and open **Head** in the properties: **Cast** dresses it
9321
+ as a cast member (build, hair, facial hair, glasses and clothes in one step),
9322
+ then **Hair**, **Hair colour**, **Facial hair**, **Glasses**, **Hat** and
9323
+ **Ears** change one thing at a time; **Right hand**, **Left hand** and **Both
9324
+ hands** put an item in them. **Build** lists the builds, with **Legs** and
9325
+ **Arms** sliders. The new expressions and everyday poses are in the **Face**
9326
+ and **Body** lists. All of it is saved as plain fields on the element and
9327
+ exported to video and GIF.
9328
+
9329
+ ## In the gallery
9330
+
9331
+ - **Cast Turnaround**: the whole cast turning through all eight views together.
9332
+ - **Hair, Beards & Hats**: pick a style, colour, facial hair, glasses, hat and
9333
+ face, and see the character turning and in all eight views at once.
9334
+ - **Hand Over**: a courier walks up and hands a parcel over (`meetHands`,
9335
+ `holding`, `held.both`).
9336
+
9337
+ ## Determinism
9338
+
9339
+ Outlines are traced from the same numbers every time (no randomness, no state
9340
+ between frames), so a frame at a given time always draws the same, and the
9341
+ pencil look's boil stays seeded as before.
9342
+
9343
+ ---
9344
+
9029
9345
  <!-- docs/acting.md -->
9030
9346
 
9031
9347
  # Cartoon Acting
@@ -12931,7 +13247,7 @@ magnet.addEventListener('pointerleave', () => {
12931
13247
 
12932
13248
  <!-- capabilities: generated from the library -->
12933
13249
 
12934
- # tinyfly capabilities (v0.97.0)
13250
+ # tinyfly capabilities (v0.98.0)
12935
13251
 
12936
13252
  Generated from the library itself: every name below is accepted, and names not listed are rejected (beat scripts, code panels and `checkTracks` say which name was probably meant).
12937
13253
 
@@ -13181,17 +13497,29 @@ Prop beat fields: `do`, `at`, `for`, `to`, `toward`, `speed`, `open`, `on`, `hei
13181
13497
  | `house()` | building | `door` (open), `lights` (on), `shake`, `smoke` | `door`, `lights` | door, doorstep, ridge, chimney |
13182
13498
  | `helicopter()` | aircraft | `takeOff`, `fly` (to), `hover`, `land` | `rotor`, `blur` | seat, door, rotor, skids, hook |
13183
13499
  | `airplane()` | aircraft | `takeOff` (to), `fly` (to), `loop`, `land` (to) | `rotor`, `blur` | seat, nose, tail, wingtip |
13184
- | `horse()` | animal | `walk` (to), `trot` (to), `canter` (to), `gallop` (to), `neigh`, `sit`, `jump`, `nod`, `swish`, `graze`, `rear`, `buck` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front, hitch, saddle |
13185
- | `dog()` | animal | `walk` (to), `trot` (to), `run` (to), `gallop` (to), `bark`, `sit`, `jump`, `nod`, `swish`, `wag`, `sniff` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front, leash |
13186
- | `cat()` | animal | `walk` (to), `trot` (to), `run` (to), `gallop` (to), `meow`, `sit`, `jump`, `nod`, `swish`, `arch`, `pounce` (to) | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front |
13187
- | `cow()` | animal | `walk` (to), `trot` (to), `moo`, `sit`, `jump`, `nod`, `swish`, `graze` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front |
13188
- | `songbird()` | bird | `hop` (to), `walk` (to), `peck`, `flap`, `tweet`, `fly` (to), `land` | `spread`, `flap`, `wingbeat`, `flapping`, `peck`, `step`, `stepping`, `leg.left`, `leg.right` | beak, head, back, feet |
13189
- | `crow()` | bird | `hop` (to), `walk` (to), `peck`, `flap`, `caw`, `fly` (to), `land` | `spread`, `flap`, `wingbeat`, `flapping`, `peck`, `step`, `stepping`, `leg.left`, `leg.right` | beak, head, back, feet |
13500
+ | `horse()` | animal | `walk` (to), `trot` (to), `canter` (to), `gallop` (to), `neigh`, `sit`, `lie`, `jump`, `nod`, `swish`, `graze`, `rear`, `buck` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front, hitch, saddle |
13501
+ | `dog()` | animal | `walk` (to), `trot` (to), `run` (to), `gallop` (to), `bark`, `sit`, `lie`, `jump`, `nod`, `swish`, `wag`, `sniff` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front, leash |
13502
+ | `cat()` | animal | `walk` (to), `trot` (to), `run` (to), `gallop` (to), `meow`, `sit`, `lie`, `jump`, `nod`, `swish`, `arch`, `pounce` (to) | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front |
13503
+ | `cow()` | animal | `walk` (to), `trot` (to), `moo`, `sit`, `lie`, `jump`, `nod`, `swish`, `graze` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front |
13504
+ | `songbird()` | bird | `hop` (to), `walk` (to), `peck`, `flap`, `tweet`, `fly` (to), `glide` (to), `land` | `spread`, `flap`, `wingbeat`, `flapping`, `peck`, `step`, `stepping`, `leg.left`, `leg.right` | beak, head, back, feet |
13505
+ | `crow()` | bird | `hop` (to), `walk` (to), `peck`, `flap`, `caw`, `fly` (to), `glide` (to), `land` | `spread`, `flap`, `wingbeat`, `flapping`, `peck`, `step`, `stepping`, `leg.left`, `leg.right` | beak, head, back, feet |
13190
13506
  | `chicken()` | bird | `hop` (to), `walk` (to), `peck`, `flap`, `cluck`, `flutter` | `spread`, `flap`, `wingbeat`, `flapping`, `peck`, `step`, `stepping`, `leg.left`, `leg.right` | beak, head, back, feet |
13191
13507
 
13192
13508
  ## Character (v2 human)
13193
13509
 
13194
- Poses: `rest`, `wave`, `cheer`, `point`, `handsOnHips`, `think`, `shrug`, `sit`, `kneel`, `crouch`, `crawl`, `lieDown`. Expressions: `neutral`, `happy`, `joyful`, `sad`, `crying`, `surprised`, `shocked`, `angry`, `furious`, `worried`, `scared`, `confused`, `skeptical`, `thinking`, `sleepy`, `disgusted`, `smug`, `wink`. Gags: `take`, `doubleTake`, `windUp`, `land`, `tremble`, `deflate`.
13510
+ Poses: `rest`, `wave`, `cheer`, `point`, `handsOnHips`, `think`, `shrug`, `sit`, `kneel`, `crouch`, `crawl`, `lieDown`, `sleep`, `stretch`, `sitFloor`, `carry`, `lift`, `push`, `pull`, `drink`, `phone`, `read`, `type`. Expressions: `neutral`, `happy`, `joyful`, `sad`, `crying`, `surprised`, `shocked`, `angry`, `furious`, `worried`, `scared`, `confused`, `skeptical`, `thinking`, `sleepy`, `disgusted`, `smug`, `wink`, `laughing`, `afraid`, `bored`, `tired`, `embarrassed`, `proud`, `determined`, `affectionate`, `hurt`, `suspicious`, `relieved`, `excited`. Gags: `take`, `doubleTake`, `windUp`, `land`, `tremble`, `deflate`.
13511
+
13512
+ Appearance options of `character({ … })`, all plain data that turns with the head (see docs/character-appearance.md):
13513
+
13514
+ - `build`: `standard`, `slim`, `tall`, `short`, `broad`, `curvy`, `stocky`, `kid`, `child`, `toddler`
13515
+ - `hair`: `bald`, `buzzCut`, `crewCut`, `short`, `sidePart`, `sideSwept`, `slickBack`, `quiff`, `spiky`, `undercut`, `curlyCrop`, `afro`, `wavyCrop`, `shortLocs`, `flatTop`, `receding`, `thinning`, `pixie`, `bob`, `longBob`, `wavyBob`, `shoulderStraight`, `shoulderWaves`, `longStraight`, `longWaves`, `longCurls`, `longLocs`, `lowPonytail`, `highPonytail`, `ponytail`, `sidePonytail`, `topBun`, `lowBun`, `singleBraid`, `twinBraids`, `braids` (colours: `black`, `brown`, `chestnut`, `auburn`, `blond`, `ginger`, `gray`, `white` in `HAIR_COLORS`)
13516
+ - `facialHair`: `cleanShaven`, `stubble`, `pencilMoustache`, `shortMoustache`, `chevron`, `handlebar`, `walrus`, `goatee`, `vanDyke`, `circleBeard`, `shortBoxed`, `fullBeard`, `longBeard`, `roundedBeard`, `pointedBeard`, `chinStrap`, `soulPatch`, `sideburns`, `muttonChops`, `moustacheStubble`
13517
+ - `glasses`: `round`, `square`, `sunglasses`; `hat`: `cap`, `beanie`, `hardHat`, `sunHat`, `bowler`; `ears: true`
13518
+ - `outfit`: `{ shirt, trousers, sleeves: short | long | none, bottom: trousers | shorts | skirt, collar, tie: colour, over: apron | labCoat, overColor }`
13519
+ - `castMember(name, height)`: `boy`, `girl`, `youngMan`, `youngWoman`, `man`, `woman`, `grandpa`, `grandma`, `doctor`, `cook`, `builder`, `courier`, `teacher`, `farmer`
13520
+ - Face marks (pose fields, 0–1): `blush`, `tears`, `sweat`
13521
+ - `holding`: `mug` (left or right), `phone` (left or right), `book` (one hand or both), `bag` (left or right), `briefcase` (left or right), `umbrella` (left or right), `broom` (left or right), `parcel` (both); pose fields `held.left`, `held.right`, `held.both` (below 0.5 lets go); `handGrip(joints, side)`
13522
+ - `meetHands(kind, a, b)` (stand them `meetingSpacing(kind, a, b)` apart): `handshake`, `highFive`, `fistBump`, `handOver`
13195
13523
 
13196
13524
  ## Code panel
13197
13525
 
package/llms.txt CHANGED
@@ -13,46 +13,47 @@ Key facts:
13
13
  - For language models: read the capability catalog first (`npx @algorisys/tinyfly capabilities`, or the end of llms-full.txt). It is generated from the library, so every name in it (poses, expressions, gags, gaits, beat actions, canvas properties, code-panel edits) is accepted, and names not in it are rejected with the name probably meant. Check beat scripts with `npx @algorisys/tinyfly check beats.json`, tracks with `checkTracks(tracks, targets)`, and ask any target what it animates with `describeTarget(target)`. The npm package ships `docs/`, `llms.txt`, `llms-full.txt` and an agent skill (`skills/tinyfly/SKILL.md`); `docs/llm-guide.md` describes the workflow.
14
14
  - Source: https://github.com/algorisys-oss/tinyfly. License: MIT.
15
15
 
16
- All documentation and the interactive course in a single file: [llms-full.txt](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/llms-full.txt)
16
+ All documentation and the interactive course in a single file: [llms-full.txt](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/llms-full.txt)
17
17
 
18
18
  ## Start here
19
19
 
20
- - [Getting Started](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/getting-started.md): What tinyfly is, making a first animation in the editor, and using it from code, a script tag or the CDN.
21
- - [GSAP Compatibility](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/gsap-compat.md): The GSAP-style API (`live.to`, `tf.timeline`): supported vars, motion paths, morphSVG, text, inertia, Draggable, Flip, and where it differs from GSAP.
22
- - [Code Examples](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/examples.md): Recipes with the engine API: fades, loops, colour and bezier easing, loading JSON, canvas and SVG rendering, multi-scene sequences, motion paths and script-tag embeds.
23
- - [Building Animations with an LLM](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/llm-guide.md): For assistants and the people setting them up: read the capability catalog (`tinyfly capabilities`), ask targets what they animate (`describeTarget`), check beats and tracks with did-you-mean errors (`tinyfly check`, `checkTracks`), render stills to look at, and the agent skill shipped in the package.
20
+ - [Getting Started](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/getting-started.md): What tinyfly is, making a first animation in the editor, and using it from code, a script tag or the CDN.
21
+ - [GSAP Compatibility](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/gsap-compat.md): The GSAP-style API (`live.to`, `tf.timeline`): supported vars, motion paths, morphSVG, text, inertia, Draggable, Flip, and where it differs from GSAP.
22
+ - [Code Examples](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/examples.md): Recipes with the engine API: fades, loops, colour and bezier easing, loading JSON, canvas and SVG rendering, multi-scene sequences, motion paths and script-tag embeds.
23
+ - [Building Animations with an LLM](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/llm-guide.md): For assistants and the people setting them up: read the capability catalog (`tinyfly capabilities`), ask targets what they animate (`describeTarget`), check beats and tracks with did-you-mean errors (`tinyfly check`, `checkTracks`), render stills to look at, and the agent skill shipped in the package.
24
24
 
25
25
  ## Reference
26
26
 
27
- - [API Reference](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/api-reference.md): Every public engine, player and adapter API: Timeline, tracks, keyframes, easing, drivers, serialization and exports.
28
- - [File Format](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/file-format.md): The JSON animation format: timelines, every track kind, keyframes, easing and the project file — for generating or consuming animations.
27
+ - [API Reference](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/api-reference.md): Every public engine, player and adapter API: Timeline, tracks, keyframes, easing, drivers, serialization and exports.
28
+ - [File Format](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/file-format.md): The JSON animation format: timelines, every track kind, keyframes, easing and the project file — for generating or consuming animations.
29
29
 
30
30
  ## Editor features
31
31
 
32
- - [Editor Guide](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/editor-guide.md): Every panel and feature of the visual editor, from elements and keyframes to text and inertia tracks, preview and export.
33
- - [Shape Morphing](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/shape-morph.md): Tweening one path into another, including shapes with different point counts and several subpaths.
34
- - [Pen Tool](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/pen-tool.md): Drawing custom paths point by point with straight segments and bezier curves.
35
- - [Polygons & Stars](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/polygon-star.md): Parametric polygon and star shapes that stay editable while animating like any path.
36
- - [Grid & Snapping](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/grid-and-snapping.md): The grid overlay, snapping to grid, elements and artboard centre, and alignment guides.
37
- - [Onion Skinning](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/onion-skinning.md): Ghost frames before and after the playhead for judging arcs and easing.
38
- - [Sprite-sheet Export](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/sprite-sheet-export.md): Exporting frames as a PNG grid plus JSON metadata for game engines and canvas players.
32
+ - [Editor Guide](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/editor-guide.md): Every panel and feature of the visual editor, from elements and keyframes to text and inertia tracks, preview and export.
33
+ - [Shape Morphing](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/shape-morph.md): Tweening one path into another, including shapes with different point counts and several subpaths.
34
+ - [Pen Tool](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/pen-tool.md): Drawing custom paths point by point with straight segments and bezier curves.
35
+ - [Polygons & Stars](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/polygon-star.md): Parametric polygon and star shapes that stay editable while animating like any path.
36
+ - [Grid & Snapping](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/grid-and-snapping.md): The grid overlay, snapping to grid, elements and artboard centre, and alignment guides.
37
+ - [Onion Skinning](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/onion-skinning.md): Ghost frames before and after the playhead for judging arcs and easing.
38
+ - [Sprite-sheet Export](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/sprite-sheet-export.md): Exporting frames as a PNG grid plus JSON metadata for game engines and canvas players.
39
39
 
40
40
  ## Guides
41
41
 
42
- - [Scroll Animation](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/scroll-animation.md): Scroll-driven and play-when-visible animation with ScrollDriver and VisibilityDriver.
43
- - [Props: Everyday Objects with Behaviours](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/props.md): Cars, trucks, buses, tractors, carts, train carriages, bikes, motorbikes, trees, houses, a helicopter and a plane: 3D rigs drawn with the characters’ pens (clean, pencil) that turn toward the camera, with beats acted through the 12 principles (anticipation, squash and stretch, follow-through, an exaggeration dial), wheels that roll exactly, effects, and figures riding them.
44
- - [Teaching Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/teaching.md): Step-through explanatory figures: markers, captions in several languages, the teaching player, step controls, one-script declarative embeds, tinyfly/teach diagram primitives, and validate / render for build pipelines.
45
- - [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/video-rendering.md): Rendering a scene to MP4 without a browser: `tinyfly video`, custom canvas targets drawn by code, timing from narration and recorded voice-over, the stick-figure character, SRT/WebVTT captions, stills, porting Cairo scripts, and a benchmark against pycairo.
46
- - [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/maps.md): Maps that animate: a camera that flies in to a city, pins that drop in, routes that draw themselves while a marker travels them, on OpenStreetMap tiles or an offline world outline (also in pencil), in the browser and in headless video.
47
- - [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/cartoon-hands.md): A hand you can pose: a palm and five fingers in 3D, posed by numbers (curls, thumb, spread, wrist turn), ready-made shapes from a fist to a pencil grip, left and right, four or five fingers, in clean, pencil and silhouette looks; the animator's hand and character gloves are built on it.
48
- - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/acting.md): actTracks(): the same key poses, acted: anticipation, overshoot and settle, overlapping joints, eyes that lead and blink, moving holds and jump squash, in full, snappy or limited styles; gags as data (take, double take, wind-up); a line of action (bend); gaits with personality; lip-sync from text (Latin and Devanagari); beat scripts compiled to acted tracks; your own actions (defineAction), gaits (defineGait) and personas (persona()); acting on code (codePanel lines and words as anchors: leap onto a line, point at it, swipe it away wiped, knocked off or blurred; grab, throw, kick, carry and drop words, push them along their line, write new text in by hand; ride a line as gaps close); camera shots (push in, cut, shake, follow); the cartoon zip; speed lines, dust puffs and impact stars; drawing on twos (a timeline setting); acting, gags, walks and lines in the editor.
49
- - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/dance.md): The stick figure dances disco, hip hop, breaking, jazz, K-pop, Bollywood, Bhangra, Bharatanatyam (with mudras), the Charleston, tap (with tap sounds) and popping (side glide, moonwalk), and does front, back, layout and scissor flips, cartwheels, handsprings, split leaps and full splits: wrists, ankles, turn-out, spin and rise as pose fields; moves keyed in beats; styles, grooves and routines as plain data.
50
- - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/scene-3d.md): @algorisys/tinyfly/scene-3d: cameras, lights and meshes as JSON, in metres, animated by tracks at <scene>/<object> (cuts with activeCamera), drawn on a 2D canvas with flat, smooth or toon shading, ink outlines and fog, in browsers, Workers and Node (MP4 with tinyfly video); v2 characters in scenes, dancing, in their pen looks or as solid figures, seen by any camera.
51
- - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/3d-rotations.md): CSS-style 3D for flat elements in every renderer (rotateX, rotateY, z, perspective, backface visibility; true perspective on Canvas and WebGL, matching CSS within a pixel), one documented transform order, the editor's 3D fields; smooth quaternion rotations with interpolation: "slerp"; the vec3, quat and mat4 helpers; format version 2.
52
- - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/extending.md): Writing a render adapter, animating any object with live and the ticker, custom and parametric eases, stagger offsets, adding a track kind, and contributing gallery examples.
53
- - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
42
+ - [Scroll Animation](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/scroll-animation.md): Scroll-driven and play-when-visible animation with ScrollDriver and VisibilityDriver.
43
+ - [Props: Everyday Objects with Behaviours](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/props.md): Cars, trucks, buses, tractors, carts, train carriages, bikes, motorbikes, trees, houses, a helicopter and a plane: 3D rigs drawn with the characters’ pens (clean, pencil) that turn toward the camera, with beats acted through the 12 principles (anticipation, squash and stretch, follow-through, an exaggeration dial), wheels that roll exactly, effects, and figures riding them.
44
+ - [Teaching Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/teaching.md): Step-through explanatory figures: markers, captions in several languages, the teaching player, step controls, one-script declarative embeds, tinyfly/teach diagram primitives, and validate / render for build pipelines.
45
+ - [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/video-rendering.md): Rendering a scene to MP4 without a browser: `tinyfly video`, custom canvas targets drawn by code, timing from narration and recorded voice-over, the stick-figure character, SRT/WebVTT captions, stills, porting Cairo scripts, and a benchmark against pycairo.
46
+ - [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/maps.md): Maps that animate: a camera that flies in to a city, pins that drop in, routes that draw themselves while a marker travels them, on OpenStreetMap tiles or an offline world outline (also in pencil), in the browser and in headless video.
47
+ - [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/cartoon-hands.md): A hand you can pose: a palm and five fingers in 3D, posed by numbers (curls, thumb, spread, wrist turn), ready-made shapes from a fist to a pencil grip, left and right, four or five fingers, in clean, pencil and silhouette looks; the animator's hand and character gloves are built on it.
48
+ - [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/character-appearance.md): Hair (34 styles), facial hair (20), glasses, hats and ears for the v2 character as plain data on the head, so they turn with it through all eight views; builds (child, tall, short…), a recurring cast (castMember), expressions with blush, tears and sweat, everyday poses, held items (mug, phone, bags, umbrella, parcel) and two characters’ hands meeting (meetHands: handshake, high five, hand-over).
49
+ - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/acting.md): actTracks(): the same key poses, acted: anticipation, overshoot and settle, overlapping joints, eyes that lead and blink, moving holds and jump squash, in full, snappy or limited styles; gags as data (take, double take, wind-up); a line of action (bend); gaits with personality; lip-sync from text (Latin and Devanagari); beat scripts compiled to acted tracks; your own actions (defineAction), gaits (defineGait) and personas (persona()); acting on code (codePanel lines and words as anchors: leap onto a line, point at it, swipe it away wiped, knocked off or blurred; grab, throw, kick, carry and drop words, push them along their line, write new text in by hand; ride a line as gaps close); camera shots (push in, cut, shake, follow); the cartoon zip; speed lines, dust puffs and impact stars; drawing on twos (a timeline setting); acting, gags, walks and lines in the editor.
50
+ - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/dance.md): The stick figure dances disco, hip hop, breaking, jazz, K-pop, Bollywood, Bhangra, Bharatanatyam (with mudras), the Charleston, tap (with tap sounds) and popping (side glide, moonwalk), and does front, back, layout and scissor flips, cartwheels, handsprings, split leaps and full splits: wrists, ankles, turn-out, spin and rise as pose fields; moves keyed in beats; styles, grooves and routines as plain data.
51
+ - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/scene-3d.md): @algorisys/tinyfly/scene-3d: cameras, lights and meshes as JSON, in metres, animated by tracks at <scene>/<object> (cuts with activeCamera), drawn on a 2D canvas with flat, smooth or toon shading, ink outlines and fog, in browsers, Workers and Node (MP4 with tinyfly video); v2 characters in scenes, dancing, in their pen looks or as solid figures, seen by any camera.
52
+ - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/3d-rotations.md): CSS-style 3D for flat elements in every renderer (rotateX, rotateY, z, perspective, backface visibility; true perspective on Canvas and WebGL, matching CSS within a pixel), one documented transform order, the editor's 3D fields; smooth quaternion rotations with interpolation: "slerp"; the vec3, quat and mat4 helpers; format version 2.
53
+ - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/extending.md): Writing a render adapter, animating any object with live and the ticker, custom and parametric eases, stagger offsets, adding a track kind, and contributing gallery examples.
54
+ - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
54
55
 
55
56
  ## Optional
56
57
 
57
- - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/README.md): Feature overview, project layout and development setup.
58
- - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.97.0/release-notes/README.md): What changed in each version.
58
+ - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/README.md): Feature overview, project layout and development setup.
59
+ - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/release-notes/README.md): What changed in each version.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algorisys/tinyfly",
3
- "version": "0.97.0",
3
+ "version": "0.98.0",
4
4
  "type": "module",
5
5
  "description": "Lightweight, API-driven animation engine and editor. The engine is framework-agnostic and runs in browsers, Web Workers, and Node.",
6
6
  "license": "MIT",