hookehuyr

test

......@@ -68,6 +68,7 @@ export function clickSelect(G6) {
} else {
if (self.shouldUpdate.call(self, e)) {
selectChangeFlag = true
// 单选选中显示边框
graph.setItemState(item, SELECTED_STATE, true);
}
graph.emit('nodeselectchange', {target: item, select: true});
......@@ -83,6 +84,7 @@ export function clickSelect(G6) {
// node.hideAnchor(graph)
// });
// item.showAnchor(graph)
},
onCanvasClick() {
......
......@@ -59,6 +59,9 @@ export default {
graph.on('canvas:click', (e) => {
context.emit('click-canvas', e)
})
graph.on('node:mousedown', (e) => {
context.emit('click-node-mousedown', e)
})
graph.on('node:click', (e) => {
context.emit('click-node', e)
})
......