floor-editor-ts 1.4.4 → 1.4.6

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.
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -45,6 +45,8 @@ export declare function drawColumn(cs: CanvasState, col: Column, selected: boole
45
45
  export declare function drawGuides(cs: CanvasState, floor: Floor, selectedGuideId: string | null, RULER_SIZE: number): void;
46
46
  export declare function drawPersistedMeasurements(cs: CanvasState, floor: Floor, selectedMeasurementId: string | null, dimSettings: ProjectSettings): void;
47
47
  export declare function drawTextAnnotations(cs: CanvasState, floor: Floor, selectedTextAnnotationId: string | null, currentSelectedId: string | null): void;
48
+ /** Numbered vertex badge (0, 1, 2…) — FOV / zone polygons. */
49
+ export declare function drawVertexIndexBadge(ctx: CanvasRenderingContext2D, x: number, y: number, index: number, color: string, radius?: number): void;
48
50
  export declare function drawZoneShape(cs: CanvasState, zone: Zone, selected: boolean): void;
49
51
  export declare function drawZones(cs: CanvasState, floor: Floor, selectedZoneId: string | null): void;
50
52
  /** Preview while drawing polygon / dragging rect. */
@@ -27,5 +27,9 @@ export declare function translatePoints(points: Point[], dx: number, dy: number)
27
27
  /** Axis-aligned resize: keep opposite corner fixed when dragging corner index. */
28
28
  export declare function resizeRectCorner(points: Point[], cornerIndex: number, to: Point): Point[];
29
29
  export declare function isNearPoint(a: Point, b: Point, threshold: number): boolean;
30
+ /** Ray-cast point-in-polygon (world coords). */
31
+ export declare function pointInPolygon(pt: Point, poly: Point[]): boolean;
32
+ /** Screen/world AABB top-right corner for floating toolbar anchor. */
33
+ export declare function polygonToolbarAnchor(points: Point[]): Point | null;
30
34
  export declare function ensureZoneDefaults(zone: Zone): Zone;
31
35
  export declare function createZoneDraft(shape: ZoneShape, points: Point[], name: string, color: string): Omit<Zone, "id">;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "floor-editor-ts",
3
3
  "private": false,
4
- "version": "1.4.4",
4
+ "version": "1.4.6",
5
5
  "type": "module",
6
6
  "main": "./dist/floor-editor.es.js",
7
7
  "module": "./dist/floor-editor.es.js",