Refine change set

This commit is contained in:
wqy
2022-09-17 23:43:03 +08:00
parent 36a8fa2f79
commit fc0283b417
5 changed files with 246 additions and 209 deletions

View File

@@ -39,5 +39,5 @@ def set_node_coord(name: str, node_type: str, id: str, x: float, y: float) -> Ch
add_operation(name, redo, undo)
change = ChangeSet()
change.update(node_type, id, 'coord', 'point', str({'x': x, 'y': y}))
change.update(node_type, id, 'coord')
return change