Open wiserliu opened 3 years ago
这是项目给出的示例
在dragPanelItemAddNode.js 中有这么一段代码
onMouseUp (e) {
if (this.graph.get('addNodeDragging')) {
const p = this.graph.getPointByClient(e.clientX, e.clientY);
......
}
},
这样写可以避免这种情况
const p = this.graph.getPointByClient(e.clientX, e.clientY);
const { x, y } = this.graph.getCanvasByPoint(p.x, p.y);
拖动画布,添加节点到画布左侧失败