chore(react): node origin cleanup

This commit is contained in:
moklick
2024-06-26 15:26:22 +02:00
parent c444eb380b
commit f968ff42ca
13 changed files with 33 additions and 71 deletions

View File

@@ -128,7 +128,7 @@ const initialNodes: Node[] = [
data: { label: 'Parent', keepAspectRatio: true },
position: { x: 700, y: 0 },
width: 300,
height: 400,
height: 300,
style: { ...nodeStyle },
},
{
@@ -148,7 +148,9 @@ const initialNodes: Node[] = [
id: '5b',
type: 'defaultResizer',
data: { label: 'Child with expandParent' },
position: { x: 150, y: 100 },
position: { x: 100, y: 100 },
width: 100,
height: 100,
parentId: '5',
expandParent: true,
style: { ...nodeStyle },
@@ -187,7 +189,6 @@ const CustomNodeFlow = () => {
minZoom={0.2}
maxZoom={5}
snapToGrid={snapToGrid}
nodeOrigin={[1, 1]}
fitView
onlyRenderVisibleElements
>