fixed node extent = parent in subflows

This commit is contained in:
peterkogo
2024-08-22 15:20:56 +02:00
parent e989be8710
commit 9097102386
2 changed files with 27 additions and 6 deletions

View File

@@ -13,7 +13,6 @@ import {
MiniMap,
Background,
Panel,
NodeOrigin,
useUpdateNodeInternals,
ReactFlowProvider,
} from '@xyflow/react';
@@ -34,6 +33,7 @@ const initialNodes: Node[] = [
height: 1000,
data: { label: 'Extent' },
origin: [0, 0],
zIndex: -1,
},
{
id: '1',
@@ -58,11 +58,10 @@ const initialNodes: Node[] = [
{
id: '4a',
data: { label: 'Node 4a' },
position: { x: 15, y: 15 },
position: { x: -15, y: -15 },
className: 'light',
parentId: '4',
origin: [0, 0],
extent: [
[0, 0],
[300, 100],