mirror of
https://gitee.com/antv/g6.git
synced 2024-12-05 05:09:07 +08:00
chore(drag-node): use updatePosition to update node itself
This commit is contained in:
parent
4c04e072a2
commit
d40930f897
@ -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();
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user