Improve Object Lifecycle pane (#16635)

* add path point tracking to backend

* types

* draw paths on lifecycle pane

* make points clickable

* don't display a path if we don't have any saved path points

* only object lifecycle points should have a click handler

* change to debug log

* better debug log message
This commit is contained in:
Josh Hawkins authored and GitHub committed 2025-02-17 09:37:17 -07:00
1 parent 3f07d2d37c
commit 124d92daa9
6 files changed
+245 -16

No files matched your search

+1
View File
@@ -22,5 +22,6 @@ export interface Event {
area: number;
ratio: number;
type: "object" | "audio" | "manual";
path_data: [number[], number][];
};
}
+13 -9
View File
@@ -1,3 +1,15 @@
export enum ClassType {
VISIBLE = "visible",
GONE = "gone",
ENTERED_ZONE = "entered_zone",
ATTRIBUTE = "attribute",
ACTIVE = "active",
STATIONARY = "stationary",
HEARD = "heard",
EXTERNAL = "external",
PATH_POINT = "path_point",
}
export type ObjectLifecycleSequence = {
camera: string;
timestamp: number;
@@ -10,15 +22,7 @@ export type ObjectLifecycleSequence = {
attribute: string;
zones: string[];
};
class_type:
| "visible"
| "gone"
| "entered_zone"
| "attribute"
| "active"
| "stationary"
| "heard"
| "external";
class_type: ClassType;
source_id: string;
source: string;
};