@algorisys/tinyfly 0.108.0 → 0.109.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algorisys/tinyfly",
3
- "version": "0.108.0",
3
+ "version": "0.109.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",
@@ -101,6 +101,10 @@
101
101
  "types": "./lib/types/characters/index.d.ts",
102
102
  "import": "./lib/addons/characters.js"
103
103
  },
104
+ "./sports": {
105
+ "types": "./lib/types/sports/index.d.ts",
106
+ "import": "./lib/addons/sports.js"
107
+ },
104
108
  "./maps": {
105
109
  "types": "./lib/types/maps/index.d.ts",
106
110
  "import": "./lib/addons/maps.js"
@@ -162,6 +162,25 @@ names.
162
162
 
163
163
  ## 3. Check
164
164
 
165
+ Cricket stories use `@algorisys/tinyfly/sports`: `cricketClip` gives owned JSON
166
+ scene/timeline/events/result; `cricketCameraTracks` adds pitch, close-up,
167
+ overhead, ground orbit or ball-follow camera tracks. Use scene-3d with
168
+ `kinds: [characterObjects]` for the existing organic adult/child players.
169
+ Formats are `test | odi | t20`; cast `adults | children | mixed`; select plays
170
+ from `CRICKET_ACTIONS`. Results and arcs are authored teaching examples, not
171
+ physics, automatic umpiring or a complete innings. Preserve exact contact keys
172
+ and merge the selected camera tracks when exporting. See `docs/cricket.md`,
173
+ `/examples/live-cricket-story` and `examples/headless-video/cricket-story.mjs`.
174
+ Wide cameras scale their clipping range for 24–250 m boundaries; equivalent
175
+ azimuths use identical geometry. Ball-follow generation samples only the three
176
+ ball position channels. Headless output uses `tinyfly video <scene.mjs> -o <output.mp4>`.
177
+ Development full-page live previews use local APIs and add-ons; copied pages
178
+ and production previews keep versioned CDN bundles.
179
+ Keep `defend` in the bat-contact plays, preserving its two-hand downward block
180
+ and `contact` event. Pace/spin/no-ball/stumping deliveries pass outside the off
181
+ stump before palm collection; geometric checks must include the displayed ball
182
+ and stump radii. Preserve bowled's collision and stumping's later wicket break.
183
+
165
184
  - Beat scripts: `npx @algorisys/tinyfly check beats.json` (or `checkBeats()`;
166
185
  `scriptTracks()` throws on the same errors). Beats with surface places and
167
186
  cues: `checkSurfaceBeats(beats, surfaces)` (`surfaceScript()` throws on the