@algorisys/tinyfly 0.117.0 → 0.119.1

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.
Files changed (37) hide show
  1. package/README.md +6 -6
  2. package/docs/editor-guide.md +1 -1
  3. package/docs/examples.md +1 -1
  4. package/docs/getting-started.md +1 -1
  5. package/docs/gsap-compat.md +1 -1
  6. package/docs/llm-guide.md +5 -1
  7. package/docs/maps.md +2 -2
  8. package/docs/math.md +74 -9
  9. package/docs/teaching.md +1 -1
  10. package/lib/addons/characters.js +2311 -2299
  11. package/lib/addons/math.js +2120 -1166
  12. package/lib/browser/tinyfly-math.iife.js +4 -4
  13. package/lib/browser/tinyfly.iife.js +1 -1
  14. package/lib/browser/tinyfly.js +13 -1
  15. package/lib/browser/tinyfly.umd.js +1 -1
  16. package/lib/types/math/discrete/graph-search.d.ts +38 -0
  17. package/lib/types/math/discrete/set-expression.d.ts +33 -0
  18. package/lib/types/math/figure/display-list.d.ts +10 -0
  19. package/lib/types/math/figure/figure-spec.d.ts +168 -1
  20. package/lib/types/math/figure/items/discrete.d.ts +23 -0
  21. package/lib/types/math/figure/items/ml.d.ts +47 -0
  22. package/lib/types/math/figure/items/shapes.d.ts +3 -0
  23. package/lib/types/math/index.d.ts +11 -1
  24. package/lib/types/math/ml/classify.d.ts +30 -0
  25. package/lib/types/math/ml/colormap.d.ts +14 -0
  26. package/lib/types/math/ml/contours.d.ts +15 -0
  27. package/lib/types/math/ml/descent.d.ts +11 -0
  28. package/lib/types/math/ml/kmeans.d.ts +11 -0
  29. package/lib/types/math/ml/network.d.ts +19 -0
  30. package/lib/types/math/presets/discrete.d.ts +49 -0
  31. package/lib/types/math/presets/ml.d.ts +50 -0
  32. package/lib/types/math/tex/glyph-metrics.d.ts +8 -0
  33. package/lib/types/math/tex/tex-parser.d.ts +2 -1
  34. package/llms-full.txt +99 -18
  35. package/llms.txt +31 -31
  36. package/package.json +1 -1
  37. package/skills/tinyfly/SKILL.md +3 -1
package/llms-full.txt CHANGED
@@ -591,7 +591,7 @@ with a GSAP-style call (durations are in seconds here):
591
591
  ```html
592
592
  <div class="box" style="width:60px;height:60px;background:#4a9eff"></div>
593
593
 
594
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.117.0/cdn/tinyfly.iife.js"></script>
594
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.119.1/cdn/tinyfly.iife.js"></script>
595
595
  <script>
596
596
  tinyfly.to('.box', { x: 200, duration: 1 })
597
597
  </script>
@@ -799,7 +799,7 @@ Without a build step, the all-in-one bundle exposes the same functions on a
799
799
  global — `tinyfly.to()`, `tinyfly.timeline()` and so on:
800
800
 
801
801
  ```html
802
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.117.0/cdn/tinyfly.iife.js"></script>
802
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.119.1/cdn/tinyfly.iife.js"></script>
803
803
  <script>
804
804
  tinyfly.to('.box', { x: 200, duration: 1 })
805
805
  </script>
@@ -2714,7 +2714,7 @@ For simple website embedding without a build system.
2714
2714
  </html>
2715
2715
  ```
2716
2716
 
2717
- 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.117.0/cdn/tinyfly-player.iife.js`.
2717
+ 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.119.1/cdn/tinyfly-player.iife.js`.
2718
2718
 
2719
2719
  ---
2720
2720
 
@@ -7068,7 +7068,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
7068
7068
  **Steps to embed:**
7069
7069
  1. Build the player: `npm run build:player`
7070
7070
  2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
7071
- `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.117.0/cdn/tinyfly-player.iife.js`
7071
+ `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.119.1/cdn/tinyfly-player.iife.js`
7072
7072
  instead; see [Deployment](DEPLOYMENT.md))
7073
7073
  3. Copy the generated code into your HTML
7074
7074
  4. Adjust the script `src` path if needed
@@ -8495,7 +8495,11 @@ lesson page (`<figure data-tinyfly-math>`), an explorable and a video
8495
8495
  `point` with `on` and `x`) take numbers or number-value names for `at`, `n`,
8496
8496
  `to`, `order`, and publish `\\val{ID.slope}`, `ID.sum`, `ID.value` for TeX. Probability items
8497
8497
  (`histogram`, `distribution`, `galton`, `scatter`, `bayes`) take a distribution as data
8498
- (`{ kind: 'normal', mean: 'mu', sd: 1 }`) and draw seeded samples, never `Math.random`. See `docs/math.md`.
8498
+ (`{ kind: 'normal', mean: 'mu', sd: 1 }`) and draw seeded samples, never `Math.random`. Discrete:
8499
+ `graph` (nodes with `at`, or `tree: { root }`; `search` stepped by `step`), `venn` (`highlight: "(A | B)'"`),
8500
+ `clock` (`modulus`, `value`). AI/ML: `network` (`flow`), `descent` (`steps`, exact gradient),
8501
+ `contours`, `heatmap` (`softmax: true` for attention), `classifier` (`epochs`), `kmeans`
8502
+ (`iteration`); all seeded. See `docs/math.md`.
8499
8503
 
8500
8504
  ## Your own behaviours
8501
8505
 
@@ -8682,7 +8686,7 @@ path for all of that:
8682
8686
  </figure>
8683
8687
 
8684
8688
  <!-- once, anywhere on the page (a site-wide footer is fine) -->
8685
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.117.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
8689
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.119.1/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
8686
8690
  ```
8687
8691
 
8688
8692
  Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
@@ -9093,6 +9097,15 @@ Some names are reserved, because a track on them would move the whole figure:
9093
9097
  | `galton` | `rows?`, `balls` (fractional: the next ball on its way), `spacing?`, `top?`, `seed?` |
9094
9098
  | `scatter` | `points: { kind: 'uniform', x, y }` or `{ kind: 'linear', slope, intercept, noise, x }`, `count`, `inside?` (an expression in x and y, true when ≤ 0), `fit?`, `seed?` |
9095
9099
  | `bayes` | `prior`, `truePositive`, `falsePositive`, `at?`, `size?`, `labels?` |
9100
+ | `graph` | `nodes: [{ id, at?, label? }]`, `edges` (`[from, to, weight?]` or objects), `directed?`, `tree?: { root, spacing?, at? }`, `search?: { kind: 'bfs' \| 'dfs' \| 'dijkstra', start }`, `step?`, `frontier?` (screen px), `weights?`, `radius?` |
9101
+ | `venn` | `sets` (two or three `{ id, label?, color? }`), `highlight?` (a set expression), `highlightColor?`, `at?`, `radius?`, `universe?` |
9102
+ | `clock` | `modulus`, `value`, `at?`, `radius?` |
9103
+ | `network` | `layers` (`[3, 5, 4, 2]`), `activation?: 'sigmoid' \| 'tanh' \| 'relu'`, `inputs?`, `flow?`, `seed?`, `at?`, `size?`, `labels?: { inputs?, outputs? }`, `radius?` |
9104
+ | `heatmap` | `cells` (rows, top first; `softmax?` per row) or `expr` in x and y with `region?`, `resolution?`; `range?`, `colormap?: 'viridis' \| 'heat' \| 'diverging'`, `rowLabels?`, `colLabels?`, `values?`, `at?`, `size?` |
9105
+ | `contours` | `expr` in x and y, `levels?` (a count or the levels), `region?`, `resolution?`, `colormap?` |
9106
+ | `descent` | `expr` in x and y, `start`, `rate`, `steps`, `momentum?` |
9107
+ | `classifier` | `epochs`, `centres?`, `count?`, `spread?`, `rate?`, `start?: [w₁, w₂, b]`, `probability?`, `seed?` |
9108
+ | `kmeans` | `centres` (the true clusters), `iteration`, `k?`, `count?`, `spread?`, `seed?` |
9096
9109
 
9097
9110
  `point` also rides a curve: `{ on: 'sin(x)', x: 'p' }` is the point (p, sin p), and
9098
9111
  `hollow: true` draws an open circle for a hole or a limit. `function` takes
@@ -9118,6 +9131,48 @@ Items work out numbers that TeX can show with `\val{…}`:
9118
9131
  | `galton` | `ID.landed` |
9119
9132
  | `scatter` | `ID.count`, `ID.inside`, `ID.ratio`, `ID.slope`, `ID.intercept`, `ID.r` |
9120
9133
  | `bayes` | `ID.prior`, `ID.posterior`, `ID.positive`, `ID.truePositive`, `ID.falsePositive` |
9134
+ | `graph` with a search | `ID.visited`, `ID.steps`, and for Dijkstra `ID.d.NODE` (∞ until known) |
9135
+ | `clock` | `ID.hour` (value mod modulus), `ID.turns` |
9136
+ | `network` | `ID.out0`, `ID.out1` … (the outputs) |
9137
+ | `descent` | `ID.x`, `ID.y`, `ID.loss`, `ID.step` |
9138
+ | `classifier` | `ID.accuracy`, `ID.loss`, `ID.epoch` |
9139
+ | `kmeans` | `ID.inertia`, `ID.iteration`, `ID.iterations` |
9140
+
9141
+ ### Machine learning
9142
+
9143
+ Everything is seeded and worked out exactly, so a figure trains the same way
9144
+ every time:
9145
+
9146
+ - **Networks** draw seeded weights: blue edges add, red ones subtract, and
9147
+ thicker edges count more. `flow` moves activations layer by layer, with
9148
+ pulses on the edges being fed.
9149
+ - **Descent** takes exact partial derivatives of its expression, so the path
9150
+ follows the true gradient. A step size that diverges stops cleanly.
9151
+ - **Classifiers** train logistic regression by full-batch gradient descent,
9152
+ starting from a deliberately wrong line that visibly turns into place.
9153
+ - **k-means** runs Lloyd's algorithm from the points nearest the middle of the
9154
+ data, so the centroids travel; a fractional `iteration` glides them.
9155
+ - **Heatmaps and contours** colour through a colormap. Dimmed cells are
9156
+ pre-mixed with the background, so neighbours never leave seams. Contours are
9157
+ traced by marching squares and joined into whole curves.
9158
+
9159
+ The pieces are also available on their own: `seededNetwork`, `forward`,
9160
+ `descentPath`, `trainLogistic`, `kmeansHistory`, `contourLines`, `colorAt`.
9161
+
9162
+ ### Graphs, searches and sets
9163
+
9164
+ A search is shown step by step: `step` counts the nodes finished, and its
9165
+ fractional part draws the edge the search is crossing to the next one. Finished
9166
+ nodes are yellow; nodes waiting in the queue (breadth first), the stack (depth
9167
+ first) or the open set (Dijkstra) are blue; yellow edges are how each node was
9168
+ reached. Neighbours are taken in the order the nodes are listed, so a search
9169
+ always tells the same story (`searchEvents` returns it as data). A tree lays
9170
+ itself out from its root when nodes have no `at` (`treeLayout`), which is how
9171
+ `recursionTreeFigure` draws the calls a recursive function makes.
9172
+
9173
+ Venn regions are set expressions: `A | B`, `A & B`, `A - B`, `A ^ B`, `A'` (or
9174
+ `!A`), with brackets; `∪ ∩ ∖ △ ¬` work too. Each cell of the region is drawn as
9175
+ the universe clipped inside and outside the circles, the same in canvas and SVG.
9121
9176
 
9122
9177
  ### Distributions and randomness
9123
9178
 
@@ -9197,7 +9252,7 @@ lesson's step options (`duration`, `easing`, `delay`).
9197
9252
  <figcaption>The determinant is the area of the unit square after the map.</figcaption>
9198
9253
  </figure>
9199
9254
 
9200
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.117.0/cdn/tinyfly-math.iife.js" data-tinyfly-auto></script>
9255
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.119.1/cdn/tinyfly-math.iife.js" data-tinyfly-auto></script>
9201
9256
  ```
9202
9257
 
9203
9258
  The figure draws itself into an SVG and redraws from the timeline whenever the
@@ -9263,9 +9318,9 @@ Equations are typeset by a built-in TeX subset, with no KaTeX or MathJax:
9263
9318
  - `\sum`, `\prod` and `\int`, with limits above and below in display style
9264
9319
  - Named operators: `\sin \cos \tan \log \ln \exp \det \lim \max \min` …
9265
9320
  - Greek letters
9266
- - Symbols: `\cdot \times \pm \le \ge \ne \approx \to \infty \partial \nabla \in` …
9321
+ - Symbols: `\cdot \times \pm \le \ge \ne \approx \to \infty \partial \nabla \in \cup \cap \triangle \varnothing` …
9267
9322
  - Matrices: `\begin{pmatrix|bmatrix|vmatrix|matrix} … \end{…}`
9268
- - `\text{…}`, `\color{name}{…}`, and spacing `\, \; \quad`
9323
+ - `\binom{n}{k}`, `\text{…}`, `\color{name}{…}`, and spacing `\, \; \quad`
9269
9324
  - `\left( … \right)`, with delimiters at their natural size
9270
9325
  - `\id{name}{…}`, which names a term
9271
9326
  - `\val{name}` and `\val{name:digits}` for live values
@@ -9303,6 +9358,17 @@ their own.
9303
9358
  | `monteCarloPiFigure({ count })` | Points in a square; the share inside the circle ≈ π/4 |
9304
9359
  | `regressionFigure({ slope, intercept, noise, count })` | Noisy points and the least-squares line |
9305
9360
  | `bayesFigure({ prior, sensitivity, falsePositive })` | A medical test as areas: P(condition given a positive) |
9361
+ | `graphSearchFigure({ search, start })` | Breadth- or depth-first search on a sample graph, with its queue or stack (`step`) |
9362
+ | `shortestPathFigure({ start, target })` | Dijkstra on the weighted sample graph, distances shown (`step`) |
9363
+ | `recursionTreeFigure({ n })` | The call tree of naive recursive Fibonacci, in call order (`step`) |
9364
+ | `vennFigure({ sets, highlight, label })` | Two or three sets with a region shaded |
9365
+ | `clockFigure({ modulus, value })` | Clock arithmetic (`value`) |
9366
+ | `neuralNetworkFigure({ layers, activation, inputs })` | A forward pass (`flow`, inputs `in0` …) |
9367
+ | `gradientDescentFigure({ expr, start, rate, momentum })` | Descent on a narrow valley over its contours (`steps`, `rate`, `momentum`) |
9368
+ | `attentionFigure({ tokens, scores })` | Attention weights, softmaxed per row, with token labels |
9369
+ | `decisionBoundaryFigure({ rate, spread })` | Logistic regression finding the line between two clusters (`epochs`) |
9370
+ | `kmeansFigure({ centres, k })` | k-means finding clusters (`iteration`) |
9371
+ | `activationFigure()` | Sigmoid, tanh and ReLU |
9306
9372
 
9307
9373
  Each returns a plain figure to change or extend. In each, `M` starts at the
9308
9374
  identity unless `matrix` is given.
@@ -9311,15 +9377,18 @@ identity unless `matrix` is given.
9311
9377
 
9312
9378
  - Gallery: **Linear Map**, **Eigenvectors**, **Equation Steps**, **Matrix Lesson**,
9313
9379
  **Derivative**, **Riemann Sums**, **Taylor Series**, **Galton Board**, **Central Limit
9314
- Theorem**, **Monte Carlo π** and **Bayes: a Positive Test**.
9315
- - Videos: `linear-map-short.mjs`, `riemann-short.mjs` and `galton-short.mjs` (9:16);
9316
- `eigen-explainer.mjs`, `taylor-explainer.mjs` and `clt-explainer.mjs` (16:9), in
9317
- `examples/headless-video/`.
9380
+ Theorem**, **Monte Carlo π**, **Bayes: a Positive Test**, **Graph Search**, **Recursion
9381
+ Tree**, **Set Operations**, **Clock Arithmetic**, **Neural Network**, **Gradient Descent**,
9382
+ **Decision Boundary**, **K-Means** and **Attention Weights**.
9383
+ - Videos: `linear-map-short.mjs`, `riemann-short.mjs`, `galton-short.mjs`,
9384
+ `graph-search-short.mjs` and `gradient-descent-short.mjs` (9:16); `eigen-explainer.mjs`,
9385
+ `taylor-explainer.mjs`, `clt-explainer.mjs`, `de-morgan-explainer.mjs` and
9386
+ `neural-network-explainer.mjs` (16:9), in `examples/headless-video/`.
9318
9387
 
9319
9388
  ## Next
9320
9389
 
9321
- Discrete maths (graphs, trees, sets) and AI/ML (networks, gradient descent on
9322
- a loss surface) build on the same figure model.
9390
+ Characters can already stand beside a figure in a video; letting them point at
9391
+ named parts of it (a vector's tip, an equation term) is planned. See `todo.md`.
9323
9392
  See `todo.md` for their status.
9324
9393
 
9325
9394
  ---
@@ -10272,8 +10341,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
10272
10341
  adds to the same `tinyfly` global:
10273
10342
 
10274
10343
  ```html
10275
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.117.0/cdn/tinyfly.iife.js"></script>
10276
- <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.117.0/cdn/tinyfly-maps.iife.js"></script>
10344
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.119.1/cdn/tinyfly.iife.js"></script>
10345
+ <script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.119.1/cdn/tinyfly-maps.iife.js"></script>
10277
10346
  ```
10278
10347
 
10279
10348
  It is a separate script because the offline world map it carries adds about
@@ -15502,7 +15571,7 @@ magnet.addEventListener('pointerleave', () => {
15502
15571
 
15503
15572
  <!-- capabilities: generated from the library -->
15504
15573
 
15505
- # tinyfly capabilities (v0.117.0)
15574
+ # tinyfly capabilities (v0.119.1)
15506
15575
 
15507
15576
  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).
15508
15577
 
@@ -15990,6 +16059,9 @@ A figure is JSON: a plane and items. Tracks on its target animate values by name
15990
16059
  - `tangentFigure, secantFigure, riemannFigure, areaFigure, taylorFigure, limitFigure`: ready calculus figures; their moving parts are number values (a, h, n, b, order, p)
15991
16060
  - `differentiate / compileDerivative / integrate`: exact symbolic derivatives of expressions; Simpson integration
15992
16061
  - `normalFigure, binomialFigure, cltFigure, galtonFigure, monteCarloPiFigure, regressionFigure, bayesFigure`: ready probability and statistics figures
16062
+ - `graphSearchFigure, shortestPathFigure, recursionTreeFigure, vennFigure, clockFigure`: ready discrete maths figures; searches move with the value step
16063
+ - `searchEvents / parseSetExpression / regionCells`: graph searches as data; set expressions and their Venn cells
16064
+ - `neuralNetworkFigure, gradientDescentFigure, attentionFigure, decisionBoundaryFigure, kmeansFigure, activationFigure`: ready AI/ML figures
15993
16065
  - `distributions`: { kind: normal | uniform | exponential | binomial | poisson | dice | mean, …numbers or value names }; density, meanOf, sdOf, samples (seeded)
15994
16066
  - `layoutTex(tex) / morphEquation(a, b, t)`: the built-in TeX subset, and term-by-term transitions
15995
16067
  - `vec2, mat2`: 2D vectors and 2×2 matrices (apply, multiply, determinant, inverse, eigen)
@@ -16016,6 +16088,15 @@ Items (each has `id`, `kind`, and optional `color`, `draw`, `opacity`):
16016
16088
  - `galton` { rows?, balls, spacing?, top?, seed? }: a Galton board; fractional balls = the next one falling
16017
16089
  - `scatter` { points: uniform | linear, count, inside?, fit?, seed? }: Monte Carlo and regression; \val{ID.ratio}, \val{ID.r}
16018
16090
  - `bayes` { prior, truePositive, falsePositive }: Bayes as areas; \val{ID.posterior}
16091
+ - `graph` { nodes, edges, directed?, tree?, search?: { kind: bfs | dfs | dijkstra, start }, step?, frontier? }: searches step by step
16092
+ - `venn` { sets (2 or 3), highlight?: set expression like (A | B)' }: shaded by clipping
16093
+ - `clock` { modulus, value }: clock arithmetic; \val{ID.hour}
16094
+ - `network` { layers, activation?, inputs?, flow?, seed?, labels? }: a forward pass, layer by layer
16095
+ - `heatmap` { cells (softmax? per row) or expr in x, y; colormap?, rowLabels?, colLabels?, values? }: attention maps, loss fields
16096
+ - `contours` { expr in x, y, levels? }: level curves (marching squares)
16097
+ - `descent` { expr in x, y, start, rate, steps, momentum? }: gradient descent with an exact gradient
16098
+ - `classifier` { epochs, centres?, rate?, start? }: logistic regression training; \val{ID.accuracy}
16099
+ - `kmeans` { centres, iteration, k? }: Lloyd iterations; \val{ID.inertia}
16019
16100
 
16020
16101
  Props a timeline animates:
16021
16102
 
package/llms.txt CHANGED
@@ -13,49 +13,49 @@ 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.117.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.119.1/llms-full.txt)
17
17
 
18
18
  ## Start here
19
19
 
20
- - [Getting Started](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.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.117.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.117.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.117.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.119.1/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.119.1/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.119.1/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.119.1/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.117.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.117.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.119.1/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.119.1/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.117.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.117.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.117.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.117.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.117.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.117.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.117.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.119.1/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.119.1/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.119.1/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.119.1/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.119.1/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.119.1/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.119.1/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.117.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.117.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.117.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.117.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
- - [Maths Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.0/docs/math.md): tinyfly/math: figures as JSON (grids a matrix warps, vectors, function plots, polygons, eigenlines, TeX labels and equations that rewrite step by step), animated by plain tracks, played in lesson-page embeds, explorables and videos from one layout; a built-in TeX subset and ready linear algebra figures.
47
- - [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.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.
48
- - [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.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.
49
- - [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.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.
50
- - [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.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).
51
- - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.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.
52
- - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.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.
53
- - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.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.
54
- - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.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.
55
- - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.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.
56
- - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.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.119.1/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.119.1/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.119.1/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.119.1/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
+ - [Maths Animations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/docs/math.md): tinyfly/math: figures as JSON (grids a matrix warps, vectors, function plots, polygons, eigenlines, TeX labels and equations that rewrite step by step), animated by plain tracks, played in lesson-page embeds, explorables and videos from one layout; a built-in TeX subset and ready linear algebra figures.
47
+ - [Rendering Video from Code](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/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.
48
+ - [Animated Maps](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/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.
49
+ - [Cartoon Hands](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/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.
50
+ - [Character Appearance](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/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).
51
+ - [Cartoon Acting](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/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.
52
+ - [Dance and Flips](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/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.
53
+ - [3D Scenes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/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.
54
+ - [3D Transforms and Rotations](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/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.
55
+ - [Extending tinyfly](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/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.
56
+ - [Deployment](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/docs/DEPLOYMENT.md): Building and hosting the editor, and serving the player bundles.
57
57
 
58
58
  ## Optional
59
59
 
60
- - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.0/README.md): Feature overview, project layout and development setup.
61
- - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.117.0/release-notes/README.md): What changed in each version.
60
+ - [README](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/README.md): Feature overview, project layout and development setup.
61
+ - [Release notes](https://raw.githubusercontent.com/algorisys-oss/tinyfly/v0.119.1/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.117.0",
3
+ "version": "0.119.1",
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",
@@ -176,7 +176,9 @@ names.
176
176
  (`h` makes a secant), `riemann`, `area`, `taylor`; animate `at` / `n` / `to` /
177
177
  `order` through number values. Probability: `histogram`, `distribution`,
178
178
  `galton`, `scatter`, `bayes`; distributions are data and samples are seeded.
179
- See `docs/math.md`.
179
+ Discrete: `graph` (searches stepped by `step`), `venn` (set expressions),
180
+ `clock`. AI/ML: `network`, `heatmap`, `contours`, `descent`, `classifier`,
181
+ `kmeans`, each stepped by one value. See `docs/math.md`.
180
182
 
181
183
  ## 3. Check
182
184