@algorisys/tinyfly 0.127.1 → 0.128.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.
@@ -55,6 +55,8 @@ export interface BeanOptions {
55
55
  shoes?: string;
56
56
  /** A pale edge round `line` limbs, so they read on a dark set (default none) */
57
57
  halo?: string | null;
58
+ /** A necktie in this colour down the front of the body, from the collar to above the waist (default none) */
59
+ tie?: string | null;
58
60
  /** A trench coat in this colour, over the body to the knees, sleeves to the wrist (default none) */
59
61
  coat?: string | null;
60
62
  /** A fedora in this colour on the head (default none) */
@@ -88,6 +90,7 @@ export interface Bean {
88
90
  trousers: string | null;
89
91
  shoes: string;
90
92
  halo: string | null;
93
+ tie: string | null;
91
94
  coat: string | null;
92
95
  fedora: string | null;
93
96
  skirt: {
@@ -70,8 +70,8 @@ export interface CharacterOptions extends HeadLookOptions {
70
70
  * The bean figure's options (`figure: 'bean'`): `limbs` (tube | line),
71
71
  * `torso` fullness, `limbWidth`, `lineWidth`, `outlineWidth` (fractions of
72
72
  * the height), `fill`, a `shirt` colour with `sleeves`, `trousers`, `shoes`,
73
- * a `halo` for line limbs, and detective gear: `coat`, `fedora`, `shades`.
74
- * An `outfit`'s shirt, trousers and sleeves colour it too.
73
+ * a `halo` for line limbs, a necktie (`tie`), and detective gear: `coat`, `fedora`, `shades`.
74
+ * An `outfit`'s shirt, trousers, sleeves and tie colour it too.
75
75
  */
76
76
  bean?: BeanOptions;
77
77
  /** Opt-in organic contours, skin material and independent outline settings. */
@@ -41,9 +41,9 @@ export interface FaceOptions {
41
41
  chinWidth?: number;
42
42
  /** Round angular jaw corners, 0..1 (default 0: keep the sharp outline). */
43
43
  jawRoundness?: number;
44
- /** Anime eye size, 0.5..1.2 (default 1). */
44
+ /** Anime or oval eye size, 0.5..1.2 (default 1). Bigger oval eyes sit further apart, so they still nearly touch. */
45
45
  eyeScale?: number;
46
- /** Anime eye height relative to width, 0.45..1.2 (default 1). */
46
+ /** Anime or oval eye height relative to width, 0.45..1.2 (default 1); below 1 makes oval eyes rounder. */
47
47
  eyeAspect?: number;
48
48
  /** Anime outer lashes (default true). */
49
49
  lashes?: boolean;
@@ -79,3 +79,10 @@ export declare const OVAL_EYE: {
79
79
  readonly rx: 0.29;
80
80
  readonly ry: 0.44;
81
81
  };
82
+ /** An oval eye's centre and radii (head radii) for a face's `eyeScale` and `eyeAspect`. */
83
+ export declare function ovalEye(face?: Pick<FaceOptions, 'eyeScale' | 'eyeAspect'>): {
84
+ x: number;
85
+ y: number;
86
+ rx: number;
87
+ ry: number;
88
+ };
@@ -97,6 +97,9 @@ export interface ScenePresetOptions {
97
97
  scale?: number;
98
98
  /** Overrides for the scenery (an hour, weather, colours) */
99
99
  scenery?: Partial<SceneryOptions>;
100
+ /** The props' outline colour and width in px (default each prop's own), so a set can match its characters' ink */
101
+ ink?: string;
102
+ lineWidth?: number;
100
103
  }
101
104
  /** A prop in a preset: which, where its middle stands (scene x), facing which way, with its scale. */
102
105
  export interface PlacedProp {
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.127.1/cdn/tinyfly.iife.js"></script>
594
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.128.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.127.1/cdn/tinyfly.iife.js"></script>
802
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.128.0/cdn/tinyfly.iife.js"></script>
803
803
  <script>
804
804
  tinyfly.to('.box', { x: 200, duration: 1 })
805
805
  </script>
@@ -2725,7 +2725,7 @@ For simple website embedding without a build system.
2725
2725
  </html>
2726
2726
  ```
2727
2727
 
2728
- 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.127.1/cdn/tinyfly-player.iife.js`.
2728
+ 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.128.0/cdn/tinyfly-player.iife.js`.
2729
2729
 
2730
2730
  ---
2731
2731
 
@@ -7079,7 +7079,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
7079
7079
  **Steps to embed:**
7080
7080
  1. Build the player: `npm run build:player`
7081
7081
  2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
7082
- `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.127.1/cdn/tinyfly-player.iife.js`
7082
+ `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.128.0/cdn/tinyfly-player.iife.js`
7083
7083
  instead; see [Deployment](DEPLOYMENT.md))
7084
7084
  3. Copy the generated code into your HTML
7085
7085
  4. Adjust the script `src` path if needed
@@ -8209,6 +8209,8 @@ scenery and where the props stand) and `buildScene` builds it into targets:
8209
8209
  of the afternoon against the city: houses, a car, a tree), `office` (a room
8210
8210
  with a desk, a chair and a door) and `home` (a room at night with a bed, a
8211
8211
  chair and a door). The Park Day card plays a day over the park.
8212
+ `buildScene(name, { width, height, ink: '#111', lineWidth: 5 })` outlines
8213
+ every prop in that ink and width, so the set matches heavily inked characters.
8212
8214
 
8213
8215
  ## In 3D scenes
8214
8216
 
@@ -8456,8 +8458,9 @@ not a `look` value. It uses the same expressions, blink, gaze and turn fields.
8456
8458
  White outlined stick figures are `figure: 'bean'` (presets `beanMan`, `beanWoman`,
8457
8459
  `beanKid`, `beanBoss`, `beanDetective`, `beanStick` in `BEAN_CAST`): seamless outlined noodle limbs or bare
8458
8460
  lines (`bean: { limbs: 'tube' | 'line' }`), a shaped body (`bean.torso` fullness), big oval eyes
8459
- (`face.style: 'oval'`, usable on any figure), `hands: 'mitten'` and cartoon shoes; colours from
8460
- `bean: { shirt, sleeves, trousers, shoes }` or an `outfit`; detective gear `bean: { coat, fedora, shades: true }`
8461
+ (`face.style: 'oval'`, usable on any figure; `face: { eyeScale: 1.2, eyeAspect: 0.8 }` makes them bigger
8462
+ and rounder), `hands: 'mitten'` and cartoon shoes; colours from
8463
+ `bean: { shirt, sleeves, trousers, shoes, tie }` or an `outfit` (its tie too); detective gear `bean: { coat, fedora, shades: true }`
8461
8464
  (aviators replace the eyes, brows still show); `halo` gives line limbs a pale edge. A bean is always drawn clean.
8462
8465
  Household clothes on a bean: `bean: { skirt: '#c2410c' }` (a sari to the ankle) or
8463
8466
  `skirt: { color, length: 0.45 }` (a kurta hem; pair it with `trousers`), `drape` (a pallu or dupatta sash)
@@ -8741,7 +8744,7 @@ path for all of that:
8741
8744
  </figure>
8742
8745
 
8743
8746
  <!-- once, anywhere on the page (a site-wide footer is fine) -->
8744
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.127.1/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
8747
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.128.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
8745
8748
  ```
8746
8749
 
8747
8750
  Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
@@ -9327,7 +9330,7 @@ lesson's step options (`duration`, `easing`, `delay`).
9327
9330
  <figcaption>The determinant is the area of the unit square after the map.</figcaption>
9328
9331
  </figure>
9329
9332
 
9330
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.127.1/cdn/tinyfly-math.iife.js" data-tinyfly-auto></script>
9333
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.128.0/cdn/tinyfly-math.iife.js" data-tinyfly-auto></script>
9331
9334
  ```
9332
9335
 
9333
9336
  The figure draws itself into an SVG and redraws from the timeline whenever the
@@ -10461,8 +10464,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
10461
10464
  adds to the same `tinyfly` global:
10462
10465
 
10463
10466
  ```html
10464
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.127.1/cdn/tinyfly.iife.js"></script>
10465
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.127.1/cdn/tinyfly-maps.iife.js"></script>
10467
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.128.0/cdn/tinyfly.iife.js"></script>
10468
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.128.0/cdn/tinyfly-maps.iife.js"></script>
10466
10469
  ```
10467
10470
 
10468
10471
  It is a separate script because the offline world map it carries adds about
@@ -11516,7 +11519,7 @@ const stick = character(castMember('beanStick', 400)) // bare line limbs
11516
11519
  skirt over both), the neck, the body (with its drape, and coat), the near
11517
11520
  arm and the head (and fedora). A limb reaching toward the viewer
11518
11521
  (hands on the knees, seated thighs) draws over the body.
11519
- - `bean: { limbs, torso, limbWidth, lineWidth, outlineWidth, fill, shirt, sleeves, trousers, shoes }`:
11522
+ - `bean: { limbs, torso, limbWidth, lineWidth, outlineWidth, fill, shirt, sleeves, trousers, shoes, tie }`:
11520
11523
  `limbs: 'tube'` (default, outlined noodles) or `'line'` (bare round-capped
11521
11524
  ink lines for the arms, legs and neck; the body, eyes, mittens and shoes
11522
11525
  stay; `halo: '#f5f5f4'` adds a pale edge so they read on a dark set); the
@@ -11524,9 +11527,14 @@ const stick = character(castMember('beanStick', 400)) // bare line limbs
11524
11527
  (1; 1.3 chubby, 0.85 thin); widths as fractions of the height (0.024 tube,
11525
11528
  0.017 line, 0.0105 outline; `lineWidth` on the character also sets the
11526
11529
  outline); `fill` (white); a `shirt` colour with `sleeves: 'short' | 'long' | 'none'`;
11527
- `trousers`; `shoes` (the fill; a dark shoe gets a shine and a dark sole).
11528
- An `outfit`'s `shirt`, `trousers` and `sleeves` colour the bean too (its
11530
+ `trousers`; `shoes` (the fill; a dark shoe gets a shine and a dark sole);
11531
+ `tie` (a necktie down the chest: a knot at the collar and a pointed blade,
11532
+ sliding toward the side the body turns to and hidden from behind; under a coat).
11533
+ An `outfit`'s `shirt`, `trousers`, `sleeves` and `tie` colour the bean too (its
11529
11534
  layers are not used).
11535
+ - Bigger comedy eyes: `face: { eyeScale: 1.2, eyeAspect: 0.8 }` makes the oval
11536
+ eyes larger and rounder (scale 0.5–1.2, aspect 0.45–1.2); they move apart as
11537
+ they grow, so they still nearly touch, and glasses grow round them.
11530
11538
  - Detective gear: `coat` (a trench coat in that colour: lapels, a belt and
11531
11539
  buckle, double-breasted buttons, a hem at the knee and sleeves to the
11532
11540
  wrist), `fedora` (a brim, a pinched crown and a band) and `shades: true`
@@ -16062,7 +16070,7 @@ magnet.addEventListener('pointerleave', () => {
16062
16070
 
16063
16071
  <!-- capabilities: generated from the library -->
16064
16072
 
16065
- # tinyfly capabilities (v0.127.1)
16073
+ # tinyfly capabilities (v0.128.0)
16066
16074
 
16067
16075
  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).
16068
16076
 
@@ -16302,7 +16310,7 @@ A prop is a 3D rig of simple parts drawn with the characters’ pens (clean, pen
16302
16310
 
16303
16311
  Prop beat fields: `do`, `at`, `for`, `to`, `toward`, `speed`, `open`, `on`, `height`, `wind`. Every prop has the controls `turn`, `tilt`, `pitch`, `roll`, `squash`, `lift`, `lean`, `size` and the actions `hold`, `turn`, `pop`, `vanish`.
16304
16312
 
16305
- Scenery: `scenery({ x, y, width, height, kind: sky | room, hour, clouds, wind, rain, snow, horizon: hills | city | flat })` is a canvas target whose values `hour` (0–24), `clouds`, `rain`, `snow` (0–1) and `wind` (−1..1) are tracks (`set(prop, { at, value, duration })`, `tracks(id)`; `anchor('sun' | 'moon' | 'horizon' | 'ground', time)`); the same `wind` streams hair (`hairFollowTracks(…, { wind })`). `scenePreset('park' | 'street' | 'office' | 'home', { width, height })` lays out scenery and props as data; `buildScene` builds them into targets.
16313
+ Scenery: `scenery({ x, y, width, height, kind: sky | room, hour, clouds, wind, rain, snow, horizon: hills | city | flat })` is a canvas target whose values `hour` (0–24), `clouds`, `rain`, `snow` (0–1) and `wind` (−1..1) are tracks (`set(prop, { at, value, duration })`, `tracks(id)`; `anchor('sun' | 'moon' | 'horizon' | 'ground', time)`); the same `wind` streams hair (`hairFollowTracks(…, { wind })`). `scenePreset('park' | 'street' | 'office' | 'home', { width, height })` lays out scenery and props as data; `buildScene` builds them into targets (`ink` and `lineWidth` outline its props to match the characters).
16306
16314
 
16307
16315
  | Preset | Family | Actions (needs) | Controls | Anchors |
16308
16316
  |---|---|---|---|---|
@@ -16355,7 +16363,7 @@ Appearance options of `character({ … })`, all plain data that turns with the h
16355
16363
  - `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.
16356
16364
  - `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.
16357
16365
  - `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.
16358
- - `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)`.
16366
+ - `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), tie (a necktie down the chest), 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, sleeves and tie colour it. `castMember('beanMan' | 'beanWoman' | 'beanKid' | 'beanBoss' | 'beanDetective' | 'beanStick', h)`.
16359
16367
  - `hands`: `dot` | `cartoon` (with `handStyle: glove | natural`) | `mitten` (a plain oval mitten; the bean figure's default)
16360
16368
  - `leafOutfit`: Organic-only JSON garment { top?, color?, accent?, length? }; curved leaves follow torso/thighs at native part depths. Everyday basicOutfit also follows organic contours.
16361
16369
  - `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`)
@@ -16365,7 +16373,7 @@ Appearance options of `character({ … })`, all plain data that turns with the h
16365
16373
  - `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 }`
16366
16374
  - `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`, `beanSari`
16367
16375
  - 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
16368
- - 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.
16376
+ - 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. `eyeScale` (0.5–1.2) and `eyeAspect` (0.45–1.2, below 1 rounder) size oval eyes too, for big googly comedy eyes.
16369
16377
  - 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.
16370
16378
  - 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
16371
16379
  - `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)`
package/llms.txt CHANGED
@@ -13,51 +13,51 @@ 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.127.1/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.128.0/llms-full.txt)
17
17
 
18
18
  ## Start here
19
19
 
20
- - [Getting Started](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/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.127.1/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.127.1/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.127.1/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.128.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.128.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.128.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.128.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.127.1/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.127.1/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.128.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.128.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.127.1/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.127.1/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.127.1/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.127.1/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.127.1/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.127.1/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.127.1/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.128.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.128.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.128.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.128.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.128.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.128.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.128.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.127.1/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.127.1/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.127.1/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.127.1/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.127.1/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.127.1/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.127.1/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.127.1/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
- - [Noir and Detective Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/docs/noir-detective.md): A canvas kit for detective stories: rain in a window, light through blinds, darkness with torch beams and holes, glow, vignette, lightning and a flickering bulb; the red clue magnifier, an evidence folder, a clock and time chip, a freeze-frame suspect name card, a typed narration box and speech bubbles; and a case board as data (pinned photo and note cards, red string, marker cross-outs, strikes, scribble-outs and rings drawn on over time, with the marker nib for a hand). Deterministic from time; text and fonts are yours.
51
- - [Cosmic Explainer Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/docs/cosmic-explainer.md): A canvas kit for animated science explainers: saturated gradient skies, parallax dust and bokeh, flat-shaded shapes (a sphere with a shadow crescent, an isometric cube, a probability haze), zooming through scale in growing portals (drawZoomLevels, depthAt, zoomAt), burned-in short captions two words at a time and label chips; plus sound effects made from numbers (whoosh, pop, thud, shimmer, tick, click, an ambient pad) that renderMix takes as samples. Deterministic from time.
52
- - [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/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).
53
- - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/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.
54
- - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/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.
55
- - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/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.
56
- - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/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.
57
- - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/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.
58
- - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
42
+ - [Cricket Stories](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.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.128.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.128.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.128.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.128.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.128.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.128.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.128.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
+ - [Noir and Detective Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.0/docs/noir-detective.md): A canvas kit for detective stories: rain in a window, light through blinds, darkness with torch beams and holes, glow, vignette, lightning and a flickering bulb; the red clue magnifier, an evidence folder, a clock and time chip, a freeze-frame suspect name card, a typed narration box and speech bubbles; and a case board as data (pinned photo and note cards, red string, marker cross-outs, strikes, scribble-outs and rings drawn on over time, with the marker nib for a hand). Deterministic from time; text and fonts are yours.
51
+ - [Cosmic Explainer Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.0/docs/cosmic-explainer.md): A canvas kit for animated science explainers: saturated gradient skies, parallax dust and bokeh, flat-shaded shapes (a sphere with a shadow crescent, an isometric cube, a probability haze), zooming through scale in growing portals (drawZoomLevels, depthAt, zoomAt), burned-in short captions two words at a time and label chips; plus sound effects made from numbers (whoosh, pop, thud, shimmer, tick, click, an ambient pad) that renderMix takes as samples. Deterministic from time.
52
+ - [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.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).
53
+ - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.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.
54
+ - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.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.
55
+ - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.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.
56
+ - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.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.
57
+ - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.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.
58
+ - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.0/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
59
59
 
60
60
  ## Optional
61
61
 
62
- - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/README.md): Feature overview, project layout and development setup.
63
- - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.127.1/release-notes/README.md): What changed in each version.
62
+ - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.0/README.md): Feature overview, project layout and development setup.
63
+ - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.128.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.127.1",
3
+ "version": "0.128.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",
@@ -187,10 +187,10 @@
187
187
  "vue": "^3.5.42"
188
188
  },
189
189
  "peerDependencies": {
190
+ "@napi-rs/canvas": ">=0.1.60",
190
191
  "react": ">=18",
191
- "vue": ">=3.3",
192
192
  "solid-js": ">=1.8",
193
- "@napi-rs/canvas": ">=0.1.60"
193
+ "vue": ">=3.3"
194
194
  },
195
195
  "peerDependenciesMeta": {
196
196
  "react": {
@@ -40,7 +40,8 @@ names.
40
40
  The same `HUMAN_EXPRESSIONS`, blink, gaze, turn, acting and dance fields apply.
41
41
  - White outlined stick figures: `figure: 'bean'` (or `castMember('beanMan' | 'beanWoman' | 'beanKid' | 'beanBoss' | 'beanDetective' | 'beanStick', height)`)
42
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 }`;
43
+ (`face.style: 'oval'`; `face: { eyeScale, eyeAspect }` sizes them), mittens and cartoon shoes; colour it with
44
+ `bean: { shirt, sleeves, trousers, shoes, tie }`;
44
45
  detective gear `bean: { coat, fedora, shades: true }`; `halo` edges line limbs.
45
46
  It is always drawn clean; every pose, gait, dance and expression field works on it.
46
47
  Household clothes: `bean: { skirt, drape, bangles }` (`skirt` a colour or `{ color, length }`; preset `beanSari`).