feat(svelte) add fitViewOptions, closes #3440

This commit is contained in:
Peter
2023-09-25 12:58:04 +02:00
parent 339df4c651
commit ada5b94673
9 changed files with 71 additions and 44 deletions
@@ -130,8 +130,16 @@
{nodeTypes}
{edgeTypes}
fitView
minZoom={0.1}
maxZoom={2.5}
fitViewOptions={{
padding: 10,
nodes: [
{
id: '1'
}
]
}}
minZoom={0}
maxZoom={Infinity}
selectionMode={SelectionMode.Full}
initialViewport={{ x: 100, y: 100, zoom: 2 }}
snapGrid={[25, 25]}