@algorisys/tinyfly 0.114.0 → 0.116.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 +13 -8
- package/docs/api-reference.md +2 -1
- package/docs/character-appearance.md +27 -2
- 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 +18 -0
- package/docs/maps.md +2 -2
- package/docs/math.md +280 -0
- package/docs/teaching.md +1 -1
- package/lib/addons/characters.js +2646 -2584
- package/lib/addons/{cricket-play-BZNhfgOK.js → cricket-play-C5CkNOc6.js} +2187 -2005
- package/lib/addons/math.js +2864 -0
- package/lib/addons/sports.js +1 -1
- package/lib/browser/tinyfly-math.iife.js +53 -0
- package/lib/browser/tinyfly.iife.js +12 -12
- package/lib/browser/tinyfly.js +4948 -4699
- package/lib/browser/tinyfly.umd.js +12 -12
- package/lib/embed/tinyfly-embed.iife.js +1 -1
- package/lib/embed/tinyfly-embed.js +8 -0
- package/lib/player/tinyfly-player.es.js +8 -0
- package/lib/player/tinyfly-player.iife.js +1 -1
- package/lib/player/tinyfly-player.umd.js +1 -1
- package/lib/types/characters/capabilities.d.ts +8 -0
- package/lib/types/characters/character.d.ts +4 -0
- package/lib/types/characters/index.d.ts +2 -0
- package/lib/types/characters/look/illustrated-pen.d.ts +36 -0
- package/lib/types/characters/look/illustration-color.d.ts +13 -0
- package/lib/types/characters/look/pen.d.ts +18 -5
- package/lib/types/math/browser-entry.d.ts +3 -0
- package/lib/types/math/embed/auto-mount-math.d.ts +7 -0
- package/lib/types/math/embed/explorable.d.ts +46 -0
- package/lib/types/math/embed/mount-math.d.ts +31 -0
- package/lib/types/math/expr/differentiate.d.ts +7 -0
- package/lib/types/math/expr/evaluate.d.ts +21 -0
- package/lib/types/math/expr/parse-expression.d.ts +50 -0
- package/lib/types/math/figure/derived.d.ts +17 -0
- package/lib/types/math/figure/display-list.d.ts +87 -0
- package/lib/types/math/figure/figure-spec.d.ts +239 -0
- package/lib/types/math/figure/item-context.d.ts +33 -0
- package/lib/types/math/figure/items/calculus.d.ts +7 -0
- package/lib/types/math/figure/items/curves.d.ts +7 -0
- package/lib/types/math/figure/items/grid.d.ts +5 -0
- package/lib/types/math/figure/items/regions.d.ts +5 -0
- package/lib/types/math/figure/items/text.d.ts +5 -0
- package/lib/types/math/figure/items/vectors.d.ts +9 -0
- package/lib/types/math/figure/layout-figure.d.ts +13 -0
- package/lib/types/math/figure/plane.d.ts +20 -0
- package/lib/types/math/figure/validate-spec.d.ts +2 -0
- package/lib/types/math/index.d.ts +43 -0
- package/lib/types/math/linear/mat2.d.ts +41 -0
- package/lib/types/math/linear/vec2.d.ts +18 -0
- package/lib/types/math/presets/calculus.d.ts +59 -0
- package/lib/types/math/presets/linear-algebra.d.ts +42 -0
- package/lib/types/math/render/arrow.d.ts +10 -0
- package/lib/types/math/render/display-list-to-svg.d.ts +10 -0
- package/lib/types/math/render/draw-display-list.d.ts +6 -0
- package/lib/types/math/steps/math-steps.d.ts +34 -0
- package/lib/types/math/targets/math-target.d.ts +43 -0
- package/lib/types/math/tex/equation-morph.d.ts +21 -0
- package/lib/types/math/tex/glyph-metrics.d.ts +24 -0
- package/lib/types/math/tex/tex-layout.d.ts +59 -0
- package/lib/types/math/tex/tex-parser.d.ts +88 -0
- package/lib/types/player/player.d.ts +6 -0
- package/llms-full.txt +388 -12
- package/llms.txt +32 -31
- package/package.json +6 -2
- package/skills/tinyfly/SKILL.md +13 -1
package/llms-full.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Key facts:
|
|
6
6
|
|
|
7
|
-
- Package: `@algorisys/tinyfly` on npm (`npm install @algorisys/tinyfly`). Entry points: `@algorisys/tinyfly` (engine), `/player`, `/export` (CSS, Lottie, GIF, video exporters), `/adapters` (DOM, Canvas, SVG, WebGL), `/gsap-compat` (GSAP-style API), `/drivers` (scroll, visibility, smooth scroll), `/interaction` (Observer, Draggable), `/teach` (lesson steps and diagram primitives), `/embed` (teaching embeds), `/characters` (poseable stick figure with facial expressions), `/headless` (render scenes to MP4 and PNG stills in Node), `/react`, `/vue`, `/svelte`, `/solid` (framework wrappers), and `/browser` (the GSAP-style runtime plus engine, player, drivers, interaction and the stick figure — no exporters — for script tags). A CLI: `npx @algorisys/tinyfly capabilities`, `check`, `validate`, `render` and `video`.
|
|
7
|
+
- Package: `@algorisys/tinyfly` on npm (`npm install @algorisys/tinyfly`). Entry points: `@algorisys/tinyfly` (engine), `/player`, `/export` (CSS, Lottie, GIF, video exporters), `/adapters` (DOM, Canvas, SVG, WebGL), `/gsap-compat` (GSAP-style API), `/drivers` (scroll, visibility, smooth scroll), `/interaction` (Observer, Draggable), `/teach` (lesson steps and diagram primitives), `/math` (maths figures, a TeX subset, equation steps, lesson embeds and explorables), `/embed` (teaching embeds), `/characters` (poseable stick figure with facial expressions), `/headless` (render scenes to MP4 and PNG stills in Node), `/react`, `/vue`, `/svelte`, `/solid` (framework wrappers), and `/browser` (the GSAP-style runtime plus engine, player, drivers, interaction and the stick figure — no exporters — for script tags). A CLI: `npx @algorisys/tinyfly capabilities`, `check`, `validate`, `render` and `video`.
|
|
8
8
|
- Script tag: `https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v{version}/cdn/tinyfly.iife.js` defines a global `tinyfly`, e.g. `tinyfly.to('.box', { x: 200, duration: 1 })`. Replace `{version}` with a release tag.
|
|
9
9
|
- The GSAP-style `live` API covers `scrollTrigger` (scrub, pin, toggleActions), `splitText` (chars, words, lines, masks), `drawSVG`, `spring`, `morphSVG`, `motionPath`, text/scramble, inertia and Draggable, Flip (including shared elements by `data-flip-id`), plain-object targets and `live.ticker`.
|
|
10
10
|
- Times in JSON timelines are milliseconds; durations in the GSAP-style API are seconds, as in GSAP.
|
|
@@ -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.
|
|
594
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.116.0/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.
|
|
802
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.116.0/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.
|
|
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.116.0/cdn/tinyfly-player.iife.js`.
|
|
2718
2718
|
|
|
2719
2719
|
---
|
|
2720
2720
|
|
|
@@ -2827,7 +2827,8 @@ Complete reference for the tinyfly animation engine, player, and adapters.
|
|
|
2827
2827
|
Entry points: `tinyfly` (engine), `@algorisys/tinyfly/export` (CSS, Lottie, GIF, WebP,
|
|
2828
2828
|
video and sprite-sheet exporters), `@algorisys/tinyfly/player`, `@algorisys/tinyfly/adapters` (DOM,
|
|
2829
2829
|
Canvas, SVG and WebGL adapters, Flip helpers), `@algorisys/tinyfly/drivers`,
|
|
2830
|
-
`@algorisys/tinyfly/interaction`, `@algorisys/tinyfly/gsap-compat`, `@algorisys/tinyfly/scene-3d` (3D scenes), `@algorisys/tinyfly/
|
|
2830
|
+
`@algorisys/tinyfly/interaction`, `@algorisys/tinyfly/gsap-compat`, `@algorisys/tinyfly/scene-3d` (3D scenes), `@algorisys/tinyfly/math`
|
|
2831
|
+
(maths figures, equations and lessons; see [Maths Animations](math.md)), `@algorisys/tinyfly/browser` (the live
|
|
2831
2832
|
runtime and everything except the exporters, for `<script>` tags), and `@algorisys/tinyfly/headless`
|
|
2832
2833
|
(video and stills rendering in Node).
|
|
2833
2834
|
|
|
@@ -7067,7 +7068,7 @@ The dialog shows the generated HTML/JavaScript code with a **Copy Code** button.
|
|
|
7067
7068
|
**Steps to embed:**
|
|
7068
7069
|
1. Build the player: `npm run build:player`
|
|
7069
7070
|
2. Copy `lib/player/tinyfly-player.iife.js` to your project (or load
|
|
7070
|
-
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
7071
|
+
`https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.116.0/cdn/tinyfly-player.iife.js`
|
|
7071
7072
|
instead; see [Deployment](DEPLOYMENT.md))
|
|
7072
7073
|
3. Copy the generated code into your HTML
|
|
7073
7074
|
4. Adjust the script `src` path if needed
|
|
@@ -8437,6 +8438,8 @@ from. The eight presets in `ANIME_CAST` (`animeBoy`, `animeGirl`,
|
|
|
8437
8438
|
Use `face: { style: 'anime', iris: '#4b7fce', lashes: true, ageLines: 0.6 }`
|
|
8438
8439
|
for coloured expressive eyes and optional creases; this is a face style,
|
|
8439
8440
|
not a `look` value. It uses the same expressions, blink, gaze and turn fields.
|
|
8441
|
+
The `look` values are `clean`, `pencil`, `silhouette` and `illustrated`
|
|
8442
|
+
(inked and painted, tuned with `illustrated: { light, weight, taper, shadow, highlight }`).
|
|
8440
8443
|
Age is proportions, hair, creases and clothes, never a stoop; a `cane` in a hand or
|
|
8441
8444
|
a `wheelchair()` to ride (`RIDING_POSES.wheeling`) is an accessory any
|
|
8442
8445
|
character can have. Expressions come from `HUMAN_EXPRESSIONS`
|
|
@@ -8476,6 +8479,22 @@ are declared up front, each with an id the places use. The catalog lists each
|
|
|
8476
8479
|
surface's places and edits. See "A whole scene as data", "Whiteboards" and
|
|
8477
8480
|
"Charts" in `docs/acting.md`.
|
|
8478
8481
|
|
|
8482
|
+
## Maths
|
|
8483
|
+
|
|
8484
|
+
Maths lessons use `@algorisys/tinyfly/math`: write the figure as JSON (`width`,
|
|
8485
|
+
`height`, `values`, `items`: grid, axes, vector, basis, point, function,
|
|
8486
|
+
parametric, polygon, line, label, equation), check it with `mathFigure(spec)`,
|
|
8487
|
+
and write steps with `mathSteps(lesson, 'fig', figure)` (`applyMatrix`,
|
|
8488
|
+
`drawOn`, `showStep`). Matrices are `[a, b, c, d]` row by row; columns are where
|
|
8489
|
+
î and ĵ land. Functions are expression strings (`'sin(k x)'`, never JS), and
|
|
8490
|
+
equations are TeX in the built-in subset (`\frac`, `\sqrt`, `^`, `_`, matrices,
|
|
8491
|
+
`\val{M.det}` for live values). Do not name a value `x`, `y`, `t`, `opacity`
|
|
8492
|
+
or `scale`: those belong to the figure's target. The same figure plays in a
|
|
8493
|
+
lesson page (`<figure data-tinyfly-math>`), an explorable and a video
|
|
8494
|
+
(`mathTarget`). Calculus items (`tangent`, `riemann`, `area`, `taylor`, a
|
|
8495
|
+
`point` with `on` and `x`) take numbers or number-value names for `at`, `n`,
|
|
8496
|
+
`to`, `order`, and publish `\\val{ID.slope}`, `ID.sum`, `ID.value` for TeX. See `docs/math.md`.
|
|
8497
|
+
|
|
8479
8498
|
## Your own behaviours
|
|
8480
8499
|
|
|
8481
8500
|
Write new actions with `defineAction()` (from beats, or as timed pose steps),
|
|
@@ -8661,7 +8680,7 @@ path for all of that:
|
|
|
8661
8680
|
</figure>
|
|
8662
8681
|
|
|
8663
8682
|
<!-- once, anywhere on the page (a site-wide footer is fine) -->
|
|
8664
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
8683
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.116.0/cdn/tinyfly-embed.iife.js" data-tinyfly-auto></script>
|
|
8665
8684
|
```
|
|
8666
8685
|
|
|
8667
8686
|
Every `[data-tinyfly-embed]` mounts when the page is ready, with no per-post
|
|
@@ -8985,6 +9004,291 @@ refuses to play it, with an error saying to update, rather than playing it wrong
|
|
|
8985
9004
|
|
|
8986
9005
|
---
|
|
8987
9006
|
|
|
9007
|
+
<!-- docs/math.md -->
|
|
9008
|
+
|
|
9009
|
+
# Maths Animations
|
|
9010
|
+
|
|
9011
|
+
`@algorisys/tinyfly/math` draws maths the way teaching videos and explorable
|
|
9012
|
+
lessons show it: a coordinate plane whose grid a matrix warps, vectors, function
|
|
9013
|
+
plots, shaded areas, and equations typeset from TeX that rewrite themselves one
|
|
9014
|
+
step at a time.
|
|
9015
|
+
|
|
9016
|
+
The same figure plays in three places:
|
|
9017
|
+
|
|
9018
|
+
| Where | How |
|
|
9019
|
+
|---|---|
|
|
9020
|
+
| **Lesson pages** | A `<figure data-tinyfly-math>` with the figure and a timeline as JSON, stepped with the embed controls (next, back, captions, questions) |
|
|
9021
|
+
| **Short videos** | A scene for `tinyfly video`, any size: 1080×1920 for 9:16, 1920×1080 for 16:9 |
|
|
9022
|
+
| **Explorables** | `mathExplorable()`: the reader drags vectors or matrix columns and moves sliders |
|
|
9023
|
+
|
|
9024
|
+
All three run the same layout: one pure function turns the figure and its
|
|
9025
|
+
current values into shapes, which are drawn on a canvas or written as SVG. The
|
|
9026
|
+
same values always give the same picture, in a browser, a Web Worker or Node.
|
|
9027
|
+
|
|
9028
|
+
## A figure is JSON
|
|
9029
|
+
|
|
9030
|
+
```js
|
|
9031
|
+
import { mathFigure } from '@algorisys/tinyfly/math'
|
|
9032
|
+
|
|
9033
|
+
const figure = mathFigure({
|
|
9034
|
+
width: 600, height: 600, // px
|
|
9035
|
+
x: [-5, 5], // world units across (y follows, square)
|
|
9036
|
+
theme: 'dark', // dark (default) | light | chalk
|
|
9037
|
+
values: { M: [1, 0, 0, 1], k: 1 },
|
|
9038
|
+
items: [
|
|
9039
|
+
{ id: 'grid', kind: 'grid', transform: 'M', ghost: true },
|
|
9040
|
+
{ id: 'basis', kind: 'basis', transform: 'M' },
|
|
9041
|
+
{ id: 'wave', kind: 'function', expr: 'sin(k x)', color: 'blue' },
|
|
9042
|
+
{ id: 'eq', kind: 'label', tex: '\\begin{bmatrix} \\val{M.a} & \\val{M.b} \\\\ \\val{M.c} & \\val{M.d} \\end{bmatrix}', at: [30, 60], screen: true, align: 'left' },
|
|
9043
|
+
],
|
|
9044
|
+
})
|
|
9045
|
+
```
|
|
9046
|
+
|
|
9047
|
+
`mathFigure()` checks the figure and throws a message that says how to fix it:
|
|
9048
|
+
unknown kinds and themes with the name probably meant, duplicate ids, values of
|
|
9049
|
+
the wrong shape, expressions that do not parse or read a missing parameter, TeX
|
|
9050
|
+
mistakes with their position.
|
|
9051
|
+
|
|
9052
|
+
### Values
|
|
9053
|
+
|
|
9054
|
+
Everything that moves is a **value**: a number (`k`), a vector `[x, y]` or a
|
|
9055
|
+
matrix `[a, b, c, d]`, written row by row:
|
|
9056
|
+
|
|
9057
|
+
| a b |
|
|
9058
|
+
| c d |
|
|
9059
|
+
|
|
9060
|
+
The first column `[a, c]` is where î lands and the second `[b, d]` is where ĵ
|
|
9061
|
+
lands. Items name the values they use (`transform: 'M'`, `to: 'v'`), and number
|
|
9062
|
+
values are the parameters of functions (`sin(k x)`). TeX shows values live with
|
|
9063
|
+
`\val{name}` (`\val{name:1}` for one decimal). Matrices also give
|
|
9064
|
+
`M.a M.b M.c M.d M.det`, and vectors give `v.x v.y v.length`.
|
|
9065
|
+
|
|
9066
|
+
Some names are reserved, because a track on them would move the whole figure:
|
|
9067
|
+
`x`, `y`, `opacity`, `scale`, `rotate` and the other canvas properties, and `t`.
|
|
9068
|
+
|
|
9069
|
+
### Items
|
|
9070
|
+
|
|
9071
|
+
| Kind | Options |
|
|
9072
|
+
|---|---|
|
|
9073
|
+
| `grid` | `step?`, `transform?` (a matrix value), `ghost?` (the original grid, faintly underneath) |
|
|
9074
|
+
| `axes` | `ticks?` (0 for none), `labels?` |
|
|
9075
|
+
| `vector` | `to`, `from?`, `transform?`, `label?` (TeX), `labelAt?: 'tip' \| 'middle'`, `width?` |
|
|
9076
|
+
| `basis` | `transform?`, `labels?`: î and ĵ |
|
|
9077
|
+
| `point` | `at`, `transform?`, `label?`, `radius?` |
|
|
9078
|
+
| `function` | `expr` in `x`, `domain?`, `width?` |
|
|
9079
|
+
| `parametric` | `x` and `y` in `t`, `t?` range, `transform?` |
|
|
9080
|
+
| `polygon` | `points?` (default the unit square), `transform?`, `fillOpacity?`, `label?` |
|
|
9081
|
+
| `line` | `along` (a span) or `eigen` (a matrix value: one line per real eigenvector), `dashed?` |
|
|
9082
|
+
| `label` | `tex`, `at`, `screen?` (px instead of world units), `size?`, `align?`, `backdrop?` |
|
|
9083
|
+
| `equation` | `steps` (TeX, one per step), `at`, `screen?`, `size?`, `align?`, `backdrop?` |
|
|
9084
|
+
| `tangent` | `expr`, `at`, `h?` (a secant through `at` and `at + h`), `length?`, `points?`, `label?` |
|
|
9085
|
+
| `riemann` | `expr`, `from`, `to`, `n` (pieces), `rule?: 'left' \| 'right' \| 'midpoint' \| 'trapezoid'`, `fillOpacity?` |
|
|
9086
|
+
| `area` | `expr`, `from`, `to`, `lower?` (another function), `negativeColor?`, `fillOpacity?` |
|
|
9087
|
+
| `taylor` | `expr`, `at`, `order` (0–20; a fractional order grows the next term in), `domain?` |
|
|
9088
|
+
|
|
9089
|
+
`point` also rides a curve: `{ on: 'sin(x)', x: 'p' }` is the point (p, sin p), and
|
|
9090
|
+
`hollow: true` draws an open circle for a hole or a limit. `function` takes
|
|
9091
|
+
`derivative: n` to plot f′, f″ … and `dashed: true`.
|
|
9092
|
+
|
|
9093
|
+
Fields such as `at`, `from`, `to`, `n`, `h` and `order` take a number or the
|
|
9094
|
+
name of a number value, so a timeline can slide the point, shrink the secant,
|
|
9095
|
+
add rectangles or Taylor terms.
|
|
9096
|
+
|
|
9097
|
+
### Derived numbers
|
|
9098
|
+
|
|
9099
|
+
Items work out numbers that TeX can show with `\val{…}`:
|
|
9100
|
+
|
|
9101
|
+
| Item | Numbers |
|
|
9102
|
+
|---|---|
|
|
9103
|
+
| `tangent` | `ID.slope` (exact, or rise over run for a secant), `ID.x`, `ID.y` |
|
|
9104
|
+
| `riemann` | `ID.sum`, `ID.exact` (the integral), `ID.n` |
|
|
9105
|
+
| `area` | `ID.value` (the signed integral) |
|
|
9106
|
+
| `point` on a curve | `ID.x`, `ID.y` |
|
|
9107
|
+
| `taylor` | `ID.order`, `ID.degree` (its whole part) |
|
|
9108
|
+
|
|
9109
|
+
Slopes, derivative plots and Taylor coefficients come from symbolic
|
|
9110
|
+
differentiation of the expression (`differentiate`, `compileDerivative`), so
|
|
9111
|
+
they are exact, not finite differences. Integrals use Simpson's rule
|
|
9112
|
+
(`integrate`). Calculus items need functions with derivatives; `floor`,
|
|
9113
|
+
`ceil` and `round` have none and are refused with a message.
|
|
9114
|
+
|
|
9115
|
+
Every item has an `id` and may set `color` (a theme colour: `blue`, `green`,
|
|
9116
|
+
`red`, `yellow`, `purple`, `orange`, `teal`, `pink`, `ink`, `grey`; or any CSS
|
|
9117
|
+
colour), `draw` and `opacity`. Items draw in order, later ones on top.
|
|
9118
|
+
|
|
9119
|
+
Function plots break at gaps and asymptotes (`tan(x)`, `1/x`, `sqrt(x)` below
|
|
9120
|
+
0) instead of joining across them.
|
|
9121
|
+
|
|
9122
|
+
### Expressions
|
|
9123
|
+
|
|
9124
|
+
Functions and curves are written as text, parsed by a small safe parser (never
|
|
9125
|
+
`eval`): `+ - * / ^`, brackets, implicit multiplication (`2x`, `3(x + 1)`),
|
|
9126
|
+
`pi`, `e`, `tau`, and these functions: `sin cos tan asin acos atan atan2 sinh
|
|
9127
|
+
cosh tanh exp ln log log2 sqrt abs floor ceil round sign min max sigmoid relu`.
|
|
9128
|
+
|
|
9129
|
+
## What a timeline animates
|
|
9130
|
+
|
|
9131
|
+
A figure's target takes ordinary tracks:
|
|
9132
|
+
|
|
9133
|
+
| Property | Animates |
|
|
9134
|
+
|---|---|
|
|
9135
|
+
| a value's name (`M`, `k`, `v`) | the value; a matrix keyed from `[1, 0, 0, 1]` to `[1, 1, 0, 1]` shears the plane, every point moving in a straight line |
|
|
9136
|
+
| `ITEM.draw` | 0..1, draws the item on like a pen |
|
|
9137
|
+
| `ITEM.opacity` | 0..1 |
|
|
9138
|
+
| `ITEM.step` | an equation's step; in between, terms glide |
|
|
9139
|
+
|
|
9140
|
+
`mathSteps()` writes these as lesson steps on a `lesson()` builder from
|
|
9141
|
+
`@algorisys/tinyfly/teach`:
|
|
9142
|
+
|
|
9143
|
+
```js
|
|
9144
|
+
import { lesson } from '@algorisys/tinyfly/teach'
|
|
9145
|
+
import { determinantFigure, mathSteps } from '@algorisys/tinyfly/math'
|
|
9146
|
+
|
|
9147
|
+
const figure = determinantFigure({ theme: 'light' })
|
|
9148
|
+
const l = lesson({ id: 'determinant' })
|
|
9149
|
+
const m = mathSteps(l, 'fig', figure, { hidden: ['square'] })
|
|
9150
|
+
l.marker('start', { label: 'î and ĵ span the unit square' })
|
|
9151
|
+
m.drawOn('square')
|
|
9152
|
+
l.marker('square', { label: 'Its area is 1', pause: true })
|
|
9153
|
+
m.applyMatrix([2, 0, 0, 1])
|
|
9154
|
+
l.marker('stretch', { label: 'Stretch î by 2: the area doubles', pause: true })
|
|
9155
|
+
m.applyMatrix([2, 1, 2, 1])
|
|
9156
|
+
l.marker('flat', { label: 'ĵ lies on î’s line', pause: true, question: 'What is the area now?' })
|
|
9157
|
+
const timeline = l.definition() // plain JSON
|
|
9158
|
+
```
|
|
9159
|
+
|
|
9160
|
+
`mathSteps` helpers: `toValue(name, value)`, `applyMatrix(m, { name? })`,
|
|
9161
|
+
`drawOn(id)`, `fadeIn(id)`, `fadeOut(id)`, `showStep(id, step)`. Each takes the
|
|
9162
|
+
lesson's step options (`duration`, `easing`, `delay`).
|
|
9163
|
+
|
|
9164
|
+
## In a lesson page
|
|
9165
|
+
|
|
9166
|
+
```html
|
|
9167
|
+
<figure data-tinyfly-math data-options='{"stepMode": true}'>
|
|
9168
|
+
<script type="application/json" data-tinyfly-figure>{ …the figure… }</script>
|
|
9169
|
+
<script type="application/json" data-tinyfly-timeline>{ …the timeline… }</script>
|
|
9170
|
+
<figcaption>The determinant is the area of the unit square after the map.</figcaption>
|
|
9171
|
+
</figure>
|
|
9172
|
+
|
|
9173
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.116.0/cdn/tinyfly-math.iife.js" data-tinyfly-auto></script>
|
|
9174
|
+
```
|
|
9175
|
+
|
|
9176
|
+
The figure draws itself into an SVG and redraws from the timeline whenever the
|
|
9177
|
+
player moves: playing, stepping, seeking, or showing the last frame under
|
|
9178
|
+
reduced motion. Everything else is the ordinary embed (see
|
|
9179
|
+
[Teaching Animations](teaching.md)): markers, captions in several languages,
|
|
9180
|
+
questions, scenarios, pausing off screen. Tracks target `fig` unless the figure
|
|
9181
|
+
says `data-target="…"`.
|
|
9182
|
+
|
|
9183
|
+
`tinyfly-math.iife.js` (about 40 KB gzipped) works on its own: it carries the
|
|
9184
|
+
embed player and controls, `lesson()` and everything in the maths module. A figure
|
|
9185
|
+
with no timeline is drawn as a still. Without `data-tinyfly-auto`, call
|
|
9186
|
+
`tinyfly.mountAllMath()`.
|
|
9187
|
+
|
|
9188
|
+
`mathFigureToSvg(figure, values, { title })` writes a standalone SVG of a figure
|
|
9189
|
+
at some values, for static pages, RSS, email and print.
|
|
9190
|
+
|
|
9191
|
+
## Explorables
|
|
9192
|
+
|
|
9193
|
+
```js
|
|
9194
|
+
import { linearMapFigure, mathExplorable } from '@algorisys/tinyfly/math'
|
|
9195
|
+
|
|
9196
|
+
const explorable = mathExplorable(element, linearMapFigure(), {
|
|
9197
|
+
drag: [{ matrix: 'M', column: 0 }, { matrix: 'M', column: 1 }], // drag î and ĵ
|
|
9198
|
+
sliders: [], // { value, min, max, step?, label? }
|
|
9199
|
+
snap: 0.1, // world units (0 for none)
|
|
9200
|
+
onChange: (values) => console.log(values.M),
|
|
9201
|
+
})
|
|
9202
|
+
explorable.set('M', [0, -1, 1, 0])
|
|
9203
|
+
```
|
|
9204
|
+
|
|
9205
|
+
Drag handles take a vector value (`{ vector: 'v' }`) or a matrix column. Sliders
|
|
9206
|
+
take number values. Every change re-lays the figure out from its values, so the
|
|
9207
|
+
reader sees exactly what the same values give in a video.
|
|
9208
|
+
|
|
9209
|
+
## In a video
|
|
9210
|
+
|
|
9211
|
+
```js
|
|
9212
|
+
// examples/headless-video/linear-map-short.mjs (abridged)
|
|
9213
|
+
import { linearMapFigure, mathTarget, mathSteps } from '@algorisys/tinyfly/math'
|
|
9214
|
+
import { lesson } from '@algorisys/tinyfly/teach'
|
|
9215
|
+
|
|
9216
|
+
const figure = linearMapFigure({ width: 1080, height: 1920, x: [-4, 4] })
|
|
9217
|
+
const l = lesson({ id: 'short' })
|
|
9218
|
+
mathSteps(l, 'fig', figure).applyMatrix([1, 1, 0, 1])
|
|
9219
|
+
export default { width: 1080, height: 1920, fps: 30, targets: { fig: mathTarget(figure) }, timeline: l.definition() }
|
|
9220
|
+
```
|
|
9221
|
+
|
|
9222
|
+
```bash
|
|
9223
|
+
npx tinyfly video examples/headless-video/linear-map-short.mjs
|
|
9224
|
+
```
|
|
9225
|
+
|
|
9226
|
+
Line widths and text sizes are given for a 600 px figure and scale with the
|
|
9227
|
+
figure's smaller side, so a figure reads the same as a 600 px card and as a
|
|
9228
|
+
1080×1920 short. `mathTarget()` is a canvas custom target: register it on any
|
|
9229
|
+
`CanvasAdapter` too, and `describeTarget` / `checkTracks` know its props.
|
|
9230
|
+
|
|
9231
|
+
## Equations
|
|
9232
|
+
|
|
9233
|
+
Equations are typeset by a built-in TeX subset, with no KaTeX or MathJax:
|
|
9234
|
+
|
|
9235
|
+
- `^` and `_`, `\frac`, `\sqrt`, `\vec`, `\hat`, `\bar`
|
|
9236
|
+
- `\sum`, `\prod` and `\int`, with limits above and below in display style
|
|
9237
|
+
- Named operators: `\sin \cos \tan \log \ln \exp \det \lim \max \min` …
|
|
9238
|
+
- Greek letters
|
|
9239
|
+
- Symbols: `\cdot \times \pm \le \ge \ne \approx \to \infty \partial \nabla \in` …
|
|
9240
|
+
- Matrices: `\begin{pmatrix|bmatrix|vmatrix|matrix} … \end{…}`
|
|
9241
|
+
- `\text{…}`, `\color{name}{…}`, and spacing `\, \; \quad`
|
|
9242
|
+
- `\left( … \right)`, with delimiters at their natural size
|
|
9243
|
+
- `\id{name}{…}`, which names a term
|
|
9244
|
+
- `\val{name}` and `\val{name:digits}` for live values
|
|
9245
|
+
|
|
9246
|
+
Layout uses fixed glyph metrics, never a font's measurements, so an equation
|
|
9247
|
+
lands in the same place everywhere. The glyphs are drawn in a serif maths face
|
|
9248
|
+
(`MATH_FONT`: Latin Modern Math, STIX Two Math, Cambria Math, then Times-like
|
|
9249
|
+
fallbacks).
|
|
9250
|
+
|
|
9251
|
+
An `equation` item steps between lines of TeX. Terms pair up by their text and
|
|
9252
|
+
order (`x#1`, `=#1`, `2#2`), so `2x + 3 = 7` → `2x = 4` keeps `2`, `x` and `=`,
|
|
9253
|
+
fades `+ 3` and `7`, and fades in `4`. Name a term with `\id{lhs}{…}` to carry it
|
|
9254
|
+
when its text changes. `layoutTex()` and `morphEquation()` are available on
|
|
9255
|
+
their own.
|
|
9256
|
+
|
|
9257
|
+
## Ready figures
|
|
9258
|
+
|
|
9259
|
+
| Preset | Shows |
|
|
9260
|
+
|---|---|
|
|
9261
|
+
| `linearMapFigure()` | The grid, î, ĵ and the unit square carried by `M`, with the matrix in TeX |
|
|
9262
|
+
| `determinantFigure()` | The same, with the square's area labelled `det = …` |
|
|
9263
|
+
| `eigenFigure({ matrix })` | The eigenlines of `matrix` (value `A`) while `M` animates toward it |
|
|
9264
|
+
| `vectorSumFigure({ u, v })` | u + v tip to tail |
|
|
9265
|
+
| `spanFigure({ u, v? })` | Vectors and the lines they span |
|
|
9266
|
+
| `tangentFigure({ expr, at })` | The tangent at `a`, with its slope |
|
|
9267
|
+
| `secantFigure({ expr, at, h })` | The secant through `a` and `a + h`; key `h` to 0 |
|
|
9268
|
+
| `riemannFigure({ expr, from, to, n, rule })` | `n` rectangles, the sum and the exact integral |
|
|
9269
|
+
| `areaFigure({ expr, from, to })` | The area up to `b`, its value shown |
|
|
9270
|
+
| `taylorFigure({ expr, at, order })` | Taylor polynomials of degree `order` |
|
|
9271
|
+
| `limitFigure({ expr, at, limit })` | A point `p` sliding toward a hole |
|
|
9272
|
+
|
|
9273
|
+
Each returns a plain figure to change or extend. In each, `M` starts at the
|
|
9274
|
+
identity unless `matrix` is given.
|
|
9275
|
+
|
|
9276
|
+
## Examples
|
|
9277
|
+
|
|
9278
|
+
- Gallery: **Linear Map**, **Eigenvectors**, **Equation Steps**, **Matrix Lesson**,
|
|
9279
|
+
**Derivative**, **Riemann Sums** and **Taylor Series**.
|
|
9280
|
+
- Videos: `linear-map-short.mjs` and `riemann-short.mjs` (9:16), `eigen-explainer.mjs`
|
|
9281
|
+
and `taylor-explainer.mjs` (16:9), in `examples/headless-video/`.
|
|
9282
|
+
|
|
9283
|
+
## Next
|
|
9284
|
+
|
|
9285
|
+
Probability and statistics (sampling, histograms, the Galton board), discrete
|
|
9286
|
+
maths (graphs, trees, sets) and AI/ML (networks, gradient descent on a loss
|
|
9287
|
+
surface) build on the same figure model.
|
|
9288
|
+
See `todo.md` for their status.
|
|
9289
|
+
|
|
9290
|
+
---
|
|
9291
|
+
|
|
8988
9292
|
<!-- docs/video-rendering.md -->
|
|
8989
9293
|
|
|
8990
9294
|
# Rendering Video from Code
|
|
@@ -9933,8 +10237,8 @@ On a page with no build step, load the maps add-on after the browser bundle; it
|
|
|
9933
10237
|
adds to the same `tinyfly` global:
|
|
9934
10238
|
|
|
9935
10239
|
```html
|
|
9936
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
9937
|
-
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.
|
|
10240
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.116.0/cdn/tinyfly.iife.js"></script>
|
|
10241
|
+
<script src="https://cdn.jsdelivr.net/gh/algorisys-oss/tinyfly@v0.116.0/cdn/tinyfly-maps.iife.js"></script>
|
|
9938
10242
|
```
|
|
9939
10243
|
|
|
9940
10244
|
It is a separate script because the offline world map it carries adds about
|
|
@@ -10274,6 +10578,31 @@ accepts `mode: 'cel' | 'none'`, screen-space `light: [x, y]`, `shadow`,
|
|
|
10274
10578
|
Pencil and silhouette use their existing pens. Artist-authored painted
|
|
10275
10579
|
meshes remain a separate future capability.
|
|
10276
10580
|
|
|
10581
|
+
### The illustrated look
|
|
10582
|
+
|
|
10583
|
+
`look: 'illustrated'` inks and paints the same shapes the clean look draws:
|
|
10584
|
+
|
|
10585
|
+
- Outlines are heavier on the side turned away from the light and thinner on
|
|
10586
|
+
the lit side; open strokes (brows, mouth lines, folds, hair strands) taper
|
|
10587
|
+
at their ends like a brush.
|
|
10588
|
+
- Skin, clothes and hair are painted with a soft shadow, a narrower core
|
|
10589
|
+
shadow and a highlight, mixed from each fill's own colour: shadows lean
|
|
10590
|
+
toward red-violet, highlights toward warm yellow, greys shade cool
|
|
10591
|
+
(`illustrationTones(colour)` returns the three tones).
|
|
10592
|
+
- Faces get heavier arched brows, a lid shadow and crease, an iris glow, a
|
|
10593
|
+
soft lower lip and cheek warmth.
|
|
10594
|
+
|
|
10595
|
+
```ts
|
|
10596
|
+
character({
|
|
10597
|
+
look: 'illustrated',
|
|
10598
|
+
illustrated: { light: [-0.8, -0.6], weight: 0.6, taper: 0.7, shadow: 1, highlight: 0.6 },
|
|
10599
|
+
})
|
|
10600
|
+
```
|
|
10601
|
+
|
|
10602
|
+
Every option is optional. `light` points toward the light in screen space
|
|
10603
|
+
and defaults to the body's `shading.light`; the others run 0..1. Drawing is
|
|
10604
|
+
deterministic: the same character, pose and options give the same pixels.
|
|
10605
|
+
|
|
10277
10606
|
Set `body.fill: 'none'` (or `skin: 'none'` without a body fill override) for
|
|
10278
10607
|
outline-only exposed body, head and hands in every look. Dot and articulated
|
|
10279
10608
|
hands omit skin fills and shading; clothing retains its own material.
|
|
@@ -10431,7 +10760,7 @@ Every style is the same few fields (`resolveHair(spec)` fills them all in):
|
|
|
10431
10760
|
| `ties` | Ponytails, buns and braids: `{ kind: 'ponytail' \| 'bun' \| 'braid', at: 'top' \| 'high' \| 'low' \| 'left' \| 'right', length?, size? }` |
|
|
10432
10761
|
| `locks` | Curved sections: `{ path, width, follow? }`; `width` is in head radii; `follow` scales their flex (default 1, 0 pins a lock) |
|
|
10433
10762
|
| `fall` | Hanging mass: `{ taper, wave }`, narrowing toward the ends (0..1 head radii) and a soft uneven hem (nonnegative head radii) |
|
|
10434
|
-
| `shine` | Soft highlight opacity on the locks, 0..1 (default 0); drawn in the clean
|
|
10763
|
+
| `shine` | Soft highlight opacity on the locks, 0..1 (default 0); drawn in the clean and illustrated looks |
|
|
10435
10764
|
| `coversEars` | The hair hides the ears |
|
|
10436
10765
|
|
|
10437
10766
|
A style stays a starting point: any style suits anyone.
|
|
@@ -10642,7 +10971,7 @@ coloured irises and highlights. `iris` sets their colour (default `#4b7fce`),
|
|
|
10642
10971
|
`lashes` enables outer lashes (default true), and `ageLines` sets subtle eye
|
|
10643
10972
|
and smile creases from 0 to 1 (default 0). `style: 'simple'` is the original
|
|
10644
10973
|
face and remains the default. Face style is separate from the pen's `look`
|
|
10645
|
-
(`clean`, `pencil`, or `
|
|
10974
|
+
(`clean`, `pencil`, `silhouette` or `illustrated`); `look: 'anime'` is not a pen style.
|
|
10646
10975
|
|
|
10647
10976
|
The existing `eye.left`, `eye.right`, `blink`, `lookX`, `lookY`, `pupil`, `lid`,
|
|
10648
10977
|
`bulge`, brows and mouth fields animate both styles. The coloured eye opening
|
|
@@ -15138,7 +15467,7 @@ magnet.addEventListener('pointerleave', () => {
|
|
|
15138
15467
|
|
|
15139
15468
|
<!-- capabilities: generated from the library -->
|
|
15140
15469
|
|
|
15141
|
-
# tinyfly capabilities (v0.
|
|
15470
|
+
# tinyfly capabilities (v0.116.0)
|
|
15142
15471
|
|
|
15143
15472
|
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).
|
|
15144
15473
|
|
|
@@ -15423,6 +15752,7 @@ Appearance options of `character({ … })`, all plain data that turns with the h
|
|
|
15423
15752
|
|
|
15424
15753
|
- `build`: `standard`, `slim`, `tall`, `short`, `broad`, `curvy`, `stocky`, `kid`, `child`, `toddler`
|
|
15425
15754
|
- `figure`: `fluid`, `stick`, `organic`
|
|
15755
|
+
- `look`: `clean` (default), `pencil`, `silhouette`, `illustrated` (inked and painted: line weight follows the light, brush-tapered strokes, shadow/core/highlight tones from each fill; `illustrated: { light: [x, y], weight, taper, shadow, highlight }`, each 0–1)
|
|
15426
15756
|
- `body.torso · body.arm · body.leg · body.neck`: Organic half-width profiles: [{ at: 0..1, width: fractionOfHeight }], increasing from 0 to 1; independent of ink width.
|
|
15427
15757
|
- `body.measurements`: Organic torso from tape-measure girths { height, bust, underbust?, waist, hip } in any one unit, or a named shape (hourglass | pear | rectangle | invertedTriangle | round). Sets the front width, the side depth (bust forward, seat back, belly) and the hip and thigh spacing; reads correctly at every turn. An explicit torso / torsoFront / torsoBack / hipWidth still wins.
|
|
15428
15758
|
- `body.torsoFront · body.torsoBack`: Organic side-view depth from the spine line toward the chest/belly and toward the back/seat, same profile format; default torso × depth.
|
|
@@ -15610,6 +15940,52 @@ Decision review cameras: front-foot, striker-crease, bowler-crease. cricketCamer
|
|
|
15610
15940
|
- `cells, pointer, stack, queue, table, pipeline`: diagram primitives (SVG markup + step helpers)
|
|
15611
15941
|
- `figure({ width, height, children })`: the SVG holding the pieces
|
|
15612
15942
|
|
|
15943
|
+
## Maths (`@algorisys/tinyfly/math`)
|
|
15944
|
+
|
|
15945
|
+
A figure is JSON: a plane and items. Tracks on its target animate values by name and item props. One layout feeds a canvas (videos) and SVG (lesson embeds), so they match.
|
|
15946
|
+
|
|
15947
|
+
- `mathFigure(spec)`: checks a figure (JSON: width, height, x?, y?, theme?: dark | light | chalk, values, items) and says how to fix it
|
|
15948
|
+
- `layoutFigure(spec, props)`: the figure at some values as shapes; drawDisplayList(ctx, list) or displayListToSvg(list) draws them
|
|
15949
|
+
- `mathTarget(spec, { x, y })`: a canvas target for videos and canvas pages; tracks animate its values and item props
|
|
15950
|
+
- `mathSteps(lesson, target, spec, { hidden })`: lesson steps: toValue, applyMatrix, drawOn, fadeIn, fadeOut, showStep (equations)
|
|
15951
|
+
- `mountMath(element) / mountAllMath()`: lesson-page embeds: <figure data-tinyfly-math> with data-tinyfly-figure and data-tinyfly-timeline JSON scripts, stepped like any embed
|
|
15952
|
+
- `mathExplorable(element, spec, { sliders, drag })`: reader-driven figures: sliders on number values, drag vector tips or matrix columns
|
|
15953
|
+
- `mathFigureToSvg(spec, props)`: a standalone SVG of a figure at some values
|
|
15954
|
+
- `linearMapFigure, determinantFigure, eigenFigure, vectorSumFigure, spanFigure`: ready linear algebra figures; the matrix is the value M
|
|
15955
|
+
- `tangentFigure, secantFigure, riemannFigure, areaFigure, taylorFigure, limitFigure`: ready calculus figures; their moving parts are number values (a, h, n, b, order, p)
|
|
15956
|
+
- `differentiate / compileDerivative / integrate`: exact symbolic derivatives of expressions; Simpson integration
|
|
15957
|
+
- `layoutTex(tex) / morphEquation(a, b, t)`: the built-in TeX subset, and term-by-term transitions
|
|
15958
|
+
- `vec2, mat2`: 2D vectors and 2×2 matrices (apply, multiply, determinant, inverse, eigen)
|
|
15959
|
+
|
|
15960
|
+
Items (each has `id`, `kind`, and optional `color`, `draw`, `opacity`):
|
|
15961
|
+
|
|
15962
|
+
- `grid` { step?, transform?: matrix value, ghost? }: lines of the plane, warped by a matrix
|
|
15963
|
+
- `axes` { ticks?, labels? }
|
|
15964
|
+
- `vector` { to, from?, transform?, label? (TeX), labelAt?: tip | middle }
|
|
15965
|
+
- `basis` { transform? }: î and ĵ
|
|
15966
|
+
- `point` { at, transform?, label?, hollow? } or { on: expr, x } (a point riding a curve)
|
|
15967
|
+
- `function` { expr: "sin(k x)", domain?, derivative?, dashed? }: y = f(x); number values are its parameters
|
|
15968
|
+
- `parametric` { x, y (expressions in t), t?, transform? }
|
|
15969
|
+
- `polygon` { points? (default the unit square), transform?, label? }: \val{M.det} shows the determinant
|
|
15970
|
+
- `line` { along } or { eigen: matrix value }: a span, or eigenlines
|
|
15971
|
+
- `label` { tex, at, screen?, size?, align?, backdrop? }
|
|
15972
|
+
- `equation` { steps: [TeX…], at, screen? }: ITEM.step moves between steps, terms gliding
|
|
15973
|
+
- `tangent` { expr, at, h? (secant), label? }: \val{ID.slope} is the exact slope
|
|
15974
|
+
- `riemann` { expr, from, to, n, rule?: left | right | midpoint | trapezoid }: \val{ID.sum}, \val{ID.exact}
|
|
15975
|
+
- `area` { expr, from, to, lower? }: signed, coloured by sign; \val{ID.value}
|
|
15976
|
+
- `taylor` { expr, at, order }: exact Taylor polynomials; a fractional order grows the next term in
|
|
15977
|
+
|
|
15978
|
+
Props a timeline animates:
|
|
15979
|
+
|
|
15980
|
+
- `NAME`: a value: a number, [x, y] vector or [a, b, c, d] matrix (row by row; columns are where î and ĵ land)
|
|
15981
|
+
- `ITEM.draw`: 0..1, draws an item on
|
|
15982
|
+
- `ITEM.opacity`: 0..1
|
|
15983
|
+
- `ITEM.step`: an equation's step; fractional values are part way
|
|
15984
|
+
|
|
15985
|
+
Expression functions: `sin`, `cos`, `tan`, `asin`, `acos`, `atan`, `atan2`, `sinh`, `cosh`, `tanh`, `exp`, `ln`, `log`, `log2`, `sqrt`, `abs`, `floor`, `ceil`, `round`, `sign`, `min`, `max`, `sigmoid`, `relu`; constants `pi`, `e`, `tau`.
|
|
15986
|
+
|
|
15987
|
+
TeX subset: ^ _ \frac \sqrt \vec \hat \bar, \sum \prod \int with limits, \sin \lim … , Greek, \cdot \times \le \to \infty …, pmatrix / bmatrix / vmatrix, \text, \color{c}{…}, \id{name}{…} (names a term for transitions), \val{name:digits} (a live value)
|
|
15988
|
+
|
|
15613
15989
|
## Command line
|
|
15614
15990
|
|
|
15615
15991
|
- `tinyfly capabilities [--json]`: this catalog
|