@nice2dev/spatial-core 1.1.5 → 1.1.7

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.
Files changed (41) hide show
  1. package/dist/bim/index.d.ts +1 -2
  2. package/dist/bim/index.js +0 -1
  3. package/dist/cad/index.d.ts +1 -2
  4. package/dist/cad/index.js +0 -1
  5. package/dist/ecad/index.d.ts +0 -1
  6. package/dist/ecad/index.js +0 -1
  7. package/dist/export/index.d.ts +1 -2
  8. package/dist/export/index.js +1 -2
  9. package/dist/floor-plan/index.d.ts +3 -4
  10. package/dist/floor-plan/index.js +0 -1
  11. package/dist/grid/index.d.ts +0 -1
  12. package/dist/grid/index.js +0 -1
  13. package/dist/import/import.worker.d.ts +1 -2
  14. package/dist/import/import.worker.js +1 -2
  15. package/dist/import/index.d.ts +3 -4
  16. package/dist/import/index.js +1 -2
  17. package/dist/import/workerImport.d.ts +1 -2
  18. package/dist/import/workerImport.js +1 -2
  19. package/dist/index.d.ts +15 -16
  20. package/dist/index.js +15 -16
  21. package/dist/interior/index.d.ts +0 -1
  22. package/dist/interior/index.js +0 -1
  23. package/dist/measurement/index.d.ts +1 -2
  24. package/dist/measurement/index.js +0 -1
  25. package/dist/objects/index.d.ts +1 -2
  26. package/dist/objects/index.js +0 -1
  27. package/dist/serialization/index.d.ts +1 -2
  28. package/dist/serialization/index.js +0 -1
  29. package/dist/topology/index.d.ts +1 -2
  30. package/dist/topology/index.js +0 -1
  31. package/dist/transitions/index.d.ts +1 -2
  32. package/dist/transitions/index.js +0 -1
  33. package/dist/unified/index.d.ts +2 -3
  34. package/dist/unified/index.js +0 -1
  35. package/dist/virtualization/QuadTree.d.ts +0 -1
  36. package/dist/virtualization/QuadTree.js +0 -1
  37. package/dist/virtualization/ViewportCulling.d.ts +1 -2
  38. package/dist/virtualization/ViewportCulling.js +0 -1
  39. package/dist/virtualization/index.d.ts +2 -3
  40. package/dist/virtualization/index.js +2 -3
  41. package/package.json +1 -1
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module @nice2dev/spatial-core/bim
8
8
  */
9
- import type { Point2D, Point3D } from '../grid/index';
9
+ import type { Point2D, Point3D } from '../grid/index.js';
10
10
  export type IfcSchema = 'IFC2x3' | 'IFC4' | 'IFC4x3';
11
11
  export interface IfcEntity {
12
12
  id: string;
@@ -363,4 +363,3 @@ export interface SiteAnalysis {
363
363
  * Simplified formula — accurate within ~1°.
364
364
  */
365
365
  export declare function computeSolarAltitude(latitude: number, dayOfYear: number, hourAngle: number): number;
366
- //# sourceMappingURL=index.d.ts.map
package/dist/bim/index.js CHANGED
@@ -57,4 +57,3 @@ export function computeSolarAltitude(latitude, dayOfYear, hourAngle) {
57
57
  const sinAlt = Math.sin(latRad) * Math.sin(declRad) + Math.cos(latRad) * Math.cos(declRad) * Math.cos(haRad);
58
58
  return Math.asin(sinAlt) * (180 / Math.PI);
59
59
  }
60
- //# sourceMappingURL=index.js.map
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module @nice2dev/spatial-core/cad
8
8
  */
9
- import type { Point2D, Point3D } from '../grid/index';
9
+ import type { Point2D, Point3D } from '../grid/index.js';
10
10
  export type ConstraintKind = 'parallel' | 'perpendicular' | 'distance' | 'angle' | 'coincident' | 'tangent' | 'equal-length' | 'symmetric' | 'horizontal' | 'vertical' | 'concentric' | 'midpoint' | 'fixed';
11
11
  export interface ParametricConstraint {
12
12
  id: string;
@@ -326,4 +326,3 @@ export interface FeaStudy {
326
326
  };
327
327
  }
328
328
  export declare const FEA_MATERIALS: Record<string, FeaMaterial>;
329
- //# sourceMappingURL=index.d.ts.map
package/dist/cad/index.js CHANGED
@@ -121,4 +121,3 @@ export const FEA_MATERIALS = {
121
121
  yieldStrength: 200e6,
122
122
  },
123
123
  };
124
- //# sourceMappingURL=index.js.map
@@ -313,4 +313,3 @@ export interface SingleLineDiagram {
313
313
  elements: SldElement[];
314
314
  connections: SldConnection[];
315
315
  }
316
- //# sourceMappingURL=index.d.ts.map
@@ -8,4 +8,3 @@
8
8
  * @module @nice2dev/spatial-core/ecad
9
9
  */
10
10
  export {};
11
- //# sourceMappingURL=index.js.map
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @module @nice2dev/spatial-core/export
11
11
  */
12
- import type { FloorPlanDocument } from '../floor-plan';
12
+ import type { FloorPlanDocument } from '../floor-plan/index.js';
13
13
  /** Output format for document export. */
14
14
  export type DocumentExportFormat = 'nsp' | 'svg' | 'dxf' | 'png' | 'pdf';
15
15
  /** Export options. */
@@ -90,4 +90,3 @@ export declare function exportSVGToPNG(svgElement: SVGSVGElement, filename: stri
90
90
  dpi?: number;
91
91
  backgroundColor?: string;
92
92
  }): Promise<ExportResult>;
93
- //# sourceMappingURL=index.d.ts.map
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @module @nice2dev/spatial-core/export
11
11
  */
12
- import { serialize } from '../serialization';
12
+ import { serialize } from '../serialization/index.js';
13
13
  /* ================================================================
14
14
  NSP JSON EXPORT
15
15
  ================================================================ */
@@ -519,4 +519,3 @@ export async function exportSVGToPNG(svgElement, filename, options = {}) {
519
519
  img.src = svgUrl;
520
520
  });
521
521
  }
522
- //# sourceMappingURL=index.js.map
@@ -8,9 +8,9 @@
8
8
  *
9
9
  * @module @nice2dev/spatial-core/floor-plan
10
10
  */
11
- import type { Point2D, BoundingBox } from '../grid/index';
12
- import type { SpatialObject, RoomType } from '../objects/index';
13
- export type { SpatialObject, Room, RoomType } from '../objects/index';
11
+ import type { Point2D, BoundingBox } from '../grid/index.js';
12
+ import type { SpatialObject, RoomType } from '../objects/index.js';
13
+ export type { SpatialObject, Room, RoomType } from '../objects/index.js';
14
14
  /** Floor plan document - the root object for .nsp.json files. */
15
15
  export interface FloorPlanDocument {
16
16
  /** Optional document identifier. */
@@ -245,4 +245,3 @@ declare const _default: {
245
245
  ROOM_PRESETS: RoomPreset[];
246
246
  };
247
247
  export default _default;
248
- //# sourceMappingURL=index.d.ts.map
@@ -225,4 +225,3 @@ export default {
225
225
  isPointInPolygon,
226
226
  ROOM_PRESETS,
227
227
  };
228
- //# sourceMappingURL=index.js.map
@@ -157,4 +157,3 @@ declare const _default: {
157
157
  DEFAULT_GRID_CONFIG: GridConfig;
158
158
  };
159
159
  export default _default;
160
- //# sourceMappingURL=index.d.ts.map
@@ -316,4 +316,3 @@ export default {
316
316
  generateGridLines,
317
317
  DEFAULT_GRID_CONFIG,
318
318
  };
319
- //# sourceMappingURL=index.js.map
@@ -8,7 +8,7 @@
8
8
  * - Send { type: 'import', content, format, options } message
9
9
  * - Receive { type: 'result', result } or { type: 'progress', progress } messages
10
10
  */
11
- import type { FileImportFormat, FileImportOptions, FileImportResult } from './index';
11
+ import type { FileImportFormat, FileImportOptions, FileImportResult } from './index.js';
12
12
  /** Worker input message. */
13
13
  export interface ImportWorkerInput {
14
14
  type: 'import';
@@ -25,4 +25,3 @@ export interface ImportWorkerOutput {
25
25
  progress?: number;
26
26
  error?: string;
27
27
  }
28
- //# sourceMappingURL=import.worker.d.ts.map
@@ -8,7 +8,7 @@
8
8
  * - Send { type: 'import', content, format, options } message
9
9
  * - Receive { type: 'result', result } or { type: 'progress', progress } messages
10
10
  */
11
- import { importFile } from './index';
11
+ import { importFile } from './index.js';
12
12
  /* ================================================================
13
13
  WORKER MESSAGE HANDLER
14
14
  ================================================================ */
@@ -49,4 +49,3 @@ self.onmessage = function (event) {
49
49
  };
50
50
  // Report ready state
51
51
  self.postMessage({ type: 'ready' });
52
- //# sourceMappingURL=import.worker.js.map
@@ -9,8 +9,8 @@
9
9
  *
10
10
  * @module @nice2dev/spatial-core/import
11
11
  */
12
- import type { FloorPlanDocument } from '../floor-plan';
13
- import type { Point2D } from '../grid';
12
+ import type { FloorPlanDocument } from '../floor-plan/index.js';
13
+ import type { Point2D } from '../grid/index.js';
14
14
  /** Import format. */
15
15
  export type FileImportFormat = 'dxf' | 'svg' | 'geojson' | 'ifc';
16
16
  /** Import options. */
@@ -107,5 +107,4 @@ export declare function detectFileImportFormat(filename: string, content?: strin
107
107
  * Import from file (browser File API).
108
108
  */
109
109
  export declare function importFromBrowserFile(file: File, options?: Partial<FileImportOptions>): Promise<FileImportResult>;
110
- export { importFileInWorker, importFileAsync, isWorkerSupported, terminateImportWorker, createImportWorker, type WorkerImportOptions, } from './workerImport';
111
- //# sourceMappingURL=index.d.ts.map
110
+ export { importFileInWorker, importFileAsync, isWorkerSupported, terminateImportWorker, createImportWorker, type WorkerImportOptions, } from './workerImport.js';
@@ -1088,5 +1088,4 @@ function assembleDocument(walls, zones, objects, layersFound, docInfo) {
1088
1088
  /* ================================================================
1089
1089
  WEB WORKER IMPORT (re-exported)
1090
1090
  ================================================================ */
1091
- export { importFileInWorker, importFileAsync, isWorkerSupported, terminateImportWorker, createImportWorker, } from './workerImport';
1092
- //# sourceMappingURL=index.js.map
1091
+ export { importFileInWorker, importFileAsync, isWorkerSupported, terminateImportWorker, createImportWorker, } from './workerImport.js';
@@ -14,7 +14,7 @@
14
14
  * }
15
15
  * ```
16
16
  */
17
- import type { FileImportFormat, FileImportOptions, FileImportResult } from './index';
17
+ import type { FileImportFormat, FileImportOptions, FileImportResult } from './index.js';
18
18
  /** Options for worker-based import. */
19
19
  export interface WorkerImportOptions extends Partial<FileImportOptions> {
20
20
  /** Progress callback (0-100). */
@@ -53,4 +53,3 @@ export declare function terminateImportWorker(): void;
53
53
  * Otherwise, falls back to synchronous import.
54
54
  */
55
55
  export declare function importFileAsync(content: string, format: FileImportFormat, options?: WorkerImportOptions): Promise<FileImportResult>;
56
- //# sourceMappingURL=workerImport.d.ts.map
@@ -191,7 +191,7 @@ export function terminateImportWorker() {
191
191
  */
192
192
  export async function importFileAsync(content, format, options = {}) {
193
193
  // Import the sync function dynamically to avoid circular deps
194
- const { importFile } = await import('./index');
194
+ const { importFile } = await import('./index.js');
195
195
  if (isWorkerSupported()) {
196
196
  try {
197
197
  return await importFileInWorker(content, format, options);
@@ -204,4 +204,3 @@ export async function importFileAsync(content, format, options = {}) {
204
204
  // Fallback to synchronous import
205
205
  return importFile(content, format, options);
206
206
  }
207
- //# sourceMappingURL=workerImport.js.map
package/dist/index.d.ts CHANGED
@@ -11,19 +11,18 @@
11
11
  *
12
12
  * @module @nice2dev/spatial-core
13
13
  */
14
- export * from './grid/index';
15
- export * from './objects/index';
16
- export * from './floor-plan/index';
17
- export { convertLength, convertArea, degToRad, radToDeg, distance3D, manhattanDistance2D, manhattanDistance3D, polylineLength, polygonPerimeter, angleBetweenPoints, angleAtVertex, angleBetweenVectors, normalizeAngle, snapAngle, polygonArea, rectangleArea, circleArea, triangleArea, midpoint2D, midpoint3D, polygonCentroid, lerp2D, lerp3D, projectPointOnLine, pointToLineDistance, formatLength, formatArea, formatAngle, autoFormatLength, autoFormatArea, type UnitSystem, type LengthUnit, type AreaUnit, type AngleUnit, type MeasurementResult, } from './measurement/index';
18
- export * from './serialization/index';
19
- export * from './export/index';
20
- export * from './topology/index';
21
- export * from './import/index';
22
- export * from './virtualization/index';
23
- export * from './unified/index';
24
- export * from './transitions/index';
25
- export * from './cad/index';
26
- export * from './bim/index';
27
- export * from './interior/index';
28
- export * from './ecad/index';
29
- //# sourceMappingURL=index.d.ts.map
14
+ export * from './grid/index.js';
15
+ export * from './objects/index.js';
16
+ export * from './floor-plan/index.js';
17
+ export { convertLength, convertArea, degToRad, radToDeg, distance3D, manhattanDistance2D, manhattanDistance3D, polylineLength, polygonPerimeter, angleBetweenPoints, angleAtVertex, angleBetweenVectors, normalizeAngle, snapAngle, polygonArea, rectangleArea, circleArea, triangleArea, midpoint2D, midpoint3D, polygonCentroid, lerp2D, lerp3D, projectPointOnLine, pointToLineDistance, formatLength, formatArea, formatAngle, autoFormatLength, autoFormatArea, type UnitSystem, type LengthUnit, type AreaUnit, type AngleUnit, type MeasurementResult, } from './measurement/index.js';
18
+ export * from './serialization/index.js';
19
+ export * from './export/index.js';
20
+ export * from './topology/index.js';
21
+ export * from './import/index.js';
22
+ export * from './virtualization/index.js';
23
+ export * from './unified/index.js';
24
+ export * from './transitions/index.js';
25
+ export * from './cad/index.js';
26
+ export * from './bim/index.js';
27
+ export * from './interior/index.js';
28
+ export * from './ecad/index.js';
package/dist/index.js CHANGED
@@ -14,15 +14,15 @@
14
14
  // ═══════════════════════════════════════════════════════════════════════════════
15
15
  // Grid System
16
16
  // ═══════════════════════════════════════════════════════════════════════════════
17
- export * from './grid/index';
17
+ export * from './grid/index.js';
18
18
  // ═══════════════════════════════════════════════════════════════════════════════
19
19
  // Spatial Objects
20
20
  // ═══════════════════════════════════════════════════════════════════════════════
21
- export * from './objects/index';
21
+ export * from './objects/index.js';
22
22
  // ═══════════════════════════════════════════════════════════════════════════════
23
23
  // Floor Plan Model
24
24
  // ═══════════════════════════════════════════════════════════════════════════════
25
- export * from './floor-plan/index';
25
+ export * from './floor-plan/index.js';
26
26
  // ═══════════════════════════════════════════════════════════════════════════════
27
27
  // Measurement Utilities (excluding distance2D which is in grid)
28
28
  // ═══════════════════════════════════════════════════════════════════════════════
@@ -38,49 +38,48 @@ polygonArea, rectangleArea, circleArea, triangleArea,
38
38
  // Points
39
39
  midpoint2D, midpoint3D, polygonCentroid, lerp2D, lerp3D, projectPointOnLine, pointToLineDistance,
40
40
  // Formatting
41
- formatLength, formatArea, formatAngle, autoFormatLength, autoFormatArea, } from './measurement/index';
41
+ formatLength, formatArea, formatAngle, autoFormatLength, autoFormatArea, } from './measurement/index.js';
42
42
  // ═══════════════════════════════════════════════════════════════════════════════
43
43
  // Serialization
44
44
  // ═══════════════════════════════════════════════════════════════════════════════
45
- export * from './serialization/index';
45
+ export * from './serialization/index.js';
46
46
  // ═══════════════════════════════════════════════════════════════════════════════
47
47
  // Export (to various formats: NSP, SVG, DXF, PNG, PDF)
48
48
  // ═══════════════════════════════════════════════════════════════════════════════
49
- export * from './export/index';
49
+ export * from './export/index.js';
50
50
  // ═══════════════════════════════════════════════════════════════════════════════
51
51
  // Topology Layer (network connections, cable routing, coverage)
52
52
  // ═══════════════════════════════════════════════════════════════════════════════
53
- export * from './topology/index';
53
+ export * from './topology/index.js';
54
54
  // ═══════════════════════════════════════════════════════════════════════════════
55
55
  // Import (from DXF, SVG, GeoJSON, IFC)
56
56
  // ═══════════════════════════════════════════════════════════════════════════════
57
- export * from './import/index';
57
+ export * from './import/index.js';
58
58
  // ═══════════════════════════════════════════════════════════════════════════════
59
59
  // Virtualization (QuadTree, viewport culling for 1000+ objects)
60
60
  // ═══════════════════════════════════════════════════════════════════════════════
61
- export * from './virtualization/index';
61
+ export * from './virtualization/index.js';
62
62
  // ═══════════════════════════════════════════════════════════════════════════════
63
63
  // Unified 2D↔3D System (Shared Object Model, References, Materials, Layers)
64
64
  // ═══════════════════════════════════════════════════════════════════════════════
65
- export * from './unified/index';
65
+ export * from './unified/index.js';
66
66
  // ═══════════════════════════════════════════════════════════════════════════════
67
67
  // Editor Transitions (Quick Switch, Split View, Cross-Editor Undo, Bookmarks)
68
68
  // ═══════════════════════════════════════════════════════════════════════════════
69
- export * from './transitions/index';
69
+ export * from './transitions/index.js';
70
70
  // ═══════════════════════════════════════════════════════════════════════════════
71
71
  // Professional CAD (Parametric Constraints, Boolean Ops, Assembly, FEA)
72
72
  // ═══════════════════════════════════════════════════════════════════════════════
73
- export * from './cad/index';
73
+ export * from './cad/index.js';
74
74
  // ═══════════════════════════════════════════════════════════════════════════════
75
75
  // BIM / AEC (IFC, Revit, MEP, Clash Detection, 4D/5D, Digital Twin)
76
76
  // ═══════════════════════════════════════════════════════════════════════════════
77
- export * from './bim/index';
77
+ export * from './bim/index.js';
78
78
  // ═══════════════════════════════════════════════════════════════════════════════
79
79
  // Interior Design (Furniture, Lighting, Materials, Styles, Budget)
80
80
  // ═══════════════════════════════════════════════════════════════════════════════
81
- export * from './interior/index';
81
+ export * from './interior/index.js';
82
82
  // ═══════════════════════════════════════════════════════════════════════════════
83
83
  // Electrical & Electronics CAD (Schematic, PCB, SPICE, Harness, Panel, SLD)
84
84
  // ═══════════════════════════════════════════════════════════════════════════════
85
- export * from './ecad/index';
86
- //# sourceMappingURL=index.js.map
85
+ export * from './ecad/index.js';
@@ -238,4 +238,3 @@ export interface AccessibilityAudit {
238
238
  score: number;
239
239
  issues: AccessibilityIssue[];
240
240
  }
241
- //# sourceMappingURL=index.d.ts.map
@@ -98,4 +98,3 @@ export function generateColorPalette(baseHex, harmony) {
98
98
  colors: hues.map((hh) => hslToHex(hh, s, l)),
99
99
  };
100
100
  }
101
- //# sourceMappingURL=index.js.map
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @module @nice2dev/spatial-core/measurement
9
9
  */
10
- import type { Point2D, Point3D } from '../grid/index';
10
+ import type { Point2D, Point3D } from '../grid/index.js';
11
11
  /** Unit system. */
12
12
  export type UnitSystem = 'metric' | 'imperial';
13
13
  /** Length unit. */
@@ -183,4 +183,3 @@ declare const _default: {
183
183
  autoFormatArea: typeof autoFormatArea;
184
184
  };
185
185
  export default _default;
186
- //# sourceMappingURL=index.d.ts.map
@@ -397,4 +397,3 @@ export default {
397
397
  autoFormatLength,
398
398
  autoFormatArea,
399
399
  };
400
- //# sourceMappingURL=index.js.map
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * @module @nice2dev/spatial-core/objects
10
10
  */
11
- import type { Point2D, Point3D, BoundingBox } from '../grid/index';
11
+ import type { Point2D, Point3D, BoundingBox } from '../grid/index.js';
12
12
  /** Transform in 2D space. */
13
13
  export interface Transform2D {
14
14
  position: Point2D;
@@ -285,4 +285,3 @@ declare const _default: {
285
285
  searchCatalog: typeof searchCatalog;
286
286
  };
287
287
  export default _default;
288
- //# sourceMappingURL=index.d.ts.map
@@ -460,4 +460,3 @@ export default {
460
460
  getCatalogItem,
461
461
  searchCatalog,
462
462
  };
463
- //# sourceMappingURL=index.js.map
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * @module @nice2dev/spatial-core/serialization
12
12
  */
13
- import type { FloorPlanDocument, Floor } from '../floor-plan/index';
13
+ import type { FloorPlanDocument, Floor } from '../floor-plan/index.js';
14
14
  /** Serialization options. */
15
15
  export interface SerializationOptions {
16
16
  /** Pretty print JSON (default: false). */
@@ -418,4 +418,3 @@ declare const _default: {
418
418
  };
419
419
  };
420
420
  export default _default;
421
- //# sourceMappingURL=index.d.ts.map
@@ -409,4 +409,3 @@ export default {
409
409
  migrate,
410
410
  NSP_SCHEMA,
411
411
  };
412
- //# sourceMappingURL=index.js.map
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * @module @nice2dev/spatial-core/topology
12
12
  */
13
- import type { Point2D, BoundingBox } from '../grid';
13
+ import type { Point2D, BoundingBox } from '../grid/index.js';
14
14
  /** Connection medium type. */
15
15
  export type ConnectionMedium = 'ethernet-cat5' | 'ethernet-cat6' | 'ethernet-cat6a' | 'ethernet-cat7' | 'fiber-single' | 'fiber-multi' | 'coax' | 'power-line' | 'wifi-2.4ghz' | 'wifi-5ghz' | 'wifi-6ghz' | 'bluetooth' | 'zigbee' | 'z-wave' | 'thread' | 'matter' | 'lora' | 'cellular-4g' | 'cellular-5g' | 'serial' | 'usb' | 'hdmi' | 'displayport' | 'custom';
16
16
  /** Connection status. */
@@ -249,4 +249,3 @@ export declare function getDeviceConnectionStats(deviceId: string, connections:
249
249
  totalBandwidth: number;
250
250
  averageLatency: number;
251
251
  };
252
- //# sourceMappingURL=index.d.ts.map
@@ -522,4 +522,3 @@ export function getDeviceConnectionStats(deviceId, connections) {
522
522
  averageLatency: avgLatency,
523
523
  };
524
524
  }
525
- //# sourceMappingURL=index.js.map
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @module @nice2dev/spatial-core/transitions
16
16
  */
17
- import type { Point2D, Point3D } from '../grid/index';
17
+ import type { Point2D, Point3D } from '../grid/index.js';
18
18
  export type ActiveEditor = '2d' | '3d' | 'split';
19
19
  export interface EditorTransitionState {
20
20
  /** Currently active editor */
@@ -138,4 +138,3 @@ export declare class ChangeTimeline {
138
138
  getByEditor(editor: '2d' | '3d'): TimelineEntry[];
139
139
  clear(): void;
140
140
  }
141
- //# sourceMappingURL=index.d.ts.map
@@ -157,4 +157,3 @@ export class ChangeTimeline {
157
157
  this.entries = [];
158
158
  }
159
159
  }
160
- //# sourceMappingURL=index.js.map
@@ -14,8 +14,8 @@
14
14
  *
15
15
  * @module @nice2dev/spatial-core/unified
16
16
  */
17
- import type { Point2D, Point3D } from '../grid/index';
18
- import type { SpatialObject, Transform2D, Transform3D } from '../objects/index';
17
+ import type { Point2D, Point3D } from '../grid/index.js';
18
+ import type { SpatialObject, Transform2D, Transform3D } from '../objects/index.js';
19
19
  /** SpatialObject3D extends the base SpatialObject with full 3D support. */
20
20
  export interface SpatialObject3D extends Omit<SpatialObject, 'transform'> {
21
21
  transform2D: Transform2D;
@@ -222,4 +222,3 @@ export declare function evaluateConstraint(constraint: ObjectConstraint, getPosi
222
222
  satisfied: boolean;
223
223
  error?: number;
224
224
  };
225
- //# sourceMappingURL=index.d.ts.map
@@ -473,4 +473,3 @@ export function evaluateConstraint(constraint, getPosition) {
473
473
  return { satisfied: true };
474
474
  }
475
475
  }
476
- //# sourceMappingURL=index.js.map
@@ -65,4 +65,3 @@ export declare function createFloorPlanQuadTree<T>(items: Array<{
65
65
  };
66
66
  data: T;
67
67
  }>, padding?: number): QuadTree<T>;
68
- //# sourceMappingURL=QuadTree.d.ts.map
@@ -225,4 +225,3 @@ export function createFloorPlanQuadTree(items, padding = 100) {
225
225
  }
226
226
  return quadTree;
227
227
  }
228
- //# sourceMappingURL=QuadTree.js.map
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Calculates visible bounds and filters objects for rendering optimization.
5
5
  */
6
- import type { Bounds, QuadTree, QuadTreeItem } from './QuadTree';
6
+ import type { Bounds, QuadTree, QuadTreeItem } from './QuadTree.js';
7
7
  /** Viewport state with pan/zoom */
8
8
  export interface ViewportState {
9
9
  /** Current zoom level (1 = 100%) */
@@ -89,4 +89,3 @@ export declare function createQuadTreeUpdater<T>(quadTree: QuadTree<T>, debounce
89
89
  scheduleUpdate: (id: string, bounds: Bounds) => void;
90
90
  flush: () => void;
91
91
  };
92
- //# sourceMappingURL=ViewportCulling.d.ts.map
@@ -120,4 +120,3 @@ export function createQuadTreeUpdater(quadTree, debounceMs = 16) {
120
120
  };
121
121
  return { scheduleUpdate, flush };
122
122
  }
123
- //# sourceMappingURL=ViewportCulling.js.map
@@ -4,6 +4,5 @@
4
4
  * Provides spatial indexing (QuadTree) and viewport culling utilities
5
5
  * for rendering optimization with 1000+ objects.
6
6
  */
7
- export { QuadTree, createFloorPlanQuadTree, type Bounds, type QuadTreeItem, } from './QuadTree';
8
- export { calculateVisibleBounds, isInViewport, filterVisibleItems, queryVisibleFromQuadTree, shouldUseVirtualRendering, calculateRenderStats, createQuadTreeUpdater, type ViewportState, type ContainerSize, } from './ViewportCulling';
9
- //# sourceMappingURL=index.d.ts.map
7
+ export { QuadTree, createFloorPlanQuadTree, type Bounds, type QuadTreeItem } from './QuadTree.js';
8
+ export { calculateVisibleBounds, isInViewport, filterVisibleItems, queryVisibleFromQuadTree, shouldUseVirtualRendering, calculateRenderStats, createQuadTreeUpdater, type ViewportState, type ContainerSize, } from './ViewportCulling.js';
@@ -4,6 +4,5 @@
4
4
  * Provides spatial indexing (QuadTree) and viewport culling utilities
5
5
  * for rendering optimization with 1000+ objects.
6
6
  */
7
- export { QuadTree, createFloorPlanQuadTree, } from './QuadTree';
8
- export { calculateVisibleBounds, isInViewport, filterVisibleItems, queryVisibleFromQuadTree, shouldUseVirtualRendering, calculateRenderStats, createQuadTreeUpdater, } from './ViewportCulling';
9
- //# sourceMappingURL=index.js.map
7
+ export { QuadTree, createFloorPlanQuadTree } from './QuadTree.js';
8
+ export { calculateVisibleBounds, isInViewport, filterVisibleItems, queryVisibleFromQuadTree, shouldUseVirtualRendering, calculateRenderStats, createQuadTreeUpdater, } from './ViewportCulling.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/spatial-core",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Unified spatial/floor-plan/CAD core logic for Nice2Dev UI components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",