chore(svelte): bump

This commit is contained in:
moklick
2023-11-13 11:33:05 +01:00
parent b65ba07a7f
commit d4df8be6f2
7 changed files with 19 additions and 10 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ export { default as SimpleBezierEdge, getSimpleBezierPath } from './components/E
export { default as SmoothStepEdge } from './components/Edges/SmoothStepEdge';
export { default as BaseEdge } from './components/Edges/BaseEdge';
export { default as ReactFlowProvider } from './components/ReactFlowProvider';
export { default as Panel } from './components/Panel';
export { default as Panel, type PanelProps } from './components/Panel';
export { default as EdgeLabelRenderer } from './components/EdgeLabelRenderer';
export { default as useReactFlow } from './hooks/useReactFlow';
+2 -2
View File
@@ -33,8 +33,8 @@ const getInitialState = ({
height: node.size?.height,
}));
const bounds = getNodesBounds(nodesWithDimensions, [0, 0]);
const { x, y, z } = getViewportForBounds(bounds, width, height, 0.5, 2, 0.1);
transform = [x, y, z];
const { x, y, zoom } = getViewportForBounds(bounds, width, height, 0.5, 2, 0.1);
transform = [x, y, zoom];
}
return {