fix(fitView): don't let defaultPosition overwrite fitView on load #533

This commit is contained in:
moklick
2020-09-30 16:44:50 +02:00
parent 109b008c5c
commit 7ef6d0adb2
5 changed files with 34 additions and 18 deletions
+1
View File
@@ -83,6 +83,7 @@ const NodeRenderer = ({ onlyRenderVisibleNodes = true, ...props }: NodeRendererP
const nodesDraggable = useStoreState((s) => s.nodesDraggable);
const nodesConnectable = useStoreState((s) => s.nodesConnectable);
const elementsSelectable = useStoreState((s) => s.elementsSelectable);
const transformStyle = {
transform: `translate(${transform[0]}px,${transform[1]}px) scale(${transform[2]})`,
};