@algorisys/yappydraw 0.8.253

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 (43) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +45 -0
  3. package/chunks/AllPackages-DNX4gUvL.js +6879 -0
  4. package/chunks/BaseConfiguration-iE_YypNt.js +4401 -0
  5. package/chunks/Entities-XwxJEcR3.js +467 -0
  6. package/chunks/Factory--zguTNZ7.js +2768 -0
  7. package/chunks/InputJax-BYq2tqUz.js +42 -0
  8. package/chunks/MathItem-DD5NNBjZ.js +76 -0
  9. package/chunks/Options-BStFr0zv.js +199 -0
  10. package/chunks/PrioritizedList-TjDg4i-s.js +39 -0
  11. package/chunks/Styles-DdTYCumM.js +397 -0
  12. package/chunks/TeXAtom-Bp5xoo7F.js +2175 -0
  13. package/chunks/ai-providers-CycU8sO1.js +229 -0
  14. package/chunks/canva-ai-BREIRXSl.js +285 -0
  15. package/chunks/design-generator-C89SKTqv.js +149 -0
  16. package/chunks/drawing-engine-DLFI-cNg.js +903 -0
  17. package/chunks/drawings-store-C-PoHakg.js +109 -0
  18. package/chunks/ds-operations-D5B9Z5vO.js +253 -0
  19. package/chunks/export-game-DOlM1w0F.js +104 -0
  20. package/chunks/game-runtime-Hn9umSvi.js +346 -0
  21. package/chunks/gifenc.esm-48qFK9lH.js +278 -0
  22. package/chunks/html-DxnOvKy4.js +1694 -0
  23. package/chunks/image-utils-CJQBaGoQ.js +37 -0
  24. package/chunks/index-Bm3Inzn8.js +62744 -0
  25. package/chunks/lengths-DNFHULBn.js +70 -0
  26. package/chunks/liteAdaptor-BZby1Qz2.js +919 -0
  27. package/chunks/lucide-solid-D_6t_rbY.js +35452 -0
  28. package/chunks/markdown-to-slides-_1GIcD8M.js +96 -0
  29. package/chunks/mathjax-CnUrFnFS.js +117 -0
  30. package/chunks/mathjax-D6cR72fZ.js +26 -0
  31. package/chunks/morph-animator-7qX2s9j_.js +25 -0
  32. package/chunks/onboarding-tour-CthiVc3W.js +192 -0
  33. package/chunks/rocket-settings-CU8w9S9I.js +100 -0
  34. package/chunks/search-CnWoMV6A.js +384 -0
  35. package/chunks/slide-generator-BG0Oacui.js +553 -0
  36. package/chunks/svg-BvVc02XL.js +12498 -0
  37. package/chunks/tex-Cfi4Kfun.js +442 -0
  38. package/chunks/tinyfly-engine-Wfa50sVI.js +1804 -0
  39. package/chunks/turntable-ai-Bfq-oSsD.js +120 -0
  40. package/chunks/yappy-NspTXSPk.css +1 -0
  41. package/package.json +21 -0
  42. package/yappy.d.ts +34 -0
  43. package/yappy.js +9 -0
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # @algorisys/yappydraw
2
+
3
+ The [YappyDraw](https://yappydraw.com) drawing API without the editor, as a browser ES module.
4
+ Create shapes in code, then render them as inline SVG. Each shape is a `<g data-yappy-id="…">`,
5
+ so CSS and animation libraries can target it.
6
+
7
+ ```sh
8
+ npm install @algorisys/yappydraw
9
+ ```
10
+
11
+ ```js
12
+ import { Yappy, mount, fontsReady } from '@algorisys/yappydraw'
13
+
14
+ await fontsReady() // before creating any text
15
+ const sun = Yappy.createCircle(40, 40, 120, 120, { backgroundColor: '#ffd166', fillStyle: 'hachure' })
16
+ mount('#stage') // inline SVG
17
+ ```
18
+
19
+ Or with no install, from a CDN:
20
+
21
+ ```html
22
+ <script type="module">
23
+ import { Yappy, mount } from 'https://cdn.jsdelivr.net/npm/@algorisys/yappydraw@0.8.253/yappy.js'
24
+ </script>
25
+ ```
26
+
27
+ | Export | What |
28
+ |---|---|
29
+ | `Yappy` | The full `window.Yappy` API: `create*`, `importDSL`, `loadDocument`, … (see the in-app Help) |
30
+ | `toSVG(options?)` | SVG markup, element ids on by default. Never downloads a file. |
31
+ | `mount(target, options?)` | Render into an element as inline SVG; returns the `<svg>` |
32
+ | `fontsReady()` | Load YappyDraw's fonts; await it before creating text |
33
+ | `clear()` | Start a fresh drawing |
34
+ | `version` | The YappyDraw version this was built from |
35
+
36
+ ## Notes
37
+
38
+ - **Browser only.** It needs a DOM and canvas for text measurement.
39
+ - **One drawing per page.** The store is a module singleton; call `clear()` before building the next one.
40
+ - **Keep `chunks/` next to `yappy.js`.** MathJax and the exporters are loaded from there the first
41
+ time they are used.
42
+ - **Licence: AGPL-3.0-only**, as the rest of YappyDraw. Check that it suits your project before
43
+ bundling it into software you distribute or run as a network service.
44
+
45
+ Source: [algorisys-oss/yappydraw @ v0.8.253](https://github.com/algorisys-oss/yappydraw/tree/v0.8.253).