@visualli/react 0.1.2 → 0.1.3
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/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
- package/src/VisualliCanvas.tsx +14 -14
package/dist/index.js
CHANGED
|
@@ -2149,11 +2149,6 @@ function VisualliCanvas(props) {
|
|
|
2149
2149
|
return { flatNodes: [], connections: [], containers: [] };
|
|
2150
2150
|
}
|
|
2151
2151
|
}, [doc, currentLayerId]);
|
|
2152
|
-
const setNodes = useNodeStore((s) => s.setNodes);
|
|
2153
|
-
const nodes = useNodeStore((s) => s.nodes);
|
|
2154
|
-
const updateNodePosition = useNodeStore((s) => s.updateNodePosition);
|
|
2155
|
-
const setCenter = useViewportStore((s) => s.setCenter);
|
|
2156
|
-
const setZoom = useViewportStore((s) => s.setZoom);
|
|
2157
2152
|
const viewport = useViewportStore((s) => ({
|
|
2158
2153
|
centerX: s.centerX,
|
|
2159
2154
|
centerY: s.centerY,
|
|
@@ -2161,6 +2156,11 @@ function VisualliCanvas(props) {
|
|
|
2161
2156
|
canvasWidth: s.canvasWidth,
|
|
2162
2157
|
canvasHeight: s.canvasHeight
|
|
2163
2158
|
}));
|
|
2159
|
+
const setCenter = useViewportStore((s) => s.setCenter);
|
|
2160
|
+
const setZoom = useViewportStore((s) => s.setZoom);
|
|
2161
|
+
const nodes = useNodeStore((s) => s.nodes);
|
|
2162
|
+
const setNodes = useNodeStore((s) => s.setNodes);
|
|
2163
|
+
const updateNodePosition = useNodeStore((s) => s.updateNodePosition);
|
|
2164
2164
|
const clearSel = useSelectionStore((s) => s.clear);
|
|
2165
2165
|
const select = useSelectionStore((s) => s.select);
|
|
2166
2166
|
useEffect6(() => {
|