@algorisys/tinyfly 0.120.0 → 0.122.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/llms-full.txt CHANGED
@@ -591,7 +591,7 @@ with a GSAP-style call (durations are in seconds here):
591
591
  ```html
592
592
  <div class="box" style="width:60px;height:60px;background:#4a9eff"></div>
593
593
 
594
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.120.0/cdn/tinyfly.iife.js"></script>
594
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.122.0/cdn/tinyfly.iife.js"></script>
595
595
  <script>
596
596
  tinyfly.to('.box', { x: 200, duration: 1 })
597
597
  </script>
@@ -799,7 +799,7 @@ Without a build step, the all-in-one bundle exposes the same functions on a
799
799
  global — `tinyfly.to()`, `tinyfly.timeline()` and so on:
800
800
 
801
801
  ```html
802
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.120.0/cdn/tinyfly.iife.js"></script>
802
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.122.0/cdn/tinyfly.iife.js"></script>
803
803
  <script>
804
804
  tinyfly.to('.box', { x: 200, duration: 1 })
805
805
  </script>
@@ -2714,7 +2714,7 @@ For simple website embedding without a build system.
2714
2714
  </html>
2715
2715
  ```
2716
2716
 
2717
- 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.120.0/cdn/tinyfly-player.iife.js`.
2717
+ 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.122.0/cdn/tinyfly-player.iife.js`.
2718
2718
 
2719
2719
  ---
2720
2720
 
@@ -7068,7 +7068,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
7068
7068
  **Steps to embed:**
7069
7069
  1. Build the player: `npm run build:player`
7070
7070
  2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
7071
- `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.120.0/cdn/tinyfly-player.iife.js`
7071
+ `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.122.0/cdn/tinyfly-player.iife.js`
7072
7072
  instead; see [Deployment](DEPLOYMENT.md))
7073
7073
  3. Copy the generated code into your HTML
7074
7074
  4. Adjust the script `src` path if needed
@@ -8438,6 +8438,12 @@ from. The eight presets in `ANIME_CAST` (`animeBoy`, `animeGirl`,
8438
8438
  Use `face: { style: 'anime', iris: '#4b7fce', lashes: true, ageLines: 0.6 }`
8439
8439
  for coloured expressive eyes and optional creases; this is a face style,
8440
8440
  not a `look` value. It uses the same expressions, blink, gaze and turn fields.
8441
+ White outlined stick figures are `figure: 'bean'` (presets `beanMan`, `beanWoman`,
8442
+ `beanKid`, `beanBoss`, `beanDetective`, `beanStick` in `BEAN_CAST`): seamless outlined noodle limbs or bare
8443
+ lines (`bean: { limbs: 'tube' | 'line' }`), a shaped body (`bean.torso` fullness), big oval eyes
8444
+ (`face.style: 'oval'`, usable on any figure), `hands: 'mitten'` and cartoon shoes; colours from
8445
+ `bean: { shirt, sleeves, trousers, shoes }` or an `outfit`; detective gear `bean: { coat, fedora, shades: true }`
8446
+ (aviators replace the eyes, brows still show); `halo` gives line limbs a pale edge. A bean is always drawn clean.
8441
8447
  The `look` values are `clean`, `pencil`, `silhouette` and `illustrated`
8442
8448
  (inked and painted, tuned with `illustrated: { light, weight, taper, shadow, highlight }`).
8443
8449
  Age is proportions, hair, creases and clothes, never a stoop; a `cane` in a hand or
@@ -8501,7 +8507,8 @@ lesson page (`<figure data-tinyfly-math>`), an explorable and a video
8501
8507
  `contours`, `heatmap` (`softmax: true` for attention), `classifier` (`epochs`), `kmeans`
8502
8508
  (`iteration`); all seeded. For a presenter, `mathSurface(figure, { x, y })` gives the
8503
8509
  figure anchors (`tip:basis.i`, `item:ID`, `term:ID:TEXT`, `node:GRAPH:NODE`) and edits
8504
- (`set` with `value`, `step` with `to`, `drawOn`) for `surfaceScript` beats. See `docs/math.md`.
8510
+ (`set` with `value`, `step` with `to`, `drawOn`) for `surfaceScript` beats. A 3D loss
8511
+ surface: `lossSurface3D({ expr, start, rate })` returns scene-3d JSON and tracks. See `docs/math.md`.
8505
8512
 
8506
8513
  ## Your own behaviours
8507
8514
 
@@ -8688,7 +8695,7 @@ path for all of that:
8688
8695
  </figure>
8689
8696
 
8690
8697
  <!-- once, anywhere on the page (a site-wide footer is fine) -->
8691
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.120.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
8698
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.122.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
8692
8699
  ```
8693
8700
 
8694
8701
  Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
@@ -9158,6 +9165,26 @@ every time:
9158
9165
  pre-mixed with the background, so neighbours never leave seams. Contours are
9159
9166
  traced by marching squares and joined into whole curves.
9160
9167
 
9168
+ #### A loss surface in 3D
9169
+
9170
+ `lossSurface3D({ expr, start, rate, momentum?, steps?, region?, height?, orbit? })`
9171
+ builds f(x, y) as a 3D scene for `@algorisys/tinyfly/scene-3d`. You get a mesh
9172
+ coloured by height, a ball rolling down the exact-gradient path, the path
9173
+ appearing behind it, and a slow camera orbit. It returns plain data:
9174
+ `{ scene, tracks, duration, path, losses }`. The maths module does not import
9175
+ scene-3d.
9176
+
9177
+ ```js
9178
+ import { lossSurface3D } from '@algorisys/tinyfly/math'
9179
+ import { loadScene3D, drawScene3D } from '@algorisys/tinyfly/scene-3d'
9180
+ import { deserializeTimeline } from '@algorisys/tinyfly'
9181
+
9182
+ const loss = lossSurface3D({ expr: '(x^2 + 4 y^2) / 4 + sin(1.5 x) / 2', start: [-2.6, 2.2], rate: 0.18, momentum: 0.6 })
9183
+ const scene = loadScene3D(loss.scene)
9184
+ const timeline = deserializeTimeline({ id: 'loss', config: { duration: loss.duration }, tracks: loss.tracks })
9185
+ // each frame: drawScene3D(ctx, scene, timeline.getStateAtTime(t).values, { width, height })
9186
+ ```
9187
+
9161
9188
  The pieces are also available on their own: `seededNetwork`, `forward`,
9162
9189
  `descentPath`, `trainLogistic`, `kmeansHistory`, `contourLines`, `colorAt`.
9163
9190
 
@@ -9254,7 +9281,7 @@ lesson's step options (`duration`, `easing`, `delay`).
9254
9281
  <figcaption>The determinant is the area of the unit square after the map.</figcaption>
9255
9282
  </figure>
9256
9283
 
9257
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.120.0/cdn/tinyfly-math.iife.js" data-tinyfly-auto></script>
9284
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.122.0/cdn/tinyfly-math.iife.js" data-tinyfly-auto></script>
9258
9285
  ```
9259
9286
 
9260
9287
  The figure draws itself into an SVG and redraws from the timeline whenever the
@@ -9425,15 +9452,17 @@ identity unless `matrix` is given.
9425
9452
  **Derivative**, **Riemann Sums**, **Taylor Series**, **Galton Board**, **Central Limit
9426
9453
  Theorem**, **Monte Carlo π**, **Bayes: a Positive Test**, **Graph Search**, **Recursion
9427
9454
  Tree**, **Set Operations**, **Clock Arithmetic**, **Neural Network**, **Gradient Descent**,
9428
- **Decision Boundary**, **K-Means**, **Attention Weights** and **Maths Presenter**.
9455
+ **Decision Boundary**, **K-Means**, **Attention Weights**, **Maths Presenter** and
9456
+ **Loss Surface in 3D**.
9429
9457
  - Videos: `linear-map-short.mjs`, `riemann-short.mjs`, `galton-short.mjs`,
9430
9458
  `graph-search-short.mjs` and `gradient-descent-short.mjs` (9:16); `eigen-explainer.mjs`,
9431
9459
  `taylor-explainer.mjs`, `clt-explainer.mjs`, `de-morgan-explainer.mjs` and
9432
- `neural-network-explainer.mjs` (16:9), in `examples/headless-video/`.
9460
+ `neural-network-explainer.mjs` (16:9); `loss-surface-3d.mjs` (16:9, with scene-3d), in
9461
+ `examples/headless-video/`.
9433
9462
 
9434
9463
  ## Next
9435
9464
 
9436
- A 3D view of a loss surface (with the scene-3d renderer) is planned. See `todo.md`.
9465
+ See `todo.md` for what is planned next.
9437
9466
  See `todo.md` for their status.
9438
9467
 
9439
9468
  ---
@@ -10386,8 +10415,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
10386
10415
  adds to the same `tinyfly` global:
10387
10416
 
10388
10417
  ```html
10389
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.120.0/cdn/tinyfly.iife.js"></script>
10390
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.120.0/cdn/tinyfly-maps.iife.js"></script>
10418
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.122.0/cdn/tinyfly.iife.js"></script>
10419
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.122.0/cdn/tinyfly-maps.iife.js"></script>
10391
10420
  ```
10392
10421
 
10393
10422
  It is a separate script because the offline world map it carries adds about
@@ -11091,7 +11120,7 @@ cast member at an adult `height` (each stands at their own scale of it). The
11091
11120
  family: `boy`, `girl`, `youngMan`, `youngWoman`, `man`, `woman`, `grandpa`,
11092
11121
  `grandma`; at work (from the occupations sheet): `doctor`, `cook`, `builder`,
11093
11122
  `courier`, `teacher`, `farmer`. `CHARACTER_CAST` has each one's `label`,
11094
- `group` (`family`, `work`, `anime` or `manga`), `scale` and `options`.
11123
+ `group` (`family`, `work`, `anime`, `manga` or `bean`), `scale` and `options`.
11095
11124
 
11096
11125
  ```js
11097
11126
  const family = ['man', 'woman', 'girl', 'grandma'].map((name) => character(castMember(name, 280)))
@@ -11134,6 +11163,67 @@ face close-ups and a complete turnaround. Both the Character and 3D Scene
11134
11163
  editors offer these presets in their Cast picker. The Character editor also
11135
11164
  has Face style, Iris colour, Eyelashes and Age creases controls, saved in project JSON.
11136
11165
 
11166
+ ### Bean figures (white outlined stick figures)
11167
+
11168
+ `figure: 'bean'` draws the common white outlined stick-figure style: a white
11169
+ figure with a thick black outline, smooth noodle limbs, a shaped body (rounded
11170
+ shoulders, a slight waist, fuller hips and a rounded seat), a round head with
11171
+ big white oval eyes, small pupils and heavy brows, white mittens and big
11172
+ cartoon shoes (a flat sole on the ground, a rounded toe cap, a low heel). The
11173
+ rig solves the pose as for every figure, so every pose, gait, dance, reach,
11174
+ turn and lip-sync works on it.
11175
+
11176
+ ```js
11177
+ const hero = character({ figure: 'bean', height: 400, hair: { style: 'spiky', color: '#111' },
11178
+ bean: { shirt: '#ef4444', trousers: '#1e3a5f' } })
11179
+ drawCharacter(ctx, hero, humanPose({ ...HUMAN_POSES.point, ...HUMAN_EXPRESSIONS.happy, turn: 0.5 }))
11180
+ const stick = character(castMember('beanStick', 400)) // bare line limbs
11181
+ ```
11182
+
11183
+ - Each limb is one smooth curve through its joints, stroked in the ink and
11184
+ stroked again, narrower, in the fill, with round caps and joins: elbows and
11185
+ knees never show a seam. The front arm, and on a plain figure the neck and
11186
+ the legs, join the body without a seam: their outline is left out where it
11187
+ lies inside the body at the root, so the fills flow together. Under a tee or
11188
+ trousers the hem shows instead.
11189
+ - Painter order (`joints.parts[id].order`): the back arm, the legs, the neck,
11190
+ the body (and coat), the near arm and the head (and fedora). A limb reaching toward the viewer
11191
+ (hands on the knees, seated thighs) draws over the body.
11192
+ - `bean: { limbs, torso, limbWidth, lineWidth, outlineWidth, fill, shirt, sleeves, trousers, shoes }`:
11193
+ `limbs: 'tube'` (default, outlined noodles) or `'line'` (bare round-capped
11194
+ ink lines for the arms, legs and neck; the body, eyes, mittens and shoes
11195
+ stay; `halo: '#f5f5f4'` adds a pale edge so they read on a dark set); the
11196
+ near arm is in front of the body in both modes; `torso` body fullness
11197
+ (1; 1.3 chubby, 0.85 thin); widths as fractions of the height (0.024 tube,
11198
+ 0.017 line, 0.0105 outline; `lineWidth` on the character also sets the
11199
+ outline); `fill` (white); a `shirt` colour with `sleeves: 'short' | 'long' | 'none'`;
11200
+ `trousers`; `shoes` (the fill; a dark shoe gets a shine and a dark sole).
11201
+ An `outfit`'s `shirt`, `trousers` and `sleeves` colour the bean too (its
11202
+ layers are not used).
11203
+ - Detective gear: `coat` (a trench coat in that colour: lapels, a belt and
11204
+ buckle, double-breasted buttons, a hem at the knee and sleeves to the
11205
+ wrist), `fedora` (a brim, a pinched crown and a band) and `shades: true`
11206
+ (big dark aviator lenses in place of the eyes, the brows still showing,
11207
+ so the face keeps its expression; the same as `face: { shades: true }` on
11208
+ any oval-eyed face). `castMember('beanDetective', 400)` wears all three.
11209
+ - Defaults: ink `#111111`, white skin, `hands: 'mitten'`, shoulders 0.04 and
11210
+ hips 0.02 of the height, `face: { style: 'oval', projection: 'volume', teeth: true, tongue: true }`.
11211
+ The bean is always drawn in the clean look (its outline is the look).
11212
+ - `face.style: 'oval'` works on any figure: big white oval eyes almost
11213
+ touching, a small pupil following `lookX`/`lookY`, lids in the skin for
11214
+ `lid`, a blink or a half-open `eye.*`, a lid line when shut (arched up in a
11215
+ laugh), heavy brows for `brow.left`/`brow.right` and `browTilt`, and
11216
+ bigger eyes for `eye.*` above 1 and `bulge`. Glasses grow to fit round the
11217
+ big eyes; `face.shades` puts aviators in their place.
11218
+ - `hands: 'mitten'` (any figure) is a plain oval mitten along the forearm.
11219
+ - Presets in `BEAN_CAST` (also in `CHARACTER_CAST`, group `bean`):
11220
+ `beanMan`, `beanWoman`, `beanKid`, `beanBoss`, `beanDetective` and
11221
+ `beanStick` (bare lines).
11222
+ - Helpers for your own layers: `beanTorso(bean, joints)` and
11223
+ `beanTorsoOutline(torso)` (the body's shape), `beanLimbLine(root, joint, end)`
11224
+ (a limb's centre line), `mittenAt`, `beanShoeAt`, `beanOrder`, `beanOverBody`,
11225
+ `drawBeanFedora`.
11226
+
11137
11227
  ### Young adult manga cast
11138
11228
 
11139
11229
  `MANGA_CAST` supplies four original archetypes: `mangaYoungMan`,
@@ -15616,7 +15706,7 @@ magnet.addEventListener('pointerleave', () => {
15616
15706
 
15617
15707
  <!-- capabilities: generated from the library -->
15618
15708
 
15619
- # tinyfly capabilities (v0.120.0)
15709
+ # tinyfly capabilities (v0.122.0)
15620
15710
 
15621
15711
  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).
15622
15712
 
@@ -15900,7 +15990,7 @@ Native dances: `garba`, `garbaThreeClap`, `dandiya`; `humanDanceFrame(style, bea
15900
15990
  Appearance options of `character({ … })`, all plain data that turns with the head (see docs/character-appearance.md):
15901
15991
 
15902
15992
  - `build`: `standard`, `slim`, `tall`, `short`, `broad`, `curvy`, `stocky`, `kid`, `child`, `toddler`
15903
- - `figure`: `fluid`, `stick`, `organic`
15993
+ - `figure`: `fluid`, `stick`, `organic`, `bean`
15904
15994
  - `look`: `clean` (default), `pencil`, `silhouette`, `illustrated` (inked and painted: line weight follows the light, brush-tapered strokes, shadow/core/highlight tones from each fill; `illustrated: { light: [x, y], weight, taper, shadow, highlight }`, each 0–1)
15905
15995
  - `body.torso · body.arm · body.leg · body.neck`: Organic half-width profiles: [{ at: 0..1, width: fractionOfHeight }], increasing from 0 to 1; independent of ink width.
15906
15996
  - `body.measurements`: Organic torso from tape-measure girths { height, bust, underbust?, waist, hip } in any one unit, or a named shape (hourglass | pear | rectangle | invertedTriangle | round). Sets the front width, the side depth (bust forward, seat back, belly) and the hip and thigh spacing; reads correctly at every turn. An explicit torso / torsoFront / torsoBack / hipWidth still wins.
@@ -15909,15 +15999,17 @@ Appearance options of `character({ … })`, all plain data that turns with the h
15909
15999
  - `softCartoonCharacter(name, options?)`: Original youngMan / youngWoman / childBoy / childGirl story presets. Children have larger head proportions, shorter limbs and rounded torsos; every face, hair, build, hand, clothing and material option can be overridden.
15910
16000
  - `face.projection`: Organic default volume follows the head axes, keeps both eyes in three-quarter views and projects a small nose above the mouth; opaque hair covers features. cartoon keeps the classic face slide.
15911
16001
  - `outfitPreset(category, overrides?)`: Fresh JSON Everyday / Formal / Casual wardrobe defaults for every actor; top: tshirt | shirt | blouse | dress, trouserStyle: plain | jeans | cargo, colours, sleeves, bottoms, collar and tie are editable.
16002
+ - `figure: 'bean'`: The white outlined stick figure: one smooth stroked outline per limb (no seams at elbows, knees or the front arm's shoulder), a shaped body (rounded shoulders, slight waist, fuller hips), big oval eyes, mittens and cartoon shoes; every pose, gait, dance and turn works. Always drawn clean; the near arm is in front of the body in both limb modes. `bean: { limbs: tube | line, halo (a pale edge on line limbs), torso, limbWidth, lineWidth, outlineWidth, fill, shirt, sleeves: short | long | none, trousers, shoes (a dark shoe gets a shine), coat (a trench coat: lapels, belt and buckle, buttons, knee hem, sleeves to the wrist), fedora, shades (aviators in place of the eyes; brows still show) }`; an `outfit`'s shirt, trousers and sleeves colour it. `castMember('beanMan' | 'beanWoman' | 'beanKid' | 'beanBoss' | 'beanDetective' | 'beanStick', h)`.
16003
+ - `hands`: `dot` | `cartoon` (with `handStyle: glove | natural`) | `mitten` (a plain oval mitten; the bean figure's default)
15912
16004
  - `leafOutfit`: Organic-only JSON garment { top?, color?, accent?, length? }; curved leaves follow torso/thighs at native part depths. Everyday basicOutfit also follows organic contours.
15913
16005
  - `hair`: `softSweep`, `flowingBob`, `cascadingWaves`, `bald`, `buzzCut`, `crewCut`, `short`, `sidePart`, `sideSwept`, `slickBack`, `quiff`, `spiky`, `mangaSpikes`, `mangaSweep`, `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`)
15914
16006
  - Flowing hair: `softSweep`, `flowingBob`, `cascadingWaves`; editable `locks: [{ path, width, follow? }]` with cubic `{ around, up, lift? }` points (around in degrees, dimensions in head radii), `fall: { taper, wave }` and `shine` (0–1). Roots stay attached; `hairFollowTracks` also drives flexible short locks.
15915
16007
  - `facialHair`: `cleanShaven`, `stubble`, `pencilMoustache`, `shortMoustache`, `chevron`, `handlebar`, `walrus`, `goatee`, `vanDyke`, `circleBeard`, `shortBoxed`, `fullBeard`, `longBeard`, `roundedBeard`, `pointedBeard`, `chinStrap`, `soulPatch`, `sideburns`, `muttonChops`, `moustacheStubble`
15916
16008
  - `glasses`: `round`, `square`, `sunglasses`; `hat`: `cap`, `beanie`, `hardHat`, `sunHat`, `bowler`; `ears: true`; `face: { teeth, tongue }` (shown when the mouth opens); `feet`: `round`, `flat`, `pointed`, `big`
15917
16009
  - `outfit`: `{ top: tshirt | shirt | blouse | dress, trouserStyle: plain | jeans | cargo, shirt: top colour, trousers: bottom colour, sleeves: short | long | none, bottom: trousers | shorts | skirt, collar, tie: colour, over: apron | labCoat | hoodie | cardigan | overalls | sari, overColor, shoes: boots, shoeColor }`
15918
- - `castMember(name, height)`: `boy`, `girl`, `youngMan`, `youngWoman`, `man`, `woman`, `grandpa`, `grandma`, `doctor`, `cook`, `builder`, `courier`, `teacher`, `farmer`, `animeBoy`, `animeGirl`, `animeYoungMan`, `animeYoungWoman`, `animeMan`, `animeWoman`, `animeOlderMan`, `animeOlderWoman`, `mangaYoungMan`, `mangaYoungWoman`, `mangaRival`, `mangaHeroine`
16010
+ - `castMember(name, height)`: `boy`, `girl`, `youngMan`, `youngWoman`, `man`, `woman`, `grandpa`, `grandma`, `doctor`, `cook`, `builder`, `courier`, `teacher`, `farmer`, `animeBoy`, `animeGirl`, `animeYoungMan`, `animeYoungWoman`, `animeMan`, `animeWoman`, `animeOlderMan`, `animeOlderWoman`, `mangaYoungMan`, `mangaYoungWoman`, `mangaRival`, `mangaHeroine`, `beanMan`, `beanWoman`, `beanKid`, `beanBoss`, `beanDetective`, `beanStick`
15919
16011
  - Face marks (pose fields, 0–1): `blush`, `tears`, `sweat`; close-up fields `pupil` (size, 1 usual), `lid` (upper lids lowered, 0–1), `bulge` (eyes out of the head, 0–1); `face: { nose: true, inPupil(ctx, pupil) }`; `drawCharacterHead(ctx, who, pose, { x, y, radius })` draws just the head big
15920
- - Face styles: `simple`, `anime`; `face: { style: 'anime', iris: '#4b7fce', lashes: true, ageLines: 0.8 }` uses coloured eyes and the same expressions, blinks and gaze. `ANIME_CAST` contains eight age presets, also available through `castMember`.
16012
+ - Face styles: `simple`, `anime`, `oval`; `face: { style: 'anime', iris: '#4b7fce', lashes: true, ageLines: 0.8 }` uses coloured eyes and the same expressions, blinks and gaze. `ANIME_CAST` contains eight age presets, also available through `castMember`. `face: { style: 'oval' }` (the bean figure's default) draws big white oval eyes with small pupils that follow `lookX`/`lookY`, lids for `lid`, `blink` and half-open eyes, and heavy brows for `brow.*`/`browTilt`; glasses grow to fit round them.
15921
16013
  - Face shapes: `round`, `angular`; `face: { shape: 'angular', jawWidth: 0.74, chinWidth: 0.14, eyeScale: 0.8, eyeAspect: 0.65 }` sets a tapered 3D jaw and narrower anime eyes; `jawRoundness: 1` softens the cheek/chin corners (default 0 keeps sharp jaws). `MANGA_CAST` contains four original young adult presets; hair styles `mangaSpikes` and `mangaSweep` remain editable.
15922
16014
  - Hair in motion (pose fields): `hair.swing` (degrees round the head, + toward its left), `hair.trail` (head radii back), `hair.lift` (head radii up); key them with `hairFollowTracks(target, tracks, who)` after the character's tracks, or `hairFollow` + `hairMotionAt` when posing per frame
15923
16015
  - `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), `cane` (left or right), `parcel` (both); pose fields `held.left`, `held.right`, `held.both` (below 0.5 lets go); `handGrip(joints, side)`
@@ -16098,6 +16190,7 @@ A figure is JSON: a plane and items. Tracks on its target animate values by name
16098
16190
  - `mathTarget(spec, { x, y })`: a canvas target for videos and canvas pages; tracks animate its values and item props
16099
16191
  - `mathSteps(lesson, target, spec, { hidden })`: lesson steps: toValue, applyMatrix, drawOn, fadeIn, fadeOut, showStep (equations)
16100
16192
  - `mountMath(element) / mountAllMath()`: lesson-page embeds: <figure data-tinyfly-math> with data-tinyfly-figure and data-tinyfly-timeline JSON scripts, stepped like any embed
16193
+ - `lossSurface3D({ expr, start, rate, momentum?, steps?, orbit? })`: a loss surface as scene-3d JSON with a ball rolling down the descent path: { scene, tracks, duration, path, losses }
16101
16194
  - `mathSurface(figure, { x, y })`: a figure as a surface for surfaceScript: anchors box, item:ID, tip:ID, point:ID, node:GRAPH:NODE, term:ID:TEXT, value:NAME; edits drawOn, erase, show, hide, step, set
16102
16195
  - `mathExplorable(element, spec, { sliders, drag })`: reader-driven figures: sliders on number values, drag vector tips or matrix columns
16103
16196
  - `mathFigureToSvg(spec, props)`: a standalone SVG of a figure at some values
package/llms.txt CHANGED
@@ -13,49 +13,49 @@ 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.120.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.122.0/llms-full.txt)
17
17
 
18
18
  ## Start here
19
19
 
20
- - [Getting Started](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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.120.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.120.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; a festive garba/dandiya scene with partner contacts, circle travel and spins, also rendered to video.
23
- - [Building Animations with an LLM](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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.122.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.122.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.122.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; a festive garba/dandiya scene with partner contacts, circle travel and spins, also rendered to video.
23
+ - [Building Animations with an LLM](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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.120.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.120.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.122.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.122.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.120.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.120.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.120.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.120.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.120.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.120.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.120.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.122.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.122.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.122.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.122.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.122.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.122.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.122.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
- - [Cricket Stories](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.0/docs/cricket.md): Reusable sports APIs, organic adult/child players, sixteen cricket plays, Test/ODI/T20 facts, contact-keyed JSON, captions, headless video and a 360° ground camera.
43
- - [Scroll Animation](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.0/docs/scroll-animation.md): Scroll-driven and play-when-visible animation with ScrollDriver and VisibilityDriver.
44
- - [Props: Everyday Objects with Behaviours](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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.
45
- - [Teaching Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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.
46
- - [Maths Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.0/docs/math.md): tinyfly/math: figures as JSON (grids a matrix warps, vectors, function plots, polygons, eigenlines, TeX labels and equations that rewrite step by step), animated by plain tracks, played in lesson-page embeds, explorables and videos from one layout; a built-in TeX subset and ready linear algebra figures.
47
- - [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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.
48
- - [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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.
49
- - [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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.
50
- - [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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).
51
- - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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.
52
- - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.0/docs/dance.md): The stick figure dances disco, hip hop, breaking, jazz, K-pop, Bollywood, Bhangra, Bharatanatyam (with mudras), the Charleston, tap and popping, and does flips, leaps and splits; native v2 garba (two/three clap) and dandiya add body-local routines, circle formations, world foot plants, paired stick-tip contacts and signed spins; JSON bakes, timing, contact limits and editor menus.
53
- - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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 pen or solid looks, scripted native dances, timed signed spins and circle formations with foot contacts.
54
- - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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.
55
- - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.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.
56
- - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.0/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
42
+ - [Cricket Stories](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.0/docs/cricket.md): Reusable sports APIs, organic adult/child players, sixteen cricket plays, Test/ODI/T20 facts, contact-keyed JSON, captions, headless video and a 360° ground camera.
43
+ - [Scroll Animation](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.0/docs/scroll-animation.md): Scroll-driven and play-when-visible animation with ScrollDriver and VisibilityDriver.
44
+ - [Props: Everyday Objects with Behaviours](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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.
45
+ - [Teaching Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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.
46
+ - [Maths Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.0/docs/math.md): tinyfly/math: figures as JSON (grids a matrix warps, vectors, function plots, polygons, eigenlines, TeX labels and equations that rewrite step by step), animated by plain tracks, played in lesson-page embeds, explorables and videos from one layout; a built-in TeX subset and ready linear algebra figures.
47
+ - [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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.
48
+ - [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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.
49
+ - [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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.
50
+ - [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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).
51
+ - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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.
52
+ - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.0/docs/dance.md): The stick figure dances disco, hip hop, breaking, jazz, K-pop, Bollywood, Bhangra, Bharatanatyam (with mudras), the Charleston, tap and popping, and does flips, leaps and splits; native v2 garba (two/three clap) and dandiya add body-local routines, circle formations, world foot plants, paired stick-tip contacts and signed spins; JSON bakes, timing, contact limits and editor menus.
53
+ - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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 pen or solid looks, scripted native dances, timed signed spins and circle formations with foot contacts.
54
+ - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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.
55
+ - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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.
56
+ - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.0/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
57
57
 
58
58
  ## Optional
59
59
 
60
- - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.0/README.md): Feature overview, project layout and development setup.
61
- - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.120.0/release-notes/README.md): What changed in each version.
60
+ - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.0/README.md): Feature overview, project layout and development setup.
61
+ - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.122.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.120.0",
3
+ "version": "0.122.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",
@@ -38,6 +38,11 @@ names.
38
38
  painted: light-weighted lines, shadow and highlight tones, tuned with
39
39
  `illustrated: { light, weight, taper, shadow, highlight }`); anime is a face style.
40
40
  The same `HUMAN_EXPRESSIONS`, blink, gaze, turn, acting and dance fields apply.
41
+ - White outlined stick figures: `figure: 'bean'` (or `castMember('beanMan' | 'beanWoman' | 'beanKid' | 'beanBoss' | 'beanDetective' | 'beanStick', height)`)
42
+ draws seamless outlined noodle limbs (`bean: { limbs: 'line' }` for bare lines), a shaped body, big oval eyes
43
+ (`face.style: 'oval'`), mittens and cartoon shoes; colour it with `bean: { shirt, sleeves, trousers, shoes }`;
44
+ detective gear `bean: { coat, fedora, shades: true }`; `halo` edges line limbs.
45
+ It is always drawn clean; every pose, gait, dance and expression field works on it.
41
46
 
42
47
  - Prefer the high-level builders: `scriptTracks()` beats for characters
43
48
  (`characterScript(target, who, beats)` for the same beats on a v2
@@ -180,7 +185,8 @@ names.
180
185
  `clock`. AI/ML: `network`, `heatmap`, `contours`, `descent`, `classifier`,
181
186
  `kmeans`, each stepped by one value. A presenter: `mathSurface(figure, { x, y })`
182
187
  for `surfaceScript` (anchors `tip:ID`, `item:ID`, `term:ID:TEXT`; edits `set`,
183
- `step`, `drawOn`). See `docs/math.md`.
188
+ `step`, `drawOn`). 3D loss surface: `lossSurface3D()` gives scene-3d JSON and
189
+ tracks. See `docs/math.md`.
184
190
 
185
191
  ## 3. Check
186
192