@xom11/whiteboard 0.32.0 → 0.33.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 (68) hide show
  1. package/dist/ai.d.mts +1 -1
  2. package/dist/ai.d.ts +1 -1
  3. package/dist/ai.mjs +2 -2
  4. package/dist/catalog.json +4 -4
  5. package/dist/{chunk-FI2MGX5H.mjs → chunk-4NJUTCFF.mjs} +3 -3
  6. package/dist/{chunk-FI2MGX5H.mjs.map → chunk-4NJUTCFF.mjs.map} +1 -1
  7. package/dist/{chunk-XSTGTEGP.mjs → chunk-BZZ5BROM.mjs} +4 -5
  8. package/dist/chunk-BZZ5BROM.mjs.map +1 -0
  9. package/dist/{host-JNLJ5BVR.mjs → chunk-C3RDFBQ5.mjs} +17 -32
  10. package/dist/chunk-C3RDFBQ5.mjs.map +1 -0
  11. package/dist/chunk-C7C66BAV.mjs +11 -0
  12. package/dist/chunk-C7C66BAV.mjs.map +1 -0
  13. package/dist/{chunk-DBG6DZ2V.mjs → chunk-FOPZOVI3.mjs} +5 -4
  14. package/dist/chunk-FOPZOVI3.mjs.map +1 -0
  15. package/dist/{chunk-MOAXHVKI.mjs → chunk-GKDQ5IV7.mjs} +3 -3
  16. package/dist/{chunk-MOAXHVKI.mjs.map → chunk-GKDQ5IV7.mjs.map} +1 -1
  17. package/dist/{chunk-KLGPAMJS.mjs → chunk-NBMYET5H.mjs} +3 -10
  18. package/dist/{chunk-KLGPAMJS.mjs.map → chunk-NBMYET5H.mjs.map} +1 -1
  19. package/dist/{chunk-DJM5EWTT.mjs → chunk-NTFG7ZRN.mjs} +2 -2
  20. package/dist/{chunk-DJM5EWTT.mjs.map → chunk-NTFG7ZRN.mjs.map} +1 -1
  21. package/dist/{chunk-C76SOFXF.mjs → chunk-QCK3Z5WN.mjs} +3 -3
  22. package/dist/{chunk-C76SOFXF.mjs.map → chunk-QCK3Z5WN.mjs.map} +1 -1
  23. package/dist/geometry-2d.d.mts +1 -1
  24. package/dist/geometry-2d.d.ts +1 -1
  25. package/dist/geometry-2d.js +146 -115
  26. package/dist/geometry-2d.js.map +1 -1
  27. package/dist/geometry-2d.mjs +4 -3
  28. package/dist/geometry-3d.d.mts +1 -1
  29. package/dist/geometry-3d.d.ts +1 -1
  30. package/dist/geometry-3d.js +6 -4
  31. package/dist/geometry-3d.js.map +1 -1
  32. package/dist/geometry-3d.mjs +2 -2
  33. package/dist/graph-2d.d.mts +1 -1
  34. package/dist/graph-2d.d.ts +1 -1
  35. package/dist/graph-2d.js +6 -4
  36. package/dist/graph-2d.js.map +1 -1
  37. package/dist/graph-2d.mjs +2 -2
  38. package/dist/host-6WTLCXUE.mjs +62 -0
  39. package/dist/host-6WTLCXUE.mjs.map +1 -0
  40. package/dist/{host-H2IGOKJU.mjs → host-BWIXT5TR.mjs} +3 -3
  41. package/dist/{host-H2IGOKJU.mjs.map → host-BWIXT5TR.mjs.map} +1 -1
  42. package/dist/{host-VRWLQSMH.mjs → host-QDVRULJV.mjs} +10 -7
  43. package/dist/host-QDVRULJV.mjs.map +1 -0
  44. package/dist/{host-W4U6YCSX.mjs → host-USOIVTQB.mjs} +10 -7
  45. package/dist/host-USOIVTQB.mjs.map +1 -0
  46. package/dist/index.d.mts +13 -3
  47. package/dist/index.d.ts +13 -3
  48. package/dist/index.js +173 -119
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.mjs +31 -16
  51. package/dist/index.mjs.map +1 -1
  52. package/dist/latex.d.mts +1 -1
  53. package/dist/latex.d.ts +1 -1
  54. package/dist/latex.mjs +1 -1
  55. package/dist/studio.d.mts +35 -0
  56. package/dist/studio.d.ts +35 -0
  57. package/dist/studio.js +10883 -0
  58. package/dist/studio.js.map +1 -0
  59. package/dist/studio.mjs +28 -0
  60. package/dist/studio.mjs.map +1 -0
  61. package/dist/{types-tePd94vW.d.mts → types-eEEEVsLF.d.mts} +1 -1
  62. package/dist/{types-tePd94vW.d.ts → types-eEEEVsLF.d.ts} +1 -1
  63. package/package.json +9 -2
  64. package/dist/chunk-DBG6DZ2V.mjs.map +0 -1
  65. package/dist/chunk-XSTGTEGP.mjs.map +0 -1
  66. package/dist/host-JNLJ5BVR.mjs.map +0 -1
  67. package/dist/host-VRWLQSMH.mjs.map +0 -1
  68. package/dist/host-W4U6YCSX.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,19 +1,23 @@
1
1
  "use client";
2
2
  import './index.css';
3
- import { geometryStamp } from './chunk-DBG6DZ2V.mjs';
4
- export { geometryStamp } from './chunk-DBG6DZ2V.mjs';
5
- import { geometry3dStamp } from './chunk-FI2MGX5H.mjs';
6
- export { geometry3dStamp } from './chunk-FI2MGX5H.mjs';
3
+ import { geometryStamp } from './chunk-FOPZOVI3.mjs';
4
+ export { geometryStamp } from './chunk-FOPZOVI3.mjs';
5
+ import { geometry3dStamp } from './chunk-4NJUTCFF.mjs';
6
+ export { geometry3dStamp } from './chunk-4NJUTCFF.mjs';
7
7
  import './chunk-DCFZTKFE.mjs';
8
- import { latexStamp } from './chunk-C76SOFXF.mjs';
9
- export { latexStamp } from './chunk-C76SOFXF.mjs';
10
- import { graph2dStamp } from './chunk-MOAXHVKI.mjs';
11
- export { graph2dStamp } from './chunk-MOAXHVKI.mjs';
8
+ import { latexStamp } from './chunk-QCK3Z5WN.mjs';
9
+ export { latexStamp } from './chunk-QCK3Z5WN.mjs';
10
+ import './chunk-X5R72SSJ.mjs';
11
+ import { graph2dStamp } from './chunk-GKDQ5IV7.mjs';
12
+ export { graph2dStamp } from './chunk-GKDQ5IV7.mjs';
12
13
  import './chunk-KWDBVLST.mjs';
13
14
  import './chunk-O4WIZFRQ.mjs';
14
15
  import './chunk-K7VJU7LQ.mjs';
15
16
  import './chunk-F42MZ745.mjs';
16
- import './chunk-KLGPAMJS.mjs';
17
+ import { insertStampImage } from './chunk-QLQ4MJNO.mjs';
18
+ import './chunk-C7C66BAV.mjs';
19
+ import './chunk-5UTGXHLJ.mjs';
20
+ import { renderGeometrySvgFromState } from './chunk-NBMYET5H.mjs';
17
21
  import './chunk-R5FL6S7L.mjs';
18
22
  import './chunk-IE2GGHNF.mjs';
19
23
  import './chunk-ICR4CVOE.mjs';
@@ -22,9 +26,6 @@ import './chunk-CH6SFONH.mjs';
22
26
  export { handleExtractProblem } from './chunk-SUXIMLYN.mjs';
23
27
  import './chunk-MNHOFOM5.mjs';
24
28
  import './chunk-B4NJJZFR.mjs';
25
- import './chunk-X5R72SSJ.mjs';
26
- import './chunk-QLQ4MJNO.mjs';
27
- import './chunk-5UTGXHLJ.mjs';
28
29
  import './chunk-J5LGTIGS.mjs';
29
30
  import { lazy, useRef, useCallback, useEffect, Suspense, useState, useMemo, useLayoutEffect } from 'react';
30
31
  import { createPortal } from 'react-dom';
@@ -39,7 +40,7 @@ var STAMP_CATALOG = Object.freeze([
39
40
  version: 1,
40
41
  experimental: false,
41
42
  runtimeDeps: ["jsxgraph"],
42
- bundleSize: { js: 97.13, css: 0 }
43
+ bundleSize: { js: 97.84, css: 0 }
43
44
  },
44
45
  {
45
46
  id: "latex",
@@ -55,7 +56,7 @@ var STAMP_CATALOG = Object.freeze([
55
56
  version: 2,
56
57
  experimental: true,
57
58
  runtimeDeps: ["jsxgraph"],
58
- bundleSize: { js: 85.27, css: 0 }
59
+ bundleSize: { js: 85.26, css: 0 }
59
60
  },
60
61
  {
61
62
  id: "graph2d",
@@ -63,7 +64,7 @@ var STAMP_CATALOG = Object.freeze([
63
64
  version: 2,
64
65
  experimental: true,
65
66
  runtimeDeps: ["jsxgraph"],
66
- bundleSize: { js: 58.06, css: 0 }
67
+ bundleSize: { js: 58.04, css: 0 }
67
68
  }
68
69
  ]);
69
70
  function findCatalogEntry(id) {
@@ -2165,6 +2166,20 @@ function Whiteboard({
2165
2166
  ] });
2166
2167
  }
2167
2168
 
2168
- export { ALL_STAMPS, DEFAULT_STAMPS, EXPERIMENTAL_STAMPS, STABLE_STAMPS, STAMP_CATALOG, Whiteboard, closePdfDocument, configurePdfWorker, findCatalogEntry, findStampForCustomData, insertPdfPages, insertRasterizedPagesIntoScene, isStampElement, loadPdfDocument, parsePageRange, pickSyncableAppState, rasterizePdf, restoreMissingStampFiles };
2169
+ // src/stamps/geometry-2d/insertGeometryStamp.ts
2170
+ async function insertGeometryStampIntoScene(api, jsonState) {
2171
+ const svgString = await renderGeometrySvgFromState(jsonState);
2172
+ await insertStampImage(api, {
2173
+ svgString,
2174
+ makeCustomData: () => ({
2175
+ kind: "geometry",
2176
+ version: 1,
2177
+ jsonState
2178
+ }),
2179
+ editingElementId: null
2180
+ });
2181
+ }
2182
+
2183
+ export { ALL_STAMPS, DEFAULT_STAMPS, EXPERIMENTAL_STAMPS, STABLE_STAMPS, STAMP_CATALOG, Whiteboard, closePdfDocument, configurePdfWorker, findCatalogEntry, findStampForCustomData, insertGeometryStampIntoScene, insertPdfPages, insertRasterizedPagesIntoScene, isStampElement, loadPdfDocument, parsePageRange, pickSyncableAppState, rasterizePdf, restoreMissingStampFiles };
2169
2184
  //# sourceMappingURL=index.mjs.map
2170
2185
  //# sourceMappingURL=index.mjs.map