参考HooksuseEdges()useEdges GitHub 上的源代码 The useEdges hook returns an array of the current edges store. <script lang="ts"> import { useEdges } from '@xyflow/svelte'; const edges = useEdges(); </script> 签名 名称类型#返回#Writable<Edge[]>The current edge store.Hooks