@pascal-app/core 1.0.0-beta.5 → 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 (417) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +23 -0
  3. package/dist/capture/index.d.ts +3 -0
  4. package/dist/capture/index.d.ts.map +1 -0
  5. package/dist/capture/index.js +2 -0
  6. package/dist/capture/schema.d.ts +417 -0
  7. package/dist/capture/schema.d.ts.map +1 -0
  8. package/dist/capture/schema.js +350 -0
  9. package/dist/capture/source.d.ts +60 -0
  10. package/dist/capture/source.d.ts.map +1 -0
  11. package/dist/capture/source.js +254 -0
  12. package/dist/events/bus.d.ts +58 -7
  13. package/dist/events/bus.d.ts.map +1 -1
  14. package/dist/events/hidden-wall-pointer-hold.d.ts +28 -0
  15. package/dist/events/hidden-wall-pointer-hold.d.ts.map +1 -0
  16. package/dist/events/hidden-wall-pointer-hold.js +37 -0
  17. package/dist/hooks/spatial-grid/floor-placed-elevation.d.ts +4 -4
  18. package/dist/hooks/spatial-grid/floor-placed-elevation.d.ts.map +1 -1
  19. package/dist/hooks/spatial-grid/floor-placed-elevation.js +7 -12
  20. package/dist/hooks/spatial-grid/floor-placed-footprints.d.ts +4 -0
  21. package/dist/hooks/spatial-grid/floor-placed-footprints.d.ts.map +1 -0
  22. package/dist/hooks/spatial-grid/floor-placed-footprints.js +7 -0
  23. package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts +5 -8
  24. package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts.map +1 -1
  25. package/dist/hooks/spatial-grid/spatial-grid-manager.js +23 -106
  26. package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts +2931 -2
  27. package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts.map +1 -1
  28. package/dist/hooks/spatial-grid/spatial-grid-sync.js +207 -30
  29. package/dist/hooks/spatial-grid/support-host-patch.d.ts +45 -1
  30. package/dist/hooks/spatial-grid/support-host-patch.d.ts.map +1 -1
  31. package/dist/hooks/spatial-grid/support-host-patch.js +174 -9
  32. package/dist/hooks/spatial-grid/use-spatial-query.d.ts +1 -1
  33. package/dist/hooks/spatial-grid/use-spatial-query.js +1 -1
  34. package/dist/index.d.ts +74 -64
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +74 -61
  37. package/dist/lib/asset-storage.d.ts.map +1 -1
  38. package/dist/lib/asset-storage.js +4 -1
  39. package/dist/lib/door-operation.d.ts +1 -1
  40. package/dist/lib/item-polygon-overlap.d.ts +6 -0
  41. package/dist/lib/item-polygon-overlap.d.ts.map +1 -0
  42. package/dist/lib/item-polygon-overlap.js +67 -0
  43. package/dist/lib/level-name.d.ts +1 -1
  44. package/dist/lib/measurement-geometry.d.ts +4 -4
  45. package/dist/lib/plan-footprint.d.ts +41 -0
  46. package/dist/lib/plan-footprint.d.ts.map +1 -0
  47. package/dist/lib/plan-footprint.js +58 -0
  48. package/dist/lib/polygon-union.d.ts +4 -0
  49. package/dist/lib/polygon-union.d.ts.map +1 -0
  50. package/dist/lib/polygon-union.js +306 -0
  51. package/dist/lib/roof-overlap.d.ts +32 -0
  52. package/dist/lib/roof-overlap.d.ts.map +1 -0
  53. package/dist/lib/roof-overlap.js +72 -0
  54. package/dist/lib/room-topology-index.d.ts +1 -1
  55. package/dist/lib/room-topology-index.js +1 -1
  56. package/dist/lib/selection-proxy.d.ts +1 -1
  57. package/dist/lib/slab-polygon.d.ts +36 -3
  58. package/dist/lib/slab-polygon.d.ts.map +1 -1
  59. package/dist/lib/slab-polygon.js +135 -29
  60. package/dist/lib/space-detection.d.ts +12 -1
  61. package/dist/lib/space-detection.d.ts.map +1 -1
  62. package/dist/lib/space-detection.js +58 -25
  63. package/dist/lib/terrain-brush.d.ts +1 -1
  64. package/dist/lib/terrain-brush.js +1 -1
  65. package/dist/lib/terrain-codec.d.ts +2 -2
  66. package/dist/lib/terrain-codec.js +1 -1
  67. package/dist/lib/terrain-raycast.d.ts +1 -1
  68. package/dist/lib/terrain-raycast.js +1 -1
  69. package/dist/lib/terrain-source.d.ts +3 -3
  70. package/dist/lib/terrain-source.js +3 -3
  71. package/dist/lib/terrain-support.d.ts +1 -1
  72. package/dist/lib/terrain-support.js +3 -3
  73. package/dist/lib/unit-containment.d.ts +19 -0
  74. package/dist/lib/unit-containment.d.ts.map +1 -0
  75. package/dist/lib/unit-containment.js +158 -0
  76. package/dist/lib/unit-report.d.ts +19 -0
  77. package/dist/lib/unit-report.d.ts.map +1 -0
  78. package/dist/lib/unit-report.js +36 -0
  79. package/dist/lib/wall-distance.d.ts +2 -2
  80. package/dist/lib/wall-distance.js +1 -1
  81. package/dist/lib/zone-quantities.d.ts +1 -1
  82. package/dist/lib/zone-quantities.js +7 -7
  83. package/dist/material-library.d.ts +1 -1
  84. package/dist/material-library.js +1 -1
  85. package/dist/procedural-items/fixtures.d.ts +261 -0
  86. package/dist/procedural-items/fixtures.d.ts.map +1 -0
  87. package/dist/procedural-items/fixtures.js +349 -0
  88. package/dist/procedural-items/index.d.ts +10 -0
  89. package/dist/procedural-items/index.d.ts.map +1 -0
  90. package/dist/procedural-items/index.js +9 -0
  91. package/dist/procedural-items/integration.d.ts +92 -0
  92. package/dist/procedural-items/integration.d.ts.map +1 -0
  93. package/dist/procedural-items/integration.js +19 -0
  94. package/dist/procedural-items/library-colors.d.ts +56 -0
  95. package/dist/procedural-items/library-colors.d.ts.map +1 -0
  96. package/dist/procedural-items/library-colors.js +84 -0
  97. package/dist/procedural-items/materials.d.ts +5 -0
  98. package/dist/procedural-items/materials.d.ts.map +1 -0
  99. package/dist/procedural-items/materials.js +47 -0
  100. package/dist/procedural-items/node.d.ts +280 -0
  101. package/dist/procedural-items/node.d.ts.map +1 -0
  102. package/dist/procedural-items/node.js +71 -0
  103. package/dist/procedural-items/placement.d.ts +7 -0
  104. package/dist/procedural-items/placement.d.ts.map +1 -0
  105. package/dist/procedural-items/placement.js +48 -0
  106. package/dist/procedural-items/query.d.ts +50 -0
  107. package/dist/procedural-items/query.d.ts.map +1 -0
  108. package/dist/procedural-items/query.js +298 -0
  109. package/dist/procedural-items/recipe.d.ts +144 -0
  110. package/dist/procedural-items/recipe.d.ts.map +1 -0
  111. package/dist/procedural-items/recipe.js +372 -0
  112. package/dist/procedural-items/spatial.d.ts +19 -0
  113. package/dist/procedural-items/spatial.d.ts.map +1 -0
  114. package/dist/procedural-items/spatial.js +39 -0
  115. package/dist/registry/__bench__/relations-resolver.bench.js +2 -2
  116. package/dist/registry/handles.d.ts +36 -7
  117. package/dist/registry/handles.d.ts.map +1 -1
  118. package/dist/registry/index.d.ts +6 -7
  119. package/dist/registry/index.d.ts.map +1 -1
  120. package/dist/registry/index.js +4 -5
  121. package/dist/registry/registry.d.ts +13 -6
  122. package/dist/registry/registry.d.ts.map +1 -1
  123. package/dist/registry/registry.js +37 -4
  124. package/dist/registry/relations-resolver.d.ts +2 -2
  125. package/dist/registry/relations-resolver.js +1 -1
  126. package/dist/registry/scene-api.d.ts +18 -2
  127. package/dist/registry/scene-api.d.ts.map +1 -1
  128. package/dist/registry/scene-api.js +50 -2
  129. package/dist/registry/subtree.d.ts +1 -1
  130. package/dist/registry/subtree.js +2 -2
  131. package/dist/registry/types.d.ts +246 -21
  132. package/dist/registry/types.d.ts.map +1 -1
  133. package/dist/registry/use-registry-version.js +1 -1
  134. package/dist/registry/validate-relations.d.ts +4 -0
  135. package/dist/registry/validate-relations.d.ts.map +1 -0
  136. package/dist/registry/validate-relations.js +22 -0
  137. package/dist/schema/__bench__/node-parsers.bench.d.ts +24 -0
  138. package/dist/schema/__bench__/node-parsers.bench.d.ts.map +1 -0
  139. package/dist/schema/__bench__/node-parsers.bench.js +314 -0
  140. package/dist/schema/__fixtures__/node-fixtures.d.ts +28 -0
  141. package/dist/schema/__fixtures__/node-fixtures.d.ts.map +1 -0
  142. package/dist/schema/__fixtures__/node-fixtures.js +127 -0
  143. package/dist/schema/base.d.ts +1 -1
  144. package/dist/schema/base.d.ts.map +1 -1
  145. package/dist/schema/base.js +9 -2
  146. package/dist/schema/collections.d.ts +1 -1
  147. package/dist/schema/collections.js +1 -1
  148. package/dist/schema/compiled-node-parsers.d.ts +40 -0
  149. package/dist/schema/compiled-node-parsers.d.ts.map +1 -0
  150. package/dist/schema/compiled-node-parsers.js +95 -0
  151. package/dist/schema/index.d.ts +73 -66
  152. package/dist/schema/index.d.ts.map +1 -1
  153. package/dist/schema/index.js +65 -57
  154. package/dist/schema/material.d.ts +1 -0
  155. package/dist/schema/material.d.ts.map +1 -1
  156. package/dist/schema/material.js +2 -1
  157. package/dist/schema/nodes/automatic-downspout.d.ts +17 -0
  158. package/dist/schema/nodes/automatic-downspout.d.ts.map +1 -0
  159. package/dist/schema/nodes/automatic-downspout.js +237 -0
  160. package/dist/schema/nodes/block.d.ts +107 -0
  161. package/dist/schema/nodes/block.d.ts.map +1 -0
  162. package/dist/schema/nodes/block.js +206 -0
  163. package/dist/schema/nodes/box-vent.d.ts +8 -2
  164. package/dist/schema/nodes/box-vent.d.ts.map +1 -1
  165. package/dist/schema/nodes/box-vent.js +4 -2
  166. package/dist/schema/nodes/building.d.ts +2 -2
  167. package/dist/schema/nodes/building.d.ts.map +1 -1
  168. package/dist/schema/nodes/building.js +8 -5
  169. package/dist/schema/nodes/cabinet.d.ts +26 -4
  170. package/dist/schema/nodes/cabinet.d.ts.map +1 -1
  171. package/dist/schema/nodes/cabinet.js +29 -8
  172. package/dist/schema/nodes/ceiling.d.ts +2 -2
  173. package/dist/schema/nodes/ceiling.js +5 -5
  174. package/dist/schema/nodes/chimney.d.ts +2 -2
  175. package/dist/schema/nodes/chimney.js +2 -2
  176. package/dist/schema/nodes/column.d.ts +7 -6
  177. package/dist/schema/nodes/column.d.ts.map +1 -1
  178. package/dist/schema/nodes/column.js +3 -2
  179. package/dist/schema/nodes/construction-dimension.d.ts +1 -1
  180. package/dist/schema/nodes/construction-dimension.js +2 -2
  181. package/dist/schema/nodes/cupola.d.ts +9 -1
  182. package/dist/schema/nodes/cupola.d.ts.map +1 -1
  183. package/dist/schema/nodes/cupola.js +4 -2
  184. package/dist/schema/nodes/door.d.ts +1 -1
  185. package/dist/schema/nodes/door.js +2 -2
  186. package/dist/schema/nodes/dormer.d.ts +45 -2
  187. package/dist/schema/nodes/dormer.d.ts.map +1 -1
  188. package/dist/schema/nodes/dormer.js +133 -9
  189. package/dist/schema/nodes/downspout.d.ts +11 -1
  190. package/dist/schema/nodes/downspout.d.ts.map +1 -1
  191. package/dist/schema/nodes/downspout.js +26 -2
  192. package/dist/schema/nodes/duct-fitting.d.ts +18 -1
  193. package/dist/schema/nodes/duct-fitting.d.ts.map +1 -1
  194. package/dist/schema/nodes/duct-fitting.js +26 -5
  195. package/dist/schema/nodes/duct-segment.d.ts +23 -1
  196. package/dist/schema/nodes/duct-segment.d.ts.map +1 -1
  197. package/dist/schema/nodes/duct-segment.js +21 -1
  198. package/dist/schema/nodes/duct-terminal.d.ts +1 -1
  199. package/dist/schema/nodes/duct-terminal.js +1 -1
  200. package/dist/schema/nodes/elevator.d.ts +1 -1
  201. package/dist/schema/nodes/elevator.js +2 -2
  202. package/dist/schema/nodes/eyebrow-vent.d.ts +8 -2
  203. package/dist/schema/nodes/eyebrow-vent.d.ts.map +1 -1
  204. package/dist/schema/nodes/eyebrow-vent.js +4 -2
  205. package/dist/schema/nodes/fence.d.ts +1 -1
  206. package/dist/schema/nodes/fence.js +2 -2
  207. package/dist/schema/nodes/guide.d.ts +1 -1
  208. package/dist/schema/nodes/guide.js +2 -2
  209. package/dist/schema/nodes/gutter.d.ts +36 -2
  210. package/dist/schema/nodes/gutter.d.ts.map +1 -1
  211. package/dist/schema/nodes/gutter.js +310 -3
  212. package/dist/schema/nodes/hanger-overrides.d.ts +7 -0
  213. package/dist/schema/nodes/hanger-overrides.d.ts.map +1 -0
  214. package/dist/schema/nodes/hanger-overrides.js +6 -0
  215. package/dist/schema/nodes/hvac-equipment.d.ts +1 -1
  216. package/dist/schema/nodes/hvac-equipment.js +1 -1
  217. package/dist/schema/nodes/imported-mesh.d.ts +40 -0
  218. package/dist/schema/nodes/imported-mesh.d.ts.map +1 -0
  219. package/dist/schema/nodes/imported-mesh.js +27 -0
  220. package/dist/schema/nodes/item.d.ts +3 -2
  221. package/dist/schema/nodes/item.d.ts.map +1 -1
  222. package/dist/schema/nodes/item.js +8 -3
  223. package/dist/schema/nodes/lean-to-extension.d.ts +212 -0
  224. package/dist/schema/nodes/lean-to-extension.d.ts.map +1 -0
  225. package/dist/schema/nodes/lean-to-extension.js +114 -0
  226. package/dist/schema/nodes/level.d.ts +2 -2
  227. package/dist/schema/nodes/level.d.ts.map +1 -1
  228. package/dist/schema/nodes/level.js +1 -1
  229. package/dist/schema/nodes/lineset.d.ts +1 -1
  230. package/dist/schema/nodes/lineset.js +1 -1
  231. package/dist/schema/nodes/liquid-line.d.ts +1 -1
  232. package/dist/schema/nodes/liquid-line.js +1 -1
  233. package/dist/schema/nodes/measurement.d.ts +1 -1
  234. package/dist/schema/nodes/measurement.js +2 -2
  235. package/dist/schema/nodes/pipe-fitting.d.ts +10 -2
  236. package/dist/schema/nodes/pipe-fitting.d.ts.map +1 -1
  237. package/dist/schema/nodes/pipe-fitting.js +7 -3
  238. package/dist/schema/nodes/pipe-segment.d.ts +24 -2
  239. package/dist/schema/nodes/pipe-segment.d.ts.map +1 -1
  240. package/dist/schema/nodes/pipe-segment.js +21 -1
  241. package/dist/schema/nodes/pipe-trap.d.ts +2 -2
  242. package/dist/schema/nodes/pipe-trap.js +1 -1
  243. package/dist/schema/nodes/ridge-vent.d.ts +2 -2
  244. package/dist/schema/nodes/ridge-vent.d.ts.map +1 -1
  245. package/dist/schema/nodes/ridge-vent.js +7 -4
  246. package/dist/schema/nodes/roof-segment-shape.d.ts +5 -1
  247. package/dist/schema/nodes/roof-segment-shape.d.ts.map +1 -1
  248. package/dist/schema/nodes/roof-segment-shape.js +65 -2
  249. package/dist/schema/nodes/roof-segment-walls.d.ts +4 -2
  250. package/dist/schema/nodes/roof-segment-walls.d.ts.map +1 -1
  251. package/dist/schema/nodes/roof-segment-walls.js +2 -2
  252. package/dist/schema/nodes/roof-segment.d.ts +42 -2
  253. package/dist/schema/nodes/roof-segment.d.ts.map +1 -1
  254. package/dist/schema/nodes/roof-segment.js +81 -4
  255. package/dist/schema/nodes/roof.d.ts +23 -2
  256. package/dist/schema/nodes/roof.d.ts.map +1 -1
  257. package/dist/schema/nodes/roof.js +17 -3
  258. package/dist/schema/nodes/scan.d.ts +19 -2
  259. package/dist/schema/nodes/scan.d.ts.map +1 -1
  260. package/dist/schema/nodes/scan.js +13 -3
  261. package/dist/schema/nodes/shelf.d.ts +3 -3
  262. package/dist/schema/nodes/shelf.d.ts.map +1 -1
  263. package/dist/schema/nodes/shelf.js +3 -4
  264. package/dist/schema/nodes/site.d.ts +1 -1
  265. package/dist/schema/nodes/site.js +2 -2
  266. package/dist/schema/nodes/skylight.d.ts +5 -5
  267. package/dist/schema/nodes/skylight.js +2 -2
  268. package/dist/schema/nodes/slab.d.ts +1 -1
  269. package/dist/schema/nodes/slab.js +3 -3
  270. package/dist/schema/nodes/solar-panel.d.ts +1 -1
  271. package/dist/schema/nodes/solar-panel.js +3 -3
  272. package/dist/schema/nodes/spawn.d.ts +1 -1
  273. package/dist/schema/nodes/spawn.js +1 -1
  274. package/dist/schema/nodes/stair-segment.d.ts +1 -1
  275. package/dist/schema/nodes/stair-segment.js +2 -2
  276. package/dist/schema/nodes/stair.d.ts +2 -2
  277. package/dist/schema/nodes/stair.js +3 -3
  278. package/dist/schema/nodes/structural-grid.d.ts +1 -1
  279. package/dist/schema/nodes/structural-grid.js +1 -1
  280. package/dist/schema/nodes/turbine-vent.d.ts +8 -2
  281. package/dist/schema/nodes/turbine-vent.d.ts.map +1 -1
  282. package/dist/schema/nodes/turbine-vent.js +4 -2
  283. package/dist/schema/nodes/unit.d.ts +33 -0
  284. package/dist/schema/nodes/unit.d.ts.map +1 -0
  285. package/dist/schema/nodes/unit.js +13 -0
  286. package/dist/schema/nodes/wall.d.ts +5 -5
  287. package/dist/schema/nodes/wall.d.ts.map +1 -1
  288. package/dist/schema/nodes/wall.js +13 -6
  289. package/dist/schema/nodes/window.d.ts +10 -3
  290. package/dist/schema/nodes/window.d.ts.map +1 -1
  291. package/dist/schema/nodes/window.js +6 -2
  292. package/dist/schema/nodes/zone.d.ts +2 -2
  293. package/dist/schema/nodes/zone.js +2 -2
  294. package/dist/schema/scene-material.js +2 -2
  295. package/dist/schema/types.d.ts +815 -118
  296. package/dist/schema/types.d.ts.map +1 -1
  297. package/dist/schema/types.js +79 -46
  298. package/dist/services/alignment-anchors.d.ts +6 -11
  299. package/dist/services/alignment-anchors.d.ts.map +1 -1
  300. package/dist/services/alignment-anchors.js +7 -34
  301. package/dist/services/drag-session.d.ts +4 -4
  302. package/dist/services/drag-session.js +1 -1
  303. package/dist/services/hosting.d.ts +4 -10
  304. package/dist/services/hosting.d.ts.map +1 -1
  305. package/dist/services/hosting.js +6 -16
  306. package/dist/services/index.d.ts +16 -13
  307. package/dist/services/index.d.ts.map +1 -1
  308. package/dist/services/index.js +16 -13
  309. package/dist/services/level-height.d.ts +2 -2
  310. package/dist/services/level-height.js +3 -3
  311. package/dist/services/movement.d.ts +3 -3
  312. package/dist/services/movement.js +2 -2
  313. package/dist/services/port-connectivity.d.ts +1 -1
  314. package/dist/services/port-connectivity.js +1 -1
  315. package/dist/services/riser-diagram.d.ts +1 -1
  316. package/dist/services/shelf-board.d.ts +5 -0
  317. package/dist/services/shelf-board.d.ts.map +1 -0
  318. package/dist/services/shelf-board.js +15 -0
  319. package/dist/services/storey.d.ts +2 -2
  320. package/dist/services/storey.js +2 -2
  321. package/dist/services/surface-hosting-procedural-parity.fixtures.d.ts +13 -0
  322. package/dist/services/surface-hosting-procedural-parity.fixtures.d.ts.map +1 -0
  323. package/dist/services/surface-hosting-procedural-parity.fixtures.js +4691 -0
  324. package/dist/services/surface-hosting-shelf-parity.fixtures.d.ts +1060 -0
  325. package/dist/services/surface-hosting-shelf-parity.fixtures.d.ts.map +1 -0
  326. package/dist/services/surface-hosting-shelf-parity.fixtures.js +3127 -0
  327. package/dist/services/surface-hosting.d.ts +88 -0
  328. package/dist/services/surface-hosting.d.ts.map +1 -0
  329. package/dist/services/surface-hosting.js +268 -0
  330. package/dist/services/surface-region.d.ts +8 -0
  331. package/dist/services/surface-region.d.ts.map +1 -0
  332. package/dist/services/surface-region.js +44 -0
  333. package/dist/services/system-graph.d.ts +12 -1
  334. package/dist/services/system-graph.d.ts.map +1 -1
  335. package/dist/services/system-graph.js +36 -6
  336. package/dist/services/validate-dwv.d.ts +1 -1
  337. package/dist/services/validate-dwv.js +1 -1
  338. package/dist/store/actions/node-actions.d.ts +9 -2
  339. package/dist/store/actions/node-actions.d.ts.map +1 -1
  340. package/dist/store/actions/node-actions.js +475 -24
  341. package/dist/store/history-control.d.ts +3 -3
  342. package/dist/store/history-invalidation.d.ts +3 -0
  343. package/dist/store/history-invalidation.d.ts.map +1 -0
  344. package/dist/store/history-invalidation.js +72 -0
  345. package/dist/store/scene-hydration.d.ts +5 -0
  346. package/dist/store/scene-hydration.d.ts.map +1 -0
  347. package/dist/store/scene-hydration.js +57 -0
  348. package/dist/store/use-interactive.d.ts +2 -2
  349. package/dist/store/use-live-terrain.d.ts +1 -1
  350. package/dist/store/use-scene.d.ts +7 -4
  351. package/dist/store/use-scene.d.ts.map +1 -1
  352. package/dist/store/use-scene.js +361 -87
  353. package/dist/systems/elevator/elevator-dispatch.d.ts +2 -2
  354. package/dist/systems/elevator/elevator-dispatch.js +1 -1
  355. package/dist/systems/elevator/elevator-geometry.d.ts +1 -1
  356. package/dist/systems/elevator/elevator-opening-sync.d.ts +1 -1
  357. package/dist/systems/elevator/elevator-opening-sync.js +2 -2
  358. package/dist/systems/elevator/elevator-opening-system.js +3 -3
  359. package/dist/systems/elevator/elevator-runtime.d.ts +3 -3
  360. package/dist/systems/elevator/elevator-runtime.js +3 -3
  361. package/dist/systems/elevator/elevator-service.d.ts +1 -1
  362. package/dist/systems/elevator/elevator-service.js +1 -1
  363. package/dist/systems/fence/fence-centerline.d.ts +2 -2
  364. package/dist/systems/fence/fence-centerline.js +2 -2
  365. package/dist/systems/fence/fence-spline.d.ts +2 -2
  366. package/dist/systems/roof/roof-elevation-system.d.ts +3 -0
  367. package/dist/systems/roof/roof-elevation-system.d.ts.map +1 -0
  368. package/dist/systems/roof/roof-elevation-system.js +94 -0
  369. package/dist/systems/roof/roof-elevation.d.ts +4 -0
  370. package/dist/systems/roof/roof-elevation.d.ts.map +1 -0
  371. package/dist/systems/roof/roof-elevation.js +95 -0
  372. package/dist/systems/roof/roof-footprint.d.ts +17 -0
  373. package/dist/systems/roof/roof-footprint.d.ts.map +1 -0
  374. package/dist/systems/roof/roof-footprint.js +83 -0
  375. package/dist/systems/slab/slab-placement.d.ts +1 -1
  376. package/dist/systems/slab/slab-support.d.ts +1 -1
  377. package/dist/systems/slab/slab-support.js +4 -4
  378. package/dist/systems/stair/stair-flight.d.ts +17 -0
  379. package/dist/systems/stair/stair-flight.d.ts.map +1 -0
  380. package/dist/systems/stair/stair-flight.js +27 -0
  381. package/dist/systems/stair/stair-footprint.d.ts +1 -1
  382. package/dist/systems/stair/stair-opening-preview.d.ts +1621 -1267
  383. package/dist/systems/stair/stair-opening-preview.d.ts.map +1 -1
  384. package/dist/systems/stair/stair-opening-preview.js +2 -2
  385. package/dist/systems/stair/stair-opening-sync.d.ts +1 -1
  386. package/dist/systems/stair/stair-opening-sync.js +6 -6
  387. package/dist/systems/stair/stair-opening-system.d.ts +1 -0
  388. package/dist/systems/stair/stair-opening-system.d.ts.map +1 -1
  389. package/dist/systems/stair/stair-opening-system.js +100 -103
  390. package/dist/systems/stair/stair-rise.d.ts +1 -1
  391. package/dist/systems/stair/stair-rise.d.ts.map +1 -1
  392. package/dist/systems/stair/stair-rise.js +23 -24
  393. package/dist/systems/wall/wall-curve.d.ts +3 -2
  394. package/dist/systems/wall/wall-curve.d.ts.map +1 -1
  395. package/dist/systems/wall/wall-curve.js +73 -0
  396. package/dist/systems/wall/wall-footprint.d.ts +3 -2
  397. package/dist/systems/wall/wall-footprint.d.ts.map +1 -1
  398. package/dist/systems/wall/wall-footprint.js +3 -2
  399. package/dist/systems/wall/wall-mitering.d.ts +1 -1
  400. package/dist/systems/wall/wall-mitering.js +1 -1
  401. package/dist/systems/wall/wall-move.d.ts +1 -1
  402. package/dist/systems/wall/wall-top.d.ts +1 -1
  403. package/dist/systems/wall/wall-topology.d.ts +2 -2
  404. package/dist/systems/wall/wall-topology.js +4 -4
  405. package/dist/utils/clone-scene-graph.d.ts +3 -3
  406. package/dist/utils/clone-scene-graph.d.ts.map +1 -1
  407. package/dist/utils/clone-scene-graph.js +35 -3
  408. package/dist/utils/scene-migrations.d.ts +3 -3
  409. package/dist/utils/scene-migrations.js +3 -3
  410. package/dist/utils/vertical-scene-migration.js +5 -5
  411. package/dist/validation/validate-build-json.d.ts +7 -1
  412. package/dist/validation/validate-build-json.d.ts.map +1 -1
  413. package/dist/validation/validate-build-json.js +92 -4
  414. package/package.json +23 -5
  415. package/dist/systems/elevator/elevator-runtime-system.d.ts +0 -2
  416. package/dist/systems/elevator/elevator-runtime-system.d.ts.map +0 -1
  417. package/dist/systems/elevator/elevator-runtime-system.js +0 -8
@@ -0,0 +1,158 @@
1
+ import { pointOnPolygonBoundary, wallOverlapsSlabFootprint } from '../systems/slab/slab-support.js';
2
+ import { measurementCentroid } from './measurement-geometry.js';
3
+ import { pointInPolygon } from './polygon-relations.js';
4
+ import { detectSpacesForLevel, resolveAutoZonePolygon } from './space-detection.js';
5
+ function footprintCentroid(node) {
6
+ if ('position' in node && Array.isArray(node.position) && node.position.length === 3) {
7
+ return [node.position[0], node.position[2]];
8
+ }
9
+ if ('polygon' in node && Array.isArray(node.polygon)) {
10
+ const centroid = measurementCentroid(node.polygon.map(([x, z]) => [x, 0, z]));
11
+ return centroid ? [centroid[0], centroid[2]] : null;
12
+ }
13
+ return null;
14
+ }
15
+ function polygonCentroid(polygon) {
16
+ if (polygon.length < 3)
17
+ return null;
18
+ const centroid = measurementCentroid(polygon.map(([x, z]) => [x, 0, z]));
19
+ return centroid ? [centroid[0], centroid[2]] : null;
20
+ }
21
+ function coversPoint(point, polygon, holes = []) {
22
+ return (polygon.length >= 3 &&
23
+ (pointInPolygon(point, polygon) || pointOnPolygonBoundary(point[0], point[1], polygon)) &&
24
+ !holes.some((hole) => pointInPolygon(point, hole, { includeBoundary: false }) &&
25
+ !pointOnPolygonBoundary(point[0], point[1], hole)));
26
+ }
27
+ function overlapsSupport(polygon, support) {
28
+ if (polygon.length < 3 || support.polygon.length < 3)
29
+ return false;
30
+ return (polygon.some((point) => coversPoint(point, support.polygon, support.holes)) ||
31
+ support.polygon.some((point) => coversPoint(point, polygon)) ||
32
+ polygon.some((start, index) => wallOverlapsSlabFootprint({ start, end: polygon[(index + 1) % polygon.length], thickness: 0 }, support.polygon, support.holes)));
33
+ }
34
+ export function deriveUnit(unit, nodes) {
35
+ const members = [...new Set(unit.members)].flatMap((id) => {
36
+ const zone = nodes[id];
37
+ return zone?.type === 'zone' ? [zone] : [];
38
+ });
39
+ const levels = new Map();
40
+ const polygonsByLevel = new Map();
41
+ for (const zone of members) {
42
+ const level = zone.parentId ? nodes[zone.parentId] : undefined;
43
+ if (level?.type !== 'level')
44
+ continue;
45
+ levels.set(level.id, level);
46
+ const polygons = polygonsByLevel.get(level.id) ?? [];
47
+ polygons.push(resolveAutoZonePolygon(zone, (id) => nodes[id]));
48
+ polygonsByLevel.set(level.id, polygons);
49
+ }
50
+ const levelIds = [...levels.values()]
51
+ .sort((a, b) => a.level - b.level || a.id.localeCompare(b.id))
52
+ .map((level) => level.id);
53
+ const containedNodeIds = [];
54
+ const boundaryWalls = new Set();
55
+ const supportIds = [];
56
+ const wallsByLevel = new Map();
57
+ for (const node of Object.values(nodes)) {
58
+ const polygons = node.parentId
59
+ ? polygonsByLevel.get(node.parentId)
60
+ : undefined;
61
+ if (!polygons)
62
+ continue;
63
+ if (node.type === 'wall') {
64
+ const levelId = node.parentId;
65
+ wallsByLevel.set(levelId, [...(wallsByLevel.get(levelId) ?? []), node]);
66
+ if (polygons.some((polygon) => polygon.length >= 3 && wallOverlapsSlabFootprint(node, polygon))) {
67
+ boundaryWalls.add(node.id);
68
+ }
69
+ }
70
+ else if (node.type === 'slab' || node.type === 'ceiling') {
71
+ if (polygons.some((polygon) => overlapsSupport(polygon, node)))
72
+ supportIds.push(node.id);
73
+ }
74
+ else if (node.type !== 'zone' &&
75
+ node.type !== 'level' &&
76
+ node.type !== 'building' &&
77
+ node.type !== 'site' &&
78
+ node.type !== 'unit') {
79
+ const point = footprintCentroid(node);
80
+ if (point && polygons.some((polygon) => coversPoint(point, polygon)))
81
+ containedNodeIds.push(node.id);
82
+ }
83
+ }
84
+ // A zone drawn inside a room, short of the wall centerlines, still means
85
+ // that room: the walls of every detected space that encloses a member
86
+ // centroid, or whose own centroid the member encloses, are boundary walls.
87
+ for (const [levelId, walls] of wallsByLevel) {
88
+ const polygons = polygonsByLevel.get(levelId) ?? [];
89
+ for (const space of detectSpacesForLevel(levelId, walls).spaces) {
90
+ if (space.isExterior)
91
+ continue;
92
+ const spaceCentroid = polygonCentroid(space.polygon);
93
+ const matches = polygons.some((polygon) => {
94
+ const memberCentroid = polygonCentroid(polygon);
95
+ return ((memberCentroid !== null && coversPoint(memberCentroid, space.polygon)) ||
96
+ (spaceCentroid !== null && coversPoint(spaceCentroid, polygon)));
97
+ });
98
+ if (matches)
99
+ for (const wallId of space.wallIds)
100
+ boundaryWalls.add(wallId);
101
+ }
102
+ }
103
+ const boundaryWallIds = [...boundaryWalls];
104
+ const memberZoneIds = members.map((zone) => zone.id);
105
+ // Ancestors (levels, building, site, the unit itself) are left out: the
106
+ // viewer's isolation filter keeps every descendant of a listed id, so
107
+ // listing a level would show the whole storey.
108
+ const visible = new Set([
109
+ ...memberZoneIds,
110
+ ...containedNodeIds,
111
+ ...boundaryWallIds,
112
+ ...supportIds,
113
+ ]);
114
+ return {
115
+ unitId: unit.id,
116
+ memberZoneIds,
117
+ levelIds,
118
+ containedNodeIds,
119
+ boundaryWallIds,
120
+ supportIds,
121
+ visibleNodeIds: [...visible],
122
+ };
123
+ }
124
+ export function unitsForZone(zoneId, nodes) {
125
+ return Object.values(nodes).filter((node) => node.type === 'unit' && node.members.includes(zoneId));
126
+ }
127
+ export function unassignedZoneIds(buildingId, nodes) {
128
+ const assigned = new Set(Object.values(nodes).flatMap((node) => (node.type === 'unit' ? node.members : [])));
129
+ const building = nodes[buildingId];
130
+ if (building?.type !== 'building')
131
+ return [];
132
+ const levels = new Set(Object.values(nodes).flatMap((node) => node.type === 'level' && (node.parentId === buildingId || building.children.includes(node.id))
133
+ ? [node.id]
134
+ : []));
135
+ return Object.values(nodes).flatMap((node) => node.type === 'zone' &&
136
+ node.parentId &&
137
+ levels.has(node.parentId) &&
138
+ !assigned.has(node.id)
139
+ ? [node.id]
140
+ : []);
141
+ }
142
+ export function unitWarnings(unit, nodes) {
143
+ const members = [...new Set(unit.members)].filter((id) => nodes[id]?.type === 'zone');
144
+ const warnings = [];
145
+ if (members.length === 0)
146
+ warnings.push({ code: 'empty' });
147
+ const ordinals = [
148
+ ...new Set(members.flatMap((id) => {
149
+ const parentId = nodes[id]?.parentId;
150
+ const level = parentId ? nodes[parentId] : undefined;
151
+ return level?.type === 'level' ? [level.level] : [];
152
+ })),
153
+ ].sort((a, b) => a - b);
154
+ if (ordinals.some((ordinal, index) => index > 0 && ordinal - ordinals[index - 1] > 1)) {
155
+ warnings.push({ code: 'non-adjacent-levels' });
156
+ }
157
+ return warnings;
158
+ }
@@ -0,0 +1,19 @@
1
+ import type { AnyNode, AnyNodeId, LevelNode, UnitNode, ZoneNode } from '../schema/index.js';
2
+ export type UnitReport = {
3
+ memberCount: number;
4
+ levelSpan: {
5
+ minOrdinal: number;
6
+ maxOrdinal: number;
7
+ count: number;
8
+ } | null;
9
+ grossAreaM2: number;
10
+ members: Array<{
11
+ zoneId: ZoneNode['id'];
12
+ name: string;
13
+ levelId: LevelNode['id'] | null;
14
+ levelOrdinal: number | null;
15
+ areaM2: number;
16
+ }>;
17
+ };
18
+ export declare function buildUnitReport(unit: UnitNode, nodes: Readonly<Record<AnyNodeId, AnyNode>>): UnitReport;
19
+ //# sourceMappingURL=unit-report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit-report.d.ts","sourceRoot":"","sources":["../../src/lib/unit-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAIlF,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAC3E,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,KAAK,CAAC;QACb,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;QACtB,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;QAC/B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;QAC3B,MAAM,EAAE,MAAM,CAAA;KACf,CAAC,CAAA;CACH,CAAA;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,GAC1C,UAAU,CAgCZ"}
@@ -0,0 +1,36 @@
1
+ import { measurementArea } from './measurement-geometry.js';
2
+ import { resolveAutoZonePolygon } from './space-detection.js';
3
+ export function buildUnitReport(unit, nodes) {
4
+ const levels = new Map();
5
+ const members = [...new Set(unit.members)].flatMap((id) => {
6
+ const zone = nodes[id];
7
+ if (zone?.type !== 'zone')
8
+ return [];
9
+ const level = zone.parentId ? nodes[zone.parentId] : undefined;
10
+ if (level?.type === 'level')
11
+ levels.set(level.id, level.level);
12
+ const polygon = resolveAutoZonePolygon(zone, (nodeId) => nodes[nodeId]);
13
+ return [
14
+ {
15
+ zoneId: zone.id,
16
+ name: zone.name,
17
+ levelId: level?.type === 'level' ? level.id : null,
18
+ levelOrdinal: level?.type === 'level' ? level.level : null,
19
+ areaM2: measurementArea(polygon.map(([x, z]) => [x, 0, z])),
20
+ },
21
+ ];
22
+ });
23
+ const ordinals = [...levels.values()];
24
+ return {
25
+ memberCount: members.length,
26
+ levelSpan: levels.size > 0
27
+ ? {
28
+ minOrdinal: Math.min(...ordinals),
29
+ maxOrdinal: Math.max(...ordinals),
30
+ count: levels.size,
31
+ }
32
+ : null,
33
+ grossAreaM2: members.reduce((sum, member) => sum + member.areaM2, 0),
34
+ members,
35
+ };
36
+ }
@@ -1,5 +1,5 @@
1
- import type { WallNode } from '../schema/nodes/wall';
2
- import type { AnyNode, AnyNodeId } from '../schema/types';
1
+ import type { WallNode } from '../schema/nodes/wall.js';
2
+ import type { AnyNode, AnyNodeId } from '../schema/types.js';
3
3
  /**
4
4
  * Pure plan-space wall-distance math shared by the 2D opening snap
5
5
  * (`findClosestWallInPlan` in @pascal-app/nodes) and the editor's 2D
@@ -1,4 +1,4 @@
1
- import { isCurvedWall } from '../systems/wall/wall-curve';
1
+ import { isCurvedWall } from '../systems/wall/wall-curve.js';
2
2
  /**
3
3
  * Pure plan-space wall-distance math shared by the 2D opening snap
4
4
  * (`findClosestWallInPlan` in @pascal-app/nodes) and the editor's 2D
@@ -1,4 +1,4 @@
1
- import type { AnyNode, ZoneNode } from '../schema';
1
+ import type { AnyNode, ZoneNode } from '../schema/index.js';
2
2
  export type ZoneQuantityValue = {
3
3
  status: 'available';
4
4
  value: number;
@@ -1,10 +1,10 @@
1
- import { DEFAULT_LEVEL_HEIGHT, resolveCeilingHeight } from '../services/level-height';
2
- import { getWallPlaneTop } from '../services/storey';
3
- import { computeWallSlabSupport } from '../systems/slab/slab-support';
4
- import { sampleWallCenterline } from '../systems/wall/wall-curve';
5
- import { DEFAULT_WALL_THICKNESS } from '../systems/wall/wall-footprint';
6
- import { resolveWallEffectiveHeight } from '../systems/wall/wall-top';
7
- import { detectSpacesForLevel } from './space-detection';
1
+ import { DEFAULT_LEVEL_HEIGHT, resolveCeilingHeight } from '../services/level-height.js';
2
+ import { getWallPlaneTop } from '../services/storey.js';
3
+ import { computeWallSlabSupport } from '../systems/slab/slab-support.js';
4
+ import { sampleWallCenterline } from '../systems/wall/wall-curve.js';
5
+ import { DEFAULT_WALL_THICKNESS } from '../systems/wall/wall-footprint.js';
6
+ import { resolveWallEffectiveHeight } from '../systems/wall/wall-top.js';
7
+ import { detectSpacesForLevel } from './space-detection.js';
8
8
  const BOUNDARY_TOLERANCE = 0.08;
9
9
  const SURFACE_COVERAGE_THRESHOLD = 0.95;
10
10
  const SPACE_CONTAINMENT_THRESHOLD = 0.95;
@@ -1,4 +1,4 @@
1
- import { type MaterialPresetPayload } from './schema/material';
1
+ import { type MaterialPresetPayload } from './schema/material.js';
2
2
  export type MaterialSource = 'pascal' | 'community' | 'mine' | 'workspace';
3
3
  export type MaterialCatalogItem = {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import { MaterialTarget as MaterialTargetSchema, } from './schema/material';
1
+ import { MaterialTarget as MaterialTargetSchema, } from './schema/material.js';
2
2
  const WALL_TARGETS = [
3
3
  MaterialTargetSchema.enum.wall,
4
4
  MaterialTargetSchema.enum.chimney,
@@ -0,0 +1,261 @@
1
+ import { type Expr } from './recipe.js';
2
+ export declare const shelfRecipe: {
3
+ version: 1;
4
+ name: string;
5
+ description: string;
6
+ parameters: {
7
+ id: string;
8
+ label: string;
9
+ default: number;
10
+ min: number;
11
+ max: number;
12
+ step: number;
13
+ unit: "count" | "m" | "rad";
14
+ part?: string | undefined;
15
+ axis?: "x" | "y" | "z" | undefined;
16
+ }[];
17
+ slots: {
18
+ id: string;
19
+ label: string;
20
+ color: string;
21
+ finish?: "wood" | "glass" | "metal" | undefined;
22
+ }[];
23
+ parts: {
24
+ id: string;
25
+ label: string;
26
+ count: Expr;
27
+ shapes: {
28
+ id: string;
29
+ primitive: "box" | "roundedBox" | "cylinder";
30
+ slot: string;
31
+ size: [Expr, Expr, Expr];
32
+ position: [Expr, Expr, Expr];
33
+ rotation?: [Expr, Expr, Expr] | undefined;
34
+ radius?: Expr | undefined;
35
+ support?: boolean | undefined;
36
+ }[];
37
+ }[];
38
+ constraints: {
39
+ left: Expr;
40
+ relation: "lte" | "gte";
41
+ right: Expr;
42
+ message: string;
43
+ }[];
44
+ classification?: {
45
+ category: string;
46
+ functionTags: string[];
47
+ tags: string[];
48
+ } | undefined;
49
+ mounting?: {
50
+ attachTo: "ceiling" | "wall-side";
51
+ reference: string;
52
+ } | undefined;
53
+ surfaces?: {
54
+ id: string;
55
+ label: string;
56
+ position: [Expr, Expr, Expr];
57
+ size: [Expr, Expr];
58
+ part?: string | undefined;
59
+ rotation?: [Expr, Expr, Expr] | undefined;
60
+ }[] | undefined;
61
+ };
62
+ export declare const bedRecipe: {
63
+ version: 1;
64
+ name: string;
65
+ description: string;
66
+ parameters: {
67
+ id: string;
68
+ label: string;
69
+ default: number;
70
+ min: number;
71
+ max: number;
72
+ step: number;
73
+ unit: "count" | "m" | "rad";
74
+ part?: string | undefined;
75
+ axis?: "x" | "y" | "z" | undefined;
76
+ }[];
77
+ slots: {
78
+ id: string;
79
+ label: string;
80
+ color: string;
81
+ finish?: "wood" | "glass" | "metal" | undefined;
82
+ }[];
83
+ parts: {
84
+ id: string;
85
+ label: string;
86
+ count: Expr;
87
+ shapes: {
88
+ id: string;
89
+ primitive: "box" | "roundedBox" | "cylinder";
90
+ slot: string;
91
+ size: [Expr, Expr, Expr];
92
+ position: [Expr, Expr, Expr];
93
+ rotation?: [Expr, Expr, Expr] | undefined;
94
+ radius?: Expr | undefined;
95
+ support?: boolean | undefined;
96
+ }[];
97
+ }[];
98
+ constraints: {
99
+ left: Expr;
100
+ relation: "lte" | "gte";
101
+ right: Expr;
102
+ message: string;
103
+ }[];
104
+ classification?: {
105
+ category: string;
106
+ functionTags: string[];
107
+ tags: string[];
108
+ } | undefined;
109
+ mounting?: {
110
+ attachTo: "ceiling" | "wall-side";
111
+ reference: string;
112
+ } | undefined;
113
+ surfaces?: {
114
+ id: string;
115
+ label: string;
116
+ position: [Expr, Expr, Expr];
117
+ size: [Expr, Expr];
118
+ part?: string | undefined;
119
+ rotation?: [Expr, Expr, Expr] | undefined;
120
+ }[] | undefined;
121
+ };
122
+ export declare const radiatorRecipe: {
123
+ version: 1;
124
+ name: string;
125
+ description: string;
126
+ parameters: {
127
+ id: string;
128
+ label: string;
129
+ default: number;
130
+ min: number;
131
+ max: number;
132
+ step: number;
133
+ unit: "count" | "m" | "rad";
134
+ part?: string | undefined;
135
+ axis?: "x" | "y" | "z" | undefined;
136
+ }[];
137
+ slots: {
138
+ id: string;
139
+ label: string;
140
+ color: string;
141
+ finish?: "wood" | "glass" | "metal" | undefined;
142
+ }[];
143
+ parts: {
144
+ id: string;
145
+ label: string;
146
+ count: Expr;
147
+ shapes: {
148
+ id: string;
149
+ primitive: "box" | "roundedBox" | "cylinder";
150
+ slot: string;
151
+ size: [Expr, Expr, Expr];
152
+ position: [Expr, Expr, Expr];
153
+ rotation?: [Expr, Expr, Expr] | undefined;
154
+ radius?: Expr | undefined;
155
+ support?: boolean | undefined;
156
+ }[];
157
+ }[];
158
+ constraints: {
159
+ left: Expr;
160
+ relation: "lte" | "gte";
161
+ right: Expr;
162
+ message: string;
163
+ }[];
164
+ classification?: {
165
+ category: string;
166
+ functionTags: string[];
167
+ tags: string[];
168
+ } | undefined;
169
+ mounting?: {
170
+ attachTo: "ceiling" | "wall-side";
171
+ reference: string;
172
+ } | undefined;
173
+ surfaces?: {
174
+ id: string;
175
+ label: string;
176
+ position: [Expr, Expr, Expr];
177
+ size: [Expr, Expr];
178
+ part?: string | undefined;
179
+ rotation?: [Expr, Expr, Expr] | undefined;
180
+ }[] | undefined;
181
+ };
182
+ export declare const counterRecipe: {
183
+ version: 1;
184
+ name: string;
185
+ description: string;
186
+ parameters: {
187
+ id: string;
188
+ label: string;
189
+ default: number;
190
+ min: number;
191
+ max: number;
192
+ step: number;
193
+ unit: "count" | "m" | "rad";
194
+ part?: string | undefined;
195
+ axis?: "x" | "y" | "z" | undefined;
196
+ }[];
197
+ slots: {
198
+ id: string;
199
+ label: string;
200
+ color: string;
201
+ finish?: "wood" | "glass" | "metal" | undefined;
202
+ }[];
203
+ parts: {
204
+ id: string;
205
+ label: string;
206
+ count: Expr;
207
+ shapes: {
208
+ id: string;
209
+ primitive: "box" | "roundedBox" | "cylinder";
210
+ slot: string;
211
+ size: [Expr, Expr, Expr];
212
+ position: [Expr, Expr, Expr];
213
+ rotation?: [Expr, Expr, Expr] | undefined;
214
+ radius?: Expr | undefined;
215
+ support?: boolean | undefined;
216
+ }[];
217
+ }[];
218
+ constraints: {
219
+ left: Expr;
220
+ relation: "lte" | "gte";
221
+ right: Expr;
222
+ message: string;
223
+ }[];
224
+ classification?: {
225
+ category: string;
226
+ functionTags: string[];
227
+ tags: string[];
228
+ } | undefined;
229
+ mounting?: {
230
+ attachTo: "ceiling" | "wall-side";
231
+ reference: string;
232
+ } | undefined;
233
+ surfaces?: {
234
+ id: string;
235
+ label: string;
236
+ position: [Expr, Expr, Expr];
237
+ size: [Expr, Expr];
238
+ part?: string | undefined;
239
+ rotation?: [Expr, Expr, Expr] | undefined;
240
+ }[] | undefined;
241
+ };
242
+ export declare const experimentBriefs: readonly [{
243
+ readonly id: "shelf_open";
244
+ readonly prompt: "Create a freestanding open oak bookcase, 1.2 m wide and 1.8 m tall, with adjustable width, height, depth and shelf count. Expose frame and shelf material slots and shelf support surfaces.";
245
+ }, {
246
+ readonly id: "shelf_asymmetric";
247
+ readonly prompt: "Create an asymmetric low bookcase with a wide open compartment on the left and a narrow stack of shelves on the right. Expose overall width, height, depth and right shelf count. Use contrasting frame and back colors.";
248
+ }, {
249
+ readonly id: "bed_timber";
250
+ readonly prompt: "Create a timber platform bed with a mattress, a headboard and two pillows. Expose bed width, length, headboard height, pillow count and pillow size. Pillows must remain above the mattress when resized. Separate frame, bedding and pillow material slots.";
251
+ }, {
252
+ readonly id: "bed_upholstered";
253
+ readonly prompt: "Create an upholstered bed with a tall rounded headboard, a low base, mattress and three pillows. Expose bed width, length, headboard height and pillow count. Include independently adjustable pillow depth and separate material slots.";
254
+ }, {
255
+ readonly id: "bench";
256
+ readonly prompt: "Create a park bench with a slatted timber seat, backrest and two metal supports. Expose width, seat height, depth and slat count. Changing width must preserve support thickness. Separate timber and metal slots.";
257
+ }, {
258
+ readonly id: "divider";
259
+ readonly prompt: "Create a freestanding room divider with repeated vertical timber slats on a base. Expose width, height, depth and slat count. Keep every slat above the ground and evenly distributed when resized. Separate slat and base slots.";
260
+ }];
261
+ //# sourceMappingURL=fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../src/procedural-items/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAA4B,MAAM,UAAU,CAAA;AAwB9D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEtB,CAAA;AACF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFpB,CAAA;AACF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFzB,CAAA;AACF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqExB,CAAA;AACF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EA+BnB,CAAA"}