UPDATE: VERSION-20260326

This commit is contained in:
libertyspy
2026-03-26 22:05:31 +08:00
parent 18ccf490e4
commit 6656479327
8 changed files with 43 additions and 18 deletions

View File

@@ -183,6 +183,11 @@ export const useGraphCanvas = (readonly: boolean = false): UseGraphCanvas => {
emitGraphEvent('node:click', ctx);
});
graph.value.on('node:dblclick', (ctx: NodeViewPositionEventArgs<Dom.ClickEvent>) => {
console.info('node:dblclick', ctx);
emitGraphEvent('node:dblclick', ctx);
});
// 监听节点选中事件
graph.value.on('node:selected', ({ node }) => {
console.info('node select', node);