fixed internal examples, made code more understandable
This commit is contained in:
@@ -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'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user