@algorisys/tinyfly 0.109.0 → 0.110.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.
@@ -1,7 +1,7 @@
1
1
  import { type PropertyInfo } from '../adapters/canvas/target-properties';
2
2
  import type { SurfaceAbout } from './surface/surface';
3
3
  import type { Cast } from './acting/custom';
4
- import { CRICKET_FORMATS } from '../sports/cricket/cricket-types';
4
+ import { CRICKET_CASTS, CRICKET_FORMATS, CRICKET_FIELDING_POSITIONS } from '../sports/cricket/cricket-types';
5
5
  import { CRICKET_VIEWS } from '../sports/cricket/cricket-camera';
6
6
  export interface Capabilities {
7
7
  sports: {
@@ -11,6 +11,8 @@ export interface Capabilities {
11
11
  summary: string;
12
12
  }>;
13
13
  formats: typeof CRICKET_FORMATS;
14
+ casts: typeof CRICKET_CASTS;
15
+ fieldingPositions: typeof CRICKET_FIELDING_POSITIONS;
14
16
  cameras: typeof CRICKET_VIEWS;
15
17
  };
16
18
  };
@@ -7,6 +7,8 @@ export interface CricketCameraOptions {
7
7
  view?: CricketView;
8
8
  /** Any azimuth, degrees; orbit adds one complete revolution to this angle. */
9
9
  yaw?: number;
10
+ /** Optical magnification, 0.25–4; 1 preserves the view's default framing. */
11
+ zoom?: number;
10
12
  every?: number;
11
13
  }
12
14
  /** Public scene camera tracks; UI controls merely select these builder inputs. */
@@ -21,11 +21,18 @@ export declare const progress: (time: number, start: number, end: number) => num
21
21
  export declare const smooth: (t: number) => number;
22
22
  export declare const add: (a: Vec3, b: Vec3) => Vec3;
23
23
  export declare const scale: (a: Vec3, b: number) => Vec3;
24
+ /** The nearest equivalent body yaw, in quarter turns, without a wrap-around spin. */
25
+ export declare function turnNear(turn: number, reference: number): number;
26
+ export declare function turnToward(from: Vec3, to: Vec3, reference?: number): number;
27
+ /** Right-handed guard: left shoulder/front foot toward the bowler, soft knees. */
28
+ export declare function battingStance(): Pose;
24
29
  export declare function cricketActor(scene: Scene3D, id: string): CricketActor;
25
30
  export declare function restSample(actor: CricketActor): CricketSample;
26
31
  /** Actual native wrist/elbow/leg points in world space, including grounding and body yaw. */
27
32
  export declare function cricketJoint(actor: CricketActor, sample: CricketSample, chain: string, index: number): Vec3;
28
33
  export declare function cricketPalm(actor: CricketActor, sample: CricketSample, side: 'left' | 'right'): Vec3;
34
+ /** Aim the head in the rig's own neck frame, including a bent/leaning torso. */
35
+ export declare function cricketLook(actor: CricketActor, sample: CricketSample, target: Vec3): CricketSample;
29
36
  /** Solve to the rendered palm rather than snapping an unattached prop to a desired hand point. */
30
37
  export declare function cricketReach(actor: CricketActor, sample: CricketSample, side: 'left' | 'right', target: Vec3, shape?: keyof typeof HAND_SHAPES): CricketSample;
31
38
  export declare function gripBat(actor: CricketActor, sample: CricketSample, target: Vec3, axis: Vec3): CricketSample;
@@ -5,7 +5,7 @@ import type { CharacterOptions } from '../../characters/character';
5
5
  import type { SoftCartoonName } from '../../characters/soft-cartoon-cast';
6
6
  export type CricketFormat = 'test' | 'odi' | 't20';
7
7
  export type CricketRole = 'batter' | 'bowler' | 'keeper' | 'fielder' | 'umpire';
8
- export type CricketCast = 'adults' | 'children' | 'mixed';
8
+ export type CricketCast = 'adults' | 'men' | 'children' | 'mixed';
9
9
  export type CricketAction = 'bowling' | 'spin' | 'batting' | 'defend' | 'running' | 'four' | 'six' | 'catch' | 'fielding' | 'throw' | 'bowled' | 'lbw' | 'stumping' | 'run-out' | 'no-ball' | 'wide';
10
10
  export interface CricketFormatInfo {
11
11
  name: string;
@@ -17,6 +17,20 @@ export interface CricketFormatInfo {
17
17
  }
18
18
  /** Basic international format facts, not a full set of competition playing conditions. */
19
19
  export declare const CRICKET_FORMATS: Readonly<Record<CricketFormat, Readonly<CricketFormatInfo>>>;
20
+ export declare const CRICKET_CASTS: Readonly<Record<CricketCast, string>>;
21
+ export declare const CRICKET_FIELDING_POSITIONS: Readonly<{
22
+ bowler: "Bowler";
23
+ keeper: "Wicketkeeper";
24
+ fielder: "Extra cover";
25
+ slip: "Slip";
26
+ point: "Point";
27
+ cover: "Cover";
28
+ 'mid-off': "Mid-off";
29
+ 'mid-on': "Mid-on";
30
+ 'square-leg': "Square leg";
31
+ 'fine-leg': "Fine leg";
32
+ 'third-man': "Third man";
33
+ }>;
20
34
  export interface CricketPlayerOptions {
21
35
  id: string;
22
36
  role: CricketRole;
@@ -1,5 +1,5 @@
1
1
  export { cricketPlayer, cricketField, CRICKET_PITCH } from './cricket-field';
2
2
  export { cricketAction, cricketClip, cricketEventAt } from './cricket-action';
3
3
  export { cricketCameraTracks, CRICKET_VIEWS, CRICKET_CAMERA_ANGLES, type CricketView, type CricketCameraOptions } from './cricket-camera';
4
- export { CRICKET_FORMATS, CRICKET_ACTIONS } from './cricket-types';
4
+ export { CRICKET_FORMATS, CRICKET_ACTIONS, CRICKET_CASTS, CRICKET_FIELDING_POSITIONS } from './cricket-types';
5
5
  export type { CricketFormat, CricketRole, CricketCast, CricketAction, CricketFormatInfo, CricketPlayerOptions, CricketFieldOptions, CricketField, CricketEvent, CricketResult, CricketActionOptions, CricketActionResult, CricketClip, CricketPlayer } from './cricket-types';
package/llms-full.txt CHANGED
@@ -53,15 +53,16 @@ See [getting started](getting-started.md) for the versioned CDN URLs.
53
53
  | API | Result |
54
54
  | --- | --- |
55
55
  | `cricketPlayer({ id, role, preset?, format?, height?, position?, color?, headwear?, appearance? })` | An owned JSON `character` scene object. Roles: batter, bowler, keeper, fielder, umpire. Presets include youngMan, youngWoman, childBoy, childGirl. |
56
- | `cricketField({ id?, format?, cast?, boundaryRadius?, battingColor?, fieldingColor? })` | `scene`, `format`, `boundaryRadius`, `landmarks`. A 20.12 × 3.05 metre pitch, standard creases, wickets/bails, two bats, ball, boundary, eleven fielding players, two batters and two umpires. |
56
+ | `cricketField({ id?, format?, cast?, boundaryRadius?, battingColor?, fieldingColor? })` | `scene`, `format`, `boundaryRadius`, `landmarks`; stock fielders have human-readable JSON `name` labels. A 20.12 × 3.05 metre pitch, standard creases, wickets/bails, two bats, ball, boundary, eleven fielding players, two batters and two umpires. |
57
57
  | `cricketAction(field, { action?, duration?, every? })` | A JSON timeline, timed events/captions and declared example result. Does not modify the field. |
58
58
  | `cricketClip(options)` | Combines field and action; default T20, adult cast, pace bowling, 6000 ms. |
59
59
  | `cricketCameraTracks(clip, { view?, yaw?, every? })` | Ordinary scene camera tracks. Merge these with the action tracks. |
60
60
  | `cricketEventAt(events, time)` | Most recent event at that time, including when seeking backward. |
61
61
  | `ballFlightPoint(options, time)`, `ballFlightTracks(options)` | Shared sampled arcs for other sports too. `from`, `to`, `arc`, `curve`, `start`, `end`, `target`; exact endpoints. |
62
62
 
63
- Units are metres, milliseconds and degrees. `cast` is `adults`, `children` or
64
- `mixed`; `format` is `test`, `odi` or `t20`. `boundaryRadius` defaults to 64 m
63
+ Units are metres, milliseconds and degrees. `cast` is `adults`, `men`, `children` or
64
+ `mixed`; `CRICKET_CASTS` exports their labels. `men` uses the existing youngMan
65
+ organic preset for every role; adults/children/mixed retain their varied casts; `format` is `test`, `odi` or `t20`. `boundaryRadius` defaults to 64 m
65
66
  and accepts 24–250 m. A boundary is venue dependent. Sampling defaults to 40 ms,
66
67
  accepts 16–1000 ms and always includes play contact events. Durations accept
67
68
  4000–60000 ms; changing duration scales the whole play. Player height accepts
@@ -73,6 +74,57 @@ The standard action builder expects the named actors/equipment from
73
74
  scale. It owns poses and paths for that layout. Customize appearance and
74
75
  uniforms before compiling; author your own scene tracks for a different layout.
75
76
 
77
+ Fielders watch the bowler during the run-up, smoothly pick up the moving ball
78
+ after release, track its flight and bounce, then follow it after contact or a miss. Head turns
79
+ use the rig's neck frame, including torso lean, and are independent of the
80
+ camera. Stationary fielders turn their bodies toward the play; running players
81
+ face their travel and collectors keep their catch/throw poses. The striker uses
82
+ a side-on right-handed guard: left shoulder and front foot toward the bowler,
83
+ soft knees, both feet supported, left hand above the right on the handle and a
84
+ bat resting near the back foot. These authored poses also fit the child rig.
85
+
86
+ The live example keeps cast/action/camera selection and playback/scrubbing in a
87
+ panel beside the scene, or above it on narrow screens. Select **Men** in Cast for
88
+ the male team; individual players remain editable through `cricketPlayer`.
89
+
90
+ ## Teams and stock field positions
91
+
92
+ Each team has eleven players. `cricketField` shows all eleven of the fielding
93
+ XI, two on-field batters (striker and non-striker) and two umpires. The other
94
+ nine members of the batting XI wait off-field.
95
+
96
+ `CRICKET_FIELDING_POSITIONS` exports the stock actor IDs and labels as plain
97
+ JSON data. Each corresponding scene object also carries the label in `name`:
98
+ Bowler, Wicketkeeper, Extra cover (`fielder`, the collecting actor), Slip,
99
+ Point, Cover, Mid-off, Mid-on, Square leg, Fine leg and Third man. IDs used by
100
+ action tracks remain stable. These are illustrative placements, not a roster
101
+ or automatic field-setting system.
102
+
103
+ For this right-handed striker, the off side is in front of the chest (+x),
104
+ and the on or leg side is behind the back (−x). Mid-on stands on the leg side
105
+ closer to the pitch toward the bowler; long-on is its deeper boundary
106
+ alternative. Long-on is not an additional stock fielder. Choose a different
107
+ layout by authoring your own scene and tracks.
108
+
109
+ Wicketkeeper and slip stand behind the striker. Their attention follows the
110
+ actual delivery through its flight and bounce rather than turning to the batter
111
+ before the ball arrives. Their native head poses aim at world targets,
112
+ independently of their body yaw and camera selection. The live example's
113
+ **Teams and field positions** disclosure uses the scene's JSON labels.
114
+
115
+ ## Review zoom
116
+
117
+ Pass `zoom` to `cricketCameraTracks(clip, { view: 'batter', zoom: 2 })` for
118
+ 2× magnification. All eight views support 0.25–4 (default 1), including orbit
119
+ and ball follow. Zoom changes the field of view while preserving camera position,
120
+ look target, clipping distances, player motion and current story time. Invalid
121
+ or non-finite zoom values throw. The generated camera tracks are ordinary JSON.
122
+
123
+ The example provides a 25%–400% slider, zoom-in/out buttons and **Reset**.
124
+ Zoom persists while choosing another play, cast or view, and downloaded story
125
+ JSON includes the selected magnification. Native range controls support keyboard
126
+ and touch review; zooming does not seek, pause or restart playback.
127
+
76
128
  ## Plays and cameras
77
129
 
78
130
  `CRICKET_ACTIONS` contains sixteen plays:
@@ -94,7 +146,9 @@ ball and fielder keyed to the same palm contact.
94
146
  Defensive blocks retain their downward two-hand bat pose and emit the `contact`
95
147
  event with the “Bat contact” label. Pace, spin, no-ball and stumping deliveries
96
148
  pass outside the off stump on the side away from the batter, allowing for the
97
- displayed ball and stump radii before collection. Bowled keeps its intentional
149
+ displayed ball and stump radii before collection. Their positive-x clearance
150
+ path also avoids both native legs throughout the delivery, including the
151
+ striker’s movement during stumping. Bowled keeps its intentional
98
152
  wicket collision; stumping keeps the later hand-held wicket break.
99
153
 
100
154
  `CRICKET_VIEWS` offers `pitch`, `batter`, `bowler`, `keeper`, `field`, `overhead`,
@@ -336,7 +390,7 @@ with a GSAP-style call (durations are in seconds here):
336
390
  ```html
337
391
  <div class="box" style="width:60px;height:60px;background:#4a9eff"></div>
338
392
 
339
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.109.0/cdn/tinyfly.iife.js"></script>
393
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.110.0/cdn/tinyfly.iife.js"></script>
340
394
  <script>
341
395
  tinyfly.to('.box', { x: 200, duration: 1 })
342
396
  </script>
@@ -544,7 +598,7 @@ Without a build step, the all-in-one bundle exposes the same functions on a
544
598
  global — `tinyfly.to()`, `tinyfly.timeline()` and so on:
545
599
 
546
600
  ```html
547
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.109.0/cdn/tinyfly.iife.js"></script>
601
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.110.0/cdn/tinyfly.iife.js"></script>
548
602
  <script>
549
603
  tinyfly.to('.box', { x: 200, duration: 1 })
550
604
  </script>
@@ -2459,7 +2513,7 @@ For simple website embedding without a build system.
2459
2513
  </html>
2460
2514
  ```
2461
2515
 
2462
- 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.109.0/cdn/tinyfly-player.iife.js`.
2516
+ 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.110.0/cdn/tinyfly-player.iife.js`.
2463
2517
 
2464
2518
  ---
2465
2519
 
@@ -6812,7 +6866,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
6812
6866
  **Steps to embed:**
6813
6867
  1. Build the player: `npm run build:player`
6814
6868
  2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
6815
- `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.109.0/cdn/tinyfly-player.iife.js`
6869
+ `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.110.0/cdn/tinyfly-player.iife.js`
6816
6870
  instead; see [Deployment](DEPLOYMENT.md))
6817
6871
  3. Copy the generated code into your HTML
6818
6872
  4. Adjust the script `src` path if needed
@@ -8056,7 +8110,7 @@ bakes. See `docs/dance.md`.
8056
8110
  For cricket tutorials, import `cricketClip`, `cricketCameraTracks` and
8057
8111
  `cricketEventAt` from `@algorisys/tinyfly/sports`. The clip is an owned scene,
8058
8112
  JSON timeline, timed captions and declared result. Choose `test | odi | t20`,
8059
- `adults | children | mixed`, and a play from `CRICKET_ACTIONS`. Merge camera
8113
+ `adults | men | children | mixed`, and a play from `CRICKET_ACTIONS`. Merge camera
8060
8114
  tracks with action tracks; render with scene-3d plus `[characterObjects]`.
8061
8115
  The UI is a consumer of these APIs. `orbit` covers the full ground in 360°;
8062
8116
  `follow-ball` keys against the same ball tracks. Contacts are sampled exactly,
@@ -8065,6 +8119,27 @@ demonstrations, not collision-based umpiring or an innings simulator. Do not
8065
8119
  infer new outcomes from the illustrative arcs. See `docs/cricket.md` and
8066
8120
  `examples/headless-video/cricket-story.mjs`; `/examples/live-cricket-story`
8067
8121
  has event seeking and downloadable scene/action/camera JSON.
8122
+ `CRICKET_FIELDING_POSITIONS` maps the eleven stock fielding IDs to public labels;
8123
+ scene objects carry them in `name`. `fielder` is Extra cover. Keep eleven fielders,
8124
+ two on-field batters and two umpires; nine batting teammates wait off-field.
8125
+ Mid-on is closer to the pitch; long-on is its deeper boundary alternative, not
8126
+ an extra stock player. For the right-handed striker, +x is off side and −x is
8127
+ on/leg side. Keeper/slip stand behind the striker; track the actual incoming delivery,
8128
+ never force their heads toward a screen direction or the camera.
8129
+ `cricketCameraTracks(clip, { view, zoom })` supports optical zoom 0.25–4
8130
+ (default 1) for every view, preserving the camera path and story state. Merge
8131
+ the returned field-of-view track into exported JSON; do not CSS-scale the canvas.
8132
+ In camera-sorted character rendering, rear hair and hats belong to the head
8133
+ pass; attaching them to the final body part lets the skin paint over them.
8134
+ `CRICKET_CASTS` supplies cast labels; `men` uses the existing youngMan organic
8135
+ preset for every role. Standard actions include camera-independent fielding
8136
+ attention: bowler during run-up, moving delivery after release and through the
8137
+ bounce, then the ball after contact/miss. Do not switch to the batter early.
8138
+ The right-handed guard is side-on with the left hand above the right; preserve
8139
+ these world-facing poses instead of rotating players toward the camera.
8140
+ Keeper-bound misses pass on positive x, clear of the native legs and stumps
8141
+ through every ball segment, including sparse keys and scaled durations. Keep
8142
+ keeper palm contacts and intentional LBW pad contact.
8068
8143
  Wide cameras support the full 24–250 m boundary range; equivalent yaw angles
8069
8144
  use identical geometry. Ball-follow cameras sample only ball position channels.
8070
8145
  Render the headless example with `tinyfly video <scene.mjs> -o <output.mp4>`.
@@ -8349,7 +8424,7 @@ path for all of that:
8349
8424
  </figure>
8350
8425
 
8351
8426
  <!-- once, anywhere on the page (a site-wide footer is fine) -->
8352
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.109.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
8427
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.110.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
8353
8428
  ```
8354
8429
 
8355
8430
  Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
@@ -9621,8 +9696,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
9621
9696
  adds to the same `tinyfly` global:
9622
9697
 
9623
9698
  ```html
9624
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.109.0/cdn/tinyfly.iife.js"></script>
9625
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.109.0/cdn/tinyfly-maps.iife.js"></script>
9699
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.110.0/cdn/tinyfly.iife.js"></script>
9700
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.110.0/cdn/tinyfly-maps.iife.js"></script>
9626
9701
  ```
9627
9702
 
9628
9703
  It is a separate script because the offline world map it carries adds about
@@ -10016,8 +10091,11 @@ off the head, how far it hangs), drawn wherever the head's `turn`, `head.turn`,
10016
10091
  shoulders seen from the front, and a bob shows beside the face;
10017
10092
  - the part facing the viewer is drawn over the head, so a fringe crosses the
10018
10093
  forehead and, from behind, the hair covers the whole head;
10019
- - turned away (past about `turn` 1.2), the hair is drawn after the whole body,
10020
- over an arm at the side;
10094
+ - in a whole-figure 2D draw, turned away (past about `turn` 1.2), hair is
10095
+ drawn after the body, over an arm at the side;
10096
+ - in a camera-sorted 3D scene, rear hair and hats draw with the head's own
10097
+ part, after its skin. They remain attached through independent head turns
10098
+ and nods, without another body's draw order exposing the scalp;
10021
10099
  - a parting, a side ponytail or a braid stays on the character's own side
10022
10100
  through a turn: left and right are the character's, never mirrored.
10023
10101
 
@@ -14797,7 +14875,7 @@ magnet.addEventListener('pointerleave', () => {
14797
14875
 
14798
14876
  <!-- capabilities: generated from the library -->
14799
14877
 
14800
- # tinyfly capabilities (v0.109.0)
14878
+ # tinyfly capabilities (v0.110.0)
14801
14879
 
14802
14880
  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).
14803
14881
 
@@ -15233,7 +15311,9 @@ Edits:
15233
15311
  - `no-ball`: The landing front foot oversteps the popping crease at release; one extra, no legal ball.
15234
15312
  - `wide`: An untouched delivery passes beyond reach for a normal stroke; one extra, no legal ball.
15235
15313
 
15236
- Formats: `test`, `odi`, `t20`. Casts: adults, children, mixed. Cameras: `pitch`, `batter`, `bowler`, `keeper`, `field`, `overhead`, `orbit`, `follow-ball`. Orbit turns 360° around the whole ground.
15314
+ Formats: `test`, `odi`, `t20`. Casts: `adults`, `men`, `children`, `mixed`. Cameras: `pitch`, `batter`, `bowler`, `keeper`, `field`, `overhead`, `orbit`, `follow-ball`. Orbit turns 360° around the whole ground. `cricketCameraTracks(clip, { view, zoom })` supports 0.25–4× optical magnification (default 1) in every view.
15315
+
15316
+ Stock fielding labels (`CRICKET_FIELDING_POSITIONS`): `bowler`: Bowler, `keeper`: Wicketkeeper, `fielder`: Extra cover, `slip`: Slip, `point`: Point, `cover`: Cover, `mid-off`: Mid-off, `mid-on`: Mid-on, `square-leg`: Square leg, `fine-leg`: Fine leg, `third-man`: Third man. Eleven fielders, two on-field batters and two umpires; nine batting teammates wait off-field. Mid-on is closer to the pitch; long-on is its deeper boundary alternative, not an extra stock fielder. For the right-handed striker, +x is off side and -x is on/leg side.
15237
15317
 
15238
15318
  ## Camera shots (`cameraTracks(shots, { stage })`)
15239
15319
 
package/llms.txt CHANGED
@@ -13,48 +13,48 @@ 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.109.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.110.0/llms-full.txt)
17
17
 
18
18
  ## Start here
19
19
 
20
- - [Getting Started](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.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.109.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.109.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.109.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.110.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.110.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.110.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.110.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.109.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.109.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.110.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.110.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.109.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.109.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.109.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.109.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.109.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.109.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.109.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.110.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.110.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.110.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.110.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.110.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.110.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.110.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.109.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.109.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.109.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.109.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
- - [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.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.
47
- - [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.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.
48
- - [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.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.
49
- - [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.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).
50
- - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.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.
51
- - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.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.
52
- - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.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.
53
- - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.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.
54
- - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.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.
55
- - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.0/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
42
+ - [Cricket Stories](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.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.110.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.110.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.110.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
+ - [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.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.
47
+ - [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.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.
48
+ - [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.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.
49
+ - [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.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).
50
+ - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.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.
51
+ - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.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.
52
+ - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.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.
53
+ - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.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.
54
+ - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.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.
55
+ - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.0/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
56
56
 
57
57
  ## Optional
58
58
 
59
- - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.0/README.md): Feature overview, project layout and development setup.
60
- - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.109.0/release-notes/README.md): What changed in each version.
59
+ - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.0/README.md): Feature overview, project layout and development setup.
60
+ - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.110.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.109.0",
3
+ "version": "0.110.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",
@@ -166,11 +166,32 @@ Cricket stories use `@algorisys/tinyfly/sports`: `cricketClip` gives owned JSON
166
166
  scene/timeline/events/result; `cricketCameraTracks` adds pitch, close-up,
167
167
  overhead, ground orbit or ball-follow camera tracks. Use scene-3d with
168
168
  `kinds: [characterObjects]` for the existing organic adult/child players.
169
- Formats are `test | odi | t20`; cast `adults | children | mixed`; select plays
169
+ Formats are `test | odi | t20`; cast `adults | men | children | mixed`; select plays
170
170
  from `CRICKET_ACTIONS`. Results and arcs are authored teaching examples, not
171
171
  physics, automatic umpiring or a complete innings. Preserve exact contact keys
172
172
  and merge the selected camera tracks when exporting. See `docs/cricket.md`,
173
173
  `/examples/live-cricket-story` and `examples/headless-video/cricket-story.mjs`.
174
+ `CRICKET_FIELDING_POSITIONS` maps the eleven stock fielding IDs to public labels;
175
+ scene objects carry them in `name`. `fielder` is Extra cover. Keep eleven fielders,
176
+ two on-field batters and two umpires; nine batting teammates wait off-field.
177
+ Mid-on is closer to the pitch; long-on is its deeper boundary alternative, not
178
+ an extra stock player. For the right-handed striker, +x is off side and −x is
179
+ on/leg side. Keeper/slip stand behind the striker; track the actual incoming delivery,
180
+ never force their heads toward a screen direction or the camera.
181
+ `cricketCameraTracks(clip, { view, zoom })` supports optical zoom 0.25–4
182
+ (default 1) for every view, preserving the camera path and story state. Merge
183
+ the returned field-of-view track into exported JSON; do not CSS-scale the canvas.
184
+ In camera-sorted character rendering, rear hair and hats belong to the head
185
+ pass; attaching them to the final body part lets the skin paint over them.
186
+ `CRICKET_CASTS` supplies cast labels; `men` uses the existing youngMan organic
187
+ preset for every role. Standard actions include camera-independent fielding
188
+ attention: bowler during run-up, moving delivery after release and through the
189
+ bounce, then the ball after contact/miss. Do not switch to the batter early.
190
+ The right-handed guard is side-on with the left hand above the right; preserve
191
+ these world-facing poses instead of rotating players toward the camera.
192
+ Keeper-bound misses pass on positive x, clear of the native legs and stumps
193
+ through every ball segment, including sparse keys and scaled durations. Keep
194
+ keeper palm contacts and intentional LBW pad contact.
174
195
  Wide cameras scale their clipping range for 24–250 m boundaries; equivalent
175
196
  azimuths use identical geometry. Ball-follow generation samples only the three
176
197
  ball position channels. Headless output uses `tinyfly video <scene.mjs> -o <output.mp4>`.