@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.
- package/dist/ai.d.mts +1 -1
- package/dist/ai.d.ts +1 -1
- package/dist/ai.mjs +2 -2
- package/dist/catalog.json +4 -4
- package/dist/{chunk-FI2MGX5H.mjs → chunk-4NJUTCFF.mjs} +3 -3
- package/dist/{chunk-FI2MGX5H.mjs.map → chunk-4NJUTCFF.mjs.map} +1 -1
- package/dist/{chunk-XSTGTEGP.mjs → chunk-BZZ5BROM.mjs} +4 -5
- package/dist/chunk-BZZ5BROM.mjs.map +1 -0
- package/dist/{host-JNLJ5BVR.mjs → chunk-C3RDFBQ5.mjs} +17 -32
- package/dist/chunk-C3RDFBQ5.mjs.map +1 -0
- package/dist/chunk-C7C66BAV.mjs +11 -0
- package/dist/chunk-C7C66BAV.mjs.map +1 -0
- package/dist/{chunk-DBG6DZ2V.mjs → chunk-FOPZOVI3.mjs} +5 -4
- package/dist/chunk-FOPZOVI3.mjs.map +1 -0
- package/dist/{chunk-MOAXHVKI.mjs → chunk-GKDQ5IV7.mjs} +3 -3
- package/dist/{chunk-MOAXHVKI.mjs.map → chunk-GKDQ5IV7.mjs.map} +1 -1
- package/dist/{chunk-KLGPAMJS.mjs → chunk-NBMYET5H.mjs} +3 -10
- package/dist/{chunk-KLGPAMJS.mjs.map → chunk-NBMYET5H.mjs.map} +1 -1
- package/dist/{chunk-DJM5EWTT.mjs → chunk-NTFG7ZRN.mjs} +2 -2
- package/dist/{chunk-DJM5EWTT.mjs.map → chunk-NTFG7ZRN.mjs.map} +1 -1
- package/dist/{chunk-C76SOFXF.mjs → chunk-QCK3Z5WN.mjs} +3 -3
- package/dist/{chunk-C76SOFXF.mjs.map → chunk-QCK3Z5WN.mjs.map} +1 -1
- package/dist/geometry-2d.d.mts +1 -1
- package/dist/geometry-2d.d.ts +1 -1
- package/dist/geometry-2d.js +146 -115
- package/dist/geometry-2d.js.map +1 -1
- package/dist/geometry-2d.mjs +4 -3
- package/dist/geometry-3d.d.mts +1 -1
- package/dist/geometry-3d.d.ts +1 -1
- package/dist/geometry-3d.js +6 -4
- package/dist/geometry-3d.js.map +1 -1
- package/dist/geometry-3d.mjs +2 -2
- package/dist/graph-2d.d.mts +1 -1
- package/dist/graph-2d.d.ts +1 -1
- package/dist/graph-2d.js +6 -4
- package/dist/graph-2d.js.map +1 -1
- package/dist/graph-2d.mjs +2 -2
- package/dist/host-6WTLCXUE.mjs +62 -0
- package/dist/host-6WTLCXUE.mjs.map +1 -0
- package/dist/{host-H2IGOKJU.mjs → host-BWIXT5TR.mjs} +3 -3
- package/dist/{host-H2IGOKJU.mjs.map → host-BWIXT5TR.mjs.map} +1 -1
- package/dist/{host-VRWLQSMH.mjs → host-QDVRULJV.mjs} +10 -7
- package/dist/host-QDVRULJV.mjs.map +1 -0
- package/dist/{host-W4U6YCSX.mjs → host-USOIVTQB.mjs} +10 -7
- package/dist/host-USOIVTQB.mjs.map +1 -0
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +173 -119
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -16
- package/dist/index.mjs.map +1 -1
- package/dist/latex.d.mts +1 -1
- package/dist/latex.d.ts +1 -1
- package/dist/latex.mjs +1 -1
- package/dist/studio.d.mts +35 -0
- package/dist/studio.d.ts +35 -0
- package/dist/studio.js +10883 -0
- package/dist/studio.js.map +1 -0
- package/dist/studio.mjs +28 -0
- package/dist/studio.mjs.map +1 -0
- package/dist/{types-tePd94vW.d.mts → types-eEEEVsLF.d.mts} +1 -1
- package/dist/{types-tePd94vW.d.ts → types-eEEEVsLF.d.ts} +1 -1
- package/package.json +9 -2
- package/dist/chunk-DBG6DZ2V.mjs.map +0 -1
- package/dist/chunk-XSTGTEGP.mjs.map +0 -1
- package/dist/host-JNLJ5BVR.mjs.map +0 -1
- package/dist/host-VRWLQSMH.mjs.map +0 -1
- package/dist/host-W4U6YCSX.mjs.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { VIEW3D_ATTRS, DEFAULT_VIEW3D, GROUND_PLANE_RANGE, GROUND_PLANE_ATTRS, paletteFor, JxgRenderer3D, serializeBoard3D, renderGeometry3DSvgFromState, isGeometry3DCustomData, deserializeBoard3D } from './chunk-DCFZTKFE.mjs';
|
|
3
|
+
import { insertStampImage } from './chunk-QLQ4MJNO.mjs';
|
|
4
|
+
import './chunk-5UTGXHLJ.mjs';
|
|
3
5
|
import { useChordShortcut } from './chunk-HNQLZIEP.mjs';
|
|
4
|
-
import { initJxgBoard, attachJxgWheelZoom, useToast, ToastHost, STAMP_PANEL_DESKTOP, ToastProvider, useStampStore, StampLeftPanel } from './chunk-
|
|
6
|
+
import { initJxgBoard, attachJxgWheelZoom, useToast, ToastHost, STAMP_PANEL_DESKTOP, ToastProvider, useStampStore, StampLeftPanel } from './chunk-BZZ5BROM.mjs';
|
|
7
|
+
import { useIsMobile } from './chunk-P2AOIF7S.mjs';
|
|
5
8
|
import './chunk-R5FL6S7L.mjs';
|
|
6
9
|
import './chunk-ICR4CVOE.mjs';
|
|
7
10
|
import { useEditorState, constraintToWorld, nextLabel, listObjects, planeConstructionWorld } from './chunk-4EXRNZRX.mjs';
|
|
8
11
|
import { createStore } from './chunk-CH6SFONH.mjs';
|
|
9
12
|
import { createEmptyState } from './chunk-MNHOFOM5.mjs';
|
|
10
13
|
import './chunk-B4NJJZFR.mjs';
|
|
11
|
-
import { useIsMobile } from './chunk-P2AOIF7S.mjs';
|
|
12
|
-
import { insertStampImage } from './chunk-QLQ4MJNO.mjs';
|
|
13
|
-
import './chunk-5UTGXHLJ.mjs';
|
|
14
14
|
import './chunk-J5LGTIGS.mjs';
|
|
15
15
|
import * as React3 from 'react';
|
|
16
16
|
import { forwardRef, useRef, useState, useCallback, useImperativeHandle } from 'react';
|
|
@@ -4851,7 +4851,10 @@ function parseInitialState(data) {
|
|
|
4851
4851
|
var Geometry3DStampHost = forwardRef(
|
|
4852
4852
|
function Geometry3DStampHost2({ api, editingElement, onClose, isDark }, ref) {
|
|
4853
4853
|
const editorRef = useRef(null);
|
|
4854
|
-
const sceneStore = useStampStore(
|
|
4854
|
+
const sceneStore = useStampStore(
|
|
4855
|
+
"3d",
|
|
4856
|
+
() => editingElement?.customData ? parseInitialState(editingElement.customData) : null
|
|
4857
|
+
);
|
|
4855
4858
|
const { isMobile } = useIsMobile();
|
|
4856
4859
|
const [drawerOpen, setDrawerOpen] = useState(false);
|
|
4857
4860
|
const [selectedTool, setSelectedTool] = useState("move");
|
|
@@ -4969,5 +4972,5 @@ var Geometry3DStampHost = forwardRef(
|
|
|
4969
4972
|
);
|
|
4970
4973
|
|
|
4971
4974
|
export { Geometry3DStampHost };
|
|
4972
|
-
//# sourceMappingURL=host-
|
|
4973
|
-
//# sourceMappingURL=host-
|
|
4975
|
+
//# sourceMappingURL=host-USOIVTQB.mjs.map
|
|
4976
|
+
//# sourceMappingURL=host-USOIVTQB.mjs.map
|