chore(drag-node): use updatePosition to update node itself

This commit is contained in:
yilin.qyl 2019-01-18 12:20:10 +08:00
parent 4c04e072a2
commit d40930f897

View File

@ -71,7 +71,7 @@ module.exports = {
if (this.get('updateEdge')) {
this.graph.updateItem(item, { x, y });
} else {
item.update({ x, y });
item.updatePosition({ x, y });
this.graph.paint();
}
},