fixed internal examples, made code more understandable

This commit is contained in:
peterkogo
2025-01-07 11:57:33 +01:00
parent 4a0b5e6c21
commit 4fc8e08128
9 changed files with 32 additions and 30 deletions
@@ -2,7 +2,7 @@
import {
Handle,
Position,
useHandleConnections,
useNodeConnections,
useNodesData,
type NodeProps
} from '@xyflow/svelte';
@@ -13,7 +13,7 @@
export let id: $$Props['id'];
$$restProps;
const connections = useHandleConnections({
const connections = useNodeConnections({
nodeId: id,
type: 'target'
});
@@ -2,7 +2,7 @@
import {
Handle,
Position,
useHandleConnections,
useNodeConnections,
useNodesData,
useSvelteFlow,
type NodeProps
@@ -16,7 +16,7 @@
$$restProps;
const { updateNodeData } = useSvelteFlow();
const connections = useHandleConnections({
const connections = useNodeConnections({
nodeId: id,
type: 'target'
});