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[].area */
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[].areaColor */
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 area label + color from host assigned camera fields. */
7
+ /** Resolve zone label + color from host assigned camera fields (`zone` / `zoneColor`). */
8
8
  export declare function resolveCameraAreaStyle(source: {
9
- area?: unknown;
10
- areaColor?: unknown;
9
+ zone?: unknown;
10
+ zoneColor?: unknown;
11
11
  props?: Record<string, string>;
12
12
  } | null | undefined, fallbackIndex?: number): {
13
13
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "floor-editor-ts",
3
3
  "private": false,
4
- "version": "1.3.13",
4
+ "version": "1.3.15",
5
5
  "type": "module",
6
6
  "main": "./dist/floor-editor.es.js",
7
7
  "module": "./dist/floor-editor.es.js",