@pascal-app/core 1.0.0 → 1.0.1

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 (320) hide show
  1. package/dist/capture/index.d.ts +2 -2
  2. package/dist/capture/index.js +2 -2
  3. package/dist/capture/schema.d.ts.map +1 -1
  4. package/dist/capture/schema.js +2 -0
  5. package/dist/capture/source.d.ts +1 -1
  6. package/dist/capture/source.js +1 -1
  7. package/dist/events/bus.d.ts +6 -3
  8. package/dist/events/bus.d.ts.map +1 -1
  9. package/dist/hooks/spatial-grid/floor-placed-elevation.d.ts +4 -4
  10. package/dist/hooks/spatial-grid/floor-placed-elevation.d.ts.map +1 -1
  11. package/dist/hooks/spatial-grid/floor-placed-elevation.js +7 -12
  12. package/dist/hooks/spatial-grid/floor-placed-footprints.d.ts +4 -0
  13. package/dist/hooks/spatial-grid/floor-placed-footprints.d.ts.map +1 -0
  14. package/dist/hooks/spatial-grid/floor-placed-footprints.js +7 -0
  15. package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts +5 -8
  16. package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts.map +1 -1
  17. package/dist/hooks/spatial-grid/spatial-grid-manager.js +23 -106
  18. package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts +221 -76
  19. package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts.map +1 -1
  20. package/dist/hooks/spatial-grid/spatial-grid-sync.js +77 -13
  21. package/dist/hooks/spatial-grid/support-host-patch.d.ts +1 -1
  22. package/dist/hooks/spatial-grid/support-host-patch.js +6 -6
  23. package/dist/hooks/spatial-grid/use-spatial-query.d.ts +1 -1
  24. package/dist/hooks/spatial-grid/use-spatial-query.js +1 -1
  25. package/dist/index.d.ts +74 -72
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +71 -69
  28. package/dist/lib/door-operation.d.ts +1 -1
  29. package/dist/lib/item-polygon-overlap.d.ts +6 -0
  30. package/dist/lib/item-polygon-overlap.d.ts.map +1 -0
  31. package/dist/lib/item-polygon-overlap.js +67 -0
  32. package/dist/lib/level-name.d.ts +1 -1
  33. package/dist/lib/measurement-geometry.d.ts +4 -4
  34. package/dist/lib/plan-footprint.d.ts +41 -0
  35. package/dist/lib/plan-footprint.d.ts.map +1 -0
  36. package/dist/lib/plan-footprint.js +58 -0
  37. package/dist/lib/room-topology-index.d.ts +1 -1
  38. package/dist/lib/room-topology-index.js +1 -1
  39. package/dist/lib/selection-proxy.d.ts +1 -1
  40. package/dist/lib/slab-polygon.d.ts +2 -2
  41. package/dist/lib/slab-polygon.js +2 -2
  42. package/dist/lib/space-detection.d.ts +1 -1
  43. package/dist/lib/space-detection.d.ts.map +1 -1
  44. package/dist/lib/space-detection.js +16 -11
  45. package/dist/lib/terrain-brush.d.ts +1 -1
  46. package/dist/lib/terrain-brush.js +1 -1
  47. package/dist/lib/terrain-codec.d.ts +2 -2
  48. package/dist/lib/terrain-codec.js +1 -1
  49. package/dist/lib/terrain-raycast.d.ts +1 -1
  50. package/dist/lib/terrain-raycast.js +1 -1
  51. package/dist/lib/terrain-source.d.ts +3 -3
  52. package/dist/lib/terrain-source.js +3 -3
  53. package/dist/lib/terrain-support.d.ts +1 -1
  54. package/dist/lib/terrain-support.js +3 -3
  55. package/dist/lib/unit-containment.d.ts +19 -0
  56. package/dist/lib/unit-containment.d.ts.map +1 -0
  57. package/dist/lib/unit-containment.js +158 -0
  58. package/dist/lib/unit-report.d.ts +19 -0
  59. package/dist/lib/unit-report.d.ts.map +1 -0
  60. package/dist/lib/unit-report.js +36 -0
  61. package/dist/lib/wall-distance.d.ts +2 -2
  62. package/dist/lib/wall-distance.js +1 -1
  63. package/dist/lib/zone-quantities.d.ts +1 -1
  64. package/dist/lib/zone-quantities.js +7 -7
  65. package/dist/material-library.d.ts +1 -1
  66. package/dist/material-library.js +1 -1
  67. package/dist/procedural-items/fixtures.d.ts +261 -0
  68. package/dist/procedural-items/fixtures.d.ts.map +1 -0
  69. package/dist/procedural-items/fixtures.js +349 -0
  70. package/dist/procedural-items/index.d.ts +10 -0
  71. package/dist/procedural-items/index.d.ts.map +1 -0
  72. package/dist/procedural-items/index.js +9 -0
  73. package/dist/procedural-items/integration.d.ts +92 -0
  74. package/dist/procedural-items/integration.d.ts.map +1 -0
  75. package/dist/procedural-items/integration.js +19 -0
  76. package/dist/procedural-items/library-colors.d.ts +56 -0
  77. package/dist/procedural-items/library-colors.d.ts.map +1 -0
  78. package/dist/procedural-items/library-colors.js +84 -0
  79. package/dist/procedural-items/materials.d.ts +5 -0
  80. package/dist/procedural-items/materials.d.ts.map +1 -0
  81. package/dist/procedural-items/materials.js +47 -0
  82. package/dist/procedural-items/node.d.ts +280 -0
  83. package/dist/procedural-items/node.d.ts.map +1 -0
  84. package/dist/procedural-items/node.js +71 -0
  85. package/dist/procedural-items/placement.d.ts +7 -0
  86. package/dist/procedural-items/placement.d.ts.map +1 -0
  87. package/dist/procedural-items/placement.js +48 -0
  88. package/dist/procedural-items/query.d.ts +50 -0
  89. package/dist/procedural-items/query.d.ts.map +1 -0
  90. package/dist/procedural-items/query.js +298 -0
  91. package/dist/procedural-items/recipe.d.ts +144 -0
  92. package/dist/procedural-items/recipe.d.ts.map +1 -0
  93. package/dist/procedural-items/recipe.js +372 -0
  94. package/dist/procedural-items/spatial.d.ts +19 -0
  95. package/dist/procedural-items/spatial.d.ts.map +1 -0
  96. package/dist/procedural-items/spatial.js +39 -0
  97. package/dist/registry/__bench__/relations-resolver.bench.js +2 -2
  98. package/dist/registry/handles.d.ts +12 -4
  99. package/dist/registry/handles.d.ts.map +1 -1
  100. package/dist/registry/index.d.ts +6 -6
  101. package/dist/registry/index.js +4 -4
  102. package/dist/registry/registry.d.ts +1 -1
  103. package/dist/registry/relations-resolver.d.ts +2 -2
  104. package/dist/registry/relations-resolver.js +1 -1
  105. package/dist/registry/scene-api.d.ts +2 -2
  106. package/dist/registry/scene-api.js +2 -2
  107. package/dist/registry/subtree.d.ts +1 -1
  108. package/dist/registry/subtree.js +2 -2
  109. package/dist/registry/types.d.ts +21 -9
  110. package/dist/registry/types.d.ts.map +1 -1
  111. package/dist/registry/use-registry-version.js +1 -1
  112. package/dist/registry/validate-relations.d.ts +4 -0
  113. package/dist/registry/validate-relations.d.ts.map +1 -0
  114. package/dist/registry/validate-relations.js +22 -0
  115. package/dist/schema/__bench__/node-parsers.bench.js +3 -3
  116. package/dist/schema/__fixtures__/node-fixtures.d.ts +1 -1
  117. package/dist/schema/__fixtures__/node-fixtures.d.ts.map +1 -1
  118. package/dist/schema/__fixtures__/node-fixtures.js +4 -2
  119. package/dist/schema/base.js +1 -1
  120. package/dist/schema/collections.d.ts +1 -1
  121. package/dist/schema/collections.js +1 -1
  122. package/dist/schema/compiled-node-parsers.d.ts +1 -1
  123. package/dist/schema/compiled-node-parsers.js +1 -1
  124. package/dist/schema/index.d.ts +73 -70
  125. package/dist/schema/index.d.ts.map +1 -1
  126. package/dist/schema/index.js +64 -61
  127. package/dist/schema/material.d.ts +1 -1
  128. package/dist/schema/material.js +1 -1
  129. package/dist/schema/nodes/automatic-downspout.d.ts +4 -4
  130. package/dist/schema/nodes/automatic-downspout.js +5 -5
  131. package/dist/schema/nodes/block.d.ts +1 -1
  132. package/dist/schema/nodes/block.d.ts.map +1 -1
  133. package/dist/schema/nodes/block.js +3 -4
  134. package/dist/schema/nodes/box-vent.js +2 -2
  135. package/dist/schema/nodes/building.d.ts +1 -1
  136. package/dist/schema/nodes/building.d.ts.map +1 -1
  137. package/dist/schema/nodes/building.js +8 -5
  138. package/dist/schema/nodes/cabinet.d.ts +2 -2
  139. package/dist/schema/nodes/cabinet.js +4 -4
  140. package/dist/schema/nodes/ceiling.d.ts +1 -1
  141. package/dist/schema/nodes/ceiling.js +5 -5
  142. package/dist/schema/nodes/chimney.js +2 -2
  143. package/dist/schema/nodes/column.d.ts +1 -0
  144. package/dist/schema/nodes/column.d.ts.map +1 -1
  145. package/dist/schema/nodes/column.js +3 -2
  146. package/dist/schema/nodes/construction-dimension.d.ts +3 -3
  147. package/dist/schema/nodes/construction-dimension.js +2 -2
  148. package/dist/schema/nodes/cupola.d.ts +1 -1
  149. package/dist/schema/nodes/cupola.js +2 -2
  150. package/dist/schema/nodes/door.js +2 -2
  151. package/dist/schema/nodes/dormer.d.ts +3 -3
  152. package/dist/schema/nodes/dormer.js +4 -4
  153. package/dist/schema/nodes/downspout.js +2 -2
  154. package/dist/schema/nodes/duct-fitting.js +1 -1
  155. package/dist/schema/nodes/duct-segment.js +2 -2
  156. package/dist/schema/nodes/duct-terminal.js +1 -1
  157. package/dist/schema/nodes/elevator.js +2 -2
  158. package/dist/schema/nodes/eyebrow-vent.js +2 -2
  159. package/dist/schema/nodes/fence.js +2 -2
  160. package/dist/schema/nodes/guide.js +2 -2
  161. package/dist/schema/nodes/gutter.d.ts +1 -1
  162. package/dist/schema/nodes/gutter.js +4 -4
  163. package/dist/schema/nodes/hvac-equipment.js +1 -1
  164. package/dist/schema/nodes/imported-mesh.d.ts +40 -0
  165. package/dist/schema/nodes/imported-mesh.d.ts.map +1 -0
  166. package/dist/schema/nodes/imported-mesh.js +27 -0
  167. package/dist/schema/nodes/item.d.ts +3 -3
  168. package/dist/schema/nodes/item.js +3 -3
  169. package/dist/schema/nodes/lean-to-extension.js +4 -4
  170. package/dist/schema/nodes/level.d.ts +1 -1
  171. package/dist/schema/nodes/level.d.ts.map +1 -1
  172. package/dist/schema/nodes/level.js +1 -1
  173. package/dist/schema/nodes/lineset.js +1 -1
  174. package/dist/schema/nodes/liquid-line.js +1 -1
  175. package/dist/schema/nodes/measurement.js +2 -2
  176. package/dist/schema/nodes/pipe-fitting.d.ts +1 -1
  177. package/dist/schema/nodes/pipe-fitting.js +1 -1
  178. package/dist/schema/nodes/pipe-segment.d.ts +1 -1
  179. package/dist/schema/nodes/pipe-segment.js +2 -2
  180. package/dist/schema/nodes/pipe-trap.d.ts +1 -1
  181. package/dist/schema/nodes/pipe-trap.js +1 -1
  182. package/dist/schema/nodes/ridge-vent.d.ts +1 -1
  183. package/dist/schema/nodes/ridge-vent.js +3 -3
  184. package/dist/schema/nodes/roof-segment-shape.d.ts +1 -1
  185. package/dist/schema/nodes/roof-segment-shape.js +1 -1
  186. package/dist/schema/nodes/roof-segment-walls.d.ts +1 -1
  187. package/dist/schema/nodes/roof-segment-walls.js +1 -1
  188. package/dist/schema/nodes/roof-segment.d.ts +2 -2
  189. package/dist/schema/nodes/roof-segment.js +2 -2
  190. package/dist/schema/nodes/roof.d.ts +1 -1
  191. package/dist/schema/nodes/roof.js +3 -3
  192. package/dist/schema/nodes/scan.js +3 -3
  193. package/dist/schema/nodes/shelf.d.ts +1 -1
  194. package/dist/schema/nodes/shelf.d.ts.map +1 -1
  195. package/dist/schema/nodes/shelf.js +3 -4
  196. package/dist/schema/nodes/site.js +2 -2
  197. package/dist/schema/nodes/skylight.d.ts +4 -4
  198. package/dist/schema/nodes/skylight.js +2 -2
  199. package/dist/schema/nodes/slab.js +3 -3
  200. package/dist/schema/nodes/solar-panel.js +3 -3
  201. package/dist/schema/nodes/spawn.js +1 -1
  202. package/dist/schema/nodes/stair-segment.js +2 -2
  203. package/dist/schema/nodes/stair.d.ts +1 -1
  204. package/dist/schema/nodes/stair.js +3 -3
  205. package/dist/schema/nodes/structural-grid.js +1 -1
  206. package/dist/schema/nodes/turbine-vent.d.ts +1 -1
  207. package/dist/schema/nodes/turbine-vent.js +2 -2
  208. package/dist/schema/nodes/unit.d.ts +33 -0
  209. package/dist/schema/nodes/unit.d.ts.map +1 -0
  210. package/dist/schema/nodes/unit.js +13 -0
  211. package/dist/schema/nodes/wall.d.ts +2 -2
  212. package/dist/schema/nodes/wall.d.ts.map +1 -1
  213. package/dist/schema/nodes/wall.js +7 -6
  214. package/dist/schema/nodes/window.js +2 -2
  215. package/dist/schema/nodes/zone.js +1 -1
  216. package/dist/schema/scene-material.js +2 -2
  217. package/dist/schema/types.d.ts +341 -19
  218. package/dist/schema/types.d.ts.map +1 -1
  219. package/dist/schema/types.js +56 -49
  220. package/dist/services/alignment-anchors.d.ts +6 -11
  221. package/dist/services/alignment-anchors.d.ts.map +1 -1
  222. package/dist/services/alignment-anchors.js +7 -34
  223. package/dist/services/drag-session.d.ts +4 -4
  224. package/dist/services/drag-session.js +1 -1
  225. package/dist/services/hosting.d.ts +2 -8
  226. package/dist/services/hosting.d.ts.map +1 -1
  227. package/dist/services/hosting.js +2 -12
  228. package/dist/services/index.d.ts +16 -13
  229. package/dist/services/index.d.ts.map +1 -1
  230. package/dist/services/index.js +16 -13
  231. package/dist/services/level-height.d.ts +2 -2
  232. package/dist/services/level-height.js +3 -3
  233. package/dist/services/movement.d.ts +3 -3
  234. package/dist/services/movement.js +2 -2
  235. package/dist/services/port-connectivity.d.ts +1 -1
  236. package/dist/services/port-connectivity.js +1 -1
  237. package/dist/services/riser-diagram.d.ts +1 -1
  238. package/dist/services/shelf-board.d.ts +5 -0
  239. package/dist/services/shelf-board.d.ts.map +1 -0
  240. package/dist/services/shelf-board.js +15 -0
  241. package/dist/services/storey.d.ts +2 -2
  242. package/dist/services/storey.js +2 -2
  243. package/dist/services/surface-hosting-procedural-parity.fixtures.d.ts +13 -0
  244. package/dist/services/surface-hosting-procedural-parity.fixtures.d.ts.map +1 -0
  245. package/dist/services/surface-hosting-procedural-parity.fixtures.js +4691 -0
  246. package/dist/services/surface-hosting-shelf-parity.fixtures.d.ts +1060 -0
  247. package/dist/services/surface-hosting-shelf-parity.fixtures.d.ts.map +1 -0
  248. package/dist/services/surface-hosting-shelf-parity.fixtures.js +3127 -0
  249. package/dist/services/surface-hosting.d.ts +88 -0
  250. package/dist/services/surface-hosting.d.ts.map +1 -0
  251. package/dist/services/surface-hosting.js +268 -0
  252. package/dist/services/surface-region.d.ts +8 -0
  253. package/dist/services/surface-region.d.ts.map +1 -0
  254. package/dist/services/surface-region.js +44 -0
  255. package/dist/services/system-graph.d.ts +2 -2
  256. package/dist/services/system-graph.js +2 -2
  257. package/dist/services/validate-dwv.d.ts +1 -1
  258. package/dist/services/validate-dwv.js +1 -1
  259. package/dist/store/actions/node-actions.d.ts +2 -2
  260. package/dist/store/actions/node-actions.d.ts.map +1 -1
  261. package/dist/store/actions/node-actions.js +48 -9
  262. package/dist/store/history-control.d.ts +3 -3
  263. package/dist/store/history-invalidation.d.ts +1 -1
  264. package/dist/store/history-invalidation.js +1 -1
  265. package/dist/store/use-interactive.d.ts +2 -2
  266. package/dist/store/use-live-terrain.d.ts +1 -1
  267. package/dist/store/use-scene.d.ts +4 -4
  268. package/dist/store/use-scene.d.ts.map +1 -1
  269. package/dist/store/use-scene.js +37 -31
  270. package/dist/systems/elevator/elevator-dispatch.d.ts +2 -2
  271. package/dist/systems/elevator/elevator-dispatch.js +1 -1
  272. package/dist/systems/elevator/elevator-geometry.d.ts +1 -1
  273. package/dist/systems/elevator/elevator-opening-sync.d.ts +1 -1
  274. package/dist/systems/elevator/elevator-opening-sync.js +2 -2
  275. package/dist/systems/elevator/elevator-opening-system.js +3 -3
  276. package/dist/systems/elevator/elevator-runtime.d.ts +3 -3
  277. package/dist/systems/elevator/elevator-runtime.js +3 -3
  278. package/dist/systems/elevator/elevator-service.d.ts +1 -1
  279. package/dist/systems/elevator/elevator-service.js +1 -1
  280. package/dist/systems/fence/fence-centerline.d.ts +2 -2
  281. package/dist/systems/fence/fence-centerline.js +2 -2
  282. package/dist/systems/fence/fence-spline.d.ts +2 -2
  283. package/dist/systems/roof/roof-elevation-system.js +3 -3
  284. package/dist/systems/roof/roof-elevation.d.ts +2 -2
  285. package/dist/systems/roof/roof-elevation.js +6 -6
  286. package/dist/systems/roof/roof-footprint.d.ts +1 -1
  287. package/dist/systems/roof/roof-footprint.js +3 -3
  288. package/dist/systems/slab/slab-placement.d.ts +1 -1
  289. package/dist/systems/slab/slab-support.d.ts +1 -1
  290. package/dist/systems/slab/slab-support.js +4 -4
  291. package/dist/systems/stair/stair-flight.d.ts +2 -2
  292. package/dist/systems/stair/stair-flight.js +2 -2
  293. package/dist/systems/stair/stair-footprint.d.ts +1 -1
  294. package/dist/systems/stair/stair-opening-preview.d.ts +206 -79
  295. package/dist/systems/stair/stair-opening-preview.d.ts.map +1 -1
  296. package/dist/systems/stair/stair-opening-preview.js +2 -2
  297. package/dist/systems/stair/stair-opening-sync.d.ts +1 -1
  298. package/dist/systems/stair/stair-opening-sync.js +6 -6
  299. package/dist/systems/stair/stair-opening-system.js +8 -8
  300. package/dist/systems/stair/stair-rise.d.ts +1 -1
  301. package/dist/systems/stair/stair-rise.js +3 -3
  302. package/dist/systems/wall/wall-curve.d.ts +2 -2
  303. package/dist/systems/wall/wall-footprint.d.ts +3 -3
  304. package/dist/systems/wall/wall-footprint.js +3 -3
  305. package/dist/systems/wall/wall-mitering.d.ts +1 -1
  306. package/dist/systems/wall/wall-mitering.js +1 -1
  307. package/dist/systems/wall/wall-move.d.ts +1 -1
  308. package/dist/systems/wall/wall-top.d.ts +1 -1
  309. package/dist/systems/wall/wall-topology.d.ts +2 -2
  310. package/dist/systems/wall/wall-topology.js +4 -4
  311. package/dist/utils/clone-scene-graph.d.ts +3 -3
  312. package/dist/utils/clone-scene-graph.d.ts.map +1 -1
  313. package/dist/utils/clone-scene-graph.js +9 -3
  314. package/dist/utils/scene-migrations.d.ts +3 -3
  315. package/dist/utils/scene-migrations.js +3 -3
  316. package/dist/utils/vertical-scene-migration.js +5 -5
  317. package/dist/validation/validate-build-json.d.ts +5 -2
  318. package/dist/validation/validate-build-json.d.ts.map +1 -1
  319. package/dist/validation/validate-build-json.js +45 -4
  320. package/package.json +14 -3
@@ -1 +1 @@
1
- {"version":3,"file":"use-scene.d.ts","sourceRoot":"","sources":["../../src/store/use-scene.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,EAA6B,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAA;AAItF,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA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MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,eAAe,CAAA;IACnB,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,eAAe,EAAE,kBAAkB,EAAE,CAAA;IACrC,WAAW,EAAE,cAAc,EAAE,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG;IAC7C,WAAW,EAAE,wBAAwB,EAAE,CAAA;IACvC,WAAW,EAAE,wBAAwB,EAAE,CAAA;CACxC,CAAA;AAkRD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CA0E9E;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAM5D;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,OAAO,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;CACpD,CAAA;AAED,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAyBT;AAMD,wBAAgB,iBAAiB,SAWhC"}
@@ -1,37 +1,37 @@
1
1
  'use client';
2
2
  import { temporal } from 'zundo';
3
3
  import { create } from 'zustand';
4
- import { parseMaterialRef, toSceneMaterialRef } from '../material-library';
5
- import { getNodePluginId, isNodeKindEnabled, nodeRegistry } from '../registry/registry';
6
- import { BuildingNode } from '../schema';
7
- import { generateCollectionId } from '../schema/collections';
8
- import { compiledNodeSchema } from '../schema/compiled-node-parsers';
9
- import { DoorNode as DoorNodeSchema } from '../schema/nodes/door';
10
- import { createDormerDefaultWindow, DormerNode as DormerNodeSchema, getDormerDefaultWindowFace, } from '../schema/nodes/dormer';
11
- import { ElevatorNode as ElevatorNodeSchema } from '../schema/nodes/elevator';
12
- import { LevelNode, normalizeLevelBaseElevation } from '../schema/nodes/level';
13
- import { getPitchFromActiveRoofHeight, } from '../schema/nodes/roof-segment';
14
- import { segmentPointToRoofWallFace } from '../schema/nodes/roof-segment-walls';
15
- import { ShelfNode as ShelfNodeSchema } from '../schema/nodes/shelf';
16
- import { SiteNode } from '../schema/nodes/site';
17
- import { getEffectiveStairSurfaceMaterial, StairNode as StairNodeSchema, } from '../schema/nodes/stair';
18
- import { StairSegmentNode as StairSegmentNodeSchema } from '../schema/nodes/stair-segment';
19
- import { getEffectiveWallSurfaceMaterial } from '../schema/nodes/wall';
20
- import { WindowNode as WindowNodeSchema } from '../schema/nodes/window';
21
- import { generateSceneMaterialId, SceneMaterial, } from '../schema/scene-material';
22
- import { AnyNode as AnyNodeSchema } from '../schema/types';
23
- import { syncAutoElevatorOpenings } from '../systems/elevator/elevator-opening-sync';
24
- import { syncAutoStairOpenings } from '../systems/stair/stair-opening-sync';
25
- import { syncStairRises } from '../systems/stair/stair-rise';
26
- import { healSceneNodes } from '../utils/heal-scene-graph';
27
- import { removeRetiredDrawingSheetNodes } from '../utils/retired-scene-nodes';
28
- import { migrateVerticalSceneNodes } from '../utils/vertical-scene-migration';
29
- import * as nodeActions from './actions/node-actions';
30
- import { areSceneSnapshotsEqual, getSceneHistoryPauseDepth, notifySceneCommit, pauseSceneHistory, resetSceneHistoryPauseDepth, resumeSceneHistory, runWithSceneCommitNodeIds, } from './history-control';
31
- import { getHistoryDirtyNodeIds } from './history-invalidation';
32
- import { invalidatePendingHydration, isHydrationNormalization, queueSceneNormalization, runSceneHydration, } from './scene-hydration';
33
- import useLiveNodeOverrides from './use-live-node-overrides';
34
- import useLiveTransforms from './use-live-transforms';
4
+ import { parseMaterialRef, toSceneMaterialRef } from '../material-library.js';
5
+ import { getNodePluginId, isNodeKindEnabled, nodeRegistry } from '../registry/registry.js';
6
+ import { BuildingNode } from '../schema/index.js';
7
+ import { generateCollectionId } from '../schema/collections.js';
8
+ import { compiledNodeSchema } from '../schema/compiled-node-parsers.js';
9
+ import { DoorNode as DoorNodeSchema } from '../schema/nodes/door.js';
10
+ import { createDormerDefaultWindow, DormerNode as DormerNodeSchema, getDormerDefaultWindowFace, } from '../schema/nodes/dormer.js';
11
+ import { ElevatorNode as ElevatorNodeSchema } from '../schema/nodes/elevator.js';
12
+ import { LevelNode, normalizeLevelBaseElevation } from '../schema/nodes/level.js';
13
+ import { getPitchFromActiveRoofHeight, } from '../schema/nodes/roof-segment.js';
14
+ import { segmentPointToRoofWallFace } from '../schema/nodes/roof-segment-walls.js';
15
+ import { ShelfNode as ShelfNodeSchema } from '../schema/nodes/shelf.js';
16
+ import { SiteNode } from '../schema/nodes/site.js';
17
+ import { getEffectiveStairSurfaceMaterial, StairNode as StairNodeSchema, } from '../schema/nodes/stair.js';
18
+ import { StairSegmentNode as StairSegmentNodeSchema } from '../schema/nodes/stair-segment.js';
19
+ import { getEffectiveWallSurfaceMaterial } from '../schema/nodes/wall.js';
20
+ import { WindowNode as WindowNodeSchema } from '../schema/nodes/window.js';
21
+ import { generateSceneMaterialId, SceneMaterial, } from '../schema/scene-material.js';
22
+ import { AnyNode as AnyNodeSchema } from '../schema/types.js';
23
+ import { syncAutoElevatorOpenings } from '../systems/elevator/elevator-opening-sync.js';
24
+ import { syncAutoStairOpenings } from '../systems/stair/stair-opening-sync.js';
25
+ import { syncStairRises } from '../systems/stair/stair-rise.js';
26
+ import { healSceneNodes } from '../utils/heal-scene-graph.js';
27
+ import { removeRetiredDrawingSheetNodes } from '../utils/retired-scene-nodes.js';
28
+ import { migrateVerticalSceneNodes } from '../utils/vertical-scene-migration.js';
29
+ import * as nodeActions from './actions/node-actions.js';
30
+ import { areSceneSnapshotsEqual, getSceneHistoryPauseDepth, notifySceneCommit, pauseSceneHistory, resetSceneHistoryPauseDepth, resumeSceneHistory, runWithSceneCommitNodeIds, } from './history-control.js';
31
+ import { getHistoryDirtyNodeIds } from './history-invalidation.js';
32
+ import { invalidatePendingHydration, isHydrationNormalization, queueSceneNormalization, runSceneHydration, } from './scene-hydration.js';
33
+ import useLiveNodeOverrides from './use-live-node-overrides.js';
34
+ import useLiveTransforms from './use-live-transforms.js';
35
35
  function getFiniteNumber(value, fallback) {
36
36
  return typeof value === 'number' && Number.isFinite(value) ? value : fallback;
37
37
  }
@@ -874,6 +874,12 @@ function migrateNodes(nodes) {
874
874
  children: validChildren,
875
875
  };
876
876
  }
877
+ // These kinds are not all schema-parsed on load, so defaults must also
878
+ // reach saved hosts that predate their children field.
879
+ if (['shelf', 'cabinet', 'cabinet-module', 'block', 'item', 'column'].includes(node.type) &&
880
+ patchedNodes[id].children === undefined) {
881
+ patchedNodes[id] = { ...patchedNodes[id], children: [] };
882
+ }
877
883
  }
878
884
  // Pass 2: elevator migration.
879
885
  // migrateElevatorParent mutates the parent level's children array (removes
@@ -1,5 +1,5 @@
1
- import type { AnyNode, AnyNodeId } from '../../schema';
2
- import type { ElevatorInteractiveState } from '../../store/use-interactive';
1
+ import type { AnyNode, AnyNodeId } from '../../schema/index.js';
2
+ import type { ElevatorInteractiveState } from '../../store/use-interactive.js';
3
3
  type ElevatorRuntimeMap = Record<AnyNodeId, ElevatorInteractiveState>;
4
4
  type ResolveElevatorDispatchTargetArgs = {
5
5
  elevators: ElevatorRuntimeMap;
@@ -1,4 +1,4 @@
1
- import { resolveElevatorServiceLevels } from './elevator-service';
1
+ import { resolveElevatorServiceLevels } from './elevator-service.js';
2
2
  function getRuntimeLevelId(runtime, elevator) {
3
3
  return runtime?.currentLevelId ?? elevator.defaultLevelId ?? elevator.fromLevelId ?? null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import type { ElevatorDoorPanelStyle, ElevatorDoorStyle, ElevatorNode, ElevatorShaftStyle } from '../../schema';
1
+ import type { ElevatorDoorPanelStyle, ElevatorDoorStyle, ElevatorNode, ElevatorShaftStyle } from '../../schema/index.js';
2
2
  export type ElevatorDoorSide = 'left' | 'right';
3
3
  export declare function getResolvedElevatorDoorStyle(doorStyle: ElevatorNode['doorStyle'] | undefined): ElevatorDoorStyle;
4
4
  export declare function getResolvedElevatorDoorPanelStyle(doorPanelStyle: ElevatorNode['doorPanelStyle'] | undefined): ElevatorDoorPanelStyle;
@@ -1,4 +1,4 @@
1
- import type { AnyNode, AnyNodeId, CeilingNode, SlabNode } from '../../schema';
1
+ import type { AnyNode, AnyNodeId, CeilingNode, SlabNode } from '../../schema/index.js';
2
2
  export declare function syncAutoElevatorOpenings(nodes: Record<string, AnyNode>): {
3
3
  id: AnyNodeId;
4
4
  data: Partial<SlabNode | CeilingNode>;
@@ -1,5 +1,5 @@
1
- import { resolveLevelId } from '../../hooks/spatial-grid/spatial-grid-sync';
2
- import { resolveElevatorServiceLevels } from './elevator-service';
1
+ import { resolveLevelId } from '../../hooks/spatial-grid/spatial-grid-sync.js';
2
+ import { resolveElevatorServiceLevels } from './elevator-service.js';
3
3
  const ELEVATOR_OPENING_PADDING = 0.08;
4
4
  const DEFAULT_ELEVATOR_SHAFT_WALL_THICKNESS = 0.09;
5
5
  function pointsEqual(a, b, tolerance = 1e-5) {
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import { useEffect } from 'react';
3
- import { pauseSceneHistory, resumeSceneHistory } from '../../store/history-control';
4
- import useScene from '../../store/use-scene';
5
- import { syncAutoElevatorOpenings } from './elevator-opening-sync';
3
+ import { pauseSceneHistory, resumeSceneHistory } from '../../store/history-control.js';
4
+ import useScene from '../../store/use-scene.js';
5
+ import { syncAutoElevatorOpenings } from './elevator-opening-sync.js';
6
6
  function isOpeningRelevantNode(node) {
7
7
  return (node?.type === 'building' ||
8
8
  node?.type === 'ceiling' ||
@@ -1,6 +1,6 @@
1
- import type { AnyNodeId, ElevatorNode } from '../../schema';
2
- import { type ElevatorInteractiveState } from '../../store/use-interactive';
3
- import { type ElevatorLevelEntry } from './elevator-service';
1
+ import type { AnyNodeId, ElevatorNode } from '../../schema/index.js';
2
+ import { type ElevatorInteractiveState } from '../../store/use-interactive.js';
3
+ import { type ElevatorLevelEntry } from './elevator-service.js';
4
4
  export declare function createElevatorInteractiveState(levelId: AnyNodeId, carY: number): ElevatorInteractiveState;
5
5
  export declare function queueElevatorRequest(state: ElevatorInteractiveState, levelId: AnyNodeId): ElevatorInteractiveState;
6
6
  export declare function openElevatorDoorState(state: ElevatorInteractiveState): ElevatorInteractiveState;
@@ -1,6 +1,6 @@
1
- import { useInteractive } from '../../store/use-interactive';
2
- import useScene from '../../store/use-scene';
3
- import { resolveElevatorLevels } from './elevator-service';
1
+ import { useInteractive } from '../../store/use-interactive.js';
2
+ import useScene from '../../store/use-scene.js';
3
+ import { resolveElevatorLevels } from './elevator-service.js';
4
4
  const EPSILON = 0.001;
5
5
  function moveToward(current, target, maxDelta) {
6
6
  const delta = target - current;
@@ -1,4 +1,4 @@
1
- import type { AnyNode, ElevatorNode, LevelNode } from '../../schema';
1
+ import type { AnyNode, ElevatorNode, LevelNode } from '../../schema/index.js';
2
2
  export type ElevatorLevelEntry = {
3
3
  id: LevelNode['id'];
4
4
  label: string;
@@ -1,4 +1,4 @@
1
- import { getLevelElevations } from '../../services/storey';
1
+ import { getLevelElevations } from '../../services/storey.js';
2
2
  function getBuildingLevels(elevator, nodes) {
3
3
  const building = elevator.parentId && nodes[elevator.parentId]?.type === 'building'
4
4
  ? nodes[elevator.parentId]
@@ -1,5 +1,5 @@
1
- import type { FenceNode } from '../../schema';
2
- import type { Point2D } from '../wall/wall-mitering';
1
+ import type { FenceNode } from '../../schema/index.js';
2
+ import type { Point2D } from '../wall/wall-mitering.js';
3
3
  type CurveFrame = {
4
4
  point: Point2D;
5
5
  tangent: Point2D;
@@ -1,5 +1,5 @@
1
- import { getWallCurveFrameAt, getWallCurveLength, sampleWallCenterline } from '../wall/wall-curve';
2
- import { getFenceSplineFrameAt, getFenceSplineLength, isSplineFence, sampleFenceSpline, } from './fence-spline';
1
+ import { getWallCurveFrameAt, getWallCurveLength, sampleWallCenterline } from '../wall/wall-curve.js';
2
+ import { getFenceSplineFrameAt, getFenceSplineLength, isSplineFence, sampleFenceSpline, } from './fence-spline.js';
3
3
  /**
4
4
  * Unified fence centerline accessors. A fence is either:
5
5
  * - a spline fence (`path` of >= 2 control points) → smooth Catmull-Rom, or
@@ -1,5 +1,5 @@
1
- import type { FenceNode } from '../../schema';
2
- import type { Point2D } from '../wall/wall-mitering';
1
+ import type { FenceNode } from '../../schema/index.js';
2
+ import type { Point2D } from '../wall/wall-mitering.js';
3
3
  type FenceSplineLike = Pick<FenceNode, 'path'>;
4
4
  type TangentList = ReadonlyArray<readonly [number, number] | null> | undefined;
5
5
  export declare function isSplineFence(fence: FenceSplineLike): boolean;
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import { useEffect } from 'react';
3
- import { getSceneHistoryPauseDepth, notifySceneCommit, pauseSceneHistory, resumeSceneHistory, } from '../../store/history-control';
4
- import useScene from '../../store/use-scene';
5
- import { resolveRoofElevation } from './roof-elevation';
3
+ import { getSceneHistoryPauseDepth, notifySceneCommit, pauseSceneHistory, resumeSceneHistory, } from '../../store/history-control.js';
4
+ import useScene from '../../store/use-scene.js';
5
+ import { resolveRoofElevation } from './roof-elevation.js';
6
6
  const ROOF_ELEVATION_EPSILON = 1e-4;
7
7
  function sceneSnapshot() {
8
8
  const { nodes, rootNodeIds, collections, materials, installedPlugins } = useScene.getState();
@@ -1,4 +1,4 @@
1
- import type { AnyNode, LevelNode, RoofNode, WallNode } from '../../schema';
2
- export declare function resolveRoofWallTopElevation(targetLevelId: LevelNode['id'], wall: WallNode, nodes: Readonly<Record<string, AnyNode>>, elevations?: Map<string, import("../..").LevelElevation>): number;
1
+ import type { AnyNode, LevelNode, RoofNode, WallNode } from '../../schema/index.js';
2
+ export declare function resolveRoofWallTopElevation(targetLevelId: LevelNode['id'], wall: WallNode, nodes: Readonly<Record<string, AnyNode>>, elevations?: Map<string, import("../../index.js").LevelElevation>): number;
3
3
  export declare function resolveRoofElevation(roof: RoofNode, nodes: Readonly<Record<string, AnyNode>>): number;
4
4
  //# sourceMappingURL=roof-elevation.d.ts.map
@@ -1,9 +1,9 @@
1
- import { getWallBaseElevationForNodes, getWallEffectiveHeightForNodes, } from '../../hooks/spatial-grid/spatial-grid-manager';
2
- import { resolveLevelId } from '../../hooks/spatial-grid/spatial-grid-sync';
3
- import { findLevelBelowId, getLevelElevations } from '../../services/storey';
4
- import { wallOverlapsSlabFootprint } from '../slab/slab-support';
5
- import { getWallArcData } from '../wall/wall-curve';
6
- import { resolveRoomRoofFootprintOnLevel } from './roof-footprint';
1
+ import { getWallBaseElevationForNodes, getWallEffectiveHeightForNodes, } from '../../hooks/spatial-grid/spatial-grid-manager.js';
2
+ import { resolveLevelId } from '../../hooks/spatial-grid/spatial-grid-sync.js';
3
+ import { findLevelBelowId, getLevelElevations } from '../../services/storey.js';
4
+ import { wallOverlapsSlabFootprint } from '../slab/slab-support.js';
5
+ import { getWallArcData } from '../wall/wall-curve.js';
6
+ import { resolveRoomRoofFootprintOnLevel } from './roof-footprint.js';
7
7
  export function resolveRoofWallTopElevation(targetLevelId, wall, nodes, elevations = getLevelElevations(nodes)) {
8
8
  const sourceLevelY = elevations.get(resolveLevelId(wall, nodes))?.baseY ?? 0;
9
9
  const targetLevelY = elevations.get(targetLevelId)?.baseY ?? 0;
@@ -1,4 +1,4 @@
1
- import type { AnyNode, LevelNode, WallNode } from '../../schema';
1
+ import type { AnyNode, LevelNode, WallNode } from '../../schema/index.js';
2
2
  export type RoofFootprintTarget = {
3
3
  id: string;
4
4
  polygon: Array<[number, number]>;
@@ -1,6 +1,6 @@
1
- import { pointInPolygon as pointInPolygon2D } from '../../lib/polygon-relations';
2
- import { detectSpacesForLevel } from '../../lib/space-detection';
3
- import { getLevelBelow } from '../../services/storey';
1
+ import { pointInPolygon as pointInPolygon2D } from '../../lib/polygon-relations.js';
2
+ import { detectSpacesForLevel } from '../../lib/space-detection.js';
3
+ import { getLevelBelow } from '../../services/storey.js';
4
4
  function polygonArea(polygon) {
5
5
  return Math.abs(polygon.reduce((area, point, index) => {
6
6
  const next = polygon[(index + 1) % polygon.length];
@@ -1,4 +1,4 @@
1
- import type { SlabNode } from '../../schema';
1
+ import type { SlabNode } from '../../schema/index.js';
2
2
  /**
3
3
  * Translate a solid slab's authored vertical interval onto a chosen base plane.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { SlabNode, WallNode } from '../../schema';
1
+ import type { SlabNode, WallNode } from '../../schema/index.js';
2
2
  export type SlabElevationClamp = {
3
3
  elevation: number;
4
4
  clamped: boolean;
@@ -1,7 +1,7 @@
1
- import { getRenderableSlabPolygon } from '../../lib/slab-polygon';
2
- import { getWallCurveFrameAt, isCurvedWall } from '../wall/wall-curve';
3
- import { DEFAULT_WALL_THICKNESS } from '../wall/wall-footprint';
4
- import { MIN_WALL_HEIGHT } from '../wall/wall-top';
1
+ import { getRenderableSlabPolygon } from '../../lib/slab-polygon.js';
2
+ import { getWallCurveFrameAt, isCurvedWall } from '../wall/wall-curve.js';
3
+ import { DEFAULT_WALL_THICKNESS } from '../wall/wall-footprint.js';
4
+ import { MIN_WALL_HEIGHT } from '../wall/wall-top.js';
5
5
  /**
6
6
  * Clamp-never-ask upper bound for a slab's elevation. A plane-bound wall
7
7
  * (no stored `height`) keeps its top at the storey plane, so a slab that
@@ -1,5 +1,5 @@
1
- import type { AnyNode, StairNode } from '../../schema';
2
- import { StairSegmentNode } from '../../schema';
1
+ import type { AnyNode, StairNode } from '../../schema/index.js';
2
+ import { StairSegmentNode } from '../../schema/index.js';
3
3
  export type StairFlightOverrides = Partial<Pick<StairSegmentNode, 'width' | 'length' | 'height' | 'stepCount' | 'attachmentSide' | 'fillToFloor' | 'thickness'>>;
4
4
  /**
5
5
  * The single definition of a default straight flight. Anything left out falls
@@ -1,5 +1,5 @@
1
- import { StairSegmentNode } from '../../schema';
2
- import { resolveStairTotalRise } from './stair-rise';
1
+ import { StairSegmentNode } from '../../schema/index.js';
2
+ import { resolveStairTotalRise } from './stair-rise.js';
3
3
  const MIN_STAIR_FLIGHT_RISE = 0.1;
4
4
  const MIN_STAIR_FLIGHT_STEP_COUNT = 2;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import type { AnyNode, StairNode, StairSegmentNode } from '../../schema';
1
+ import type { AnyNode, StairNode, StairSegmentNode } from '../../schema/index.js';
2
2
  /**
3
3
  * Stair footprint geometry shared by the slab-opening sync and the
4
4
  * alignment-anchor adapters. A stair has no single box footprint: straight