@nice2dev/spatial-core 1.0.29 → 1.1.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.
Files changed (41) hide show
  1. package/dist/bim/index.d.ts +0 -1
  2. package/dist/bim/index.js +0 -1
  3. package/dist/cad/index.d.ts +0 -1
  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 +0 -1
  8. package/dist/export/index.js +0 -1
  9. package/dist/floor-plan/index.d.ts +0 -1
  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 +0 -1
  14. package/dist/import/import.worker.js +0 -1
  15. package/dist/import/index.d.ts +0 -1
  16. package/dist/import/index.js +0 -1
  17. package/dist/import/workerImport.d.ts +0 -1
  18. package/dist/import/workerImport.js +0 -1
  19. package/dist/index.d.ts +0 -1
  20. package/dist/index.js +0 -1
  21. package/dist/interior/index.d.ts +0 -1
  22. package/dist/interior/index.js +0 -1
  23. package/dist/measurement/index.d.ts +0 -1
  24. package/dist/measurement/index.js +0 -1
  25. package/dist/objects/index.d.ts +0 -1
  26. package/dist/objects/index.js +0 -1
  27. package/dist/serialization/index.d.ts +0 -1
  28. package/dist/serialization/index.js +0 -1
  29. package/dist/topology/index.d.ts +0 -1
  30. package/dist/topology/index.js +0 -1
  31. package/dist/transitions/index.d.ts +0 -1
  32. package/dist/transitions/index.js +0 -1
  33. package/dist/unified/index.d.ts +0 -1
  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 +0 -1
  38. package/dist/virtualization/ViewportCulling.js +0 -1
  39. package/dist/virtualization/index.d.ts +0 -1
  40. package/dist/virtualization/index.js +0 -1
  41. package/package.json +4 -4
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -25,4 +25,3 @@ export interface ImportWorkerOutput {
25
25
  progress?: number;
26
26
  error?: string;
27
27
  }
28
- //# sourceMappingURL=import.worker.d.ts.map
@@ -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
@@ -108,4 +108,3 @@ export declare function detectFileImportFormat(filename: string, content?: strin
108
108
  */
109
109
  export declare function importFromBrowserFile(file: File, options?: Partial<FileImportOptions>): Promise<FileImportResult>;
110
110
  export { importFileInWorker, importFileAsync, isWorkerSupported, terminateImportWorker, createImportWorker, type WorkerImportOptions, } from './workerImport';
111
- //# sourceMappingURL=index.d.ts.map
@@ -1089,4 +1089,3 @@ function assembleDocument(walls, zones, objects, layersFound, docInfo) {
1089
1089
  WEB WORKER IMPORT (re-exported)
1090
1090
  ================================================================ */
1091
1091
  export { importFileInWorker, importFileAsync, isWorkerSupported, terminateImportWorker, createImportWorker, } from './workerImport';
1092
- //# sourceMappingURL=index.js.map
@@ -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
@@ -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
@@ -26,4 +26,3 @@ export * from './cad/index';
26
26
  export * from './bim/index';
27
27
  export * from './interior/index';
28
28
  export * from './ecad/index';
29
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -83,4 +83,3 @@ export * from './interior/index';
83
83
  // Electrical & Electronics CAD (Schematic, PCB, SPICE, Harness, Panel, SLD)
84
84
  // ═══════════════════════════════════════════════════════════════════════════════
85
85
  export * from './ecad/index';
86
- //# sourceMappingURL=index.js.map
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -6,4 +6,3 @@
6
6
  */
7
7
  export { QuadTree, createFloorPlanQuadTree, type Bounds, type QuadTreeItem, } from './QuadTree';
8
8
  export { calculateVisibleBounds, isInViewport, filterVisibleItems, queryVisibleFromQuadTree, shouldUseVirtualRendering, calculateRenderStats, createQuadTreeUpdater, type ViewportState, type ContainerSize, } from './ViewportCulling';
9
- //# sourceMappingURL=index.d.ts.map
@@ -6,4 +6,3 @@
6
6
  */
7
7
  export { QuadTree, createFloorPlanQuadTree, } from './QuadTree';
8
8
  export { calculateVisibleBounds, isInViewport, filterVisibleItems, queryVisibleFromQuadTree, shouldUseVirtualRendering, calculateRenderStats, createQuadTreeUpdater, } from './ViewportCulling';
9
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/spatial-core",
3
- "version": "1.0.29",
3
+ "version": "1.1.6",
4
4
  "description": "Unified spatial/floor-plan/CAD core logic for Nice2Dev UI components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -55,9 +55,9 @@
55
55
  "author": "NiceToDev",
56
56
  "license": "SEE LICENSE IN LICENSE",
57
57
  "devDependencies": {
58
- "typescript": "^5.3.0",
59
- "vitest": "^1.2.0",
60
- "rimraf": "^5.0.0"
58
+ "typescript": "^5.9.3",
59
+ "vitest": "^4.1.11",
60
+ "rimraf": "^6.1.3"
61
61
  },
62
62
  "peerDependencies": {},
63
63
  "sideEffects": false