Merge branch 'xyflow' into svelte-flow-connection-mode

This commit is contained in:
Moritz Klack
2023-09-25 17:17:12 +02:00
committed by GitHub
5 changed files with 22 additions and 4 deletions
@@ -160,9 +160,14 @@
event.detail.event.preventDefault();
console.log('on node contextmenu', event);
}}
on:edgecontextmenu={({ detail: { event, edge } }) => {
event.preventDefault();
console.log('on edge contextmenu', edge);
}}
autoPanOnConnect
autoPanOnNodeDrag
connectionMode={ConnectionMode.Strict}
attributionPosition={'top-center'}
>
<Controls />
<Background variant={BackgroundVariant.Dots} />