範例節點在邊緣拖曳時新增節點在邊緣拖曳時新增節點您可以使用 onConnectStart 和 onConnectEnd 處理常式,在您將連線線條拖放到畫布上時建立一個新的節點。index.htmlApp.tsxexport default function App() { const data: string = "world" return <h1>Hello {data}</h1> } 唯讀在 Stackblitz 中開啟在 Codesandbox 中開啟功能概覽深色模式