@algorisys/tinyfly 0.98.0 → 0.99.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
@@ -204,7 +204,7 @@ with a GSAP-style call (durations are in seconds here):
204
204
  ```html
205
205
  <div class="box" style="width:60px;height:60px;background:#4a9eff"></div>
206
206
 
207
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly.iife.js"></script>
207
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.99.0/cdn/tinyfly.iife.js"></script>
208
208
  <script>
209
209
  tinyfly.to('.box', { x: 200, duration: 1 })
210
210
  </script>
@@ -412,7 +412,7 @@ Without a build step, the all-in-one bundle exposes the same functions on a
412
412
  global — `tinyfly.to()`, `tinyfly.timeline()` and so on:
413
413
 
414
414
  ```html
415
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly.iife.js"></script>
415
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.99.0/cdn/tinyfly.iife.js"></script>
416
416
  <script>
417
417
  tinyfly.to('.box', { x: 200, duration: 1 })
418
418
  </script>
@@ -2278,7 +2278,7 @@ For simple website embedding without a build system.
2278
2278
  </html>
2279
2279
  ```
2280
2280
 
2281
- Build the player with `npm run build:player` to generate `lib/player/tinyfly-player.iife.js`, or load it from the CDN: `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly-player.iife.js`.
2281
+ Build the player with `npm run build:player` to generate `lib/player/tinyfly-player.iife.js`, or load it from the CDN: `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.99.0/cdn/tinyfly-player.iife.js`.
2282
2282
 
2283
2283
  ---
2284
2284
 
@@ -5451,7 +5451,9 @@ left to right:
5451
5451
  is a reassuring, tap-friendly manual save (handy on tablets).
5452
5452
  - **New** — start a fresh project (prompts if you have unsaved changes).
5453
5453
  - **AI** — show or hide the AI prompt bar, where you describe an animation and
5454
- click **Generate**.
5454
+ click **Generate**. A brief with a story in it ("grandma walks up to a ticking
5455
+ box, jumps, and runs off") gets a 🧍 Character from the cast with a beat
5456
+ script, compiled into its tracks on load (the beats stay on the element).
5455
5457
  - **My Animations** — open the gallery of every project you've saved (thumbnails,
5456
5458
  open / duplicate / delete). See [Project Management](#project-management).
5457
5459
  - **Examples** — every ready-made animation on one page (`/examples`). Open one in
@@ -5486,6 +5488,8 @@ Shapes, text, images, video, lines, arrows and paths are added from the
5486
5488
  | **Group** | Container that groups multiple elements |
5487
5489
  | **🧍 Character** | A posable figure: pick a view, a pose and a face, and keyframe them to animate (see [Characters](#characters)) |
5488
5490
  | **🗺 Map** | An animated map: places, a route between them, and a camera (see [Maps](#maps)) |
5491
+ | **🧊 3D Scene** | A real 3D scene seen through its camera: meshes, lights, characters and props (see [3D Scenes](#3d-scenes)) |
5492
+ | **⌨ Code** | A code panel whose lines a Character's beats aim at and change (see [Code](#code)) |
5489
5493
 
5490
5494
  Polygon and star are **parametric** paths: change the sides/points/inner ratio in
5491
5495
  the Property Panel and the shape regenerates, and they rescale cleanly when you
@@ -5621,12 +5625,39 @@ Dances and flips are written as they are, and turn acting off.
5621
5625
  (`drawingRate` in the JSON), so previews, players and exports all hold the
5622
5626
  same way.
5623
5627
 
5628
+ - **Beats**: a story written as beats, compiled in the chosen style into the
5629
+ character's tracks and kept on the element (`beats` in the JSON). Write them
5630
+ as JSON (`[{ "do": "walk", "to": 320, "mood": "happy" }, { "do": "say",
5631
+ "say": "Hello!" }, { "do": "take" }]`) and click **🎬 Run beats**; the
5632
+ timeline grows to fit. A beat can aim at a **⌨ Code** element's lines
5633
+ (`"target": { "surface": "Code 1", "anchor": "line:2" }`, also for `to`,
5634
+ `toward` and `onto`) and change them (`"then": { "surface": "Code 1",
5635
+ "edit": "highlight", "anchor": "line:2", "at": "contact" }`): the edits
5636
+ become tracks on that element. Problems are named by beat (an unknown
5637
+ action, mood or place) before anything is written. The AI prompt bar writes
5638
+ beats this way too.
5639
+
5624
5640
  See [Cartoon Acting](acting.md).
5625
5641
 
5626
5642
  Characters show in the DOM and Canvas previews and in GIF / WebP / MP4
5627
5643
  export. They are not part of exported HTML or embeds yet, and the SVG preview
5628
5644
  does not draw them.
5629
5645
 
5646
+ ### Code
5647
+
5648
+ A **⌨ Code** element is a code panel (`codePanel()` from code): a listing with
5649
+ line numbers, drawn by code into its box, which grows to fit its lines. In the
5650
+ property panel: the **Language** (JavaScript, TypeScript, Python, Go, Rust,
5651
+ C#, plain), **Font size**, **Line numbers**, **Hidden lines** (typed in later)
5652
+ and the **Listing** itself.
5653
+
5654
+ Its lines are places. A Character's **Beats** aim at them and change them
5655
+ (highlight, strike, remove, type, fling a token…), and those edits are tracks
5656
+ on the Code element named `line.N.highlight`, `line.N.strike`, `line.N.wipe`,
5657
+ `line.N.reveal` and so on, which you can also key by hand. Code panels show in
5658
+ the DOM and Canvas previews and in GIF / WebP / MP4 export. See [Acting on
5659
+ code](acting.md#acting-on-code) for the same from code.
5660
+
5630
5661
  ### Maps
5631
5662
 
5632
5663
  A **🗺 Map** fills the canvas with a map of the world. In the property panel:
@@ -5661,8 +5692,8 @@ camera: it starts with a camera at three-quarters, a key light, a floor and a
5661
5692
  red box. In the property panel:
5662
5693
 
5663
5694
  - **Objects**: pick one to edit. **Add** puts a box, sphere, cylinder, cone,
5664
- ring, star (an extruded path), character or light on the next free spot;
5665
- ✕ removes the picked one (not the scene's camera).
5695
+ ring, star (an extruded path), character, prop or light on the next free
5696
+ spot; ✕ removes the picked one (not the scene's camera).
5666
5697
  - **Transform**: X, Y, Z (metres, +y up), Tilt X, Turn Y, Roll Z and Scale.
5667
5698
  **◆ Key transform at playhead** keys all of them; once a value is animated
5668
5699
  (◆ by its name), changing it keys it at the playhead.
@@ -5671,6 +5702,12 @@ red box. In the property panel:
5671
5702
  - **Characters**: a look (*Clean*, *Pencil*, *Silhouette* drawn by their pens
5672
5703
  in perspective, or *Solid*) and **🕺 Dance from playhead** with any dance
5673
5704
  style.
5705
+ - **Props**: which prop from the catalog (car, truck, bus, tractor, cart, train
5706
+ car, bike, motorbike, tree, house, helicopter, airplane, horse, dog, cat, cow,
5707
+ songbird, crow, chicken), its look (*Clean*, *Pencil*, *Silhouette*, or
5708
+ *Mesh*, lit with the scene) and style (*Solid* or *Stick* line art). Its
5709
+ controls (`car.door`, `car.wheelSpin`, `dog.tail`…) are tracks on the
5710
+ element.
5674
5711
  - **Cameras**: field of view, **Look through this camera**, and **✂ Cut to
5675
5712
  this camera at playhead**, which keys the shot change.
5676
5713
  - **Camera** view presets (*Front*, *¾*, *Side*, *Top*) and the scene's
@@ -6474,7 +6511,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
6474
6511
  **Steps to embed:**
6475
6512
  1. Build the player: `npm run build:player`
6476
6513
  2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
6477
- `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly-player.iife.js`
6514
+ `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.99.0/cdn/tinyfly-player.iife.js`
6478
6515
  instead; see [Deployment](DEPLOYMENT.md))
6479
6516
  3. Copy the generated code into your HTML
6480
6517
  4. Adjust the script `src` path if needed
@@ -7611,7 +7648,10 @@ and `outfit: { shirt, trousers }`. `castMember('grandpa', 300)` gives a whole
7611
7648
  ready-made character to start from. Expressions come from `HUMAN_EXPRESSIONS`
7612
7649
  and are pose fields, as are the face marks `blush`, `tears` and `sweat` (0–1),
7613
7650
  so any face goes with any action or view. Hair and hats turn with the head:
7614
- don't draw a different hairstyle per view. Put things in hands with `holding`
7651
+ don't draw a different hairstyle per view. Hanging hair swings on its own:
7652
+ after the character's tracks add `hairFollowTracks(target, tracks, who)` (or,
7653
+ posing per frame, `hairFollow` once and `hairMotionAt(keys, t)` each frame)
7654
+ rather than keying `hair.swing` by hand. Put things in hands with `holding`
7615
7655
  (`{ right: 'mug' }`, `{ both: 'parcel' }`; the pose field `held.both` lets go),
7616
7656
  and for two characters touching use `meetHands('handshake', a, b)` with the
7617
7657
  two standing `meetingSpacing(…)` apart, never two separate clips. See
@@ -7667,7 +7707,11 @@ scriptTracks: 2 problem(s) in the beats:
7667
7707
 
7668
7708
  - **Beat scripts**: `scriptTracks()` throws on errors. `checkBeats(beats)`
7669
7709
  returns errors and warnings without throwing, and from the command line:
7670
- `npx @algorisys/tinyfly check beats.json`.
7710
+ `npx @algorisys/tinyfly check beats.json`. For a v2 `character()` use
7711
+ `characterScript(target, who, beats, options)`: the same beats and checks,
7712
+ compiled for the human body and a `characterTarget` (its `walk`, `walking`
7713
+ and `gait` tracks step the gait as it draws); add
7714
+ `hairFollowTracks(target, tracks, who)` after it.
7671
7715
  - **Tracks**: `checkTracks(tracks, targets)` finds tracks aimed at targets
7672
7716
  that aren't there, properties a target can't animate (`rotation` → `rotate`),
7673
7717
  keys out of time order, values of the wrong kind and values out of range.
@@ -7777,7 +7821,7 @@ path for all of that:
7777
7821
  </figure>
7778
7822
 
7779
7823
  <!-- once, anywhere on the page (a site-wide footer is fine) -->
7780
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
7824
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.99.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
7781
7825
  ```
7782
7826
 
7783
7827
  Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
@@ -8852,8 +8896,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
8852
8896
  adds to the same `tinyfly` global:
8853
8897
 
8854
8898
  ```html
8855
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly.iife.js"></script>
8856
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.98.0/cdn/tinyfly-maps.iife.js"></script>
8899
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.99.0/cdn/tinyfly.iife.js"></script>
8900
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.99.0/cdn/tinyfly-maps.iife.js"></script>
8857
8901
  ```
8858
8902
 
8859
8903
  It is a separate script because the offline world map it carries adds about
@@ -9060,8 +9104,8 @@ prop, or the depths to slot it between fingers.
9060
9104
 
9061
9105
  # Character Appearance
9062
9106
 
9063
- Hair, facial hair, glasses, hats, ears, builds, a ready-made cast, held items
9064
- and meeting hands for the v2 character (`character()` in `@algorisys/tinyfly/characters`). Every choice
9107
+ Hair, facial hair, glasses, hats, ears, builds, a ready-made cast, held items,
9108
+ meeting hands and hair that swings for the v2 character (`character()` in `@algorisys/tinyfly/characters`). Every choice
9065
9109
  is plain data, so a character can be saved, synced, generated by a language
9066
9110
  model and changed one field at a time.
9067
9111
 
@@ -9177,6 +9221,52 @@ Every style is the same few fields (`resolveHair(spec)` fills them all in):
9177
9221
 
9178
9222
  A style stays a starting point: any style suits anyone.
9179
9223
 
9224
+ ## Hair in motion
9225
+
9226
+ Hair that hangs (long hair, ponytails, braids) lags behind the head: it swings
9227
+ round after a turn, streams back on a run, drops on a jump and lifts on the
9228
+ landing. The roots stay on the head; the ends move, more the further they hang.
9229
+ Short hair, buns, beards and hats stay put.
9230
+
9231
+ The lag is three pose fields, so it keys, saves and mirrors like any other:
9232
+
9233
+ | Field | Meaning |
9234
+ |---|---|
9235
+ | `hair.swing` | Swung round the head toward the character's left (+) or right (−), degrees |
9236
+ | `hair.trail` | Streaming back behind the head (+) or thrown forward (−), head radii |
9237
+ | `hair.lift` | Lifted (+) or dropped (−), head radii |
9238
+
9239
+ You rarely set them by hand. `hairFollowTracks` works them out from the
9240
+ character's own tracks (the target's `x` and `y`, the pose's `turn` and
9241
+ `head.turn`), each on a spring that chases the head, the way a prop's `follow`
9242
+ trails a car's antenna or a dog's tail:
9243
+
9244
+ ```js
9245
+ const tracks = characterPoseTracks('maya', keys)
9246
+ tracks.push(...hairFollowTracks('maya', tracks, maya))
9247
+ // Nothing is added for hair with nothing to swing. A `hair.swing` track written
9248
+ // by hand (a flick) keeps its values, with the lag added on.
9249
+ ```
9250
+
9251
+ Code that poses a character every frame keys the lag once for its loop, then
9252
+ reads it at each frame's time:
9253
+
9254
+ ```js
9255
+ const lag = hairFollow((t) => ({ x: xAt(t), y: yAt(t), turn: turnAt(t) }), { end: 8000, headRadius: 24 })
9256
+ drawCharacter(ctx, maya, humanPose({ turn: turnAt(t), ...hairMotionAt(lag, t) }), t)
9257
+ ```
9258
+
9259
+ `hairFollow` options: `stiffness` (default 70, higher follows the head more
9260
+ tightly), `damping` (6, lower swings longer), `amount` (1; 0 pins the hair) and
9261
+ `step` (33 ms between keys). `hairFollowTracks` also takes `settle`, how long
9262
+ the hair keeps moving after the last key (1500 ms). The springs step in fixed
9263
+ 1 ms steps, so the same motion always gives the same keys, and the drawing
9264
+ itself keeps no state between frames.
9265
+
9266
+ Four-legged animals get the same treatment for free: their `ears` control
9267
+ (pricked forward +, laid back −) and `tail` both trail the animal's motion on a
9268
+ spring in every `propScript`.
9269
+
9180
9270
  ## Facial hair
9181
9271
 
9182
9272
  `facialHair` takes a style name or `{ moustache, beard, color }` (the colour
@@ -9338,7 +9428,9 @@ exported to video and GIF.
9338
9428
 
9339
9429
  Outlines are traced from the same numbers every time (no randomness, no state
9340
9430
  between frames), so a frame at a given time always draws the same, and the
9341
- pencil look's boil stays seeded as before.
9431
+ pencil look's boil stays seeded as before. Hair in motion keeps to this: the
9432
+ lag is keyed ahead of time from the motion (`hairFollow`), not accumulated
9433
+ while drawing.
9342
9434
 
9343
9435
  ---
9344
9436
 
@@ -9599,6 +9691,42 @@ leaves, with a time, a scene x and y and a length, ready for `drawDustPuff`.
9599
9691
  Any beat can also take `onto` (a scene y): the figure is carried to that floor
9600
9692
  over the beat, as when the line it stands on moves up.
9601
9693
 
9694
+ ### On a v2 character
9695
+
9696
+ `characterScript(target, who, beats, options)` compiles the same beats for a
9697
+ v2 `character()` (see [Character Appearance](character-appearance.md)), so a
9698
+ cast member acts the story the stick figure does:
9699
+
9700
+ ```js
9701
+ import { character, castMember, characterScript, characterTarget, hairFollowTracks } from '@algorisys/tinyfly/characters'
9702
+
9703
+ const amy = character(castMember('youngWoman', 170))
9704
+ const script = characterScript('amy', amy, [
9705
+ { do: 'walk', to: 330, mood: 'happy' },
9706
+ { do: 'say', say: 'Is that box ticking?', mood: 'worried' },
9707
+ { do: 'take' },
9708
+ { do: 'zip', to: -200 },
9709
+ ], { from: 90, style: 'snappy' })
9710
+ const tracks = [...script.tracks, ...hairFollowTracks('amy', script.tracks, amy)]
9711
+ const targets = { amy: characterTarget({ x: 90, y: 300, character: amy }) }
9712
+ ```
9713
+
9714
+ It takes every `scriptTracks` option but `height` (the character's own is
9715
+ used) and returns the same result: tracks, `duration`, `lines`, `beats`,
9716
+ `effects`, and the key poses on the human body. The stick-figure script plans
9717
+ the story (timing, where the figure is, which way it faces, its gait, its
9718
+ speech); its key poses are taken onto the human body, mirrored when it faces
9719
+ left (so `turn` runs negative that way); the human acting pass then winds up,
9720
+ overshoots and overlaps on this body, and the lines are lip-synced over its
9721
+ mouth. The walk phase is rekeyed to the character's own stride (its height and
9722
+ legs: a child takes shorter steps), so its feet stay planted. The `walk`,
9723
+ `walking` and `gait` tracks step the gait as the target draws
9724
+ (`characterPoseOf(props)` folds them into the pose, for drawing by hand). Hands
9725
+ reach in the stick figure's proportions, so a `grab` or a `point` lands near
9726
+ its target on the human body, not exactly on it. Your own gaits go in
9727
+ `options.gaits` for the script and `gaits` on `characterTarget` so the drawing
9728
+ knows them too.
9729
+
9602
9730
  ## Your own actions, gaits and personas
9603
9731
 
9604
9732
  Behaviours of your own are plain values passed where they are used; nothing
@@ -9847,7 +9975,7 @@ lists the problems without compiling.
9847
9975
  ### Whiteboards
9848
9976
 
9849
9977
  `whiteboard()` is a second surface, for lessons that are not code: a board
9850
- (or `theme: 'chalkboard'`) whose texts and hand-drawn marks are declared as
9978
+ (or `theme: 'chalkboard'`, or `'lines'`, ruled paper with a margin) whose texts and hand-drawn marks are declared as
9851
9979
  data, each with an id, and named as places like a code panel's lines:
9852
9980
 
9853
9981
  ```js
@@ -9881,11 +10009,17 @@ everywhere. Colours are theme names (`red`, `blue`, `green`, `orange`, and
9881
10009
  `yellow` on chalk) or any CSS colour. The Board Lesson demo solves an
9882
10010
  equation this way.
9883
10011
 
10012
+ The boards write in a handwriting font, Patrick Hand, when the page loads it
10013
+ (the editor and the examples do, from Google Fonts), else the system's own
10014
+ hand. An arrow bows a little as a hand draws it; it bends round any text it
10015
+ would cross, and `bend` (a fraction of its length, + to its left) sets the bow.
10016
+
9884
10017
  ### Charts
9885
10018
 
9886
- `chart()` is a surface for talking through data: a bar or line chart whose
9887
- values are declared as data, scaled once when it is made (`max`, or a round
9888
- number above the largest value).
10019
+ `chart()` is a surface for talking through data: a bar, line, pie or donut
10020
+ chart whose values are declared as data. Bar and line charts are scaled once
10021
+ when they are made (`max`, or a round number above the largest value); a pie
10022
+ shares its circle by value.
9889
10023
 
9890
10024
  ```js
9891
10025
  const sales = chart({
@@ -9905,13 +10039,26 @@ surfaceScript('hero', { sales }, [
9905
10039
  ], { from: 640, ground: 400, height: 90, facing: -1 })
9906
10040
  ```
9907
10041
 
9908
- Its places are `bar:ID` (on a bar chart) or `point:ID` (on a line chart),
9909
- `label:ID`, `value:ID` and `box`, and they follow the values:
9910
- `sales.anchor('bar:q4', time)` is the bar as it stands then. Its edits:
9911
- `set` (a new `value`; the value label counts along), `show` (grow a
9912
- `hidden` bar in from the axis, or draw the line out to a point; `on: false`
9913
- takes it back) and `highlight`. A bar's top is a floor: a figure standing on
9914
- it is carried up and down as it grows and shrinks, as in the Chart Talk demo.
10042
+ Its places are `bar:ID` (on a bar chart), `point:ID` (on a line chart) or
10043
+ `slice:ID` (on a pie or donut), `label:ID`, `value:ID` and `box`, and they
10044
+ follow the values: `sales.anchor('bar:q4', time)` is the bar as it stands
10045
+ then. Its edits: `set` (a new `value`; the value label counts along, and a
10046
+ pie re-shares its circle), `show` (grow a `hidden` bar in from the axis, draw
10047
+ the line out to a point, or open a slice; `on: false` takes it back),
10048
+ `highlight`, and on a pie `pull` (the slice stands out from the centre). A
10049
+ bar's top is a floor: a figure standing on it is carried up and down as it
10050
+ grows and shrinks, as in the Chart Talk demo.
10051
+
10052
+ A slice can come loose: `traffic.piece('slice:other')` is a piece, and
10053
+ `fling`, `follow` and `move` carry it off as they do a term on a board, so a
10054
+ figure can kick the smallest slice out of the pie.
10055
+
10056
+ Several series (`series: [{ id: 'plan' }, { id: 'actual', color }]`, each
10057
+ datum with `values: { plan: 40, actual: 46 }`) draw grouped bars or one line
10058
+ per series, with a legend (`legend:SERIES` is a place too). Their places and
10059
+ edits take the series after the id: `bar:q1:actual`. Axis titles go in
10060
+ `axis: { x, y }`. A pie shows one series. The Pies & Series card shows all of
10061
+ it.
9915
10062
 
9916
10063
  ### Props as surfaces
9917
10064
 
@@ -9937,6 +10084,14 @@ surfaceScript('hero', { home: homeSurface }, [
9937
10084
  ], { from: 40, ground: floor, height: 100 })
9938
10085
  ```
9939
10086
 
10087
+ A prop's parts come loose too: `carSurface.piece('part:wheel-0-left')` is a
10088
+ piece, and `fling`, `follow` and `move` carry it off, drawn where it went
10089
+ (or as edits from a beat: `then: { edit: 'fling', anchor: 'part:wheel-0-left',
10090
+ at: 'contact' }` on a `kick`). Every anchor and part is also a floor: a figure
10091
+ that leaps `onto: { surface: 'car', anchor: 'anchor:roof' }` is carried as the
10092
+ car lifts, drives or is squashed, the way a bar carries it on a chart. The Kick
10093
+ the Tyre card does both.
10094
+
9940
10095
  A prop stands on its middle, and seen from a little above its front comes
9941
10096
  forward of that line. A figure that walks on the prop's own `y` is inside
9942
10097
  its footprint and seems to walk through the wall; walk it on the prop's
@@ -10041,8 +10196,8 @@ timeline plays: editor previews, players, embeds and exports.
10041
10196
  ## Not yet
10042
10197
 
10043
10198
  - A code panel in the editor (a Code element whose lines and words snap beats)
10044
- - Beat scripts for v2 characters (`scriptTracks` drives the stick figure)
10045
- - Follow-through on hair, tails and ears (character-system milestones 3 and 5)
10199
+ - Beat scripts' hands reaching in the v2 character's own proportions (a `grab`
10200
+ lands near its target, not on it)
10046
10201
 
10047
10202
  ---
10048
10203
 
@@ -10641,7 +10796,9 @@ a cart's `seat`) as the prop moves, turns, bobs with its stride and pitches,
10641
10796
  writing the rider's `x`, `y`, `z` and `rotateY`; `mount: { from: [x, z] }` and
10642
10797
  `dismount: { to: [x, z] }` hop it on and off. `spliceTracks(riderTracks, ride, { from, to })`
10643
10798
  puts the ride into the rider's script, which holds the riding pose
10644
- (`RIDING_POSES.astride` or `.seated`) meanwhile and `place`s it where it got
10799
+ (`RIDING_POSES.astride`, `.seated`, `.driving` with the hands on a wheel, or
10800
+ `.cycling`; `pedallingKeys({ start, end, cadence })` keys the legs round the
10801
+ pedals on the cycling pose) meanwhile and `place`s it where it got
10645
10802
  off. A character in a scene is drawn part by part, each part at its own depth
10646
10803
  (`characterPartsInView`), so a leg astride a horse shows on each side of it.
10647
10804
  A seat inside a closed cabin (a car's) is not handled yet: its glass is opaque
@@ -13247,7 +13404,7 @@ magnet.addEventListener('pointerleave', () => {
13247
13404
 
13248
13405
  <!-- capabilities: generated from the library -->
13249
13406
 
13250
- # tinyfly capabilities (v0.98.0)
13407
+ # tinyfly capabilities (v0.99.0)
13251
13408
 
13252
13409
  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).
13253
13410
 
@@ -13391,6 +13548,8 @@ With `style.hands`, each hand has `hand.left.<field>` / `hand.right.<field>` pro
13391
13548
 
13392
13549
  `scriptTracks(target, beats, { from, ground, height, facing, style })`. A beat has these fields only: `do`, `at`, `for`, `to`, `toward`, `mood`, `say`, `pose`, `target`, `onto`. Times are ms; `to` and `target` are scene px; `onto` is a floor's scene y.
13393
13550
 
13551
+ `characterScript(target, who, beats, options)` compiles the same beats for a v2 `character()` on a `characterTarget` (every option but `height`; the same result, its key poses on the human body; the walk phase keyed to that character's stride, and `walk` / `walking` / `gait` tracks that step the gait as the target draws). Add `hairFollowTracks(target, tracks, who)` after it so hanging hair swings.
13552
+
13394
13553
  | `do` | Needs | What happens |
13395
13554
  |---|---|---|
13396
13555
  | `walk` | `to` | Walks to `to` in the walk gait. |
@@ -13497,10 +13656,10 @@ Prop beat fields: `do`, `at`, `for`, `to`, `toward`, `speed`, `open`, `on`, `hei
13497
13656
  | `house()` | building | `door` (open), `lights` (on), `shake`, `smoke` | `door`, `lights` | door, doorstep, ridge, chimney |
13498
13657
  | `helicopter()` | aircraft | `takeOff`, `fly` (to), `hover`, `land` | `rotor`, `blur` | seat, door, rotor, skids, hook |
13499
13658
  | `airplane()` | aircraft | `takeOff` (to), `fly` (to), `loop`, `land` (to) | `rotor`, `blur` | seat, nose, tail, wingtip |
13500
- | `horse()` | animal | `walk` (to), `trot` (to), `canter` (to), `gallop` (to), `neigh`, `sit`, `lie`, `jump`, `nod`, `swish`, `graze`, `rear`, `buck` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front, hitch, saddle |
13501
- | `dog()` | animal | `walk` (to), `trot` (to), `run` (to), `gallop` (to), `bark`, `sit`, `lie`, `jump`, `nod`, `swish`, `wag`, `sniff` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front, leash |
13502
- | `cat()` | animal | `walk` (to), `trot` (to), `run` (to), `gallop` (to), `meow`, `sit`, `lie`, `jump`, `nod`, `swish`, `arch`, `pounce` (to) | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front |
13503
- | `cow()` | animal | `walk` (to), `trot` (to), `moo`, `sit`, `lie`, `jump`, `nod`, `swish`, `graze` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front |
13659
+ | `horse()` | animal | `walk` (to), `trot` (to), `canter` (to), `gallop` (to), `neigh`, `sit`, `lie`, `jump`, `nod`, `swish`, `graze`, `rear`, `buck` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `ears`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front, hitch, saddle |
13660
+ | `dog()` | animal | `walk` (to), `trot` (to), `run` (to), `gallop` (to), `bark`, `sit`, `lie`, `jump`, `nod`, `swish`, `wag`, `sniff` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `ears`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front, leash |
13661
+ | `cat()` | animal | `walk` (to), `trot` (to), `run` (to), `gallop` (to), `meow`, `sit`, `lie`, `jump`, `nod`, `swish`, `arch`, `pounce` (to) | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `ears`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front |
13662
+ | `cow()` | animal | `walk` (to), `trot` (to), `moo`, `sit`, `lie`, `jump`, `nod`, `swish`, `graze` | `walk`, `walking`, `gait`, `neck`, `tail`, `wag`, `ears`, `fl.swing`, `fl.knee`, `fl.ankle`, `fr.swing`, `fr.knee`, `fr.ankle`, `hl.swing`, `hl.knee`, `hl.ankle`, `hr.swing`, `hr.knee`, `hr.ankle` | back, head, mouth, front |
13504
13663
  | `songbird()` | bird | `hop` (to), `walk` (to), `peck`, `flap`, `tweet`, `fly` (to), `glide` (to), `land` | `spread`, `flap`, `wingbeat`, `flapping`, `peck`, `step`, `stepping`, `leg.left`, `leg.right` | beak, head, back, feet |
13505
13664
  | `crow()` | bird | `hop` (to), `walk` (to), `peck`, `flap`, `caw`, `fly` (to), `glide` (to), `land` | `spread`, `flap`, `wingbeat`, `flapping`, `peck`, `step`, `stepping`, `leg.left`, `leg.right` | beak, head, back, feet |
13506
13665
  | `chicken()` | bird | `hop` (to), `walk` (to), `peck`, `flap`, `cluck`, `flutter` | `spread`, `flap`, `wingbeat`, `flapping`, `peck`, `step`, `stepping`, `leg.left`, `leg.right` | beak, head, back, feet |
@@ -13518,6 +13677,7 @@ Appearance options of `character({ … })`, all plain data that turns with the h
13518
13677
  - `outfit`: `{ shirt, trousers, sleeves: short | long | none, bottom: trousers | shorts | skirt, collar, tie: colour, over: apron | labCoat, overColor }`
13519
13678
  - `castMember(name, height)`: `boy`, `girl`, `youngMan`, `youngWoman`, `man`, `woman`, `grandpa`, `grandma`, `doctor`, `cook`, `builder`, `courier`, `teacher`, `farmer`
13520
13679
  - Face marks (pose fields, 0–1): `blush`, `tears`, `sweat`
13680
+ - 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
13521
13681
  - `holding`: `mug` (left or right), `phone` (left or right), `book` (one hand or both), `bag` (left or right), `briefcase` (left or right), `umbrella` (left or right), `broom` (left or right), `parcel` (both); pose fields `held.left`, `held.right`, `held.both` (below 0.5 lets go); `handGrip(joints, side)`
13522
13682
  - `meetHands(kind, a, b)` (stand them `meetingSpacing(kind, a, b)` apart): `handshake`, `highFive`, `fistBump`, `handOver`
13523
13683
 
@@ -13580,7 +13740,7 @@ Edits:
13580
13740
 
13581
13741
  ### board
13582
13742
 
13583
- `whiteboard({ x, y, width, height, theme?: whiteboard | chalkboard, fontSize?, items: [{ id, text, at: [x, y], size?, color?, hidden? } | { id, mark: circle | box | underline | arrow, around? | from?, to?, color?, hidden? }] })`
13743
+ `whiteboard({ x, y, width, height, theme?: whiteboard | chalkboard | lines, fontSize?, items: [{ id, text, at: [x, y], size?, color?, hidden? } | { id, mark: circle | box | underline | arrow, around? | from?, to?, bend?, color?, hidden? }] })`
13584
13744
 
13585
13745
  Anchors:
13586
13746
  - `box`: the whole board
@@ -13598,19 +13758,22 @@ Edits:
13598
13758
 
13599
13759
  ### chart
13600
13760
 
13601
- `chart({ x, y, width, height, kind: bar | line, data: [{ id, label?, value, hidden? }], max?, title?, theme?: light | dark, decimals?, prefix?, suffix?, values? })`
13761
+ `chart({ x, y, width, height, kind: bar | line | pie | donut, data: [{ id, label?, value | values: { SERIES: value }, hidden? }], series?: [{ id, label?, color? }], max?, title?, axis?: { x?, y? }, legend?, theme?: light | dark, decimals?, prefix?, suffix?, values? })`
13602
13762
 
13603
13763
  Anchors:
13604
13764
  - `box`: the whole chart
13605
- - `bar:ID`: a bar (bar charts), as it stands at the time: stand on its top (it carries a figure as it grows), point at it
13606
- - `point:ID`: a point on the line (line charts), as it stands at the time
13607
- - `label:ID`: its label under the axis
13608
- - `value:ID`: its value label, above it
13765
+ - `bar:ID`: a bar (bar charts; bar:ID:SERIES with several series), as it stands at the time: stand on its top (it carries a figure as it grows), point at it
13766
+ - `point:ID`: a point on the line (line charts; point:ID:SERIES with several series), as it stands at the time
13767
+ - `slice:ID`: a slice of a pie or donut, as it stands at the time (its middle; pulled out, it moves): point at it, make it a piece
13768
+ - `label:ID`: its label: under the axis, or beside the slice
13769
+ - `value:ID`: its value label: above the bar or point (value:ID:SERIES), or on the slice
13770
+ - `legend:SERIES`: a series in the legend (several series)
13609
13771
 
13610
13772
  Edits:
13611
- - `set`: bar or point anchors; { at, value, duration? }: animate to a new value; its value label counts along
13612
- - `show`: bar or point anchors given `hidden`; { at, duration?, on? }: grow a bar in from the axis, or draw the line out to a point (on: false takes it back)
13613
- - `highlight`: bar or point anchors; { at, duration?, on? }: colour it out (on: false clears)
13773
+ - `set`: bar, point or slice anchors; { at, value, duration? }: animate to a new value; its value label counts along (a pie re-shares the circle)
13774
+ - `show`: bar, point or slice anchors given `hidden`; { at, duration?, on? }: grow a bar in from the axis, draw the line out to a point, or open a slice (on: false takes it back)
13775
+ - `highlight`: bar, point or slice anchors; { at, duration?, on? }: colour it out (on: false clears)
13776
+ - `pull`: slice anchors; { at, duration?, on? }: pull the slice out from the centre (on: false puts it back)
13614
13777
 
13615
13778
  ### prop
13616
13779
 
@@ -13619,12 +13782,14 @@ Edits:
13619
13782
  Anchors:
13620
13783
  - `box`: the prop’s whole box
13621
13784
  - `anchor:NAME`: one of its rig’s anchors (door, seat, branch, ridge…), as posed at the time
13622
- - `part:ID`: one of its parts as seen at the time (window-1, door-left, wheel-0-left…)
13623
- - `control:NAME`: where the parts a control moves or lights are (control:door is the doors, control:lights the lamps)
13785
+ - `part:ID`: one of its parts as seen at the time (window-1, door-left, wheel-0-left…); it can come loose as a piece
13786
+ - `control:NAME`: where the parts a control moves or lights are (control:door is the doors, control:lights the lamps; a control of the whole prop, like lift, is its box)
13624
13787
 
13625
13788
  Edits:
13626
13789
  - `set`: control anchors; { at, value, duration? }: move a control to a value
13627
13790
  - `switch`: control anchors; { at, on?, duration? }: a control to its full value (open, on), or back to its rest value with on: false
13791
+ - `move`: a part; { at, to: an anchor name or { x, y }, duration? }: carry the part there, loose
13792
+ - `fling`: a part; { at, velocity?, spin?, gravity?, duration? }: knock the part off on a spinning arc
13628
13793
 
13629
13794
  ## Camera shots (`cameraTracks(shots, { stage })`)
13630
13795
 
package/llms.txt CHANGED
@@ -13,47 +13,47 @@ Key facts:
13
13
  - For language models: read the capability catalog first (`npx @algorisys/tinyfly capabilities`, or the end of llms-full.txt). It is generated from the library, so every name in it (poses, expressions, gags, gaits, beat actions, canvas properties, code-panel edits) is accepted, and names not in it are rejected with the name probably meant. Check beat scripts with `npx @algorisys/tinyfly check beats.json`, tracks with `checkTracks(tracks, targets)`, and ask any target what it animates with `describeTarget(target)`. The npm package ships `docs/`, `llms.txt`, `llms-full.txt` and an agent skill (`skills/tinyfly/SKILL.md`); `docs/llm-guide.md` describes the workflow.
14
14
  - Source: https://github.com/algorisys-oss/tinyfly. License: MIT.
15
15
 
16
- All documentation and the interactive course in a single file: [llms-full.txt](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.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.99.0/llms-full.txt)
17
17
 
18
18
  ## Start here
19
19
 
20
- - [Getting Started](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/getting-started.md): What tinyfly is, making a first animation in the editor, and using it from code, a script tag or the CDN.
21
- - [GSAP Compatibility](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/gsap-compat.md): The GSAP-style API (`live.to`, `tf.timeline`): supported vars, motion paths, morphSVG, text, inertia, Draggable, Flip, and where it differs from GSAP.
22
- - [Code Examples](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/examples.md): Recipes with the engine API: fades, loops, colour and bezier easing, loading JSON, canvas and SVG rendering, multi-scene sequences, motion paths and script-tag embeds.
23
- - [Building Animations with an LLM](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/llm-guide.md): For assistants and the people setting them up: read the capability catalog (`tinyfly capabilities`), ask targets what they animate (`describeTarget`), check beats and tracks with did-you-mean errors (`tinyfly check`, `checkTracks`), render stills to look at, and the agent skill shipped in the package.
20
+ - [Getting Started](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.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.99.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.99.0/docs/examples.md): Recipes with the engine API: fades, loops, colour and bezier easing, loading JSON, canvas and SVG rendering, multi-scene sequences, motion paths and script-tag embeds.
23
+ - [Building Animations with an LLM](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.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.98.0/docs/api-reference.md): Every public engine, player and adapter API: Timeline, tracks, keyframes, easing, drivers, serialization and exports.
28
- - [File Format](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/file-format.md): The JSON animation format: timelines, every track kind, keyframes, easing and the project file — for generating or consuming animations.
27
+ - [API Reference](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.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.99.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.98.0/docs/editor-guide.md): Every panel and feature of the visual editor, from elements and keyframes to text and inertia tracks, preview and export.
33
- - [Shape Morphing](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/shape-morph.md): Tweening one path into another, including shapes with different point counts and several subpaths.
34
- - [Pen Tool](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/pen-tool.md): Drawing custom paths point by point with straight segments and bezier curves.
35
- - [Polygons & Stars](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/polygon-star.md): Parametric polygon and star shapes that stay editable while animating like any path.
36
- - [Grid & Snapping](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/grid-and-snapping.md): The grid overlay, snapping to grid, elements and artboard centre, and alignment guides.
37
- - [Onion Skinning](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/onion-skinning.md): Ghost frames before and after the playhead for judging arcs and easing.
38
- - [Sprite-sheet Export](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/sprite-sheet-export.md): Exporting frames as a PNG grid plus JSON metadata for game engines and canvas players.
32
+ - [Editor Guide](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.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.99.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.99.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.99.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.99.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.99.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.99.0/docs/sprite-sheet-export.md): Exporting frames as a PNG grid plus JSON metadata for game engines and canvas players.
39
39
 
40
40
  ## Guides
41
41
 
42
- - [Scroll Animation](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/scroll-animation.md): Scroll-driven and play-when-visible animation with ScrollDriver and VisibilityDriver.
43
- - [Props: Everyday Objects with Behaviours](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/props.md): Cars, trucks, buses, tractors, carts, train carriages, bikes, motorbikes, trees, houses, a helicopter and a plane: 3D rigs drawn with the characters’ pens (clean, pencil) that turn toward the camera, with beats acted through the 12 principles (anticipation, squash and stretch, follow-through, an exaggeration dial), wheels that roll exactly, effects, and figures riding them.
44
- - [Teaching Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/teaching.md): Step-through explanatory figures: markers, captions in several languages, the teaching player, step controls, one-script declarative embeds, tinyfly/teach diagram primitives, and validate / render for build pipelines.
45
- - [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/video-rendering.md): Rendering a scene to MP4 without a browser: `tinyfly video`, custom canvas targets drawn by code, timing from narration and recorded voice-over, the stick-figure character, SRT/WebVTT captions, stills, porting Cairo scripts, and a benchmark against pycairo.
46
- - [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/maps.md): Maps that animate: a camera that flies in to a city, pins that drop in, routes that draw themselves while a marker travels them, on OpenStreetMap tiles or an offline world outline (also in pencil), in the browser and in headless video.
47
- - [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/cartoon-hands.md): A hand you can pose: a palm and five fingers in 3D, posed by numbers (curls, thumb, spread, wrist turn), ready-made shapes from a fist to a pencil grip, left and right, four or five fingers, in clean, pencil and silhouette looks; the animator's hand and character gloves are built on it.
48
- - [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/character-appearance.md): Hair (34 styles), facial hair (20), glasses, hats and ears for the v2 character as plain data on the head, so they turn with it through all eight views; builds (child, tall, short…), a recurring cast (castMember), expressions with blush, tears and sweat, everyday poses, held items (mug, phone, bags, umbrella, parcel) and two characters’ hands meeting (meetHands: handshake, high five, hand-over).
49
- - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/acting.md): actTracks(): the same key poses, acted: anticipation, overshoot and settle, overlapping joints, eyes that lead and blink, moving holds and jump squash, in full, snappy or limited styles; gags as data (take, double take, wind-up); a line of action (bend); gaits with personality; lip-sync from text (Latin and Devanagari); beat scripts compiled to acted tracks; your own actions (defineAction), gaits (defineGait) and personas (persona()); acting on code (codePanel lines and words as anchors: leap onto a line, point at it, swipe it away wiped, knocked off or blurred; grab, throw, kick, carry and drop words, push them along their line, write new text in by hand; ride a line as gaps close); camera shots (push in, cut, shake, follow); the cartoon zip; speed lines, dust puffs and impact stars; drawing on twos (a timeline setting); acting, gags, walks and lines in the editor.
50
- - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/dance.md): The stick figure dances disco, hip hop, breaking, jazz, K-pop, Bollywood, Bhangra, Bharatanatyam (with mudras), the Charleston, tap (with tap sounds) and popping (side glide, moonwalk), and does front, back, layout and scissor flips, cartwheels, handsprings, split leaps and full splits: wrists, ankles, turn-out, spin and rise as pose fields; moves keyed in beats; styles, grooves and routines as plain data.
51
- - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/scene-3d.md): @algorisys/tinyfly/scene-3d: cameras, lights and meshes as JSON, in metres, animated by tracks at <scene>/<object> (cuts with activeCamera), drawn on a 2D canvas with flat, smooth or toon shading, ink outlines and fog, in browsers, Workers and Node (MP4 with tinyfly video); v2 characters in scenes, dancing, in their pen looks or as solid figures, seen by any camera.
52
- - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/3d-rotations.md): CSS-style 3D for flat elements in every renderer (rotateX, rotateY, z, perspective, backface visibility; true perspective on Canvas and WebGL, matching CSS within a pixel), one documented transform order, the editor's 3D fields; smooth quaternion rotations with interpolation: "slerp"; the vec3, quat and mat4 helpers; format version 2.
53
- - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/extending.md): Writing a render adapter, animating any object with live and the ticker, custom and parametric eases, stagger offsets, adding a track kind, and contributing gallery examples.
54
- - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
42
+ - [Scroll Animation](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/scroll-animation.md): Scroll-driven and play-when-visible animation with ScrollDriver and VisibilityDriver.
43
+ - [Props: Everyday Objects with Behaviours](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/props.md): Cars, trucks, buses, tractors, carts, train carriages, bikes, motorbikes, trees, houses, a helicopter and a plane: 3D rigs drawn with the characters’ pens (clean, pencil) that turn toward the camera, with beats acted through the 12 principles (anticipation, squash and stretch, follow-through, an exaggeration dial), wheels that roll exactly, effects, and figures riding them.
44
+ - [Teaching Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/teaching.md): Step-through explanatory figures: markers, captions in several languages, the teaching player, step controls, one-script declarative embeds, tinyfly/teach diagram primitives, and validate / render for build pipelines.
45
+ - [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/video-rendering.md): Rendering a scene to MP4 without a browser: `tinyfly video`, custom canvas targets drawn by code, timing from narration and recorded voice-over, the stick-figure character, SRT/WebVTT captions, stills, porting Cairo scripts, and a benchmark against pycairo.
46
+ - [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/maps.md): Maps that animate: a camera that flies in to a city, pins that drop in, routes that draw themselves while a marker travels them, on OpenStreetMap tiles or an offline world outline (also in pencil), in the browser and in headless video.
47
+ - [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/cartoon-hands.md): A hand you can pose: a palm and five fingers in 3D, posed by numbers (curls, thumb, spread, wrist turn), ready-made shapes from a fist to a pencil grip, left and right, four or five fingers, in clean, pencil and silhouette looks; the animator's hand and character gloves are built on it.
48
+ - [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/character-appearance.md): Hair (34 styles), facial hair (20), glasses, hats and ears for the v2 character as plain data on the head, so they turn with it through all eight views; builds (child, tall, short…), a recurring cast (castMember), expressions with blush, tears and sweat, everyday poses, held items (mug, phone, bags, umbrella, parcel) and two characters’ hands meeting (meetHands: handshake, high five, hand-over).
49
+ - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/acting.md): actTracks(): the same key poses, acted: anticipation, overshoot and settle, overlapping joints, eyes that lead and blink, moving holds and jump squash, in full, snappy or limited styles; gags as data (take, double take, wind-up); a line of action (bend); gaits with personality; lip-sync from text (Latin and Devanagari); beat scripts compiled to acted tracks; your own actions (defineAction), gaits (defineGait) and personas (persona()); acting on code (codePanel lines and words as anchors: leap onto a line, point at it, swipe it away wiped, knocked off or blurred; grab, throw, kick, carry and drop words, push them along their line, write new text in by hand; ride a line as gaps close); camera shots (push in, cut, shake, follow); the cartoon zip; speed lines, dust puffs and impact stars; drawing on twos (a timeline setting); acting, gags, walks and lines in the editor.
50
+ - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/dance.md): The stick figure dances disco, hip hop, breaking, jazz, K-pop, Bollywood, Bhangra, Bharatanatyam (with mudras), the Charleston, tap (with tap sounds) and popping (side glide, moonwalk), and does front, back, layout and scissor flips, cartwheels, handsprings, split leaps and full splits: wrists, ankles, turn-out, spin and rise as pose fields; moves keyed in beats; styles, grooves and routines as plain data.
51
+ - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/scene-3d.md): @algorisys/tinyfly/scene-3d: cameras, lights and meshes as JSON, in metres, animated by tracks at <scene>/<object> (cuts with activeCamera), drawn on a 2D canvas with flat, smooth or toon shading, ink outlines and fog, in browsers, Workers and Node (MP4 with tinyfly video); v2 characters in scenes, dancing, in their pen looks or as solid figures, seen by any camera.
52
+ - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/3d-rotations.md): CSS-style 3D for flat elements in every renderer (rotateX, rotateY, z, perspective, backface visibility; true perspective on Canvas and WebGL, matching CSS within a pixel), one documented transform order, the editor's 3D fields; smooth quaternion rotations with interpolation: "slerp"; the vec3, quat and mat4 helpers; format version 2.
53
+ - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/extending.md): Writing a render adapter, animating any object with live and the ticker, custom and parametric eases, stagger offsets, adding a track kind, and contributing gallery examples.
54
+ - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
55
55
 
56
56
  ## Optional
57
57
 
58
- - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/README.md): Feature overview, project layout and development setup.
59
- - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.98.0/release-notes/README.md): What changed in each version.
58
+ - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.0/README.md): Feature overview, project layout and development setup.
59
+ - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.99.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.98.0",
3
+ "version": "0.99.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",
@@ -31,9 +31,11 @@ names.
31
31
 
32
32
  ## 2. Write
33
33
 
34
- - Prefer the high-level builders: `scriptTracks()` beats for characters,
35
- `codePanel()` for code, `whiteboard()` for lessons on a board,
36
- `chart()` for bar and line charts, `lesson()` and the diagram primitives for teaching
34
+ - Prefer the high-level builders: `scriptTracks()` beats for characters
35
+ (`characterScript(target, who, beats)` for the same beats on a v2
36
+ `character()`, then `hairFollowTracks`), `codePanel()` for code, `whiteboard()` for lessons on a board,
37
+ `chart()` for bar, line, pie and donut charts (several series, a legend, axis
38
+ titles; slices come loose as pieces), `lesson()` and the diagram primitives for teaching
37
39
  figures, `cameraTracks()` for camera moves. They produce plain JSON tracks.
38
40
  - Aim beats at anchors, never guessed coordinates: `code.line(n)`,
39
41
  `code.token(n, 'word')`, `code.spot(n, column, width)`, `piece.home`,
@@ -71,7 +73,10 @@ names.
71
73
  `hair` (`'bob'` or `{ style, color, length }`), `facialHair`, `glasses`,
72
74
  `hat`, `ears: true`, `outfit: { shirt, trousers }`; or start from
73
75
  `castMember('grandma', height)`. Hair and hats turn with the head, so one
74
- description serves every view. Faces are `HUMAN_EXPRESSIONS` plus the pose
76
+ description serves every view; hanging hair swings after a turn or a run when
77
+ you add `hairFollowTracks(target, tracks, who)` after the character's tracks
78
+ (per-frame code: `hairFollow` once, `hairMotionAt(keys, t)` each frame).
79
+ Faces are `HUMAN_EXPRESSIONS` plus the pose
75
80
  fields `blush`, `tears`, `sweat` (0–1). Items in hands: `holding`
76
81
  (`held.<side>` lets go); hands that meet: `meetHands(kind, a, b)` at
77
82
  `meetingSpacing`. See `docs/character-appearance.md`.