migrate pane

This commit is contained in:
peterkogo
2024-11-13 15:36:09 +01:00
parent 2c2b456036
commit 52a4b310d4
3 changed files with 42 additions and 35 deletions
@@ -100,6 +100,8 @@
onedgecontextmenu,
onedgemouseenter,
onedgemouseleave,
onpaneclick,
onpanecontextmenu,
...rest
}: SvelteFlowProps = $props();
@@ -250,8 +252,10 @@
paneClickDistance={paneClickDistance === undefined ? 0 : paneClickDistance}
>
<Pane
on:paneclick
on:panecontextmenu
{nodes}
{edges}
{onpaneclick}
{onpanecontextmenu}
panOnDrag={panOnDrag === undefined ? true : panOnDrag}
{selectionOnDrag}
>