@algorisys/tinyfly 0.110.0 → 0.112.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.
@@ -3,6 +3,8 @@ import type { SurfaceAbout } from './surface/surface';
3
3
  import type { Cast } from './acting/custom';
4
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
+ import { CRICKET_PLAY_COMPONENTS, CRICKET_PLAY_EXAMPLES } from '../sports/cricket/cricket-play';
7
+ import { CRICKET_MARKING_PROFILES } from '../sports/cricket/cricket-markings';
6
8
  export interface Capabilities {
7
9
  sports: {
8
10
  cricket: {
@@ -13,7 +15,10 @@ export interface Capabilities {
13
15
  formats: typeof CRICKET_FORMATS;
14
16
  casts: typeof CRICKET_CASTS;
15
17
  fieldingPositions: typeof CRICKET_FIELDING_POSITIONS;
18
+ markingProfiles: typeof CRICKET_MARKING_PROFILES;
16
19
  cameras: typeof CRICKET_VIEWS;
20
+ playComponents: typeof CRICKET_PLAY_COMPONENTS;
21
+ playExamples: typeof CRICKET_PLAY_EXAMPLES;
17
22
  };
18
23
  };
19
24
  version?: string;
@@ -1,6 +1,14 @@
1
- import { type CricketActionOptions, type CricketActionResult, type CricketClip, type CricketEvent, type CricketField, type CricketFieldOptions } from './cricket-types';
1
+ import { type CricketActionOptions, type CricketActionResult, type CricketClip, type CricketEvent, type CricketField, type CricketFieldOptions, type CricketResult, type CricketDelivery, type CricketRuling } from './cricket-types';
2
2
  /** Compile an authored play on a cricketField into JSON tracks and narration events. No renderer or clock. */
3
3
  export declare function cricketAction(field: CricketField, options?: CricketActionOptions): CricketActionResult;
4
+ /** Internal compiler context. Public consumers author components with cricketPlay. */
5
+ export interface CricketMotionContext {
6
+ delivery: CricketDelivery;
7
+ result: CricketResult;
8
+ ruling: CricketRuling;
9
+ freeHit: boolean;
10
+ }
11
+ export declare function compileCricketMotion(field: CricketField, options: CricketActionOptions, composed?: CricketMotionContext): CricketActionResult;
4
12
  /** An owned scene and timeline ready for browser/Worker/Node consumers. */
5
13
  export declare function cricketClip(options?: CricketFieldOptions & CricketActionOptions): CricketClip;
6
14
  /** Event/caption selection is time based, so seeking and reverse playback work too. */
@@ -0,0 +1,35 @@
1
+ import type { Vec3 } from '../../engine/math';
2
+ import type { Object3D } from '../../scene-3d/scene-types';
3
+ import { type CricketField, type CricketFieldingArea, type CricketFieldingPosition } from './cricket-types';
4
+ /** MCC 2026 Law 7.3; ICC October 2026 clauses 7.3 and 28.7 (all formats). */
5
+ export declare const CRICKET_MARKING_PROFILES: Readonly<{
6
+ mcc: Readonly<{
7
+ name: "MCC";
8
+ poppingCreaseHalfWidth: 1.83;
9
+ fieldingRadius: null;
10
+ summary: "MCC minimum crease markings. The base Laws do not prescribe a limited-over restriction area.";
11
+ }>;
12
+ 'icc-men': Readonly<{
13
+ name: "ICC men";
14
+ poppingCreaseHalfWidth: 7.5;
15
+ fieldingRadius: 27.43;
16
+ summary: "ICC men: extended crease markings; ODI/T20 restriction-area arcs have a 27.43 m radius.";
17
+ }>;
18
+ 'icc-women': Readonly<{
19
+ name: "ICC women";
20
+ poppingCreaseHalfWidth: 7.5;
21
+ fieldingRadius: 23;
22
+ summary: "ICC women: extended crease markings; ODI/T20 restriction-area arcs have a 23 m radius.";
23
+ }>;
24
+ }>;
25
+ /** Draw the ideal region as a sampled closed line; both straight sides are exact. */
26
+ export declare function cricketFieldingOutline(area: CricketFieldingArea): Vec3[];
27
+ /** Classify an x/z point against the ideal capsule. Its boundary is included.
28
+ * null means the field has no region metadata (Test, MCC or older/custom JSON).
29
+ * This does not adjudicate a player's feet, a powerplay phase or a legal field.
30
+ */
31
+ export declare function cricketFieldingAreaContains(field: CricketField, point: Vec3): boolean | null;
32
+ /** Owned setup-position data for stock fielders, suitable for teaching overlays. */
33
+ export declare function cricketFieldingPositions(field: CricketField): CricketFieldingPosition[];
34
+ /** Static ground markers for the setup positions; motion and field are untouched. */
35
+ export declare function cricketFieldingOverlay(field: CricketField): Object3D[];
@@ -0,0 +1,21 @@
1
+ import { type CricketField, type CricketFieldOptions, type CricketPlayOptions, type CricketPlayResult, type CricketPlayClip } from './cricket-types';
2
+ export declare const CRICKET_PLAY_COMPONENTS: Readonly<{
3
+ deliveryStyles: readonly ["pace", "spin"];
4
+ deliveryLegalities: readonly ["legal", "no-ball", "wide"];
5
+ shots: readonly ["miss", "drive", "defend"];
6
+ finishes: readonly ["none", "single", "four", "six", "stumps", "pad"];
7
+ fielding: readonly ["none", "keeper", "catch", "gather", "throw", "stumping", "run-out"];
8
+ dismissals: readonly ["caught", "bowled", "lbw", "stumped", "run-out"];
9
+ }>;
10
+ /** Compose motion, authored legality, current context and candidate decision as owned JSON.
11
+ * No innings ledger or geometric adjudication. Unsupported physical combinations throw.
12
+ */
13
+ export declare function cricketPlay(field: CricketField, options?: CricketPlayOptions): CricketPlayResult;
14
+ /** Build a field and a composed play in one call. */
15
+ export declare function cricketPlayClip(options?: CricketFieldOptions & CricketPlayOptions): CricketPlayClip;
16
+ export type CricketPlayExample = 'no-ball-stumps' | 'free-hit-catch' | 'no-ball-four' | 'free-hit-run-out' | 'free-hit-wide';
17
+ /** Ready-to-compose educational examples. Test supports the two no-ball examples only. */
18
+ export declare const CRICKET_PLAY_EXAMPLES: Readonly<Record<CricketPlayExample, Readonly<{
19
+ name: string;
20
+ options: CricketPlayOptions;
21
+ }>>>;
@@ -6,6 +6,19 @@ 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
8
  export type CricketCast = 'adults' | 'men' | 'children' | 'mixed';
9
+ export type CricketMarkingProfile = 'mcc' | 'icc-men' | 'icc-women';
10
+ /** Ground-plane capsule: outward semicircles at the two middle stumps. */
11
+ export interface CricketFieldingArea {
12
+ radius: number;
13
+ centres: [Vec3, Vec3];
14
+ }
15
+ export interface CricketFieldingPosition {
16
+ id: string;
17
+ name: string;
18
+ position: Vec3;
19
+ /** Reference point classification; null when no restriction area is defined. */
20
+ inside: boolean | null;
21
+ }
9
22
  export type CricketAction = 'bowling' | 'spin' | 'batting' | 'defend' | 'running' | 'four' | 'six' | 'catch' | 'fielding' | 'throw' | 'bowled' | 'lbw' | 'stumping' | 'run-out' | 'no-ball' | 'wide';
10
23
  export interface CricketFormatInfo {
11
24
  name: string;
@@ -48,6 +61,8 @@ export interface CricketFieldOptions {
48
61
  id?: string;
49
62
  format?: CricketFormat;
50
63
  cast?: CricketCast;
64
+ /** Marking dimensions only; default ICC men. Independent of character cast. */
65
+ markingProfile?: CricketMarkingProfile;
51
66
  /** Circular illustrative boundary in metres, default 64; venues choose their own boundaries. */
52
67
  boundaryRadius?: number;
53
68
  battingColor?: string;
@@ -58,6 +73,9 @@ export interface CricketField {
58
73
  format: CricketFormat;
59
74
  boundaryRadius: number;
60
75
  landmarks: Record<string, Vec3>;
76
+ /** Present on newly built fields; optional for pre-profile/custom JSON fields. */
77
+ markingProfile?: CricketMarkingProfile;
78
+ fieldingArea?: CricketFieldingArea | null;
61
79
  }
62
80
  export interface CricketEvent {
63
81
  id: string;
@@ -66,13 +84,14 @@ export interface CricketEvent {
66
84
  label: string;
67
85
  caption: string;
68
86
  }
87
+ export type CricketDismissal = 'caught' | 'bowled' | 'lbw' | 'stumped' | 'run-out';
69
88
  export interface CricketResult {
70
89
  runs: number;
71
90
  extras: number;
72
91
  wickets: number;
73
92
  legalBall: boolean;
74
93
  freeHitNext: boolean;
75
- dismissal?: 'caught' | 'bowled' | 'lbw' | 'stumped' | 'run-out';
94
+ dismissal?: CricketDismissal;
76
95
  }
77
96
  export interface CricketActionOptions {
78
97
  action?: CricketAction;
@@ -96,3 +115,51 @@ export declare const CRICKET_ACTIONS: Readonly<Record<CricketAction, Readonly<{
96
115
  summary: string;
97
116
  }>>>;
98
117
  export declare function cricketChoice<T extends string>(choices: Readonly<Record<T, unknown>>, value: T, name: string): T;
118
+ /** Components supported by the deterministic stock motion compiler. */
119
+ export type CricketShot = 'miss' | 'drive' | 'defend';
120
+ export type CricketFinish = 'none' | 'single' | 'four' | 'six' | 'stumps' | 'pad';
121
+ export type CricketFielding = 'none' | 'keeper' | 'catch' | 'gather' | 'throw' | 'stumping' | 'run-out';
122
+ export interface CricketDelivery {
123
+ style: 'pace' | 'spin';
124
+ /** Authored legality; no-ball uses the stock front-foot overstep motion. */
125
+ legality: 'legal' | 'no-ball' | 'wide';
126
+ }
127
+ export interface CricketPlayOptions {
128
+ delivery?: Partial<CricketDelivery>;
129
+ shot?: CricketShot;
130
+ finish?: CricketFinish;
131
+ /** Defaults to keeper for a miss, gather for a drive, none for a block/boundary/stumps/pad. */
132
+ fielding?: CricketFielding;
133
+ context?: {
134
+ freeHit?: boolean;
135
+ };
136
+ /** Explicit authored candidate; omitted/null means no dismissal. Geometry does not adjudicate. */
137
+ decision?: {
138
+ dismissal?: CricketDismissal | null;
139
+ };
140
+ duration?: number;
141
+ every?: number;
142
+ }
143
+ export interface CricketPlay {
144
+ delivery: CricketDelivery;
145
+ shot: CricketShot;
146
+ finish: CricketFinish;
147
+ fielding: CricketFielding;
148
+ context: {
149
+ freeHit: boolean;
150
+ };
151
+ decision: {
152
+ dismissal: CricketDismissal | null;
153
+ };
154
+ }
155
+ export interface CricketRuling {
156
+ dismissal: CricketDismissal | null;
157
+ reason: 'no-dismissal' | 'dismissal' | 'no-ball' | 'free-hit' | 'wide';
158
+ }
159
+ export interface CricketPlayResult extends CricketActionResult {
160
+ /** Normalized, owned JSON input; action names the compiled stock motion recipe. */
161
+ play: CricketPlay;
162
+ ruling: CricketRuling;
163
+ }
164
+ export interface CricketPlayClip extends CricketField, CricketPlayResult {
165
+ }
@@ -1,5 +1,8 @@
1
1
  export { cricketPlayer, cricketField, CRICKET_PITCH } from './cricket-field';
2
+ export { CRICKET_MARKING_PROFILES, cricketFieldingAreaContains, cricketFieldingPositions, cricketFieldingOverlay } from './cricket-markings';
2
3
  export { cricketAction, cricketClip, cricketEventAt } from './cricket-action';
3
4
  export { cricketCameraTracks, CRICKET_VIEWS, CRICKET_CAMERA_ANGLES, type CricketView, type CricketCameraOptions } from './cricket-camera';
4
5
  export { CRICKET_FORMATS, CRICKET_ACTIONS, CRICKET_CASTS, CRICKET_FIELDING_POSITIONS } from './cricket-types';
5
- export type { CricketFormat, CricketRole, CricketCast, CricketAction, CricketFormatInfo, CricketPlayerOptions, CricketFieldOptions, CricketField, CricketEvent, CricketResult, CricketActionOptions, CricketActionResult, CricketClip, CricketPlayer } from './cricket-types';
6
+ export type { CricketFormat, CricketRole, CricketCast, CricketAction, CricketMarkingProfile, CricketFieldingArea, CricketFieldingPosition, CricketFormatInfo, CricketPlayerOptions, CricketFieldOptions, CricketField, CricketEvent, CricketResult, CricketActionOptions, CricketActionResult, CricketClip, CricketPlayer } from './cricket-types';
7
+ export { cricketPlay, cricketPlayClip, CRICKET_PLAY_COMPONENTS, CRICKET_PLAY_EXAMPLES, type CricketPlayExample } from './cricket-play';
8
+ export type { CricketDismissal, CricketShot, CricketFinish, CricketFielding, CricketDelivery, CricketPlayOptions, CricketPlay, CricketRuling, CricketPlayResult, CricketPlayClip } from './cricket-types';
package/llms-full.txt CHANGED
@@ -53,10 +53,15 @@ 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`; 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. |
56
+ | `cricketField({ id?, format?, cast?, boundaryRadius?, markingProfile?, battingColor?, fieldingColor? })` | `scene`, `format`, `boundaryRadius`, `landmarks`, `markingProfile`, `fieldingArea`; 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
+ | `cricketFieldingAreaContains(field, point)` | `true` inside/on the ideal restriction-area capsule, `false` outside, `null` without region metadata. Uses x/z; point height is ignored. |
58
+ | `cricketFieldingPositions(field)` | Owned setup-position data for stock fielders: `id`, `name`, `position`, `inside`. |
59
+ | `cricketFieldingOverlay(field)` | Optional static JSON line markers, green inside/orange outside. Append to scene objects without changing motion. |
57
60
  | `cricketAction(field, { action?, duration?, every? })` | A JSON timeline, timed events/captions and declared example result. Does not modify the field. |
61
+ | `cricketPlay(field, options)` | Composes independent delivery, shot, finish, fielding, context and candidate decision; returns `play`, `ruling`, timeline, events and result. |
62
+ | `cricketPlayClip(options)` | Builds a field and composed play together. |
58
63
  | `cricketClip(options)` | Combines field and action; default T20, adult cast, pace bowling, 6000 ms. |
59
- | `cricketCameraTracks(clip, { view?, yaw?, every? })` | Ordinary scene camera tracks. Merge these with the action tracks. |
64
+ | `cricketCameraTracks(clip, { view?, yaw?, zoom?, every? })` | Ordinary scene camera tracks. Merge these with the action tracks. |
60
65
  | `cricketEventAt(events, time)` | Most recent event at that time, including when seeking backward. |
61
66
  | `ballFlightPoint(options, time)`, `ballFlightTracks(options)` | Shared sampled arcs for other sports too. `from`, `to`, `arc`, `curve`, `start`, `end`, `target`; exact endpoints. |
62
67
 
@@ -112,6 +117,63 @@ before the ball arrives. Their native head poses aim at world targets,
112
117
  independently of their body yaw and camera selection. The live example's
113
118
  **Teams and field positions** disclosure uses the scene's JSON labels.
114
119
 
120
+ ## Field marking profiles
121
+
122
+ `markingProfile` is `icc-men` (default), `icc-women` or `mcc`, independent of
123
+ `cast`. `CRICKET_MARKING_PROFILES` exports their names, dimensions and summaries.
124
+ These select field markings only; venue boundaries, player eligibility,
125
+ powerplay phases and the rest of a competition's conditions require separate
126
+ checks. A caller-selected small boundary remains an illustrative venue.
127
+
128
+ | Profile | Popping crease painted on each side | ODI/T20 restriction area |
129
+ | --- | --- | --- |
130
+ | `icc-men` | 7.5 m | Wicket-centred semicircles of radius 27.43 m, joined by straight sides |
131
+ | `icc-women` | 7.5 m | Wicket-centred semicircles of radius 23 m, joined by straight sides |
132
+ | `mcc` | 1.83 m minimum | None prescribed by the base Laws |
133
+
134
+ Test has no restriction-area line for any profile. All profiles retain the
135
+ 20.12 m pitch, the 1.22 m popping-crease offset and the return-crease positions.
136
+ The painted popping crease is a finite visual mark; the actual crease is
137
+ considered unlimited in length. The existing object ID `fielding-circle` is
138
+ retained for the corrected capsule outline. For ICC men its extrema are
139
+ x = ±27.43 m and z = ±37.49 m; the two arc centres are z = ±10.06 m.
140
+
141
+ The dimensions follow MCC 2026 Law 7.3 and ICC October 2026 clauses 7.3/28.7.
142
+ Sources: [MCC Laws](https://www.lords.org/getmedia/a4ef9f77-2a25-4f5b-a286-4601f08e6334/Laws-of-Cricket-2017-Code-4th-Edition-%282026%29_5.pdf),
143
+ [ICC men Test](https://images.icc-cricket.com/image/upload/prd/a8114zro5tkioifz0jqg.pdf),
144
+ [ODI](https://images.icc-cricket.com/image/upload/prd/bxkzkcyvfn6tvi70zh0w.pdf),
145
+ [T20I](https://images.icc-cricket.com/image/upload/prd/bsxcho7ufe2pjban0wjp.pdf),
146
+ [ICC women Test](https://images.icc-cricket.com/image/upload/prd/hbwwi78pugzpdwft0v4v.pdf),
147
+ [ODI](https://images.icc-cricket.com/image/upload/prd/qunpw1kfh3ibxlz58jlw.pdf) and
148
+ [T20I](https://images.icc-cricket.com/image/upload/prd/o3vhm0zw7pppoxpgopke.pdf).
149
+
150
+ ```ts
151
+ import { cricketField, cricketFieldingAreaContains, cricketFieldingPositions,
152
+ cricketFieldingOverlay } from '@algorisys/tinyfly/sports'
153
+
154
+ const field = cricketField({ format: 't20', markingProfile: 'icc-women' })
155
+ const inside = cricketFieldingAreaContains(field, [0, 0, 30]) // true
156
+ const setup = cricketFieldingPositions(field)
157
+ const outside = setup.filter(player => player.inside === false)
158
+ const sceneWithMarkers = { ...field.scene,
159
+ objects: [...field.scene.objects, ...cricketFieldingOverlay(field)] }
160
+ ```
161
+
162
+ Classification uses the ideal capsule rather than a midpoint circle. Points on
163
+ its boundary count as inside, with a 1 nm numeric tolerance. `null` distinguishes
164
+ an absent area from an outside point, including older/custom JSON fields with
165
+ no `fieldingArea` metadata. The query accepts world-ground x/z reference points;
166
+ it does not judge whole-player/foot placement or whether a field is legal.
167
+ The setup helpers read the stock players' unparented scene positions. Markers
168
+ stay there during playback. Both ICC stock layouts have nine reference points
169
+ inside and two outside (Fine leg and Third man), useful for a powerplay placement
170
+ illustration; this is not automatic umpiring.
171
+
172
+ Select **Markings** and **Setup field markers** in the example, then choose an
173
+ overhead/whole-ground camera. Profile and overlay changes preserve current
174
+ story time and playback; selected zoom is retained. Downloaded JSON includes
175
+ the profile, analytic region metadata, corrected line and optional markers.
176
+
115
177
  ## Review zoom
116
178
 
117
179
  Pass `zoom` to `cricketCameraTracks(clip, { view: 'batter', zoom: 2 })` for
@@ -163,6 +225,87 @@ spacing without evaluating actor tracks.
163
225
  Development full-page previews load the local browser API and scene add-ons;
164
226
  production previews and copied HTML retain the versioned CDN bundles.
165
227
 
228
+ ## Composed plays and authored decisions
229
+
230
+ Use `cricketPlay` on an existing field or `cricketPlayClip` for a new scene.
231
+ Delivery legality is authored, not calculated from foot geometry. No-ball uses
232
+ the stock front-foot overstep, while shots, catches and wicket breaks retain
233
+ their native contact keys. A candidate dismissal is separate from that motion;
234
+ omitted/null `decision.dismissal` means no dismissal.
235
+
236
+ ```ts
237
+ import { cricketPlayClip } from '@algorisys/tinyfly/sports'
238
+
239
+ const first = cricketPlayClip({
240
+ format: 't20', delivery: { style: 'pace', legality: 'no-ball' },
241
+ shot: 'miss', finish: 'stumps', decision: { dismissal: 'bowled' },
242
+ })
243
+ // Bails fall, but ruling is { dismissal: null, reason: 'no-ball' }.
244
+ // result: 0 bat runs, 1 extra, 0 wickets, legalBall false, freeHitNext true.
245
+ const next = cricketPlayClip({
246
+ format: 't20', delivery: { style: 'spin', legality: 'legal' },
247
+ context: { freeHit: first.result.freeHitNext },
248
+ shot: 'drive', fielding: 'catch', decision: { dismissal: 'caught' },
249
+ })
250
+ // Catch stays visible. Not out; this legal delivery consumes the free hit.
251
+ // Store/advance innings, score, strike and lesson state in your application.
252
+ const again = JSON.stringify(next) // normalized play + ruling + all motion/events
253
+ ```
254
+
255
+ `play` contains owned, normalized input. `action` identifies the compiled stock
256
+ motion recipe; it does not declare the composed verdict. `ruling` holds the
257
+ accepted dismissal or null and its reason. `result.dismissal` exists only for an
258
+ accepted dismissal. Decision changes preserve the ball/actor motion, apart from
259
+ the umpire signal. Physical catch, pad contact and wicket-break captions stay
260
+ separate from the final **Out** / **Not out** decision.
261
+
262
+ | Component | Choices/default |
263
+ | --- | --- |
264
+ | `delivery.style` | `pace` (default), `spin` |
265
+ | `delivery.legality` | `legal` (default), `no-ball`, `wide`; select the final call, with no-ball taking precedence over Wide |
266
+ | `shot` | `miss` (default), `drive`, `defend` |
267
+ | `finish` | `none` (default), `single`, `four`, `six`, `stumps`, `pad` |
268
+ | `fielding` | `none`, `keeper`, `catch`, `gather`, `throw`, `stumping`, `run-out`; defaults below |
269
+ | `context.freeHit` | Boolean, default false; ODI/T20 only |
270
+ | `decision.dismissal` | `caught`, `bowled`, `lbw`, `stumped`, `run-out`, null (default); candidate must match the physical recipe |
271
+ | `duration`, `every` | Same scaling and contact-preserving sampling as `cricketAction` |
272
+
273
+ Supported physical combinations:
274
+
275
+ | Shot | Finish | Fielding (default when omitted) |
276
+ | --- | --- | --- |
277
+ | `miss` | `none` | `keeper` (default) or explicit `stumping` |
278
+ | `miss` | `stumps` / `pad` | `none` (default) |
279
+ | `defend` | `none` | `none` (default) |
280
+ | `drive` | `none` | `gather` (default), `catch`, `throw`, `run-out` |
281
+ | `drive` | `single` | `gather` (default) |
282
+ | `drive` | `four` / `six` | `none` (default) |
283
+
284
+ Other combinations throw rather than silently substitute a different play.
285
+ Wide currently supports only an untouched miss gathered by the keeper; Wide
286
+ stumping/run-out and additional Wide runs require future motion recipes.
287
+ `single`/`four`/`six` score 1/4/6 bat runs; an illegal delivery adds one extra.
288
+ Run-out depicts an attempted, uncompleted run and scores no completed runs.
289
+ Byes, leg-byes, penalties and other dismissal modes are outside this subset.
290
+
291
+ No-ball/free-hit context suppresses caught, bowled, LBW and stumped candidates,
292
+ while the supported run-out candidate remains available. A no-ball arms the
293
+ next free hit in ODI/T20; an existing free hit carries over a Wide/no-ball and
294
+ is consumed by a legal delivery. Test has no automatic free hit and rejects an
295
+ explicit current free-hit context. These conditions follow clauses 21.12,
296
+ 21.17–21.18 in [ICC ODI October 2026](https://images.icc-cricket.com/image/upload/prd/bxkzkcyvfn6tvi70zh0w.pdf)
297
+ and [ICC T20I October 2026](https://images.icc-cricket.com/image/upload/prd/bsxcho7ufe2pjban0wjp.pdf).
298
+ They cover the supported authored examples, not a complete umpiring engine.
299
+
300
+ `CRICKET_PLAY_COMPONENTS` and `CRICKET_PLAY_EXAMPLES` provide JSON discovery;
301
+ the latter has five frozen examples. In the live example's **Play** selector,
302
+ choose the **Composed plays** group: no-ball/stumps, free-hit/catch,
303
+ no-ball/four, free-hit/run-out or free-hit/Wide. Free-hit choices are disabled
304
+ in Test; switching to Test from one selects no-ball/stumps. Downloads include
305
+ normalized components, ruling, result, scene, camera tracks and captions.
306
+ The original sixteen `cricketAction`/`cricketClip` presets retain their original
307
+ motion, result shape and captions.
308
+
166
309
  ## Teaching scope
167
310
 
168
311
  These are authored visual demonstrations. Arcs, the enlarged ball, timings,
@@ -390,7 +533,7 @@ with a GSAP-style call (durations are in seconds here):
390
533
  ```html
391
534
  <div class="box" style="width:60px;height:60px;background:#4a9eff"></div>
392
535
 
393
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.110.0/cdn/tinyfly.iife.js"></script>
536
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.112.0/cdn/tinyfly.iife.js"></script>
394
537
  <script>
395
538
  tinyfly.to('.box', { x: 200, duration: 1 })
396
539
  </script>
@@ -598,7 +741,7 @@ Without a build step, the all-in-one bundle exposes the same functions on a
598
741
  global — `tinyfly.to()`, `tinyfly.timeline()` and so on:
599
742
 
600
743
  ```html
601
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.110.0/cdn/tinyfly.iife.js"></script>
744
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.112.0/cdn/tinyfly.iife.js"></script>
602
745
  <script>
603
746
  tinyfly.to('.box', { x: 200, duration: 1 })
604
747
  </script>
@@ -2513,7 +2656,7 @@ For simple website embedding without a build system.
2513
2656
  </html>
2514
2657
  ```
2515
2658
 
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`.
2659
+ 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.112.0/cdn/tinyfly-player.iife.js`.
2517
2660
 
2518
2661
  ---
2519
2662
 
@@ -6866,7 +7009,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
6866
7009
  **Steps to embed:**
6867
7010
  1. Build the player: `npm run build:player`
6868
7011
  2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
6869
- `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.110.0/cdn/tinyfly-player.iife.js`
7012
+ `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.112.0/cdn/tinyfly-player.iife.js`
6870
7013
  instead; see [Deployment](DEPLOYMENT.md))
6871
7014
  3. Copy the generated code into your HTML
6872
7015
  4. Adjust the script `src` path if needed
@@ -8119,6 +8262,28 @@ demonstrations, not collision-based umpiring or an innings simulator. Do not
8119
8262
  infer new outcomes from the illustrative arcs. See `docs/cricket.md` and
8120
8263
  `examples/headless-video/cricket-story.mjs`; `/examples/live-cricket-story`
8121
8264
  has event seeking and downloadable scene/action/camera JSON.
8265
+ For composed plays use `cricketPlay(field, options)` / `cricketPlayClip(options)`.
8266
+ Separate `delivery: { style, legality }`, `shot`, `finish`, `fielding`,
8267
+ `context: { freeHit }` and `decision: { dismissal }`. Omitted/null dismissal
8268
+ means no dismissal; never infer one from motion. Supported candidates are
8269
+ caught/bowled/lbw/stumped/run-out; no-ball/free-hit protects the first four,
8270
+ while run-out remains possible. Current illegal free hits carry forward, legal
8271
+ ones consume context; Test rejects current free-hit context. Retain `play`,
8272
+ `ruling`, `result`, contact keys and camera tracks in JSON. Keep innings/score/
8273
+ strike/lesson state in the consuming app. `CRICKET_PLAY_COMPONENTS` discovers
8274
+ choices; `CRICKET_PLAY_EXAMPLES` provides five examples. Unsupported physical
8275
+ combinations throw; Wide currently only supports miss/keeper/no finish.
8276
+ See docs/cricket.md for the combination table. Original sixteen presets remain.
8277
+ Choose `markingProfile: 'icc-men' | 'icc-women' | 'mcc'` explicitly when
8278
+ teaching field geography; default ICC men is independent of cast. These are
8279
+ marking dimensions, not full competition profiles. ODI/T20 ICC areas are
8280
+ wicket-centred capsules (27.43/23 m radii); Test/MCC have no restriction line.
8281
+ ICC popping-crease marks extend 7.5 m on either side; MCC minimum is 1.83 m.
8282
+ `cricketFieldingAreaContains(field, point)` returns true/false/null, with null
8283
+ for absent metadata/areas. `cricketFieldingPositions`/`cricketFieldingOverlay`
8284
+ provide owned static setup markers. Do not count null as outside or interpret
8285
+ point classification as legal whole-player placement. Markers stay at setup
8286
+ positions; append them to the scene and preserve them in exported JSON.
8122
8287
  `CRICKET_FIELDING_POSITIONS` maps the eleven stock fielding IDs to public labels;
8123
8288
  scene objects carry them in `name`. `fielder` is Extra cover. Keep eleven fielders,
8124
8289
  two on-field batters and two umpires; nine batting teammates wait off-field.
@@ -8424,7 +8589,7 @@ path for all of that:
8424
8589
  </figure>
8425
8590
 
8426
8591
  <!-- once, anywhere on the page (a site-wide footer is fine) -->
8427
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.110.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
8592
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.112.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
8428
8593
  ```
8429
8594
 
8430
8595
  Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
@@ -9696,8 +9861,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
9696
9861
  adds to the same `tinyfly` global:
9697
9862
 
9698
9863
  ```html
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>
9864
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.112.0/cdn/tinyfly.iife.js"></script>
9865
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.112.0/cdn/tinyfly-maps.iife.js"></script>
9701
9866
  ```
9702
9867
 
9703
9868
  It is a separate script because the offline world map it carries adds about
@@ -14875,7 +15040,7 @@ magnet.addEventListener('pointerleave', () => {
14875
15040
 
14876
15041
  <!-- capabilities: generated from the library -->
14877
15042
 
14878
- # tinyfly capabilities (v0.110.0)
15043
+ # tinyfly capabilities (v0.112.0)
14879
15044
 
14880
15045
  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).
14881
15046
 
@@ -15294,6 +15459,22 @@ Edits:
15294
15459
 
15295
15460
  `cricketClip({ format, action, cast })` returns an organic-player scene, JSON tracks, timed events/captions and a declared result. `cricketField`, `cricketPlayer` and `cricketAction` compose separately; `cricketCameraTracks` adds camera tracks. These are authored tutorial plays, not physics or automatic umpiring. See docs/cricket.md.
15296
15461
 
15462
+ Marking profiles: `mcc`, `icc-men`, `icc-women`; default ICC men, independently of cast. Limited-over ICC profiles draw a wicket-centred capsule; Test/MCC have no restriction-area line. `cricketFieldingAreaContains(field, point)` returns true/false/null; `cricketFieldingPositions` and `cricketFieldingOverlay` provide owned setup markers, not umpiring decisions.
15463
+
15464
+ `cricketPlay(field, options)` / `cricketPlayClip(options)` independently author delivery style/legality, shot, finish, fielding, current free-hit context and candidate dismissal. Omitted dismissal means no dismissal. Unsupported motion combinations throw; no-ball/free-hit protection changes result/signals without removing physical catches or wicket breaks. Run-out remains available. Illegal free hits carry forward; legal ones consume context. Test rejects free-hit context. Keep innings/score/strike in the consuming app.
15465
+
15466
+ Play deliveryStyles: `pace`, `spin`
15467
+ Play deliveryLegalities: `legal`, `no-ball`, `wide`
15468
+ Play shots: `miss`, `drive`, `defend`
15469
+ Play finishes: `none`, `single`, `four`, `six`, `stumps`, `pad`
15470
+ Play fielding: `none`, `keeper`, `catch`, `gather`, `throw`, `stumping`, `run-out`
15471
+ Play dismissals: `caught`, `bowled`, `lbw`, `stumped`, `run-out`
15472
+ - Composed example `no-ball-stumps`: No-ball + stumps hit
15473
+ - Composed example `free-hit-catch`: Free hit + catch
15474
+ - Composed example `no-ball-four`: No-ball + four
15475
+ - Composed example `free-hit-run-out`: Free hit + run-out
15476
+ - Composed example `free-hit-wide`: Free hit + Wide
15477
+
15297
15478
  - `bowling`: Run up, deliver with a straight arm, bounce and follow through.
15298
15479
  - `spin`: A shorter approach and a curved illustrative flight before the bounce.
15299
15480
  - `batting`: Two hands on the bat, a backlift, contact and a follow-through.
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.110.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.112.0/llms-full.txt)
17
17
 
18
18
  ## Start here
19
19
 
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.
20
+ - [Getting Started](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.112.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.112.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.112.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.112.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.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.
27
+ - [API Reference](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.112.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.112.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.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.
32
+ - [Editor Guide](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.112.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.112.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.112.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.112.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.112.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.112.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.112.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.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.
42
+ - [Cricket Stories](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.112.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.112.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.112.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.112.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.112.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.112.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.112.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.112.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.112.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.112.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.112.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.112.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.112.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.112.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.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.
59
+ - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.112.0/README.md): Feature overview, project layout and development setup.
60
+ - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.112.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.110.0",
3
+ "version": "0.112.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",