@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/README.md +9 -4
- package/docs/cricket.md +127 -0
- package/docs/editor-guide.md +1 -1
- package/docs/examples.md +1 -1
- package/docs/getting-started.md +1 -1
- package/docs/gsap-compat.md +1 -1
- package/docs/llm-guide.md +23 -0
- package/docs/maps.md +2 -2
- package/docs/teaching.md +1 -1
- package/lib/addons/characters.js +4821 -8840
- package/lib/addons/cricket-camera-BWByoNgz.js +4205 -0
- package/lib/addons/scene-3d.js +436 -540
- package/lib/addons/shots-DR_ViiAC.js +125 -0
- package/lib/addons/sports.js +390 -0
- package/lib/browser/tinyfly.iife.js +12 -12
- package/lib/browser/tinyfly.js +7945 -7470
- package/lib/browser/tinyfly.umd.js +12 -12
- package/lib/types/browser/index.d.ts +1 -0
- package/lib/types/characters/capabilities.d.ts +12 -0
- package/lib/types/sports/ball-flight.d.ts +22 -0
- package/lib/types/sports/cricket/cricket-action.d.ts +7 -0
- package/lib/types/sports/cricket/cricket-camera.d.ts +13 -0
- package/lib/types/sports/cricket/cricket-field.d.ts +13 -0
- package/lib/types/sports/cricket/cricket-motion.d.ts +36 -0
- package/lib/types/sports/cricket/cricket-types.d.ts +84 -0
- package/lib/types/sports/cricket/index.d.ts +5 -0
- package/lib/types/sports/index.d.ts +3 -0
- package/llms-full.txt +186 -8
- package/llms.txt +30 -29
- package/package.json +5 -1
- package/skills/tinyfly/SKILL.md +19 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algorisys/tinyfly",
|
|
3
|
-
"version": "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"
|
package/skills/tinyfly/SKILL.md
CHANGED
|
@@ -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
|