Add new api to tjnetwork

This commit is contained in:
wqy
2022-09-16 23:01:43 +08:00
parent 7f26c21435
commit 3ed4afeb85
2 changed files with 14 additions and 1 deletions

View File

@@ -266,3 +266,14 @@ def set_tank_overflow(name: str, tank_id: str, overflow: str) -> ChangeSet:
def set_tank_coord(name: str, tank_id: str, x: float, y: float) -> ChangeSet:
return api.set_tank_coord(name, tank_id, x, y)
############################################################
# coordinates 24.[COORDINATES]
############################################################
def get_node_coord(name: str, tank_id: str) -> dict[str, float] | None:
return api.get_node_coord(name, tank_id)
def set_node_coord(name: str, tank_id: str, x: float, y: float) -> ChangeSet:
return api.set_node_coord(name, tank_id, x, y)