floor-editor-ts 1.4.7 → 1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const FLOOR_CALLBACK_EVENT: "floor:callbackEvent";
|
|
3
3
|
export declare function setAssignedCamerasSyncing(value: boolean): void;
|
|
4
4
|
export declare function isAssignedCamerasSyncing(): boolean;
|
|
5
|
-
export type FloorCallbackType = "save" | "autoSave" | "camerasChanged" | "camerasRejected" | "cameraMappingChanged";
|
|
5
|
+
export type FloorCallbackType = "save" | "autoSave" | "camerasChanged" | "camerasRejected" | "cameraMappingChanged" | "cameraFloorClicked";
|
|
6
6
|
/** Dynamic camera props from host / furniture (always includes serial). */
|
|
7
7
|
export type CameraCallbackProps = Record<string, string> & {
|
|
8
8
|
serial: string;
|
|
@@ -29,6 +29,11 @@ export declare function setFloorCallbackDispatcher(fn: FloorCallbackDispatcher |
|
|
|
29
29
|
export declare function emitFloorCallback(type: FloorCallbackType, data: unknown): void;
|
|
30
30
|
export declare function emitCamerasChanged(data: CamerasChangedData): void;
|
|
31
31
|
export declare function emitCameraMappingChanged(data: CameraMappingChangedData): void;
|
|
32
|
+
/** User clicked a camera on the floor plan (icon or its FOV polygon). */
|
|
33
|
+
export interface CameraFloorClickedData {
|
|
34
|
+
serial: string;
|
|
35
|
+
}
|
|
36
|
+
export declare function emitCameraFloorClicked(serial: string | undefined | null): void;
|
|
32
37
|
export declare function cameraItemToCallbackProps(item: {
|
|
33
38
|
serial?: string;
|
|
34
39
|
name?: string;
|