@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.cjs
CHANGED
|
@@ -2167,11 +2167,6 @@ function VisualliCanvas(props) {
|
|
|
2167
2167
|
return { flatNodes: [], connections: [], containers: [] };
|
|
2168
2168
|
}
|
|
2169
2169
|
}, [doc, currentLayerId]);
|
|
2170
|
-
const setNodes = useNodeStore((s) => s.setNodes);
|
|
2171
|
-
const nodes = useNodeStore((s) => s.nodes);
|
|
2172
|
-
const updateNodePosition = useNodeStore((s) => s.updateNodePosition);
|
|
2173
|
-
const setCenter = useViewportStore((s) => s.setCenter);
|
|
2174
|
-
const setZoom = useViewportStore((s) => s.setZoom);
|
|
2175
2170
|
const viewport = useViewportStore((s) => ({
|
|
2176
2171
|
centerX: s.centerX,
|
|
2177
2172
|
centerY: s.centerY,
|
|
@@ -2179,6 +2174,11 @@ function VisualliCanvas(props) {
|
|
|
2179
2174
|
canvasWidth: s.canvasWidth,
|
|
2180
2175
|
canvasHeight: s.canvasHeight
|
|
2181
2176
|
}));
|
|
2177
|
+
const setCenter = useViewportStore((s) => s.setCenter);
|
|
2178
|
+
const setZoom = useViewportStore((s) => s.setZoom);
|
|
2179
|
+
const nodes = useNodeStore((s) => s.nodes);
|
|
2180
|
+
const setNodes = useNodeStore((s) => s.setNodes);
|
|
2181
|
+
const updateNodePosition = useNodeStore((s) => s.updateNodePosition);
|
|
2182
2182
|
const clearSel = useSelectionStore((s) => s.clear);
|
|
2183
2183
|
const select = useSelectionStore((s) => s.select);
|
|
2184
2184
|
(0, import_react14.useEffect)(() => {
|