roundabout,
created on Sunday, 6 October 2024, 08:59:13 (1728205153),
received on Saturday, 12 October 2024, 14:56:18 (1728744978)
Author identity: vlad <vlad.muntoiu@gmail.com>
462fd0b05606af6b1fbc310c4c37c53131b6380a
static/picture-annotation.py
@@ -172,6 +172,9 @@ async def save_shapes(event):
save_shapes_proxy = create_proxy(save_shapes) save_button.addEventListener("click", save_shapes_proxy) delete_shape_key_proxy = create_proxy(lambda event: event.key == "Delete" and delete_shape_proxy(None)) next_shape_key_proxy = create_proxy(lambda event: event.key == "ArrowRight" and next_shape_proxy(None)) previous_shape_key_proxy = create_proxy(lambda event: event.key == "ArrowLeft" and previous_shape_proxy(None))async def focus_shape(shape):
@@ -191,6 +194,9 @@ async def focus_shape(shape):
delete_button.style.display = "block" next_button.style.display = "block" previous_button.style.display = "block" document.addEventListener("keydown", delete_shape_key_proxy) document.addEventListener("keydown", next_shape_key_proxy) document.addEventListener("keydown", previous_shape_key_proxy)object_list.innerHTML = ""
@@ -291,6 +297,9 @@ def unselect_shape(event):
delete_button.style.display = "none" next_button.style.display = "none" previous_button.style.display = "none" document.removeEventListener("keydown", delete_shape_key_proxy) document.removeEventListener("keydown", next_shape_key_proxy) document.removeEventListener("keydown", previous_shape_key_proxy)def delete_shape(event):
@@ -304,6 +313,9 @@ def delete_shape(event):
delete_button.style.display = "none" next_button.style.display = "none" previous_button.style.display = "none" document.removeEventListener("keydown", delete_shape_key_proxy) document.removeEventListener("keydown", next_shape_key_proxy) document.removeEventListener("keydown", previous_shape_key_proxy)select_shape_proxy = create_proxy(select_shape)