add initial support for asymmetric paddings

This commit is contained in:
peterkogo
2025-03-25 17:13:21 +01:00
parent 488a7a64ec
commit 137b23c6a7
2 changed files with 45 additions and 36 deletions

View File

@@ -146,6 +146,9 @@ const BasicFlow = () => {
minZoom={0.2}
maxZoom={4}
fitView
fitViewOptions={{
padding: ['30%', '10%', '10%', '20%'],
}}
defaultEdgeOptions={defaultEdgeOptions}
selectNodesOnDrag={false}
elevateEdgesOnSelect