@xom11/whiteboard 0.24.0 → 0.24.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 (70) hide show
  1. package/dist/{ExcalidrawWithMenus-KBLDWPM2.mjs → ExcalidrawWithMenus-WENZRYYE.mjs} +2 -2
  2. package/dist/{ExcalidrawWithMenus-KBLDWPM2.mjs.map → ExcalidrawWithMenus-WENZRYYE.mjs.map} +1 -1
  3. package/dist/catalog.json +4 -4
  4. package/dist/{chunk-TOOHCAWP.mjs → chunk-4D5CSIJO.mjs} +4 -4
  5. package/dist/{chunk-TOOHCAWP.mjs.map → chunk-4D5CSIJO.mjs.map} +1 -1
  6. package/dist/chunk-6V4SH4JJ.mjs +1801 -0
  7. package/dist/chunk-6V4SH4JJ.mjs.map +1 -0
  8. package/dist/{chunk-VBJLUHCY.mjs → chunk-AZIARTGX.mjs} +3 -3
  9. package/dist/{chunk-VBJLUHCY.mjs.map → chunk-AZIARTGX.mjs.map} +1 -1
  10. package/dist/{chunk-6XUPIGVD.mjs → chunk-BKSXPNPQ.mjs} +4 -123
  11. package/dist/chunk-BKSXPNPQ.mjs.map +1 -0
  12. package/dist/{chunk-O6QTYAKE.mjs → chunk-CRAPWQKJ.mjs} +4 -4
  13. package/dist/{chunk-O6QTYAKE.mjs.map → chunk-CRAPWQKJ.mjs.map} +1 -1
  14. package/dist/{chunk-RBUILBX3.mjs → chunk-CSCF3YFZ.mjs} +5 -5
  15. package/dist/{chunk-RBUILBX3.mjs.map → chunk-CSCF3YFZ.mjs.map} +1 -1
  16. package/dist/{chunk-7WG2KDRF.mjs → chunk-IBTRMWD6.mjs} +3 -3
  17. package/dist/{chunk-7WG2KDRF.mjs.map → chunk-IBTRMWD6.mjs.map} +1 -1
  18. package/dist/{chunk-RD34F5PM.mjs → chunk-ICR4CVOE.mjs} +2 -2
  19. package/dist/chunk-ICR4CVOE.mjs.map +1 -0
  20. package/dist/{chunk-33PEN2WC.mjs → chunk-LVNCYP4J.mjs} +6 -6
  21. package/dist/{chunk-33PEN2WC.mjs.map → chunk-LVNCYP4J.mjs.map} +1 -1
  22. package/dist/{chunk-FZY33J6Z.mjs → chunk-MFOGFFIL.mjs} +6 -6
  23. package/dist/{chunk-FZY33J6Z.mjs.map → chunk-MFOGFFIL.mjs.map} +1 -1
  24. package/dist/{chunk-TQYQVXNW.mjs → chunk-QGNU34T7.mjs} +2 -2
  25. package/dist/chunk-QGNU34T7.mjs.map +1 -0
  26. package/dist/{chunk-RXOFO64U.mjs → chunk-SGFJLHHG.mjs} +3 -3
  27. package/dist/{chunk-RXOFO64U.mjs.map → chunk-SGFJLHHG.mjs.map} +1 -1
  28. package/dist/{chunk-2SKXRBGS.mjs → chunk-WWMQ2VHZ.mjs} +4 -4
  29. package/dist/{chunk-2SKXRBGS.mjs.map → chunk-WWMQ2VHZ.mjs.map} +1 -1
  30. package/dist/{chunk-XVSO7FBM.mjs → chunk-YIPI3WUL.mjs} +5 -5
  31. package/dist/{chunk-XVSO7FBM.mjs.map → chunk-YIPI3WUL.mjs.map} +1 -1
  32. package/dist/{chunk-VRWZILTG.mjs → chunk-ZBJBQKJ2.mjs} +128 -3
  33. package/dist/chunk-ZBJBQKJ2.mjs.map +1 -0
  34. package/dist/geometry-2d.js +2056 -100
  35. package/dist/geometry-2d.js.map +1 -1
  36. package/dist/geometry-2d.mjs +6 -6
  37. package/dist/geometry-3d.js +2051 -15
  38. package/dist/geometry-3d.js.map +1 -1
  39. package/dist/geometry-3d.mjs +5 -5
  40. package/dist/graph-2d.js +1938 -8
  41. package/dist/graph-2d.js.map +1 -1
  42. package/dist/graph-2d.mjs +8 -8
  43. package/dist/{host-EVJT3LIF.mjs → host-DOAYVL35.mjs} +29 -28
  44. package/dist/host-DOAYVL35.mjs.map +1 -0
  45. package/dist/{host-3N4E4KJH.mjs → host-GKNQBBUE.mjs} +11 -11
  46. package/dist/{host-3N4E4KJH.mjs.map → host-GKNQBBUE.mjs.map} +1 -1
  47. package/dist/{host-6SNSZ332.mjs → host-QS2EOTRJ.mjs} +3 -3
  48. package/dist/{host-6SNSZ332.mjs.map → host-QS2EOTRJ.mjs.map} +1 -1
  49. package/dist/{host-HN4X3TBC.mjs → host-TLIXN4CF.mjs} +8 -8
  50. package/dist/{host-HN4X3TBC.mjs.map → host-TLIXN4CF.mjs.map} +1 -1
  51. package/dist/index.js +2044 -120
  52. package/dist/index.js.map +1 -1
  53. package/dist/index.mjs +22 -30
  54. package/dist/index.mjs.map +1 -1
  55. package/dist/latex.js.map +1 -1
  56. package/dist/latex.mjs +1 -1
  57. package/dist/render-SA4JTOW3.mjs +8 -0
  58. package/dist/{render-OCVGDKK6.mjs.map → render-SA4JTOW3.mjs.map} +1 -1
  59. package/dist/serialize-3NZS6A6Q.mjs +6 -0
  60. package/dist/{serialize-GKN6OVPM.mjs.map → serialize-3NZS6A6Q.mjs.map} +1 -1
  61. package/package.json +11 -2
  62. package/dist/chunk-3KBL77M6.mjs +0 -127
  63. package/dist/chunk-3KBL77M6.mjs.map +0 -1
  64. package/dist/chunk-6XUPIGVD.mjs.map +0 -1
  65. package/dist/chunk-RD34F5PM.mjs.map +0 -1
  66. package/dist/chunk-TQYQVXNW.mjs.map +0 -1
  67. package/dist/chunk-VRWZILTG.mjs.map +0 -1
  68. package/dist/host-EVJT3LIF.mjs.map +0 -1
  69. package/dist/render-OCVGDKK6.mjs +0 -8
  70. package/dist/serialize-GKN6OVPM.mjs +0 -6
package/dist/graph-2d.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- export { graph2dStamp } from './chunk-XVSO7FBM.mjs';
3
- import './chunk-33PEN2WC.mjs';
2
+ export { graph2dStamp } from './chunk-YIPI3WUL.mjs';
3
+ import './chunk-LVNCYP4J.mjs';
4
4
  import './chunk-O4WIZFRQ.mjs';
5
- import './chunk-VBJLUHCY.mjs';
6
- import './chunk-7WG2KDRF.mjs';
7
- import './chunk-6XUPIGVD.mjs';
8
- import './chunk-RD34F5PM.mjs';
9
- import './chunk-3KBL77M6.mjs';
10
- import './chunk-VRWZILTG.mjs';
5
+ import './chunk-AZIARTGX.mjs';
6
+ import './chunk-IBTRMWD6.mjs';
7
+ import './chunk-BKSXPNPQ.mjs';
8
+ import './chunk-ICR4CVOE.mjs';
9
+ import './chunk-6V4SH4JJ.mjs';
10
+ import './chunk-ZBJBQKJ2.mjs';
11
11
  import './chunk-5UTGXHLJ.mjs';
12
12
  //# sourceMappingURL=graph-2d.mjs.map
13
13
  //# sourceMappingURL=graph-2d.mjs.map
@@ -1,38 +1,20 @@
1
1
  "use client";
2
2
  import { useToolStateMachine } from './chunk-NVJ7K3DK.mjs';
3
- import { serializeBoard, renderGeometrySvgFromState, isGeometryCustomData, deserializeBoard } from './chunk-FZY33J6Z.mjs';
4
- import { JxgRenderer } from './chunk-6XUPIGVD.mjs';
3
+ import { serializeBoard, renderGeometrySvgFromState, isGeometryCustomData, deserializeBoard } from './chunk-MFOGFFIL.mjs';
4
+ import { JxgRenderer } from './chunk-BKSXPNPQ.mjs';
5
5
  import { useChordShortcut } from './chunk-HNQLZIEP.mjs';
6
- import { safeJsx, initJxgBoard, attachJxgWheelZoom, useToast, ToastHost, STAMP_PANEL_DESKTOP, ToastProvider, useStampStore, StampLeftPanel } from './chunk-TOOHCAWP.mjs';
6
+ import { safeJsx, initJxgBoard, attachJxgWheelZoom, useToast, ToastHost, STAMP_PANEL_DESKTOP, ToastProvider, useStampStore, StampLeftPanel } from './chunk-4D5CSIJO.mjs';
7
7
  import { themeLabel, paletteFor, themeAxis, themeGrid } from './chunk-R5FL6S7L.mjs';
8
- import './chunk-RD34F5PM.mjs';
9
- import { DEFAULT_VIEW_2D, nextLabel, useEditorState, listObjects } from './chunk-3KBL77M6.mjs';
10
- import './chunk-VRWZILTG.mjs';
8
+ import './chunk-ICR4CVOE.mjs';
9
+ import { DEFAULT_VIEW_2D, nextLabel, useEditorState, listObjects } from './chunk-6V4SH4JJ.mjs';
10
+ import './chunk-ZBJBQKJ2.mjs';
11
11
  import { useIsMobile } from './chunk-P2AOIF7S.mjs';
12
- import { insertStampImage } from './chunk-TQYQVXNW.mjs';
12
+ import { insertStampImage } from './chunk-QGNU34T7.mjs';
13
13
  import './chunk-5UTGXHLJ.mjs';
14
14
  import { forwardRef, useRef, useId, useState, useEffect, useCallback, useImperativeHandle, useLayoutEffect, useMemo } from 'react';
15
15
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
16
16
  import { createPortal } from 'react-dom';
17
17
 
18
- var GeometryIconHeader = /* @__PURE__ */ jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", children: [
19
- /* @__PURE__ */ jsx("polygon", { points: "4,20 20,20 12,5" }),
20
- /* @__PURE__ */ jsx("circle", { cx: "4", cy: "20", r: "1.5", fill: "currentColor", stroke: "none" }),
21
- /* @__PURE__ */ jsx("circle", { cx: "20", cy: "20", r: "1.5", fill: "currentColor", stroke: "none" }),
22
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "5", r: "1.5", fill: "currentColor", stroke: "none" })
23
- ] });
24
- function UndoIcon() {
25
- return /* @__PURE__ */ jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
26
- /* @__PURE__ */ jsx("path", { d: "M3 10 L8 5 L8 8 L15 8 A5 5 0 0 1 20 13 L20 16" }),
27
- /* @__PURE__ */ jsx("path", { d: "M3 10 L8 15 L8 12" })
28
- ] });
29
- }
30
- function RedoIcon() {
31
- return /* @__PURE__ */ jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
32
- /* @__PURE__ */ jsx("path", { d: "M21 10 L16 5 L16 8 L9 8 A5 5 0 0 0 4 13 L4 16" }),
33
- /* @__PURE__ */ jsx("path", { d: "M21 10 L16 15 L16 12" })
34
- ] });
35
- }
36
18
  var C_POINT = "#2563eb";
37
19
  var C_CONSTRUCT = "#dc2626";
38
20
  var C_FILL = "#f59e0b";
@@ -300,6 +282,26 @@ var Icon = {
300
282
  /* @__PURE__ */ jsx("text", { x: "10.5", y: "10.5", fontSize: "8", fontFamily: "serif", fontStyle: "italic", fontWeight: "700", fill: "currentColor", children: "k" })
301
283
  ] })
302
284
  };
285
+ var GeometryIconHeader = /* @__PURE__ */ jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", children: [
286
+ /* @__PURE__ */ jsx("polygon", { points: "4,20 20,20 12,5" }),
287
+ /* @__PURE__ */ jsx("circle", { cx: "4", cy: "20", r: "1.5", fill: "currentColor", stroke: "none" }),
288
+ /* @__PURE__ */ jsx("circle", { cx: "20", cy: "20", r: "1.5", fill: "currentColor", stroke: "none" }),
289
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "5", r: "1.5", fill: "currentColor", stroke: "none" })
290
+ ] });
291
+ function UndoIcon() {
292
+ return /* @__PURE__ */ jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
293
+ /* @__PURE__ */ jsx("polyline", { points: "3 7 3 13 9 13" }),
294
+ /* @__PURE__ */ jsx("path", { d: "M3.51 13a9 9 0 1 0 2.13-9.36L3 7" })
295
+ ] });
296
+ }
297
+ function RedoIcon() {
298
+ return /* @__PURE__ */ jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
299
+ /* @__PURE__ */ jsx("polyline", { points: "21 7 21 13 15 13" }),
300
+ /* @__PURE__ */ jsx("path", { d: "M20.49 13a9 9 0 1 1-2.12-9.36L21 7" })
301
+ ] });
302
+ }
303
+
304
+ // src/stamps/geometry-2d/editor/tools.tsx
303
305
  var TOOLS = [
304
306
  { key: "move", label: "Di chuy\u1EC3n", hint: "K\xE9o \u0111i\u1EC3m ho\u1EB7c xoay n\u1EC1n", icon: Icon.cursor, group: "move", needs: 0 },
305
307
  { key: "select", label: "Ch\u1ECDn", hint: "Click \u0111\u1EC3 ch\u1ECDn 1 / Shift+click \u0111\u1EC3 b\u1ECF th\xEAm / K\xE9o n\u1EC1n \u0111\u1EC3 khoanh v\xF9ng / DEL \u0111\u1EC3 xo\xE1", icon: Icon.select, group: "move", needs: 0 },
@@ -2119,7 +2121,6 @@ var MiniBoard2D = forwardRef(function MiniBoard2D2({ onReady, store, selectedToo
2119
2121
  deleteSelection,
2120
2122
  emitTransform
2121
2123
  }),
2122
- // eslint-disable-next-line react-hooks/exhaustive-deps
2123
2124
  [store, clearSelection, deleteSelection, clearPending, emitTransform]
2124
2125
  );
2125
2126
  return /* @__PURE__ */ jsx(
@@ -3194,5 +3195,5 @@ var GeometryStampHost = forwardRef(
3194
3195
  );
3195
3196
 
3196
3197
  export { GeometryStampHost };
3197
- //# sourceMappingURL=host-EVJT3LIF.mjs.map
3198
- //# sourceMappingURL=host-EVJT3LIF.mjs.map
3198
+ //# sourceMappingURL=host-DOAYVL35.mjs.map
3199
+ //# sourceMappingURL=host-DOAYVL35.mjs.map