@algorisys/tinyfly 0.115.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.
Files changed (61) hide show
  1. package/README.md +11 -6
  2. package/docs/api-reference.md +2 -1
  3. package/docs/editor-guide.md +1 -1
  4. package/docs/examples.md +1 -1
  5. package/docs/getting-started.md +1 -1
  6. package/docs/gsap-compat.md +1 -1
  7. package/docs/llm-guide.md +16 -0
  8. package/docs/maps.md +2 -2
  9. package/docs/math.md +280 -0
  10. package/docs/teaching.md +1 -1
  11. package/lib/addons/characters.js +2607 -2548
  12. package/lib/addons/math.js +2864 -0
  13. package/lib/browser/tinyfly-math.iife.js +53 -0
  14. package/lib/browser/tinyfly.iife.js +3 -3
  15. package/lib/browser/tinyfly.js +705 -638
  16. package/lib/browser/tinyfly.umd.js +3 -3
  17. package/lib/embed/tinyfly-embed.iife.js +1 -1
  18. package/lib/embed/tinyfly-embed.js +8 -0
  19. package/lib/player/tinyfly-player.es.js +8 -0
  20. package/lib/player/tinyfly-player.iife.js +1 -1
  21. package/lib/player/tinyfly-player.umd.js +1 -1
  22. package/lib/types/characters/capabilities.d.ts +8 -0
  23. package/lib/types/math/browser-entry.d.ts +3 -0
  24. package/lib/types/math/embed/auto-mount-math.d.ts +7 -0
  25. package/lib/types/math/embed/explorable.d.ts +46 -0
  26. package/lib/types/math/embed/mount-math.d.ts +31 -0
  27. package/lib/types/math/expr/differentiate.d.ts +7 -0
  28. package/lib/types/math/expr/evaluate.d.ts +21 -0
  29. package/lib/types/math/expr/parse-expression.d.ts +50 -0
  30. package/lib/types/math/figure/derived.d.ts +17 -0
  31. package/lib/types/math/figure/display-list.d.ts +87 -0
  32. package/lib/types/math/figure/figure-spec.d.ts +239 -0
  33. package/lib/types/math/figure/item-context.d.ts +33 -0
  34. package/lib/types/math/figure/items/calculus.d.ts +7 -0
  35. package/lib/types/math/figure/items/curves.d.ts +7 -0
  36. package/lib/types/math/figure/items/grid.d.ts +5 -0
  37. package/lib/types/math/figure/items/regions.d.ts +5 -0
  38. package/lib/types/math/figure/items/text.d.ts +5 -0
  39. package/lib/types/math/figure/items/vectors.d.ts +9 -0
  40. package/lib/types/math/figure/layout-figure.d.ts +13 -0
  41. package/lib/types/math/figure/plane.d.ts +20 -0
  42. package/lib/types/math/figure/validate-spec.d.ts +2 -0
  43. package/lib/types/math/index.d.ts +43 -0
  44. package/lib/types/math/linear/mat2.d.ts +41 -0
  45. package/lib/types/math/linear/vec2.d.ts +18 -0
  46. package/lib/types/math/presets/calculus.d.ts +59 -0
  47. package/lib/types/math/presets/linear-algebra.d.ts +42 -0
  48. package/lib/types/math/render/arrow.d.ts +10 -0
  49. package/lib/types/math/render/display-list-to-svg.d.ts +10 -0
  50. package/lib/types/math/render/draw-display-list.d.ts +6 -0
  51. package/lib/types/math/steps/math-steps.d.ts +34 -0
  52. package/lib/types/math/targets/math-target.d.ts +43 -0
  53. package/lib/types/math/tex/equation-morph.d.ts +21 -0
  54. package/lib/types/math/tex/glyph-metrics.d.ts +24 -0
  55. package/lib/types/math/tex/tex-layout.d.ts +59 -0
  56. package/lib/types/math/tex/tex-parser.d.ts +88 -0
  57. package/lib/types/player/player.d.ts +6 -0
  58. package/llms-full.txt +358 -10
  59. package/llms.txt +32 -31
  60. package/package.json +6 -2
  61. package/skills/tinyfly/SKILL.md +10 -0
@@ -166,6 +166,16 @@ names.
166
166
  `examples/headless-video/organic-characters.mjs` and
167
167
  `examples/headless-video/child-characters.mjs` examples.
168
168
 
169
+ - Maths lessons: `@algorisys/tinyfly/math`. A figure is JSON (`values` +
170
+ `items`); check it with `mathFigure()`; write steps with `mathSteps(lesson,
171
+ 'fig', figure)`. Matrices are `[a, b, c, d]` row by row (columns are where î
172
+ and ĵ land). Functions are expression strings, equations TeX in the built-in
173
+ subset; `\val{M.det}` shows a live value. Never name a value `x`, `y`, `t`,
174
+ `opacity` or `scale`. Lesson pages: `<figure data-tinyfly-math>` with
175
+ `tinyfly-math.iife.js`; videos: `mathTarget(figure)`. Calculus: `tangent`
176
+ (`h` makes a secant), `riemann`, `area`, `taylor`; animate `at` / `n` / `to` /
177
+ `order` through number values. See `docs/math.md`.
178
+
169
179
  ## 3. Check
170
180
 
171
181
  Cricket stories use `@algorisys/tinyfly/sports`: `cricketClip` gives owned JSON