feat: add loop event

This commit is contained in:
2025-09-17 21:42:21 +03:00
parent 040299ca4c
commit 19a424015f

View File

@@ -37,6 +37,11 @@ class TrajectoryDrawer:
self.complete_trajectory()
elif event.key == 'escape':
self.clear_trajectory()
elif event.key == 'e':
if len(self.points):
self.points.append(self.points[0])
self.update_plot()
def update_plot(self):
if self.points: