Expose node specific api
This commit is contained in:
@@ -20,7 +20,7 @@ def get_node_coord(name: str, id: str) -> dict[str, float] | None:
|
||||
coord = str(row['coord'])
|
||||
return _to_client_point(coord)
|
||||
|
||||
|
||||
'''
|
||||
def set_node_coord(name: str, node_type: str, id: str, x: float, y: float) -> ChangeSet:
|
||||
old = get_node_coord(name, id)
|
||||
if old == None:
|
||||
@@ -39,3 +39,4 @@ def set_node_coord(name: str, node_type: str, id: str, x: float, y: float) -> Ch
|
||||
change = ChangeSet()
|
||||
change.update(node_type, id, 'coord')
|
||||
return change
|
||||
'''
|
||||
Reference in New Issue
Block a user