範例節點鄰近連接鄰近連接這個範例展示了當節點被拖放到另一個節點附近時,如何自動建立邊緣。在拖曳時,會顯示一條虛線連接線,以顯示如果您放下節點將建立哪個邊緣。index.htmlApp.tsxexport default function App() { const data: string = "world" return <h1>Hello {data}</h1> } 唯讀在 Stackblitz 中開啟在 Codesandbox 中開啟功能總覽黑暗模式