fix examples

This commit is contained in:
peterkogo
2025-04-16 16:41:02 +02:00
parent b429c871a8
commit 13fdd15f59
17 changed files with 65 additions and 59 deletions
@@ -1,13 +1,18 @@
<script lang="ts">
import { NodeToolbar, type NodeProps, Handle, Position } from '@xyflow/svelte';
import {
NodeToolbar,
type NodeProps,
type Node,
Handle,
Position,
type Align
} from '@xyflow/svelte';
type $$Props = NodeProps;
interface Props {
data: $$Props['data'];
}
let { data }: Props = $props();
let {
data
}: NodeProps<
Node<{ label: string; toolbarPosition: Position; toolbarAlign: Align; toolbarVisible: boolean }>
> = $props();
</script>
<NodeToolbar