floor-editor-ts 1.3.13 → 1.3.15
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.
|
@@ -132,12 +132,12 @@ export interface GuideLine {
|
|
|
132
132
|
export type ZoneShape = 'rectangle' | 'triangle' | 'polygon';
|
|
133
133
|
export interface Zone {
|
|
134
134
|
id: string;
|
|
135
|
-
/** Display name — normally from assignedCameras[].
|
|
135
|
+
/** Display name — normally from assignedCameras[].zone */
|
|
136
136
|
name: string;
|
|
137
137
|
shape: ZoneShape;
|
|
138
138
|
/** Closed polygon vertices (first point not repeated). */
|
|
139
139
|
points: Point[];
|
|
140
|
-
/** Stroke + label color — normally from assignedCameras[].
|
|
140
|
+
/** Stroke + label color — normally from assignedCameras[].zoneColor */
|
|
141
141
|
color: string;
|
|
142
142
|
/** Soft fill alpha inside polygon. Default ~0.1 */
|
|
143
143
|
fillOpacity?: number;
|
|
@@ -4,10 +4,10 @@ export declare const DEFAULT_ZONE_FILL_OPACITY = 0.1;
|
|
|
4
4
|
/** Default rect half-size in world units (cm). */
|
|
5
5
|
export declare const DEFAULT_ZONE_SIZE = 200;
|
|
6
6
|
export declare function nextZoneColor(existingCount: number): string;
|
|
7
|
-
/** Resolve
|
|
7
|
+
/** Resolve zone label + color from host assigned camera fields (`zone` / `zoneColor`). */
|
|
8
8
|
export declare function resolveCameraAreaStyle(source: {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
zone?: unknown;
|
|
10
|
+
zoneColor?: unknown;
|
|
11
11
|
props?: Record<string, string>;
|
|
12
12
|
} | null | undefined, fallbackIndex?: number): {
|
|
13
13
|
name: string;
|