@pascal-app/nodes 1.0.3 → 1.0.5

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 (1651) hide show
  1. package/README.md +43 -0
  2. package/dist/agent-operations/index.d.ts +12 -0
  3. package/dist/agent-operations/index.d.ts.map +1 -0
  4. package/dist/agent-operations/index.js +6 -0
  5. package/dist/agent-tools/index.d.ts +50 -0
  6. package/dist/agent-tools/index.d.ts.map +1 -0
  7. package/dist/agent-tools/index.js +21 -0
  8. package/dist/block/commands.d.ts +2 -2
  9. package/dist/block/contextual-help.js +1 -1
  10. package/dist/block/definition.d.ts +1 -1
  11. package/dist/block/definition.d.ts.map +1 -1
  12. package/dist/block/definition.js +30 -15
  13. package/dist/block/edit-session.d.ts +2 -2
  14. package/dist/block/edit-session.d.ts.map +1 -1
  15. package/dist/block/edit-session.js +1 -1
  16. package/dist/block/face-host.js +1 -1
  17. package/dist/block/floorplan.d.ts +11 -1
  18. package/dist/block/floorplan.d.ts.map +1 -1
  19. package/dist/block/floorplan.js +81 -13
  20. package/dist/block/geometry-snap.d.ts +2 -2
  21. package/dist/block/geometry-snap.js +2 -2
  22. package/dist/block/geometry.d.ts +2 -2
  23. package/dist/block/geometry.d.ts.map +1 -1
  24. package/dist/block/geometry.js +39 -24
  25. package/dist/block/gesture-wheel.d.ts.map +1 -1
  26. package/dist/block/hosted-edit.d.ts +1 -1
  27. package/dist/block/hosted-edit.d.ts.map +1 -1
  28. package/dist/block/hosted-edit.js +28 -3
  29. package/dist/block/interaction-sfx.d.ts +1 -1
  30. package/dist/block/last-operation.d.ts +1 -1
  31. package/dist/block/last-operation.js +2 -2
  32. package/dist/block/material-slots.d.ts +1 -3
  33. package/dist/block/material-slots.d.ts.map +1 -1
  34. package/dist/block/material-slots.js +1 -11
  35. package/dist/block/modal-face-operation.d.ts +2 -2
  36. package/dist/block/modal-face-operation.js +1 -1
  37. package/dist/block/paint.d.ts.map +1 -1
  38. package/dist/block/paint.js +5 -11
  39. package/dist/block/panel.d.ts.map +1 -1
  40. package/dist/block/panel.js +15 -10
  41. package/dist/block/parametrics.d.ts +1 -1
  42. package/dist/block/parametrics.js +1 -1
  43. package/dist/block/preview.js +1 -1
  44. package/dist/block/selection-geometry.d.ts +1 -1
  45. package/dist/block/selection-geometry.js +1 -1
  46. package/dist/block/selection.d.ts.map +1 -1
  47. package/dist/block/selection.js +20 -20
  48. package/dist/block/tool.d.ts.map +1 -1
  49. package/dist/block/tool.js +3 -3
  50. package/dist/block/use-block-face-operation.d.ts +4 -4
  51. package/dist/block/use-block-face-operation.js +6 -6
  52. package/dist/box-vent/definition.d.ts +1 -1
  53. package/dist/box-vent/definition.d.ts.map +1 -1
  54. package/dist/box-vent/definition.js +11 -13
  55. package/dist/box-vent/geometry.d.ts.map +1 -1
  56. package/dist/box-vent/geometry.js +2 -2
  57. package/dist/box-vent/index.d.ts +3 -3
  58. package/dist/box-vent/index.js +3 -3
  59. package/dist/box-vent/move-tool.js +4 -4
  60. package/dist/box-vent/paint.js +2 -2
  61. package/dist/box-vent/panel.d.ts.map +1 -1
  62. package/dist/box-vent/panel.js +7 -30
  63. package/dist/box-vent/parametrics.d.ts +1 -1
  64. package/dist/box-vent/parametrics.js +1 -1
  65. package/dist/box-vent/preview.d.ts +1 -1
  66. package/dist/box-vent/preview.d.ts.map +1 -1
  67. package/dist/box-vent/preview.js +2 -2
  68. package/dist/box-vent/renderer.d.ts.map +1 -1
  69. package/dist/box-vent/renderer.js +3 -3
  70. package/dist/box-vent/tool.d.ts.map +1 -1
  71. package/dist/box-vent/tool.js +7 -7
  72. package/dist/building/definition.d.ts +1 -1
  73. package/dist/building/definition.d.ts.map +1 -1
  74. package/dist/building/definition.js +5 -4
  75. package/dist/building/index.d.ts +1 -1
  76. package/dist/building/index.js +1 -1
  77. package/dist/building/move-tool.d.ts.map +1 -1
  78. package/dist/building/move-tool.js +2 -3
  79. package/dist/building/renderer.d.ts.map +1 -1
  80. package/dist/cabinet/__bench__/geometry.d.ts +2 -0
  81. package/dist/cabinet/__bench__/geometry.d.ts.map +1 -0
  82. package/dist/cabinet/__bench__/geometry.js +21 -0
  83. package/dist/cabinet/appliance-layout.d.ts +1 -1
  84. package/dist/cabinet/appliance-layout.d.ts.map +1 -1
  85. package/dist/cabinet/compartment-card.d.ts +1 -1
  86. package/dist/cabinet/compartment-card.js +12 -12
  87. package/dist/cabinet/continuous-placement.d.ts +1 -1
  88. package/dist/cabinet/continuous-placement.js +2 -2
  89. package/dist/cabinet/countertop-layout.d.ts +64 -53
  90. package/dist/cabinet/countertop-layout.d.ts.map +1 -1
  91. package/dist/cabinet/countertop-layout.js +3 -3
  92. package/dist/cabinet/definition.d.ts +1 -1
  93. package/dist/cabinet/definition.d.ts.map +1 -1
  94. package/dist/cabinet/definition.js +34 -30
  95. package/dist/cabinet/essential-controls.d.ts +7 -0
  96. package/dist/cabinet/essential-controls.d.ts.map +1 -0
  97. package/dist/cabinet/essential-controls.js +47 -0
  98. package/dist/cabinet/finish-operation.d.ts +9 -0
  99. package/dist/cabinet/finish-operation.d.ts.map +1 -0
  100. package/dist/cabinet/finish-operation.js +86 -0
  101. package/dist/cabinet/floorplan-move.js +3 -3
  102. package/dist/cabinet/floorplan.d.ts.map +1 -1
  103. package/dist/cabinet/floorplan.js +130 -33
  104. package/dist/cabinet/geometry/cooktop.d.ts +2 -2
  105. package/dist/cabinet/geometry/cooktop.d.ts.map +1 -1
  106. package/dist/cabinet/geometry/cooktop.js +55 -18
  107. package/dist/cabinet/geometry/dishwasher.d.ts +1 -1
  108. package/dist/cabinet/geometry/dishwasher.d.ts.map +1 -1
  109. package/dist/cabinet/geometry/dishwasher.js +5 -6
  110. package/dist/cabinet/geometry/fridge.d.ts +2 -2
  111. package/dist/cabinet/geometry/fridge.d.ts.map +1 -1
  112. package/dist/cabinet/geometry/fridge.js +49 -8
  113. package/dist/cabinet/geometry/fronts.d.ts +1 -1
  114. package/dist/cabinet/geometry/fronts.d.ts.map +1 -1
  115. package/dist/cabinet/geometry/fronts.js +22 -8
  116. package/dist/cabinet/geometry/hood.d.ts +2 -2
  117. package/dist/cabinet/geometry/hood.d.ts.map +1 -1
  118. package/dist/cabinet/geometry/hood.js +15 -3
  119. package/dist/cabinet/geometry/oven-microwave.d.ts +1 -1
  120. package/dist/cabinet/geometry/oven-microwave.d.ts.map +1 -1
  121. package/dist/cabinet/geometry/oven-microwave.js +46 -21
  122. package/dist/cabinet/geometry/pantry.d.ts +2 -2
  123. package/dist/cabinet/geometry/pantry.d.ts.map +1 -1
  124. package/dist/cabinet/geometry/pantry.js +11 -9
  125. package/dist/cabinet/geometry/run.d.ts.map +1 -1
  126. package/dist/cabinet/geometry/run.js +18 -8
  127. package/dist/cabinet/geometry/shared.d.ts +5 -4
  128. package/dist/cabinet/geometry/shared.d.ts.map +1 -1
  129. package/dist/cabinet/geometry/shared.js +78 -19
  130. package/dist/cabinet/geometry/sink.d.ts +2 -2
  131. package/dist/cabinet/geometry/sink.d.ts.map +1 -1
  132. package/dist/cabinet/geometry/sink.js +30 -12
  133. package/dist/cabinet/geometry.d.ts +1 -1
  134. package/dist/cabinet/geometry.d.ts.map +1 -1
  135. package/dist/cabinet/geometry.js +15 -11
  136. package/dist/cabinet/hosted-resize.d.ts +2 -2
  137. package/dist/cabinet/hosted-resize.d.ts.map +1 -1
  138. package/dist/cabinet/hosted-resize.js +3 -1
  139. package/dist/cabinet/index.d.ts +9 -5
  140. package/dist/cabinet/index.d.ts.map +1 -1
  141. package/dist/cabinet/index.js +9 -5
  142. package/dist/cabinet/insertion.d.ts.map +1 -1
  143. package/dist/cabinet/insertion.js +3 -1
  144. package/dist/cabinet/interaction.js +1 -1
  145. package/dist/cabinet/kitchen-catalog.d.ts +14 -0
  146. package/dist/cabinet/kitchen-catalog.d.ts.map +1 -0
  147. package/dist/cabinet/kitchen-catalog.js +62 -0
  148. package/dist/cabinet/kitchen-collection.d.ts +11 -0
  149. package/dist/cabinet/kitchen-collection.d.ts.map +1 -0
  150. package/dist/cabinet/kitchen-collection.js +19 -0
  151. package/dist/cabinet/kitchen-module-actions.d.ts +8 -0
  152. package/dist/cabinet/kitchen-module-actions.d.ts.map +1 -0
  153. package/dist/cabinet/kitchen-module-actions.js +117 -0
  154. package/dist/cabinet/kitchen-placement.d.ts +3 -0
  155. package/dist/cabinet/kitchen-placement.d.ts.map +1 -0
  156. package/dist/cabinet/kitchen-placement.js +16 -0
  157. package/dist/cabinet/move-frame.js +4 -4
  158. package/dist/cabinet/neighbor-placement.d.ts +335 -0
  159. package/dist/cabinet/neighbor-placement.d.ts.map +1 -0
  160. package/dist/cabinet/neighbor-placement.js +48 -0
  161. package/dist/cabinet/opening-clearance.d.ts +22 -0
  162. package/dist/cabinet/opening-clearance.d.ts.map +1 -0
  163. package/dist/cabinet/opening-clearance.js +158 -0
  164. package/dist/cabinet/paint.js +1 -1
  165. package/dist/cabinet/panel-visibility.js +2 -2
  166. package/dist/cabinet/panel.d.ts.map +1 -1
  167. package/dist/cabinet/panel.js +86 -77
  168. package/dist/cabinet/parametrics.js +3 -3
  169. package/dist/cabinet/placement-dimensions.js +2 -2
  170. package/dist/cabinet/placement-notice.d.ts +6 -0
  171. package/dist/cabinet/placement-notice.d.ts.map +1 -0
  172. package/dist/cabinet/placement-notice.js +34 -0
  173. package/dist/cabinet/placement-status.d.ts +2 -0
  174. package/dist/cabinet/placement-status.d.ts.map +1 -1
  175. package/dist/cabinet/placement-status.js +3 -1
  176. package/dist/cabinet/placement-type.d.ts.map +1 -1
  177. package/dist/cabinet/preset-width-debt.js +2 -2
  178. package/dist/cabinet/presets.d.ts +3 -1
  179. package/dist/cabinet/presets.d.ts.map +1 -1
  180. package/dist/cabinet/presets.js +27 -8
  181. package/dist/cabinet/quick-action-icons.js +1 -1
  182. package/dist/cabinet/quick-actions.js +7 -7
  183. package/dist/cabinet/resize-limits.d.ts.map +1 -1
  184. package/dist/cabinet/reveals.d.ts +16 -16
  185. package/dist/cabinet/reveals.d.ts.map +1 -1
  186. package/dist/cabinet/run-finishing.d.ts +168 -0
  187. package/dist/cabinet/run-finishing.d.ts.map +1 -0
  188. package/dist/cabinet/run-finishing.js +100 -0
  189. package/dist/cabinet/run-layout.d.ts.map +1 -1
  190. package/dist/cabinet/run-layout.js +28 -8
  191. package/dist/cabinet/run-ops.d.ts +61 -50
  192. package/dist/cabinet/run-ops.d.ts.map +1 -1
  193. package/dist/cabinet/run-ops.js +6 -6
  194. package/dist/cabinet/run-panel.d.ts +11 -0
  195. package/dist/cabinet/run-panel.d.ts.map +1 -1
  196. package/dist/cabinet/run-panel.js +43 -17
  197. package/dist/cabinet/scene-action.js +1 -1
  198. package/dist/cabinet/stack-transitions.d.ts +1 -1
  199. package/dist/cabinet/stack-transitions.js +2 -2
  200. package/dist/cabinet/stack.d.ts +60 -60
  201. package/dist/cabinet/stack.d.ts.map +1 -1
  202. package/dist/cabinet/stack.js +1 -1
  203. package/dist/cabinet/surfaces.js +3 -3
  204. package/dist/cabinet/system.d.ts.map +1 -1
  205. package/dist/cabinet/system.js +4 -4
  206. package/dist/cabinet/tool.d.ts +1 -2
  207. package/dist/cabinet/tool.d.ts.map +1 -1
  208. package/dist/cabinet/tool.js +228 -105
  209. package/dist/cabinet/validation.js +3 -3
  210. package/dist/cabinet/wall-snap.d.ts +1 -1
  211. package/dist/cabinet/wall-snap.d.ts.map +1 -1
  212. package/dist/cabinet/wall-snap.js +10 -10
  213. package/dist/ceiling/boundary-editor.d.ts.map +1 -1
  214. package/dist/ceiling/boundary-editor.js +5 -3
  215. package/dist/ceiling/definition.d.ts +5 -5
  216. package/dist/ceiling/definition.d.ts.map +1 -1
  217. package/dist/ceiling/definition.js +31 -29
  218. package/dist/ceiling/floorplan-affordances.d.ts +138 -58
  219. package/dist/ceiling/floorplan-affordances.d.ts.map +1 -1
  220. package/dist/ceiling/floorplan-affordances.js +1 -2
  221. package/dist/ceiling/floorplan-move.d.ts.map +1 -1
  222. package/dist/ceiling/floorplan-move.js +1 -2
  223. package/dist/ceiling/floorplan.d.ts +1 -1
  224. package/dist/ceiling/floorplan.d.ts.map +1 -1
  225. package/dist/ceiling/floorplan.js +2 -1
  226. package/dist/ceiling/height-bounds.d.ts +19 -0
  227. package/dist/ceiling/height-bounds.d.ts.map +1 -0
  228. package/dist/ceiling/height-bounds.js +24 -0
  229. package/dist/ceiling/hole-editor.d.ts.map +1 -1
  230. package/dist/ceiling/hole-editor.js +3 -4
  231. package/dist/ceiling/index.d.ts +2 -2
  232. package/dist/ceiling/index.js +2 -2
  233. package/dist/ceiling/materials.d.ts +8 -4
  234. package/dist/ceiling/materials.d.ts.map +1 -1
  235. package/dist/ceiling/materials.js +55 -21
  236. package/dist/ceiling/move-tool.d.ts.map +1 -1
  237. package/dist/ceiling/paint.d.ts +2 -8
  238. package/dist/ceiling/paint.d.ts.map +1 -1
  239. package/dist/ceiling/paint.js +112 -24
  240. package/dist/ceiling/panel.d.ts.map +1 -1
  241. package/dist/ceiling/panel.js +42 -25
  242. package/dist/ceiling/parametrics.d.ts +1 -1
  243. package/dist/ceiling/parametrics.js +1 -1
  244. package/dist/ceiling/renderer.d.ts.map +1 -1
  245. package/dist/ceiling/renderer.js +56 -21
  246. package/dist/ceiling/system.d.ts.map +1 -1
  247. package/dist/ceiling/tool.d.ts.map +1 -1
  248. package/dist/ceiling/tool.js +1 -1
  249. package/dist/chimney/definition.d.ts +1 -1
  250. package/dist/chimney/definition.d.ts.map +1 -1
  251. package/dist/chimney/definition.js +9 -8
  252. package/dist/chimney/floorplan.js +1 -1
  253. package/dist/chimney/holes.js +1 -1
  254. package/dist/chimney/index.d.ts +3 -3
  255. package/dist/chimney/index.js +3 -3
  256. package/dist/chimney/move-tool.d.ts.map +1 -1
  257. package/dist/chimney/move-tool.js +11 -5
  258. package/dist/chimney/paint.d.ts.map +1 -1
  259. package/dist/chimney/paint.js +3 -10
  260. package/dist/chimney/panel.js +4 -4
  261. package/dist/chimney/parametrics.d.ts +1 -1
  262. package/dist/chimney/parametrics.js +1 -1
  263. package/dist/chimney/presets.d.ts +1 -1
  264. package/dist/chimney/preview.d.ts.map +1 -1
  265. package/dist/chimney/preview.js +2 -2
  266. package/dist/chimney/renderer.d.ts.map +1 -1
  267. package/dist/chimney/renderer.js +4 -4
  268. package/dist/chimney/roof-trim.js +2 -2
  269. package/dist/chimney/tool.d.ts.map +1 -1
  270. package/dist/chimney/tool.js +6 -6
  271. package/dist/column/definition.d.ts +1 -1
  272. package/dist/column/definition.d.ts.map +1 -1
  273. package/dist/column/definition.js +39 -15
  274. package/dist/column/floorplan-affordances.d.ts.map +1 -1
  275. package/dist/column/floorplan-affordances.js +7 -2
  276. package/dist/column/floorplan-move.js +2 -2
  277. package/dist/column/floorplan.d.ts +1 -1
  278. package/dist/column/floorplan.d.ts.map +1 -1
  279. package/dist/column/floorplan.js +48 -3
  280. package/dist/column/hosted-resize.d.ts +134 -29
  281. package/dist/column/hosted-resize.d.ts.map +1 -1
  282. package/dist/column/hosted-resize.js +1 -1
  283. package/dist/column/index.d.ts +1 -1
  284. package/dist/column/index.js +1 -1
  285. package/dist/column/paint.js +1 -1
  286. package/dist/column/panel.d.ts.map +1 -1
  287. package/dist/column/panel.js +152 -149
  288. package/dist/column/parametrics.d.ts +1 -1
  289. package/dist/column/parametrics.js +2 -2
  290. package/dist/column/renderer.d.ts.map +1 -1
  291. package/dist/column/renderer.js +8 -6
  292. package/dist/column/surface.d.ts.map +1 -1
  293. package/dist/column/surface.js +8 -1
  294. package/dist/column/tool.d.ts.map +1 -1
  295. package/dist/column/tool.js +3 -3
  296. package/dist/construction-dimension/definition.d.ts +1 -1
  297. package/dist/construction-dimension/definition.js +6 -6
  298. package/dist/construction-dimension/floorplan-affordances.js +1 -1
  299. package/dist/construction-dimension/floorplan-tool.d.ts.map +1 -1
  300. package/dist/construction-dimension/floorplan-tool.js +1 -1
  301. package/dist/construction-dimension/floorplan.js +11 -7
  302. package/dist/construction-dimension/index.d.ts +3 -3
  303. package/dist/construction-dimension/index.js +3 -3
  304. package/dist/construction-dimension/panel.js +1 -1
  305. package/dist/construction-dimension/parametrics.js +1 -1
  306. package/dist/cupola/definition.d.ts +1 -1
  307. package/dist/cupola/definition.d.ts.map +1 -1
  308. package/dist/cupola/definition.js +11 -16
  309. package/dist/cupola/geometry.d.ts.map +1 -1
  310. package/dist/cupola/geometry.js +1 -1
  311. package/dist/cupola/index.d.ts +3 -3
  312. package/dist/cupola/index.js +3 -3
  313. package/dist/cupola/move-tool.js +4 -4
  314. package/dist/cupola/paint.js +2 -2
  315. package/dist/cupola/panel.d.ts.map +1 -1
  316. package/dist/cupola/panel.js +6 -24
  317. package/dist/cupola/parametrics.d.ts +1 -1
  318. package/dist/cupola/parametrics.js +1 -1
  319. package/dist/cupola/preview.d.ts +1 -1
  320. package/dist/cupola/preview.d.ts.map +1 -1
  321. package/dist/cupola/preview.js +2 -2
  322. package/dist/cupola/renderer.d.ts.map +1 -1
  323. package/dist/cupola/renderer.js +3 -3
  324. package/dist/cupola/tool.d.ts.map +1 -1
  325. package/dist/cupola/tool.js +7 -7
  326. package/dist/door/contextual-dimensions.js +1 -1
  327. package/dist/door/definition.d.ts +1 -1
  328. package/dist/door/definition.d.ts.map +1 -1
  329. package/dist/door/definition.js +38 -25
  330. package/dist/door/door-math.d.ts +6 -11
  331. package/dist/door/door-math.d.ts.map +1 -1
  332. package/dist/door/door-math.js +15 -16
  333. package/dist/door/floorplan-affordances.js +2 -2
  334. package/dist/door/floorplan-move.d.ts.map +1 -1
  335. package/dist/door/floorplan-move.js +7 -5
  336. package/dist/door/floorplan.d.ts.map +1 -1
  337. package/dist/door/floorplan.js +57 -23
  338. package/dist/door/index.d.ts +2 -2
  339. package/dist/door/index.js +2 -2
  340. package/dist/door/mechanism.d.ts +4 -0
  341. package/dist/door/mechanism.d.ts.map +1 -0
  342. package/dist/door/mechanism.js +24 -0
  343. package/dist/door/move-tool.d.ts.map +1 -1
  344. package/dist/door/move-tool.js +82 -58
  345. package/dist/door/paint.d.ts.map +1 -1
  346. package/dist/door/paint.js +4 -1
  347. package/dist/door/panel.d.ts.map +1 -1
  348. package/dist/door/panel.js +43 -268
  349. package/dist/door/parametrics.d.ts +1 -1
  350. package/dist/door/parametrics.js +1 -1
  351. package/dist/door/placement.d.ts +45 -0
  352. package/dist/door/placement.d.ts.map +1 -0
  353. package/dist/door/placement.js +51 -0
  354. package/dist/door/preview.d.ts +1 -1
  355. package/dist/door/preview.d.ts.map +1 -1
  356. package/dist/door/preview.js +3 -1
  357. package/dist/door/renderer.d.ts.map +1 -1
  358. package/dist/door/renderer.js +4 -3
  359. package/dist/door/system.d.ts.map +1 -1
  360. package/dist/door/system.js +1 -1
  361. package/dist/door/tool.d.ts.map +1 -1
  362. package/dist/door/tool.js +99 -28
  363. package/dist/dormer/csg-geometry.d.ts.map +1 -1
  364. package/dist/dormer/csg-geometry.js +3 -1
  365. package/dist/dormer/definition.d.ts +1 -1
  366. package/dist/dormer/definition.d.ts.map +1 -1
  367. package/dist/dormer/definition.js +10 -9
  368. package/dist/dormer/index.d.ts +4 -4
  369. package/dist/dormer/index.js +3 -3
  370. package/dist/dormer/move-tool.d.ts.map +1 -1
  371. package/dist/dormer/move-tool.js +3 -3
  372. package/dist/dormer/paint.d.ts.map +1 -1
  373. package/dist/dormer/paint.js +2 -5
  374. package/dist/dormer/panel-actions-section.js +1 -1
  375. package/dist/dormer/panel-windows-section.js +1 -1
  376. package/dist/dormer/panel.d.ts.map +1 -1
  377. package/dist/dormer/panel.js +12 -22
  378. package/dist/dormer/parametrics.d.ts +1 -1
  379. package/dist/dormer/parametrics.js +1 -1
  380. package/dist/dormer/placement-guides.js +3 -3
  381. package/dist/dormer/preview.d.ts +1 -1
  382. package/dist/dormer/preview.d.ts.map +1 -1
  383. package/dist/dormer/preview.js +2 -2
  384. package/dist/dormer/renderer.d.ts +1 -1
  385. package/dist/dormer/renderer.d.ts.map +1 -1
  386. package/dist/dormer/renderer.js +2 -2
  387. package/dist/dormer/tool.d.ts.map +1 -1
  388. package/dist/dormer/tool.js +6 -6
  389. package/dist/dormer/use-dormer-placement.js +3 -3
  390. package/dist/downspout/definition.d.ts +1 -1
  391. package/dist/downspout/definition.d.ts.map +1 -1
  392. package/dist/downspout/definition.js +11 -10
  393. package/dist/downspout/geometry.d.ts +1 -1
  394. package/dist/downspout/geometry.js +2 -2
  395. package/dist/downspout/index.d.ts +3 -3
  396. package/dist/downspout/index.js +3 -3
  397. package/dist/downspout/parametrics.d.ts +1 -1
  398. package/dist/downspout/parametrics.js +1 -1
  399. package/dist/downspout/preview.d.ts +2 -2
  400. package/dist/downspout/preview.d.ts.map +1 -1
  401. package/dist/downspout/preview.js +3 -3
  402. package/dist/downspout/renderer.d.ts.map +1 -1
  403. package/dist/downspout/renderer.js +5 -5
  404. package/dist/downspout/routing.d.ts +2 -2
  405. package/dist/downspout/routing.d.ts.map +1 -1
  406. package/dist/downspout/routing.js +5 -4
  407. package/dist/downspout/system.d.ts.map +1 -1
  408. package/dist/downspout/tool.d.ts.map +1 -1
  409. package/dist/downspout/tool.js +7 -7
  410. package/dist/duct-fitting/accessory-geometry.js +1 -1
  411. package/dist/duct-fitting/definition.d.ts +1 -1
  412. package/dist/duct-fitting/definition.d.ts.map +1 -1
  413. package/dist/duct-fitting/definition.js +12 -11
  414. package/dist/duct-fitting/floorplan.d.ts +1 -1
  415. package/dist/duct-fitting/floorplan.js +5 -5
  416. package/dist/duct-fitting/geometry.d.ts +1 -1
  417. package/dist/duct-fitting/geometry.d.ts.map +1 -1
  418. package/dist/duct-fitting/geometry.js +4 -4
  419. package/dist/duct-fitting/index.d.ts +4 -4
  420. package/dist/duct-fitting/index.js +4 -4
  421. package/dist/duct-fitting/inspector-editors.d.ts +1 -1
  422. package/dist/duct-fitting/move-tool.d.ts.map +1 -1
  423. package/dist/duct-fitting/move-tool.js +12 -6
  424. package/dist/duct-fitting/parametrics.d.ts +1 -1
  425. package/dist/duct-fitting/parametrics.js +3 -3
  426. package/dist/duct-fitting/ports.d.ts +1 -1
  427. package/dist/duct-fitting/selection.d.ts.map +1 -1
  428. package/dist/duct-fitting/selection.js +8 -9
  429. package/dist/duct-fitting/tool.d.ts +1 -1
  430. package/dist/duct-fitting/tool.d.ts.map +1 -1
  431. package/dist/duct-fitting/tool.js +14 -15
  432. package/dist/duct-segment/continuation.d.ts +3 -3
  433. package/dist/duct-segment/continuation.d.ts.map +1 -1
  434. package/dist/duct-segment/continuation.js +2 -2
  435. package/dist/duct-segment/definition.d.ts +1 -1
  436. package/dist/duct-segment/definition.d.ts.map +1 -1
  437. package/dist/duct-segment/definition.js +14 -14
  438. package/dist/duct-segment/floorplan.d.ts +1 -1
  439. package/dist/duct-segment/floorplan.js +3 -3
  440. package/dist/duct-segment/geometry.d.ts +1 -1
  441. package/dist/duct-segment/geometry.d.ts.map +1 -1
  442. package/dist/duct-segment/geometry.js +2 -2
  443. package/dist/duct-segment/index.d.ts +3 -3
  444. package/dist/duct-segment/index.js +3 -3
  445. package/dist/duct-segment/move-tool.d.ts.map +1 -1
  446. package/dist/duct-segment/move-tool.js +16 -9
  447. package/dist/duct-segment/parametrics.d.ts +1 -1
  448. package/dist/duct-segment/parametrics.js +5 -5
  449. package/dist/duct-segment/selection.d.ts.map +1 -1
  450. package/dist/duct-segment/selection.js +13 -12
  451. package/dist/duct-segment/tool.d.ts +1 -2
  452. package/dist/duct-segment/tool.d.ts.map +1 -1
  453. package/dist/duct-segment/tool.js +22 -18
  454. package/dist/duct-terminal/definition.d.ts +1 -1
  455. package/dist/duct-terminal/definition.js +6 -6
  456. package/dist/duct-terminal/floorplan.d.ts +1 -1
  457. package/dist/duct-terminal/floorplan.js +1 -1
  458. package/dist/duct-terminal/geometry.d.ts +1 -1
  459. package/dist/duct-terminal/geometry.js +2 -2
  460. package/dist/duct-terminal/index.d.ts +4 -4
  461. package/dist/duct-terminal/index.js +4 -4
  462. package/dist/duct-terminal/parametrics.d.ts +1 -1
  463. package/dist/duct-terminal/ports.d.ts +1 -1
  464. package/dist/duct-terminal/ports.js +1 -1
  465. package/dist/duct-terminal/tool.d.ts.map +1 -1
  466. package/dist/duct-terminal/tool.js +11 -12
  467. package/dist/elevator/definition.d.ts +1 -1
  468. package/dist/elevator/definition.d.ts.map +1 -1
  469. package/dist/elevator/definition.js +8 -9
  470. package/dist/elevator/floorplan-affordances.js +1 -1
  471. package/dist/elevator/index.d.ts +1 -1
  472. package/dist/elevator/index.js +1 -1
  473. package/dist/elevator/paint.js +1 -1
  474. package/dist/elevator/panel.d.ts.map +1 -1
  475. package/dist/elevator/panel.js +14 -36
  476. package/dist/elevator/parametrics.js +2 -2
  477. package/dist/elevator/renderer.d.ts.map +1 -1
  478. package/dist/elevator/renderer.js +4 -5
  479. package/dist/elevator/system.js +1 -1
  480. package/dist/eyebrow-vent/definition.d.ts +1 -1
  481. package/dist/eyebrow-vent/definition.d.ts.map +1 -1
  482. package/dist/eyebrow-vent/definition.js +11 -13
  483. package/dist/eyebrow-vent/geometry.d.ts.map +1 -1
  484. package/dist/eyebrow-vent/geometry.js +1 -1
  485. package/dist/eyebrow-vent/index.d.ts +3 -3
  486. package/dist/eyebrow-vent/index.js +3 -3
  487. package/dist/eyebrow-vent/move-tool.js +4 -4
  488. package/dist/eyebrow-vent/paint.d.ts.map +1 -1
  489. package/dist/eyebrow-vent/paint.js +5 -8
  490. package/dist/eyebrow-vent/panel.d.ts.map +1 -1
  491. package/dist/eyebrow-vent/panel.js +6 -24
  492. package/dist/eyebrow-vent/parametrics.d.ts +1 -1
  493. package/dist/eyebrow-vent/parametrics.js +1 -1
  494. package/dist/eyebrow-vent/preview.d.ts +1 -1
  495. package/dist/eyebrow-vent/preview.d.ts.map +1 -1
  496. package/dist/eyebrow-vent/preview.js +2 -2
  497. package/dist/eyebrow-vent/renderer.d.ts.map +1 -1
  498. package/dist/eyebrow-vent/renderer.js +3 -3
  499. package/dist/eyebrow-vent/tool.d.ts.map +1 -1
  500. package/dist/eyebrow-vent/tool.js +7 -7
  501. package/dist/fence/actions/move-endpoint.d.ts +1 -1
  502. package/dist/fence/actions/move-endpoint.d.ts.map +1 -1
  503. package/dist/fence/actions/move-endpoint.js +2 -1
  504. package/dist/fence/curve-tool.d.ts.map +1 -1
  505. package/dist/fence/definition.d.ts +3 -2
  506. package/dist/fence/definition.d.ts.map +1 -1
  507. package/dist/fence/definition.js +113 -43
  508. package/dist/fence/drafting.d.ts +42 -0
  509. package/dist/fence/drafting.d.ts.map +1 -0
  510. package/dist/fence/drafting.js +269 -0
  511. package/dist/fence/feature-tool.d.ts +4 -0
  512. package/dist/fence/feature-tool.d.ts.map +1 -0
  513. package/dist/fence/feature-tool.js +140 -0
  514. package/dist/fence/features.d.ts +2 -0
  515. package/dist/fence/features.d.ts.map +1 -0
  516. package/dist/fence/features.js +12 -0
  517. package/dist/fence/floorplan-affordances.d.ts.map +1 -1
  518. package/dist/fence/floorplan-affordances.js +2 -1
  519. package/dist/fence/floorplan.d.ts +2 -3
  520. package/dist/fence/floorplan.d.ts.map +1 -1
  521. package/dist/fence/floorplan.js +131 -71
  522. package/dist/fence/geometry-parts.d.ts +50 -0
  523. package/dist/fence/geometry-parts.d.ts.map +1 -0
  524. package/dist/fence/geometry-parts.js +1144 -0
  525. package/dist/fence/geometry.d.ts +2 -3
  526. package/dist/fence/geometry.d.ts.map +1 -1
  527. package/dist/fence/geometry.js +85 -8
  528. package/dist/fence/index.d.ts +3 -2
  529. package/dist/fence/index.d.ts.map +1 -1
  530. package/dist/fence/index.js +3 -2
  531. package/dist/fence/inspector-editors.d.ts +15 -0
  532. package/dist/fence/inspector-editors.d.ts.map +1 -1
  533. package/dist/fence/inspector-editors.js +128 -3
  534. package/dist/fence/lift.d.ts +3 -3
  535. package/dist/fence/lift.d.ts.map +1 -1
  536. package/dist/fence/lift.js +15 -3
  537. package/dist/fence/move-control-point-tool.d.ts.map +1 -1
  538. package/dist/fence/move-endpoint-tool.d.ts.map +1 -1
  539. package/dist/fence/move-endpoint-tool.js +4 -4
  540. package/dist/fence/move-tangent-tool.d.ts.map +1 -1
  541. package/dist/fence/move-tool.d.ts.map +1 -1
  542. package/dist/fence/move-tool.js +2 -1
  543. package/dist/fence/paint.js +1 -1
  544. package/dist/fence/panel-model.d.ts +4 -0
  545. package/dist/fence/panel-model.d.ts.map +1 -0
  546. package/dist/fence/panel-model.js +12 -0
  547. package/dist/fence/parametrics.d.ts +1 -13
  548. package/dist/fence/parametrics.d.ts.map +1 -1
  549. package/dist/fence/parametrics.js +185 -18
  550. package/dist/fence/system.d.ts.map +1 -1
  551. package/dist/fence/system.js +142 -32
  552. package/dist/fence/tool.d.ts.map +1 -1
  553. package/dist/fence/tool.js +339 -56
  554. package/dist/fence-feature/actions.d.ts +7 -0
  555. package/dist/fence-feature/actions.d.ts.map +1 -0
  556. package/dist/fence-feature/actions.js +26 -0
  557. package/dist/fence-feature/definition.d.ts +4 -0
  558. package/dist/fence-feature/definition.d.ts.map +1 -0
  559. package/dist/fence-feature/definition.js +116 -0
  560. package/dist/fence-feature/floorplan-affordances.d.ts +3 -0
  561. package/dist/fence-feature/floorplan-affordances.d.ts.map +1 -0
  562. package/dist/fence-feature/floorplan-affordances.js +37 -0
  563. package/dist/fence-feature/floorplan.d.ts +4 -0
  564. package/dist/fence-feature/floorplan.d.ts.map +1 -0
  565. package/dist/fence-feature/floorplan.js +120 -0
  566. package/dist/fence-feature/geometry.d.ts +5 -0
  567. package/dist/fence-feature/geometry.d.ts.map +1 -0
  568. package/dist/fence-feature/geometry.js +43 -0
  569. package/dist/fence-feature/handles.d.ts +5 -0
  570. package/dist/fence-feature/handles.d.ts.map +1 -0
  571. package/dist/fence-feature/handles.js +84 -0
  572. package/dist/fence-feature/inspector.d.ts +6 -0
  573. package/dist/fence-feature/inspector.d.ts.map +1 -0
  574. package/dist/fence-feature/inspector.js +214 -0
  575. package/dist/fence-feature/interaction.d.ts +3 -0
  576. package/dist/fence-feature/interaction.d.ts.map +1 -0
  577. package/dist/fence-feature/interaction.js +41 -0
  578. package/dist/fence-feature/move-session.d.ts +9 -0
  579. package/dist/fence-feature/move-session.d.ts.map +1 -0
  580. package/dist/fence-feature/move-session.js +48 -0
  581. package/dist/fence-feature/move-tool.d.ts +5 -0
  582. package/dist/fence-feature/move-tool.d.ts.map +1 -0
  583. package/dist/fence-feature/move-tool.js +58 -0
  584. package/dist/fence-feature/pick-target.d.ts +7 -0
  585. package/dist/fence-feature/pick-target.d.ts.map +1 -0
  586. package/dist/fence-feature/pick-target.js +52 -0
  587. package/dist/floor-opening/definition.d.ts +3 -0
  588. package/dist/floor-opening/definition.d.ts.map +1 -0
  589. package/dist/floor-opening/definition.js +41 -0
  590. package/dist/floor-opening/floorplan.d.ts +156 -0
  591. package/dist/floor-opening/floorplan.d.ts.map +1 -0
  592. package/dist/floor-opening/floorplan.js +63 -0
  593. package/dist/guide/definition.d.ts +1 -1
  594. package/dist/guide/definition.js +4 -4
  595. package/dist/guide/index.d.ts +1 -1
  596. package/dist/guide/index.js +1 -1
  597. package/dist/guide/renderer.d.ts.map +1 -1
  598. package/dist/guide/system.d.ts.map +1 -1
  599. package/dist/gutter/definition.d.ts +1 -1
  600. package/dist/gutter/definition.d.ts.map +1 -1
  601. package/dist/gutter/definition.js +12 -11
  602. package/dist/gutter/downspouts-panel.js +3 -3
  603. package/dist/gutter/eave-align.js +2 -2
  604. package/dist/gutter/eave-snap.d.ts.map +1 -1
  605. package/dist/gutter/eave-snap.js +2 -2
  606. package/dist/gutter/floorplan.d.ts.map +1 -1
  607. package/dist/gutter/floorplan.js +5 -4
  608. package/dist/gutter/geometry.d.ts +1 -1
  609. package/dist/gutter/geometry.js +3 -3
  610. package/dist/gutter/index.d.ts +3 -3
  611. package/dist/gutter/index.js +3 -3
  612. package/dist/gutter/move-tool.js +4 -4
  613. package/dist/gutter/outlet-lookup.d.ts +1 -1
  614. package/dist/gutter/outlet-lookup.js +1 -1
  615. package/dist/gutter/paint.js +1 -1
  616. package/dist/gutter/parametrics.d.ts +1 -1
  617. package/dist/gutter/parametrics.js +1 -1
  618. package/dist/gutter/preview.d.ts +1 -1
  619. package/dist/gutter/preview.d.ts.map +1 -1
  620. package/dist/gutter/preview.js +3 -3
  621. package/dist/gutter/renderer.d.ts.map +1 -1
  622. package/dist/gutter/renderer.js +6 -6
  623. package/dist/gutter/tool.d.ts.map +1 -1
  624. package/dist/gutter/tool.js +7 -7
  625. package/dist/hvac-equipment/definition.d.ts +1 -1
  626. package/dist/hvac-equipment/definition.js +6 -6
  627. package/dist/hvac-equipment/floorplan.d.ts +1 -1
  628. package/dist/hvac-equipment/floorplan.js +2 -2
  629. package/dist/hvac-equipment/geometry.d.ts +1 -1
  630. package/dist/hvac-equipment/geometry.js +2 -2
  631. package/dist/hvac-equipment/index.d.ts +4 -4
  632. package/dist/hvac-equipment/index.js +4 -4
  633. package/dist/hvac-equipment/parametrics.d.ts +1 -1
  634. package/dist/hvac-equipment/ports.d.ts +1 -1
  635. package/dist/hvac-equipment/ports.js +1 -1
  636. package/dist/hvac-equipment/tool.d.ts.map +1 -1
  637. package/dist/hvac-equipment/tool.js +7 -8
  638. package/dist/imported-mesh/definition.d.ts +1 -1
  639. package/dist/imported-mesh/definition.d.ts.map +1 -1
  640. package/dist/imported-mesh/definition.js +5 -3
  641. package/dist/imported-mesh/geometry.d.ts +1 -1
  642. package/dist/imported-mesh/geometry.d.ts.map +1 -1
  643. package/dist/imported-mesh/geometry.js +40 -12
  644. package/dist/imported-mesh/index.d.ts +3 -3
  645. package/dist/imported-mesh/index.js +3 -3
  646. package/dist/index.d.ts +65 -50
  647. package/dist/index.d.ts.map +1 -1
  648. package/dist/index.js +122 -100
  649. package/dist/item/authored-face-host.d.ts +10 -0
  650. package/dist/item/authored-face-host.d.ts.map +1 -0
  651. package/dist/item/authored-face-host.js +87 -0
  652. package/dist/item/authored-params.d.ts +15 -0
  653. package/dist/item/authored-params.d.ts.map +1 -0
  654. package/dist/item/authored-params.js +72 -0
  655. package/dist/item/definition.d.ts +3 -3
  656. package/dist/item/definition.d.ts.map +1 -1
  657. package/dist/item/definition.js +46 -15
  658. package/dist/item/floorplan-move.js +4 -4
  659. package/dist/item/floorplan.d.ts +1 -1
  660. package/dist/item/floorplan.d.ts.map +1 -1
  661. package/dist/item/floorplan.js +36 -6
  662. package/dist/item/index.d.ts +3 -2
  663. package/dist/item/index.d.ts.map +1 -1
  664. package/dist/item/index.js +3 -2
  665. package/dist/item/model-loader.d.ts +7 -0
  666. package/dist/item/model-loader.d.ts.map +1 -1
  667. package/dist/item/model-loader.js +104 -23
  668. package/dist/item/move-tool.d.ts.map +1 -1
  669. package/dist/item/move-tool.js +4 -4
  670. package/dist/item/paint.d.ts.map +1 -1
  671. package/dist/item/paint.js +5 -24
  672. package/dist/item/panel.d.ts +1 -3
  673. package/dist/item/panel.d.ts.map +1 -1
  674. package/dist/item/panel.js +23 -27
  675. package/dist/item/parametrics.d.ts +1 -1
  676. package/dist/item/parametrics.js +1 -1
  677. package/dist/item/placement-notice.d.ts +14 -0
  678. package/dist/item/placement-notice.d.ts.map +1 -0
  679. package/dist/item/placement-notice.js +38 -0
  680. package/dist/item/plan-symbols.d.ts +67 -0
  681. package/dist/item/plan-symbols.d.ts.map +1 -0
  682. package/dist/item/plan-symbols.js +407 -0
  683. package/dist/item/renderer.d.ts +10 -0
  684. package/dist/item/renderer.d.ts.map +1 -1
  685. package/dist/item/renderer.js +78 -48
  686. package/dist/item/script-param-defaults.d.ts +12 -0
  687. package/dist/item/script-param-defaults.d.ts.map +1 -0
  688. package/dist/item/script-param-defaults.js +34 -0
  689. package/dist/item/system.d.ts.map +1 -1
  690. package/dist/item/system.js +7 -2
  691. package/dist/item/tool.d.ts.map +1 -1
  692. package/dist/item/tool.js +3 -3
  693. package/dist/item/wall-object-observations.d.ts +6 -0
  694. package/dist/item/wall-object-observations.d.ts.map +1 -0
  695. package/dist/item/wall-object-observations.js +260 -0
  696. package/dist/lean-to-extension/assembly.d.ts +2 -2
  697. package/dist/lean-to-extension/assembly.js +8 -8
  698. package/dist/lean-to-extension/canopy-joint.d.ts +1 -1
  699. package/dist/lean-to-extension/canopy-joint.js +1 -1
  700. package/dist/lean-to-extension/corner-joint.js +4 -4
  701. package/dist/lean-to-extension/definition.d.ts +1 -1
  702. package/dist/lean-to-extension/definition.d.ts.map +1 -1
  703. package/dist/lean-to-extension/definition.js +18 -18
  704. package/dist/lean-to-extension/floorplan-affordances.js +4 -4
  705. package/dist/lean-to-extension/floorplan-move.js +4 -4
  706. package/dist/lean-to-extension/floorplan-tool.d.ts.map +1 -1
  707. package/dist/lean-to-extension/floorplan-tool.js +7 -7
  708. package/dist/lean-to-extension/floorplan.js +5 -5
  709. package/dist/lean-to-extension/geometry.d.ts.map +1 -1
  710. package/dist/lean-to-extension/geometry.js +5 -5
  711. package/dist/lean-to-extension/index.d.ts +7 -7
  712. package/dist/lean-to-extension/index.js +7 -7
  713. package/dist/lean-to-extension/layout.d.ts +1 -1
  714. package/dist/lean-to-extension/layout.d.ts.map +1 -1
  715. package/dist/lean-to-extension/layout.js +6 -7
  716. package/dist/lean-to-extension/managed-preview.js +4 -4
  717. package/dist/lean-to-extension/move-tool.d.ts.map +1 -1
  718. package/dist/lean-to-extension/move-tool.js +5 -5
  719. package/dist/lean-to-extension/paint.js +1 -1
  720. package/dist/lean-to-extension/parametrics.js +1 -1
  721. package/dist/lean-to-extension/placement-validation.d.ts.map +1 -1
  722. package/dist/lean-to-extension/placement-validation.js +9 -9
  723. package/dist/lean-to-extension/placement.d.ts +1 -1
  724. package/dist/lean-to-extension/placement.js +6 -6
  725. package/dist/lean-to-extension/plan-footprint.js +2 -2
  726. package/dist/lean-to-extension/preview-geometry.js +1 -1
  727. package/dist/lean-to-extension/preview.d.ts.map +1 -1
  728. package/dist/lean-to-extension/preview.js +1 -1
  729. package/dist/lean-to-extension/renderer.d.ts.map +1 -1
  730. package/dist/lean-to-extension/renderer.js +1 -1
  731. package/dist/lean-to-extension/roof-attachment.d.ts.map +1 -1
  732. package/dist/lean-to-extension/roof-attachment.js +4 -4
  733. package/dist/lean-to-extension/system.d.ts.map +1 -1
  734. package/dist/lean-to-extension/system.js +10 -10
  735. package/dist/lean-to-extension/tool.d.ts.map +1 -1
  736. package/dist/lean-to-extension/tool.js +16 -16
  737. package/dist/level/definition.d.ts +1 -1
  738. package/dist/level/definition.d.ts.map +1 -1
  739. package/dist/level/definition.js +5 -4
  740. package/dist/level/index.d.ts +1 -1
  741. package/dist/level/index.js +1 -1
  742. package/dist/level/renderer.d.ts.map +1 -1
  743. package/dist/level/system.d.ts.map +1 -1
  744. package/dist/lineset/definition.d.ts +1 -1
  745. package/dist/lineset/definition.js +8 -8
  746. package/dist/lineset/floorplan.d.ts +1 -1
  747. package/dist/lineset/floorplan.js +1 -1
  748. package/dist/lineset/geometry.d.ts +1 -1
  749. package/dist/lineset/geometry.js +1 -1
  750. package/dist/lineset/index.d.ts +3 -3
  751. package/dist/lineset/index.js +3 -3
  752. package/dist/lineset/move-tool.d.ts.map +1 -1
  753. package/dist/lineset/move-tool.js +10 -4
  754. package/dist/lineset/parametrics.d.ts +1 -1
  755. package/dist/lineset/selection.d.ts.map +1 -1
  756. package/dist/lineset/selection.js +1 -1
  757. package/dist/lineset/tool.d.ts.map +1 -1
  758. package/dist/lineset/tool.js +7 -8
  759. package/dist/liquid-line/definition.d.ts +1 -1
  760. package/dist/liquid-line/definition.js +8 -8
  761. package/dist/liquid-line/floorplan.d.ts +1 -1
  762. package/dist/liquid-line/floorplan.js +1 -1
  763. package/dist/liquid-line/geometry.d.ts +1 -1
  764. package/dist/liquid-line/geometry.js +1 -1
  765. package/dist/liquid-line/index.d.ts +4 -4
  766. package/dist/liquid-line/index.js +4 -4
  767. package/dist/liquid-line/move-tool.d.ts.map +1 -1
  768. package/dist/liquid-line/move-tool.js +9 -3
  769. package/dist/liquid-line/parametrics.d.ts +1 -1
  770. package/dist/liquid-line/selection.d.ts.map +1 -1
  771. package/dist/liquid-line/selection.js +1 -1
  772. package/dist/liquid-line/tool.d.ts.map +1 -1
  773. package/dist/liquid-line/tool.js +9 -10
  774. package/dist/measurement/definition.d.ts +1 -1
  775. package/dist/measurement/definition.js +7 -7
  776. package/dist/measurement/edit.d.ts +1 -1
  777. package/dist/measurement/floorplan-affordance.js +2 -2
  778. package/dist/measurement/floorplan.js +2 -2
  779. package/dist/measurement/index.d.ts +2 -2
  780. package/dist/measurement/index.js +2 -2
  781. package/dist/measurement/renderer.d.ts.map +1 -1
  782. package/dist/measurement/renderer.js +2 -2
  783. package/dist/measurement/selection.d.ts.map +1 -1
  784. package/dist/measurement/selection.js +4 -4
  785. package/dist/measurement/smart-surface.d.ts +1 -1
  786. package/dist/measurement/smart-tool.d.ts.map +1 -1
  787. package/dist/measurement/smart-tool.js +2 -2
  788. package/dist/measurement/surface-query.js +1 -1
  789. package/dist/measurement/tool-router.js +2 -2
  790. package/dist/measurement/tool.d.ts +1 -1
  791. package/dist/measurement/tool.d.ts.map +1 -1
  792. package/dist/measurement/tool.js +3 -3
  793. package/dist/pipe-fitting/definition.d.ts +1 -1
  794. package/dist/pipe-fitting/definition.js +11 -11
  795. package/dist/pipe-fitting/floorplan.d.ts +1 -1
  796. package/dist/pipe-fitting/floorplan.js +4 -4
  797. package/dist/pipe-fitting/geometry.d.ts +1 -1
  798. package/dist/pipe-fitting/geometry.js +4 -4
  799. package/dist/pipe-fitting/index.d.ts +4 -4
  800. package/dist/pipe-fitting/index.js +4 -4
  801. package/dist/pipe-fitting/inline-insertion.d.ts +1 -1
  802. package/dist/pipe-fitting/inline-insertion.d.ts.map +1 -1
  803. package/dist/pipe-fitting/inline-insertion.js +1 -1
  804. package/dist/pipe-fitting/move-tool.d.ts.map +1 -1
  805. package/dist/pipe-fitting/move-tool.js +11 -5
  806. package/dist/pipe-fitting/parametrics.d.ts +1 -1
  807. package/dist/pipe-fitting/parametrics.js +1 -1
  808. package/dist/pipe-fitting/ports.d.ts +1 -1
  809. package/dist/pipe-fitting/ports.js +1 -1
  810. package/dist/pipe-fitting/selection.d.ts.map +1 -1
  811. package/dist/pipe-fitting/selection.js +6 -7
  812. package/dist/pipe-fitting/tool.d.ts +2 -2
  813. package/dist/pipe-fitting/tool.d.ts.map +1 -1
  814. package/dist/pipe-fitting/tool.js +15 -16
  815. package/dist/pipe-segment/continuation.d.ts +4 -4
  816. package/dist/pipe-segment/continuation.d.ts.map +1 -1
  817. package/dist/pipe-segment/continuation.js +1 -1
  818. package/dist/pipe-segment/definition.d.ts +1 -1
  819. package/dist/pipe-segment/definition.js +11 -11
  820. package/dist/pipe-segment/floorplan.d.ts +1 -1
  821. package/dist/pipe-segment/floorplan.js +3 -3
  822. package/dist/pipe-segment/geometry.d.ts +1 -1
  823. package/dist/pipe-segment/geometry.js +2 -2
  824. package/dist/pipe-segment/index.d.ts +3 -3
  825. package/dist/pipe-segment/index.js +3 -3
  826. package/dist/pipe-segment/move-tool.d.ts.map +1 -1
  827. package/dist/pipe-segment/move-tool.js +11 -5
  828. package/dist/pipe-segment/parametrics.d.ts +1 -1
  829. package/dist/pipe-segment/parametrics.js +3 -3
  830. package/dist/pipe-segment/selection.d.ts.map +1 -1
  831. package/dist/pipe-segment/selection.js +10 -9
  832. package/dist/pipe-segment/tool.d.ts.map +1 -1
  833. package/dist/pipe-segment/tool.js +13 -14
  834. package/dist/pipe-trap/definition.d.ts +1 -1
  835. package/dist/pipe-trap/definition.js +6 -6
  836. package/dist/pipe-trap/floorplan.d.ts +1 -1
  837. package/dist/pipe-trap/floorplan.js +1 -1
  838. package/dist/pipe-trap/geometry.d.ts +1 -1
  839. package/dist/pipe-trap/geometry.js +2 -2
  840. package/dist/pipe-trap/index.d.ts +4 -4
  841. package/dist/pipe-trap/index.js +4 -4
  842. package/dist/pipe-trap/parametrics.d.ts +1 -1
  843. package/dist/pipe-trap/ports.d.ts +1 -1
  844. package/dist/pipe-trap/ports.js +1 -1
  845. package/dist/pipe-trap/tool.d.ts.map +1 -1
  846. package/dist/pipe-trap/tool.js +7 -8
  847. package/dist/procedural-item/animation.d.ts +8 -0
  848. package/dist/procedural-item/animation.d.ts.map +1 -0
  849. package/dist/procedural-item/animation.js +116 -0
  850. package/dist/procedural-item/definition.d.ts.map +1 -1
  851. package/dist/procedural-item/definition.js +81 -13
  852. package/dist/procedural-item/geometry.d.ts +5 -1
  853. package/dist/procedural-item/geometry.d.ts.map +1 -1
  854. package/dist/procedural-item/geometry.js +239 -15
  855. package/dist/procedural-item/index.d.ts +2 -2
  856. package/dist/procedural-item/index.js +2 -2
  857. package/dist/procedural-item/move-session.d.ts +1 -1
  858. package/dist/procedural-item/move-session.js +2 -2
  859. package/dist/procedural-item/move-tool.js +3 -3
  860. package/dist/procedural-item/renderer.d.ts.map +1 -1
  861. package/dist/procedural-item/renderer.js +273 -24
  862. package/dist/ridge-vent/definition.d.ts +1 -1
  863. package/dist/ridge-vent/definition.d.ts.map +1 -1
  864. package/dist/ridge-vent/definition.js +9 -8
  865. package/dist/ridge-vent/geometry.js +1 -1
  866. package/dist/ridge-vent/index.d.ts +3 -3
  867. package/dist/ridge-vent/index.js +3 -3
  868. package/dist/ridge-vent/move-tool.js +5 -5
  869. package/dist/ridge-vent/panel.d.ts.map +1 -1
  870. package/dist/ridge-vent/panel.js +6 -24
  871. package/dist/ridge-vent/parametrics.d.ts +1 -1
  872. package/dist/ridge-vent/parametrics.js +1 -1
  873. package/dist/ridge-vent/preview.d.ts +1 -1
  874. package/dist/ridge-vent/preview.d.ts.map +1 -1
  875. package/dist/ridge-vent/preview.js +2 -2
  876. package/dist/ridge-vent/renderer.d.ts.map +1 -1
  877. package/dist/ridge-vent/renderer.js +14 -12
  878. package/dist/ridge-vent/tool.d.ts.map +1 -1
  879. package/dist/ridge-vent/tool.js +8 -8
  880. package/dist/roof/barrel-panel.d.ts +5 -0
  881. package/dist/roof/barrel-panel.d.ts.map +1 -0
  882. package/dist/roof/barrel-panel.js +17 -0
  883. package/dist/roof/conical-roof.d.ts +5 -1
  884. package/dist/roof/conical-roof.d.ts.map +1 -1
  885. package/dist/roof/conical-roof.js +19 -15
  886. package/dist/roof/definition.d.ts +1 -1
  887. package/dist/roof/definition.d.ts.map +1 -1
  888. package/dist/roof/definition.js +22 -11
  889. package/dist/roof/floorplan.d.ts +8 -0
  890. package/dist/roof/floorplan.d.ts.map +1 -1
  891. package/dist/roof/floorplan.js +202 -19
  892. package/dist/roof/glazed-geometry.d.ts +5 -0
  893. package/dist/roof/glazed-geometry.d.ts.map +1 -0
  894. package/dist/roof/glazed-geometry.js +27 -0
  895. package/dist/roof/glazed-materials.d.ts +14 -0
  896. package/dist/roof/glazed-materials.d.ts.map +1 -0
  897. package/dist/roof/glazed-materials.js +42 -0
  898. package/dist/roof/glazing-controls.d.ts +33 -0
  899. package/dist/roof/glazing-controls.d.ts.map +1 -0
  900. package/dist/roof/glazing-controls.js +50 -0
  901. package/dist/roof/glazing-panel-editor.d.ts +6 -0
  902. package/dist/roof/glazing-panel-editor.d.ts.map +1 -0
  903. package/dist/roof/glazing-panel-editor.js +44 -0
  904. package/dist/roof/glazing-panel.d.ts +5 -0
  905. package/dist/roof/glazing-panel.d.ts.map +1 -0
  906. package/dist/roof/glazing-panel.js +41 -0
  907. package/dist/roof/glazing-preview.d.ts +10 -0
  908. package/dist/roof/glazing-preview.d.ts.map +1 -0
  909. package/dist/roof/glazing-preview.js +48 -0
  910. package/dist/roof/index.d.ts +3 -3
  911. package/dist/roof/index.js +3 -3
  912. package/dist/roof/panel-model.d.ts.map +1 -1
  913. package/dist/roof/panel-model.js +10 -6
  914. package/dist/roof/panel.d.ts.map +1 -1
  915. package/dist/roof/panel.js +43 -15
  916. package/dist/roof/parametrics.js +1 -1
  917. package/dist/roof/renderer.d.ts.map +1 -1
  918. package/dist/roof/renderer.js +40 -7
  919. package/dist/roof/roof-footprint-source.d.ts.map +1 -1
  920. package/dist/roof/roof-level-target.d.ts +75 -0
  921. package/dist/roof/roof-level-target.d.ts.map +1 -0
  922. package/dist/roof/roof-level-target.js +119 -0
  923. package/dist/roof/roof-placement-mode.d.ts +3 -2
  924. package/dist/roof/roof-placement-mode.d.ts.map +1 -1
  925. package/dist/roof/system.d.ts +1 -2
  926. package/dist/roof/system.d.ts.map +1 -1
  927. package/dist/roof/system.js +5 -1
  928. package/dist/roof/tool.d.ts +3 -3
  929. package/dist/roof/tool.d.ts.map +1 -1
  930. package/dist/roof/tool.js +80 -41
  931. package/dist/roof-segment/definition.d.ts +1 -1
  932. package/dist/roof-segment/definition.d.ts.map +1 -1
  933. package/dist/roof-segment/definition.js +31 -62
  934. package/dist/roof-segment/floorplan-affordances.d.ts.map +1 -1
  935. package/dist/roof-segment/floorplan-affordances.js +13 -34
  936. package/dist/roof-segment/floorplan.d.ts.map +1 -1
  937. package/dist/roof-segment/floorplan.js +1 -0
  938. package/dist/roof-segment/index.d.ts +1 -1
  939. package/dist/roof-segment/index.js +1 -1
  940. package/dist/roof-segment/measurement.js +1 -1
  941. package/dist/roof-segment/paint.d.ts +4 -0
  942. package/dist/roof-segment/paint.d.ts.map +1 -0
  943. package/dist/roof-segment/paint.js +92 -0
  944. package/dist/roof-segment/panel.d.ts.map +1 -1
  945. package/dist/roof-segment/panel.js +20 -30
  946. package/dist/roof-segment/parametrics.d.ts +1 -1
  947. package/dist/roof-segment/parametrics.d.ts.map +1 -1
  948. package/dist/roof-segment/parametrics.js +12 -1
  949. package/dist/roof-segment/renderer.d.ts +1 -1
  950. package/dist/roof-segment/renderer.d.ts.map +1 -1
  951. package/dist/roof-segment/renderer.js +81 -19
  952. package/dist/scan/definition.d.ts +1 -1
  953. package/dist/scan/definition.js +4 -4
  954. package/dist/scan/index.d.ts +1 -1
  955. package/dist/scan/index.js +1 -1
  956. package/dist/scan/renderer.d.ts.map +1 -1
  957. package/dist/scan/system.d.ts.map +1 -1
  958. package/dist/separator/definition.d.ts +3 -0
  959. package/dist/separator/definition.d.ts.map +1 -0
  960. package/dist/separator/definition.js +39 -0
  961. package/dist/separator/renderer.d.ts +5 -0
  962. package/dist/separator/renderer.d.ts.map +1 -0
  963. package/dist/separator/renderer.js +36 -0
  964. package/dist/shared/accessory-placement.d.ts +1 -1
  965. package/dist/shared/accessory-placement.d.ts.map +1 -1
  966. package/dist/shared/accessory-placement.js +3 -3
  967. package/dist/shared/accessory-snapping.d.ts +1 -1
  968. package/dist/shared/accessory-snapping.d.ts.map +1 -1
  969. package/dist/shared/accessory-snapping.js +1 -1
  970. package/dist/shared/auto-fitting.d.ts +1 -1
  971. package/dist/shared/auto-fitting.d.ts.map +1 -1
  972. package/dist/shared/auto-fitting.js +3 -3
  973. package/dist/shared/automatic-run-end-cap.d.ts +1 -1
  974. package/dist/shared/automatic-run-end-cap.d.ts.map +1 -1
  975. package/dist/shared/automatic-run-end-cap.js +4 -4
  976. package/dist/shared/block-face-host.d.ts +1 -1
  977. package/dist/shared/connection-feedback.d.ts +1 -2
  978. package/dist/shared/connection-feedback.d.ts.map +1 -1
  979. package/dist/shared/connection-feedback.js +1 -2
  980. package/dist/shared/construction-dimension-standards.d.ts +1 -1
  981. package/dist/shared/curtain-opening-limits.js +1 -1
  982. package/dist/shared/draft-axis-guides.js +1 -1
  983. package/dist/shared/duct-adapter.d.ts +2 -2
  984. package/dist/shared/duct-adapter.d.ts.map +1 -1
  985. package/dist/shared/duct-adapter.js +3 -3
  986. package/dist/shared/duct-body-paint.d.ts +0 -4
  987. package/dist/shared/duct-body-paint.d.ts.map +1 -1
  988. package/dist/shared/duct-body-paint.js +2 -6
  989. package/dist/shared/elbow-branch-continuation.d.ts +1 -1
  990. package/dist/shared/elbow-branch-continuation.d.ts.map +1 -1
  991. package/dist/shared/elbow-branch-continuation.js +2 -2
  992. package/dist/shared/finish-script-model.d.ts +12 -0
  993. package/dist/shared/finish-script-model.d.ts.map +1 -0
  994. package/dist/shared/finish-script-model.js +32 -0
  995. package/dist/shared/fitting-deletion-cleanup.js +2 -2
  996. package/dist/shared/fitting-endpoint-reaim.js +3 -3
  997. package/dist/shared/fitting-surface-support.d.ts.map +1 -1
  998. package/dist/shared/fitting-surface-support.js +2 -2
  999. package/dist/shared/fitting-tool-options.js +1 -1
  1000. package/dist/shared/floor-placement.d.ts.map +1 -1
  1001. package/dist/shared/floorplan-cursor.d.ts.map +1 -1
  1002. package/dist/shared/hosted-resize.d.ts +2 -1
  1003. package/dist/shared/hosted-resize.d.ts.map +1 -1
  1004. package/dist/shared/hosted-resize.js +11 -3
  1005. package/dist/shared/item-interaction-actions.d.ts +6 -0
  1006. package/dist/shared/item-interaction-actions.d.ts.map +1 -0
  1007. package/dist/shared/item-interaction-actions.js +27 -0
  1008. package/dist/shared/item-interactions.d.ts +9 -0
  1009. package/dist/shared/item-interactions.d.ts.map +1 -0
  1010. package/dist/shared/item-interactions.js +74 -0
  1011. package/dist/shared/item-light-placement.d.ts +2 -0
  1012. package/dist/shared/item-light-placement.d.ts.map +1 -0
  1013. package/dist/shared/item-light-placement.js +3 -0
  1014. package/dist/shared/lean-to-post-omissions.d.ts +1 -1
  1015. package/dist/shared/lean-to-post-omissions.js +1 -1
  1016. package/dist/shared/mep-ghost.js +5 -5
  1017. package/dist/shared/move-roof-tool.d.ts.map +1 -1
  1018. package/dist/shared/move-roof-tool.js +129 -35
  1019. package/dist/shared/node-batch/batchable.d.ts +12 -0
  1020. package/dist/shared/node-batch/batchable.d.ts.map +1 -0
  1021. package/dist/shared/node-batch/batchable.js +43 -0
  1022. package/dist/shared/node-batch/candidates.d.ts +8 -6
  1023. package/dist/shared/node-batch/candidates.d.ts.map +1 -1
  1024. package/dist/shared/node-batch/candidates.js +44 -60
  1025. package/dist/shared/node-batch/release.d.ts +8 -0
  1026. package/dist/shared/node-batch/release.d.ts.map +1 -0
  1027. package/dist/shared/node-batch/release.js +16 -0
  1028. package/dist/shared/node-batch/store.d.ts +1 -1
  1029. package/dist/shared/node-batch/store.d.ts.map +1 -1
  1030. package/dist/shared/node-batch/store.js +1 -1
  1031. package/dist/shared/node-batch/system.d.ts.map +1 -1
  1032. package/dist/shared/node-batch/system.js +36 -16
  1033. package/dist/shared/node-batch/types.d.ts +4 -1
  1034. package/dist/shared/node-batch/types.d.ts.map +1 -1
  1035. package/dist/shared/opening-documentation.d.ts +14 -2
  1036. package/dist/shared/opening-documentation.d.ts.map +1 -1
  1037. package/dist/shared/opening-documentation.js +246 -60
  1038. package/dist/shared/opening-guides-runtime.d.ts.map +1 -1
  1039. package/dist/shared/opening-guides-runtime.js +18 -15
  1040. package/dist/shared/opening-move-wall-gate.d.ts.map +1 -1
  1041. package/dist/shared/opening-placement-dimensions.d.ts.map +1 -1
  1042. package/dist/shared/opening-placement-dimensions.js +5 -5
  1043. package/dist/shared/opening-plane-offset.d.ts +23 -0
  1044. package/dist/shared/opening-plane-offset.d.ts.map +1 -0
  1045. package/dist/shared/opening-plane-offset.js +24 -0
  1046. package/dist/shared/opening-property-preview-host.d.ts +1 -1
  1047. package/dist/shared/opening-property-preview.d.ts.map +1 -1
  1048. package/dist/shared/opening-property-preview.js +1 -1
  1049. package/dist/shared/panel-fields.js +2 -2
  1050. package/dist/shared/path-point-affordance.js +2 -2
  1051. package/dist/shared/pipe-run-translation-offset.d.ts +2 -2
  1052. package/dist/shared/pipe-run-translation-offset.d.ts.map +1 -1
  1053. package/dist/shared/pipe-run-translation-offset.js +2 -2
  1054. package/dist/shared/pipe-vertical-offset.d.ts +2 -2
  1055. package/dist/shared/pipe-vertical-offset.d.ts.map +1 -1
  1056. package/dist/shared/pipe-vertical-offset.js +2 -2
  1057. package/dist/shared/polygon-centroid-move.d.ts.map +1 -1
  1058. package/dist/shared/polygon-centroid-move.js +5 -2
  1059. package/dist/shared/polygon-vertex-affordance.d.ts.map +1 -1
  1060. package/dist/shared/polygon-vertex-affordance.js +19 -15
  1061. package/dist/shared/port-systems.d.ts +9 -0
  1062. package/dist/shared/port-systems.d.ts.map +1 -0
  1063. package/dist/shared/port-systems.js +10 -0
  1064. package/dist/shared/refrigerant-line-selection.d.ts.map +1 -1
  1065. package/dist/shared/refrigerant-line-selection.js +3 -2
  1066. package/dist/shared/relative-roof-drag.d.ts +1 -1
  1067. package/dist/shared/relative-roof-drag.js +2 -2
  1068. package/dist/shared/roof-segment-hit.d.ts.map +1 -1
  1069. package/dist/shared/roof-segment-hit.js +7 -5
  1070. package/dist/shared/roof-surface-placement-guides.d.ts +1 -1
  1071. package/dist/shared/roof-surface-placement-guides.js +11 -11
  1072. package/dist/shared/roof-surface.d.ts.map +1 -1
  1073. package/dist/shared/roof-surface.js +25 -5
  1074. package/dist/shared/run-hanger-controls.d.ts +1 -1
  1075. package/dist/shared/run-hanger-controls.js +1 -1
  1076. package/dist/shared/run-hanger-inspector.d.ts +1 -1
  1077. package/dist/shared/run-hanger-inspector.js +3 -3
  1078. package/dist/shared/run-hangers.d.ts.map +1 -1
  1079. package/dist/shared/run-hangers.js +7 -6
  1080. package/dist/shared/run-move-connectivity.d.ts.map +1 -1
  1081. package/dist/shared/run-translation-offset.d.ts +3 -3
  1082. package/dist/shared/run-translation-offset.d.ts.map +1 -1
  1083. package/dist/shared/run-translation-offset.js +2 -2
  1084. package/dist/shared/scripted-opening-handles.d.ts +18 -0
  1085. package/dist/shared/scripted-opening-handles.d.ts.map +1 -0
  1086. package/dist/shared/scripted-opening-handles.js +53 -0
  1087. package/dist/shared/scripted-opening.d.ts +25 -0
  1088. package/dist/shared/scripted-opening.d.ts.map +1 -0
  1089. package/dist/shared/scripted-opening.js +72 -0
  1090. package/dist/shared/slot-paint.d.ts +14 -2
  1091. package/dist/shared/slot-paint.d.ts.map +1 -1
  1092. package/dist/shared/slot-paint.js +29 -29
  1093. package/dist/shared/surface-paint.d.ts.map +1 -1
  1094. package/dist/shared/surface-paint.js +3 -6
  1095. package/dist/shared/swap-preview-material.d.ts +13 -0
  1096. package/dist/shared/swap-preview-material.d.ts.map +1 -0
  1097. package/dist/shared/swap-preview-material.js +27 -0
  1098. package/dist/shared/system-check-panel.js +1 -1
  1099. package/dist/shared/system-checks.d.ts.map +1 -1
  1100. package/dist/shared/system-checks.js +7 -5
  1101. package/dist/shared/vertical-offset.d.ts +3 -3
  1102. package/dist/shared/vertical-offset.d.ts.map +1 -1
  1103. package/dist/shared/vertical-offset.js +3 -3
  1104. package/dist/shared/wall-attach-target.d.ts +3 -10
  1105. package/dist/shared/wall-attach-target.d.ts.map +1 -1
  1106. package/dist/shared/wall-attach-target.js +3 -63
  1107. package/dist/shared/wall-opening-ceiling.d.ts +5 -15
  1108. package/dist/shared/wall-opening-ceiling.d.ts.map +1 -1
  1109. package/dist/shared/wall-opening-ceiling.js +10 -18
  1110. package/dist/shared/wall-run-move.d.ts +1 -1
  1111. package/dist/shared/wall-run-move.d.ts.map +1 -1
  1112. package/dist/shelf/definition.d.ts +1 -1
  1113. package/dist/shelf/definition.d.ts.map +1 -1
  1114. package/dist/shelf/definition.js +14 -12
  1115. package/dist/shelf/dimensions.d.ts +1 -1
  1116. package/dist/shelf/floorplan-affordances.js +1 -1
  1117. package/dist/shelf/floorplan-move.js +1 -1
  1118. package/dist/shelf/floorplan.d.ts +1 -1
  1119. package/dist/shelf/floorplan.js +2 -2
  1120. package/dist/shelf/geometry.d.ts +1 -1
  1121. package/dist/shelf/geometry.d.ts.map +1 -1
  1122. package/dist/shelf/geometry.js +2 -3
  1123. package/dist/shelf/index.d.ts +3 -3
  1124. package/dist/shelf/index.js +3 -3
  1125. package/dist/shelf/paint.d.ts.map +1 -1
  1126. package/dist/shelf/paint.js +4 -10
  1127. package/dist/shelf/parametrics.d.ts +1 -1
  1128. package/dist/shelf/preview.d.ts +1 -1
  1129. package/dist/shelf/preview.d.ts.map +1 -1
  1130. package/dist/shelf/preview.js +1 -1
  1131. package/dist/shelf/tool.d.ts.map +1 -1
  1132. package/dist/shelf/tool.js +3 -3
  1133. package/dist/site/definition.d.ts +1 -1
  1134. package/dist/site/definition.d.ts.map +1 -1
  1135. package/dist/site/definition.js +5 -4
  1136. package/dist/site/generic-foundation-geometry.d.ts +16 -0
  1137. package/dist/site/generic-foundation-geometry.d.ts.map +1 -0
  1138. package/dist/site/generic-foundation-geometry.js +75 -0
  1139. package/dist/site/generic-foundation.d.ts +4 -0
  1140. package/dist/site/generic-foundation.d.ts.map +1 -0
  1141. package/dist/site/generic-foundation.js +91 -0
  1142. package/dist/site/ground-hole.d.ts +92 -0
  1143. package/dist/site/ground-hole.d.ts.map +1 -0
  1144. package/dist/site/ground-hole.js +306 -0
  1145. package/dist/site/ground-pit-geometry.d.ts +39 -0
  1146. package/dist/site/ground-pit-geometry.d.ts.map +1 -0
  1147. package/dist/site/ground-pit-geometry.js +213 -0
  1148. package/dist/site/ground-pit.d.ts +45 -0
  1149. package/dist/site/ground-pit.d.ts.map +1 -0
  1150. package/dist/site/ground-pit.js +175 -0
  1151. package/dist/site/ground-veil.d.ts +39 -0
  1152. package/dist/site/ground-veil.d.ts.map +1 -0
  1153. package/dist/site/ground-veil.js +86 -0
  1154. package/dist/site/ground-window-system.d.ts +9 -0
  1155. package/dist/site/ground-window-system.d.ts.map +1 -0
  1156. package/dist/site/ground-window-system.js +108 -0
  1157. package/dist/site/hole-noise.d.ts +11 -0
  1158. package/dist/site/hole-noise.d.ts.map +1 -0
  1159. package/dist/site/hole-noise.js +79 -0
  1160. package/dist/site/index.d.ts +1 -1
  1161. package/dist/site/index.js +1 -1
  1162. package/dist/site/line-ribbon.d.ts +31 -0
  1163. package/dist/site/line-ribbon.d.ts.map +1 -0
  1164. package/dist/site/line-ribbon.js +117 -0
  1165. package/dist/site/lot-mask.d.ts +20 -0
  1166. package/dist/site/lot-mask.d.ts.map +1 -0
  1167. package/dist/site/lot-mask.js +39 -0
  1168. package/dist/site/panel.d.ts +10 -0
  1169. package/dist/site/panel.d.ts.map +1 -0
  1170. package/dist/site/panel.js +179 -0
  1171. package/dist/site/parametrics.d.ts +7 -0
  1172. package/dist/site/parametrics.d.ts.map +1 -1
  1173. package/dist/site/parametrics.js +8 -0
  1174. package/dist/site/recessed-slab-ground-holes.d.ts.map +1 -1
  1175. package/dist/site/recessed-slab-ground-holes.js +5 -2
  1176. package/dist/site/renderer.d.ts.map +1 -1
  1177. package/dist/site/renderer.js +275 -40
  1178. package/dist/site/terrain-geometry.d.ts +28 -1
  1179. package/dist/site/terrain-geometry.d.ts.map +1 -1
  1180. package/dist/site/terrain-geometry.js +78 -4
  1181. package/dist/site/terrain-holes.d.ts +15 -0
  1182. package/dist/site/terrain-holes.d.ts.map +1 -0
  1183. package/dist/site/terrain-holes.js +74 -0
  1184. package/dist/site/terrain-mesh.d.ts +10 -3
  1185. package/dist/site/terrain-mesh.d.ts.map +1 -1
  1186. package/dist/site/terrain-mesh.js +36 -9
  1187. package/dist/site/terrain-renderer.d.ts +11 -2
  1188. package/dist/site/terrain-renderer.d.ts.map +1 -1
  1189. package/dist/site/terrain-renderer.js +23 -6
  1190. package/dist/site/underground-edge.d.ts +26 -0
  1191. package/dist/site/underground-edge.d.ts.map +1 -0
  1192. package/dist/site/underground-edge.js +46 -0
  1193. package/dist/skylight/definition.d.ts +1 -1
  1194. package/dist/skylight/definition.d.ts.map +1 -1
  1195. package/dist/skylight/definition.js +11 -10
  1196. package/dist/skylight/geometry.d.ts +1 -1
  1197. package/dist/skylight/geometry.js +1 -1
  1198. package/dist/skylight/index.d.ts +4 -4
  1199. package/dist/skylight/index.js +4 -4
  1200. package/dist/skylight/move-tool.js +4 -4
  1201. package/dist/skylight/panel.js +3 -3
  1202. package/dist/skylight/parametrics.d.ts +1 -1
  1203. package/dist/skylight/parametrics.js +1 -1
  1204. package/dist/skylight/preview.d.ts +1 -1
  1205. package/dist/skylight/preview.d.ts.map +1 -1
  1206. package/dist/skylight/preview.js +2 -2
  1207. package/dist/skylight/renderer.d.ts.map +1 -1
  1208. package/dist/skylight/renderer.js +5 -5
  1209. package/dist/skylight/system.d.ts.map +1 -1
  1210. package/dist/skylight/tool.d.ts.map +1 -1
  1211. package/dist/skylight/tool.js +7 -7
  1212. package/dist/slab/boundary-editor.d.ts +1 -1
  1213. package/dist/slab/boundary-editor.d.ts.map +1 -1
  1214. package/dist/slab/boundary-editor.js +13 -13
  1215. package/dist/slab/definition.d.ts +1 -1
  1216. package/dist/slab/definition.d.ts.map +1 -1
  1217. package/dist/slab/definition.js +44 -19
  1218. package/dist/slab/dependency-tracker.d.ts.map +1 -1
  1219. package/dist/slab/dependency-tracker.js +67 -7
  1220. package/dist/slab/elevation-limit.d.ts.map +1 -1
  1221. package/dist/slab/elevation-limit.js +2 -2
  1222. package/dist/slab/floorplan-affordances.d.ts +232 -60
  1223. package/dist/slab/floorplan-affordances.d.ts.map +1 -1
  1224. package/dist/slab/floorplan-affordances.js +1 -2
  1225. package/dist/slab/floorplan-move.d.ts.map +1 -1
  1226. package/dist/slab/floorplan-move.js +4 -5
  1227. package/dist/slab/floorplan.d.ts +7 -0
  1228. package/dist/slab/floorplan.d.ts.map +1 -1
  1229. package/dist/slab/floorplan.js +22 -5
  1230. package/dist/slab/geometry.d.ts.map +1 -1
  1231. package/dist/slab/geometry.js +187 -77
  1232. package/dist/slab/hole-editor.d.ts.map +1 -1
  1233. package/dist/slab/index.d.ts +2 -2
  1234. package/dist/slab/index.js +2 -2
  1235. package/dist/slab/move-tool.d.ts.map +1 -1
  1236. package/dist/slab/move-tool.js +7 -6
  1237. package/dist/slab/paint.d.ts +18 -5
  1238. package/dist/slab/paint.d.ts.map +1 -1
  1239. package/dist/slab/paint.js +461 -9
  1240. package/dist/slab/panel.d.ts.map +1 -1
  1241. package/dist/slab/panel.js +32 -13
  1242. package/dist/slab/parametrics.d.ts +1 -1
  1243. package/dist/slab/parametrics.js +1 -1
  1244. package/dist/slab/placement-ownership.d.ts +2 -1
  1245. package/dist/slab/placement-ownership.d.ts.map +1 -1
  1246. package/dist/slab/placement-ownership.js +2 -2
  1247. package/dist/slab/quick-measurement.js +1 -1
  1248. package/dist/slab/surface-split.d.ts +24 -0
  1249. package/dist/slab/surface-split.d.ts.map +1 -0
  1250. package/dist/slab/surface-split.js +389 -0
  1251. package/dist/slab/system.d.ts.map +1 -1
  1252. package/dist/slab/system.js +1 -1
  1253. package/dist/slab/tool.d.ts.map +1 -1
  1254. package/dist/slab/tool.js +7 -5
  1255. package/dist/solar-panel/definition.d.ts +1 -1
  1256. package/dist/solar-panel/definition.d.ts.map +1 -1
  1257. package/dist/solar-panel/definition.js +8 -7
  1258. package/dist/solar-panel/index.d.ts +4 -4
  1259. package/dist/solar-panel/index.js +4 -4
  1260. package/dist/solar-panel/move-tool.js +3 -3
  1261. package/dist/solar-panel/panel.d.ts.map +1 -1
  1262. package/dist/solar-panel/panel.js +4 -4
  1263. package/dist/solar-panel/parametrics.d.ts +1 -1
  1264. package/dist/solar-panel/parametrics.js +1 -1
  1265. package/dist/solar-panel/preview.d.ts +1 -1
  1266. package/dist/solar-panel/preview.d.ts.map +1 -1
  1267. package/dist/solar-panel/preview.js +2 -2
  1268. package/dist/solar-panel/renderer.d.ts.map +1 -1
  1269. package/dist/solar-panel/renderer.js +3 -3
  1270. package/dist/solar-panel/tool.d.ts.map +1 -1
  1271. package/dist/solar-panel/tool.js +7 -7
  1272. package/dist/spawn/definition.d.ts +1 -1
  1273. package/dist/spawn/definition.js +7 -7
  1274. package/dist/spawn/floorplan-affordances.js +1 -1
  1275. package/dist/spawn/floorplan.d.ts +1 -1
  1276. package/dist/spawn/index.d.ts +2 -2
  1277. package/dist/spawn/index.js +2 -2
  1278. package/dist/spawn/panel.js +1 -1
  1279. package/dist/spawn/parametrics.d.ts +1 -1
  1280. package/dist/spawn/parametrics.js +1 -1
  1281. package/dist/spawn/renderer.d.ts.map +1 -1
  1282. package/dist/spawn/renderer.js +1 -1
  1283. package/dist/spawn/tool.d.ts.map +1 -1
  1284. package/dist/spawn/tool.js +2 -2
  1285. package/dist/stair/baluster-geometry.d.ts +21 -0
  1286. package/dist/stair/baluster-geometry.d.ts.map +1 -0
  1287. package/dist/stair/baluster-geometry.js +74 -0
  1288. package/dist/stair/baluster-guard.d.ts +50 -0
  1289. package/dist/stair/baluster-guard.d.ts.map +1 -0
  1290. package/dist/stair/baluster-guard.js +71 -0
  1291. package/dist/stair/boards-guard.d.ts +37 -0
  1292. package/dist/stair/boards-guard.d.ts.map +1 -0
  1293. package/dist/stair/boards-guard.js +61 -0
  1294. package/dist/stair/cable-guard.d.ts +39 -0
  1295. package/dist/stair/cable-guard.d.ts.map +1 -0
  1296. package/dist/stair/cable-guard.js +105 -0
  1297. package/dist/stair/construction-controls.d.ts +15 -0
  1298. package/dist/stair/construction-controls.d.ts.map +1 -0
  1299. package/dist/stair/construction-controls.js +29 -0
  1300. package/dist/stair/continuous-railings.d.ts +10 -0
  1301. package/dist/stair/continuous-railings.d.ts.map +1 -0
  1302. package/dist/stair/continuous-railings.js +159 -0
  1303. package/dist/stair/definition.d.ts +1 -1
  1304. package/dist/stair/definition.d.ts.map +1 -1
  1305. package/dist/stair/definition.js +39 -46
  1306. package/dist/stair/documentation.d.ts +1 -1
  1307. package/dist/stair/documentation.d.ts.map +1 -1
  1308. package/dist/stair/documentation.js +11 -18
  1309. package/dist/stair/floorplan-affordances.d.ts.map +1 -1
  1310. package/dist/stair/floorplan-affordances.js +10 -26
  1311. package/dist/stair/floorplan-move.d.ts.map +1 -1
  1312. package/dist/stair/floorplan-move.js +90 -10
  1313. package/dist/stair/floorplan.d.ts +2 -24
  1314. package/dist/stair/floorplan.d.ts.map +1 -1
  1315. package/dist/stair/floorplan.js +123 -88
  1316. package/dist/stair/glass-guard.d.ts +72 -0
  1317. package/dist/stair/glass-guard.d.ts.map +1 -0
  1318. package/dist/stair/glass-guard.js +167 -0
  1319. package/dist/stair/guard-path.d.ts +119 -0
  1320. package/dist/stair/guard-path.d.ts.map +1 -0
  1321. package/dist/stair/guard-path.js +208 -0
  1322. package/dist/stair/index.d.ts +1 -1
  1323. package/dist/stair/index.js +1 -1
  1324. package/dist/stair/materials.d.ts +11 -0
  1325. package/dist/stair/materials.d.ts.map +1 -0
  1326. package/dist/stair/materials.js +51 -0
  1327. package/dist/stair/metal-guard.d.ts +38 -0
  1328. package/dist/stair/metal-guard.d.ts.map +1 -0
  1329. package/dist/stair/metal-guard.js +79 -0
  1330. package/dist/stair/paint.d.ts +32 -0
  1331. package/dist/stair/paint.d.ts.map +1 -1
  1332. package/dist/stair/paint.js +75 -36
  1333. package/dist/stair/panel.d.ts.map +1 -1
  1334. package/dist/stair/panel.js +170 -19
  1335. package/dist/stair/parametrics.d.ts +1 -1
  1336. package/dist/stair/parametrics.d.ts.map +1 -1
  1337. package/dist/stair/parametrics.js +33 -16
  1338. package/dist/stair/plan-entry.d.ts +31 -0
  1339. package/dist/stair/plan-entry.d.ts.map +1 -0
  1340. package/dist/stair/plan-entry.js +325 -0
  1341. package/dist/stair/post-and-rail-guard.d.ts +31 -0
  1342. package/dist/stair/post-and-rail-guard.d.ts.map +1 -0
  1343. package/dist/stair/post-and-rail-guard.js +63 -0
  1344. package/dist/stair/railing-controls.d.ts +9 -0
  1345. package/dist/stair/railing-controls.d.ts.map +1 -0
  1346. package/dist/stair/railing-controls.js +49 -0
  1347. package/dist/stair/renderer.d.ts.map +1 -1
  1348. package/dist/stair/renderer.js +355 -262
  1349. package/dist/stair/stair-click-guard.d.ts +43 -0
  1350. package/dist/stair/stair-click-guard.d.ts.map +1 -0
  1351. package/dist/stair/stair-click-guard.js +44 -0
  1352. package/dist/stair/stair-type.d.ts.map +1 -1
  1353. package/dist/stair/stair-type.js +1 -2
  1354. package/dist/stair/surface-move-preview.d.ts +4 -0
  1355. package/dist/stair/surface-move-preview.d.ts.map +1 -0
  1356. package/dist/stair/surface-move-preview.js +53 -0
  1357. package/dist/stair/surface-transition.d.ts +9 -0
  1358. package/dist/stair/surface-transition.d.ts.map +1 -0
  1359. package/dist/stair/surface-transition.js +61 -0
  1360. package/dist/stair/system.d.ts.map +1 -1
  1361. package/dist/stair/tool.d.ts +2 -0
  1362. package/dist/stair/tool.d.ts.map +1 -0
  1363. package/dist/stair/tool.js +580 -0
  1364. package/dist/stair/use-stair-render-data.d.ts +319 -0
  1365. package/dist/stair/use-stair-render-data.d.ts.map +1 -0
  1366. package/dist/stair/use-stair-render-data.js +73 -0
  1367. package/dist/stair-segment/definition.d.ts +1 -1
  1368. package/dist/stair-segment/definition.d.ts.map +1 -1
  1369. package/dist/stair-segment/definition.js +52 -14
  1370. package/dist/stair-segment/index.d.ts +1 -1
  1371. package/dist/stair-segment/index.js +1 -1
  1372. package/dist/stair-segment/panel.d.ts.map +1 -1
  1373. package/dist/stair-segment/panel.js +38 -44
  1374. package/dist/stair-segment/parametrics.d.ts +1 -1
  1375. package/dist/stair-segment/parametrics.d.ts.map +1 -1
  1376. package/dist/stair-segment/parametrics.js +22 -9
  1377. package/dist/stair-segment/renderer.d.ts.map +1 -1
  1378. package/dist/stair-segment/renderer.js +17 -29
  1379. package/dist/structural-grid/definition.d.ts +1 -1
  1380. package/dist/structural-grid/definition.js +3 -3
  1381. package/dist/structural-grid/floorplan-tool.d.ts.map +1 -1
  1382. package/dist/structural-grid/index.d.ts +1 -1
  1383. package/dist/structural-grid/index.js +1 -1
  1384. package/dist/turbine-vent/definition.d.ts +1 -1
  1385. package/dist/turbine-vent/definition.d.ts.map +1 -1
  1386. package/dist/turbine-vent/definition.js +11 -13
  1387. package/dist/turbine-vent/geometry.js +1 -1
  1388. package/dist/turbine-vent/index.d.ts +3 -3
  1389. package/dist/turbine-vent/index.js +3 -3
  1390. package/dist/turbine-vent/move-tool.js +4 -4
  1391. package/dist/turbine-vent/paint.d.ts.map +1 -1
  1392. package/dist/turbine-vent/paint.js +3 -6
  1393. package/dist/turbine-vent/panel.d.ts.map +1 -1
  1394. package/dist/turbine-vent/panel.js +6 -24
  1395. package/dist/turbine-vent/parametrics.d.ts +1 -1
  1396. package/dist/turbine-vent/parametrics.js +1 -1
  1397. package/dist/turbine-vent/preview.d.ts +1 -1
  1398. package/dist/turbine-vent/preview.d.ts.map +1 -1
  1399. package/dist/turbine-vent/preview.js +2 -2
  1400. package/dist/turbine-vent/renderer.d.ts.map +1 -1
  1401. package/dist/turbine-vent/renderer.js +3 -3
  1402. package/dist/turbine-vent/tool.d.ts.map +1 -1
  1403. package/dist/turbine-vent/tool.js +7 -7
  1404. package/dist/unit/definition.d.ts +1 -1
  1405. package/dist/unit/definition.js +2 -2
  1406. package/dist/unit/index.d.ts +1 -1
  1407. package/dist/unit/index.js +1 -1
  1408. package/dist/unit/parametrics.js +1 -1
  1409. package/dist/unit/unit-panel.d.ts.map +1 -1
  1410. package/dist/unit/unit-panel.js +7 -2
  1411. package/dist/wall/actions.d.ts.map +1 -1
  1412. package/dist/wall/actions.js +9 -4
  1413. package/dist/wall/construction-dimensions.d.ts +3 -3
  1414. package/dist/wall/construction-dimensions.js +14 -11
  1415. package/dist/wall/contextual-dimensions.js +4 -4
  1416. package/dist/wall/curtain-opening-frame.d.ts.map +1 -1
  1417. package/dist/wall/curtain-wall-adapter.js +2 -2
  1418. package/dist/wall/curtain-wall-floorplan.js +2 -2
  1419. package/dist/wall/curtain-wall-geometry.d.ts.map +1 -1
  1420. package/dist/wall/curtain-wall-geometry.js +4 -4
  1421. package/dist/wall/curtain-wall-layout.d.ts +1 -2
  1422. package/dist/wall/curtain-wall-layout.d.ts.map +1 -1
  1423. package/dist/wall/curtain-wall-layout.js +1 -23
  1424. package/dist/wall/curtain-wall-materials.d.ts +1 -1
  1425. package/dist/wall/curtain-wall-materials.d.ts.map +1 -1
  1426. package/dist/wall/curtain-wall-materials.js +4 -3
  1427. package/dist/wall/curtain-wall-panel.d.ts.map +1 -1
  1428. package/dist/wall/curtain-wall-panel.js +4 -4
  1429. package/dist/wall/curtain-wall-piece-geometry.d.ts +1 -1
  1430. package/dist/wall/curve-tool.d.ts.map +1 -1
  1431. package/dist/wall/curve-tool.js +4 -0
  1432. package/dist/wall/definition.d.ts +1 -1
  1433. package/dist/wall/definition.d.ts.map +1 -1
  1434. package/dist/wall/definition.js +71 -42
  1435. package/dist/wall/exterior.d.ts +6 -0
  1436. package/dist/wall/exterior.d.ts.map +1 -0
  1437. package/dist/wall/exterior.js +13 -0
  1438. package/dist/wall/floorplan-move.d.ts +1 -1
  1439. package/dist/wall/floorplan-move.d.ts.map +1 -1
  1440. package/dist/wall/floorplan-move.js +21 -84
  1441. package/dist/wall/floorplan-tool.d.ts.map +1 -1
  1442. package/dist/wall/floorplan-tool.js +11 -12
  1443. package/dist/wall/floorplan.d.ts +5 -3
  1444. package/dist/wall/floorplan.d.ts.map +1 -1
  1445. package/dist/wall/floorplan.js +188 -25
  1446. package/dist/wall/index.d.ts +2 -2
  1447. package/dist/wall/index.js +2 -2
  1448. package/dist/wall/measurement.d.ts.map +1 -1
  1449. package/dist/wall/measurement.js +6 -6
  1450. package/dist/wall/move-endpoint-tool.d.ts.map +1 -1
  1451. package/dist/wall/move-endpoint-tool.js +25 -13
  1452. package/dist/wall/move-shared.d.ts.map +1 -1
  1453. package/dist/wall/move-shared.js +12 -8
  1454. package/dist/wall/move-tool.d.ts.map +1 -1
  1455. package/dist/wall/move-tool.js +120 -151
  1456. package/dist/wall/paint.d.ts +26 -15
  1457. package/dist/wall/paint.d.ts.map +1 -1
  1458. package/dist/wall/paint.js +303 -119
  1459. package/dist/wall/panel-model.d.ts +18 -0
  1460. package/dist/wall/panel-model.d.ts.map +1 -1
  1461. package/dist/wall/panel-model.js +82 -24
  1462. package/dist/wall/panel.d.ts.map +1 -1
  1463. package/dist/wall/panel.js +262 -53
  1464. package/dist/wall/parametrics.d.ts +1 -1
  1465. package/dist/wall/parametrics.d.ts.map +1 -1
  1466. package/dist/wall/parametrics.js +4 -1
  1467. package/dist/wall/pointer-transparency.d.ts +1 -1
  1468. package/dist/wall/pointer-transparency.d.ts.map +1 -1
  1469. package/dist/wall/preview.d.ts.map +1 -1
  1470. package/dist/wall/property-preview.d.ts.map +1 -1
  1471. package/dist/wall/quick-measurement.js +1 -1
  1472. package/dist/wall/rectangle-command.d.ts +329 -37
  1473. package/dist/wall/rectangle-command.d.ts.map +1 -1
  1474. package/dist/wall/rectangle-tool.d.ts.map +1 -1
  1475. package/dist/wall/rectangle-tool.js +27 -9
  1476. package/dist/wall/renderer.d.ts.map +1 -1
  1477. package/dist/wall/renderer.js +31 -10
  1478. package/dist/wall/selection-hit-owner.d.ts.map +1 -1
  1479. package/dist/wall/split-floorplan-layer.d.ts.map +1 -1
  1480. package/dist/wall/split-floorplan-layer.js +10 -10
  1481. package/dist/wall/split-pointer.js +2 -2
  1482. package/dist/wall/split-preview.d.ts +1 -1
  1483. package/dist/wall/split-session.d.ts.map +1 -1
  1484. package/dist/wall/split-session.js +9 -3
  1485. package/dist/wall/split-store.d.ts +1 -1
  1486. package/dist/wall/split-tool.js +3 -3
  1487. package/dist/wall/system.d.ts.map +1 -1
  1488. package/dist/wall/system.js +42 -10
  1489. package/dist/wall/tool.d.ts.map +1 -1
  1490. package/dist/wall/tool.js +114 -53
  1491. package/dist/wall/treatment-level-data.d.ts +3 -2
  1492. package/dist/wall/treatment-level-data.d.ts.map +1 -1
  1493. package/dist/wall/treatment-level-data.js +17 -13
  1494. package/dist/wall/treatments.d.ts +11 -11
  1495. package/dist/wall/treatments.d.ts.map +1 -1
  1496. package/dist/wall/treatments.js +77 -57
  1497. package/dist/wall/wall-batch-system.d.ts +7 -0
  1498. package/dist/wall/wall-batch-system.d.ts.map +1 -1
  1499. package/dist/wall/wall-batch-system.js +81 -7
  1500. package/dist/wall/wall-batch.d.ts +6 -0
  1501. package/dist/wall/wall-batch.d.ts.map +1 -1
  1502. package/dist/wall/wall-batch.js +7 -1
  1503. package/dist/window/contextual-dimensions.js +1 -1
  1504. package/dist/window/corner-cue.d.ts +9 -0
  1505. package/dist/window/corner-cue.d.ts.map +1 -0
  1506. package/dist/window/corner-cue.js +31 -0
  1507. package/dist/window/corner-fuse.d.ts +14 -0
  1508. package/dist/window/corner-fuse.d.ts.map +1 -0
  1509. package/dist/window/corner-fuse.js +42 -0
  1510. package/dist/window/definition.d.ts +1 -1
  1511. package/dist/window/definition.d.ts.map +1 -1
  1512. package/dist/window/definition.js +39 -26
  1513. package/dist/window/floor-projection.js +1 -1
  1514. package/dist/window/floorplan-affordances.js +2 -2
  1515. package/dist/window/floorplan-move.d.ts.map +1 -1
  1516. package/dist/window/floorplan-move.js +49 -13
  1517. package/dist/window/floorplan.d.ts.map +1 -1
  1518. package/dist/window/floorplan.js +214 -87
  1519. package/dist/window/index.d.ts +2 -2
  1520. package/dist/window/index.js +2 -2
  1521. package/dist/window/mechanism.d.ts +4 -0
  1522. package/dist/window/mechanism.d.ts.map +1 -0
  1523. package/dist/window/mechanism.js +20 -0
  1524. package/dist/window/move-tool.d.ts.map +1 -1
  1525. package/dist/window/move-tool.js +165 -69
  1526. package/dist/window/paint.d.ts.map +1 -1
  1527. package/dist/window/paint.js +4 -1
  1528. package/dist/window/panel.d.ts.map +1 -1
  1529. package/dist/window/panel.js +134 -100
  1530. package/dist/window/parametrics.d.ts +1 -1
  1531. package/dist/window/parametrics.d.ts.map +1 -1
  1532. package/dist/window/parametrics.js +7 -1
  1533. package/dist/window/placement.d.ts +29 -0
  1534. package/dist/window/placement.d.ts.map +1 -0
  1535. package/dist/window/placement.js +92 -0
  1536. package/dist/window/preview.d.ts +1 -1
  1537. package/dist/window/preview.d.ts.map +1 -1
  1538. package/dist/window/preview.js +3 -1
  1539. package/dist/window/renderer.d.ts.map +1 -1
  1540. package/dist/window/renderer.js +4 -3
  1541. package/dist/window/system.d.ts.map +1 -1
  1542. package/dist/window/system.js +1 -1
  1543. package/dist/window/tool.d.ts.map +1 -1
  1544. package/dist/window/tool.js +207 -50
  1545. package/dist/window/window-math.d.ts +7 -15
  1546. package/dist/window/window-math.d.ts.map +1 -1
  1547. package/dist/window/window-math.js +15 -21
  1548. package/dist/zone/contextual-dimensions.d.ts.map +1 -1
  1549. package/dist/zone/contextual-dimensions.js +6 -28
  1550. package/dist/zone/definition.d.ts +1 -1
  1551. package/dist/zone/definition.d.ts.map +1 -1
  1552. package/dist/zone/definition.js +17 -15
  1553. package/dist/zone/floorplan-affordances.d.ts +613 -37
  1554. package/dist/zone/floorplan-affordances.d.ts.map +1 -1
  1555. package/dist/zone/floorplan-affordances.js +1 -1
  1556. package/dist/zone/floorplan-move.js +1 -1
  1557. package/dist/zone/floorplan.d.ts +1 -1
  1558. package/dist/zone/floorplan.d.ts.map +1 -1
  1559. package/dist/zone/floorplan.js +96 -56
  1560. package/dist/zone/index.d.ts +1 -1
  1561. package/dist/zone/index.js +1 -1
  1562. package/dist/zone/parametrics.js +1 -1
  1563. package/dist/zone/quantities-panel.d.ts.map +1 -1
  1564. package/dist/zone/quantities-panel.js +6 -17
  1565. package/dist/zone/quick-measurement.d.ts +2 -2
  1566. package/dist/zone/quick-measurement.d.ts.map +1 -1
  1567. package/dist/zone/quick-measurement.js +7 -6
  1568. package/dist/zone/renderer.d.ts +1 -1
  1569. package/dist/zone/renderer.d.ts.map +1 -1
  1570. package/dist/zone/renderer.js +67 -147
  1571. package/dist/zone/room-clear-dimensions.js +4 -4
  1572. package/dist/zone/room-documentation.d.ts +1 -1
  1573. package/dist/zone/room-documentation.d.ts.map +1 -1
  1574. package/dist/zone/room-documentation.js +3 -7
  1575. package/dist/zone/system.d.ts.map +1 -1
  1576. package/package.json +28 -15
  1577. package/dist/block/slots.d.ts +0 -4
  1578. package/dist/block/slots.d.ts.map +0 -1
  1579. package/dist/block/slots.js +0 -17
  1580. package/dist/cabinet/slots.d.ts +0 -4
  1581. package/dist/cabinet/slots.d.ts.map +0 -1
  1582. package/dist/cabinet/slots.js +0 -24
  1583. package/dist/ceiling/slots.d.ts +0 -6
  1584. package/dist/ceiling/slots.d.ts.map +0 -1
  1585. package/dist/ceiling/slots.js +0 -7
  1586. package/dist/column/slots.d.ts +0 -9
  1587. package/dist/column/slots.d.ts.map +0 -1
  1588. package/dist/column/slots.js +0 -19
  1589. package/dist/door/slots.d.ts +0 -9
  1590. package/dist/door/slots.d.ts.map +0 -1
  1591. package/dist/door/slots.js +0 -20
  1592. package/dist/elevator/slots.d.ts +0 -8
  1593. package/dist/elevator/slots.d.ts.map +0 -1
  1594. package/dist/elevator/slots.js +0 -17
  1595. package/dist/fence/slots.d.ts +0 -10
  1596. package/dist/fence/slots.d.ts.map +0 -1
  1597. package/dist/fence/slots.js +0 -23
  1598. package/dist/item/__fixtures__/main-floorplan.d.ts +0 -26
  1599. package/dist/item/__fixtures__/main-floorplan.d.ts.map +0 -1
  1600. package/dist/item/__fixtures__/main-floorplan.js +0 -297
  1601. package/dist/lean-to-extension/slots.d.ts +0 -5
  1602. package/dist/lean-to-extension/slots.d.ts.map +0 -1
  1603. package/dist/lean-to-extension/slots.js +0 -15
  1604. package/dist/shared/connection-compatibility.d.ts +0 -8
  1605. package/dist/shared/connection-compatibility.d.ts.map +0 -1
  1606. package/dist/shared/connection-compatibility.js +0 -28
  1607. package/dist/shared/distribution-run-contract.d.ts +0 -49
  1608. package/dist/shared/distribution-run-contract.d.ts.map +0 -1
  1609. package/dist/shared/distribution-run-contract.js +0 -30
  1610. package/dist/shared/distribution-run-tool.d.ts +0 -117
  1611. package/dist/shared/distribution-run-tool.d.ts.map +0 -1
  1612. package/dist/shared/distribution-run-tool.js +0 -986
  1613. package/dist/shared/draw-alignment.d.ts +0 -25
  1614. package/dist/shared/draw-alignment.d.ts.map +0 -1
  1615. package/dist/shared/draw-alignment.js +0 -30
  1616. package/dist/shared/ports.d.ts +0 -92
  1617. package/dist/shared/ports.d.ts.map +0 -1
  1618. package/dist/shared/ports.js +0 -305
  1619. package/dist/shared/run-cursor.d.ts +0 -22
  1620. package/dist/shared/run-cursor.d.ts.map +0 -1
  1621. package/dist/shared/run-cursor.js +0 -19
  1622. package/dist/shared/run-direction-feedback.d.ts +0 -20
  1623. package/dist/shared/run-direction-feedback.d.ts.map +0 -1
  1624. package/dist/shared/run-direction-feedback.js +0 -139
  1625. package/dist/shared/run-port-snap.d.ts +0 -11
  1626. package/dist/shared/run-port-snap.d.ts.map +0 -1
  1627. package/dist/shared/run-port-snap.js +0 -19
  1628. package/dist/shared/run-screen-direction.d.ts +0 -5
  1629. package/dist/shared/run-screen-direction.d.ts.map +0 -1
  1630. package/dist/shared/run-screen-direction.js +0 -24
  1631. package/dist/shelf/slots.d.ts +0 -9
  1632. package/dist/shelf/slots.d.ts.map +0 -1
  1633. package/dist/shelf/slots.js +0 -30
  1634. package/dist/slab/slots.d.ts +0 -10
  1635. package/dist/slab/slots.d.ts.map +0 -1
  1636. package/dist/slab/slots.js +0 -20
  1637. package/dist/stair/floor-stack.d.ts +0 -10
  1638. package/dist/stair/floor-stack.d.ts.map +0 -1
  1639. package/dist/stair/floor-stack.js +0 -115
  1640. package/dist/stair/slots.d.ts +0 -7
  1641. package/dist/stair/slots.d.ts.map +0 -1
  1642. package/dist/stair/slots.js +0 -13
  1643. package/dist/wall/drawing-mode.d.ts +0 -12
  1644. package/dist/wall/drawing-mode.d.ts.map +0 -1
  1645. package/dist/wall/drawing-mode.js +0 -38
  1646. package/dist/wall/slots.d.ts +0 -10
  1647. package/dist/wall/slots.d.ts.map +0 -1
  1648. package/dist/wall/slots.js +0 -92
  1649. package/dist/window/slots.d.ts +0 -5
  1650. package/dist/window/slots.d.ts.map +0 -1
  1651. package/dist/window/slots.js +0 -11
@@ -0,0 +1,1144 @@
1
+ import { clampFencePicketRailProjection, getFenceCenterlineFrameAt, getFenceCenterlineLength, getFenceGateLeaves, resolveFenceFeatures, } from '@pascal-app/core';
2
+ import * as THREE from 'three';
3
+ import { mergeGeometries } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
4
+ const MIN_CURVE_SEGMENT_LENGTH = 0.18;
5
+ const HORIZONTAL_FENCE_CURVE_SEGMENT_LENGTH = 0.2;
6
+ function createFencePartGeometry(part) {
7
+ if (part.geometry) {
8
+ return part.geometry;
9
+ }
10
+ const geometry = part.shape === 'pyramid'
11
+ ? new THREE.ConeGeometry(0.5, 1, 4, 1, false, Math.PI / 4)
12
+ : part.shape === 'picket'
13
+ ? createPicketGeometry(part.scale[0], part.scale[1], part.scale[2], part.picketTop)
14
+ : new THREE.BoxGeometry(1, 1, 1);
15
+ if (part.shape !== 'picket')
16
+ geometry.scale(part.scale[0], part.scale[1], part.scale[2]);
17
+ if (part.rotationZ)
18
+ geometry.rotateZ(part.rotationZ);
19
+ if (part.rotationY) {
20
+ geometry.rotateY(part.rotationY);
21
+ }
22
+ geometry.translate(part.position[0], part.position[1], part.position[2]);
23
+ applyFenceUVs(geometry);
24
+ return geometry;
25
+ }
26
+ function createPicketGeometry(width, height, depth, top = 'dog-ear') {
27
+ const shape = new THREE.Shape();
28
+ const halfWidth = width / 2;
29
+ const tip = height / 2;
30
+ const shoulder = tip - Math.min(halfWidth, height * 0.2);
31
+ shape.moveTo(-halfWidth, -tip);
32
+ shape.lineTo(halfWidth, -tip);
33
+ if (top === 'flat') {
34
+ shape.lineTo(halfWidth, tip);
35
+ shape.lineTo(-halfWidth, tip);
36
+ }
37
+ else {
38
+ shape.lineTo(halfWidth, shoulder);
39
+ if (top === 'pointed') {
40
+ shape.lineTo(0, tip);
41
+ }
42
+ else if (top === 'rounded') {
43
+ shape.absellipse(0, shoulder, halfWidth, tip - shoulder, 0, Math.PI, false, 0);
44
+ }
45
+ else {
46
+ shape.lineTo(width * 0.28, tip);
47
+ shape.lineTo(-width * 0.28, tip);
48
+ }
49
+ shape.lineTo(-halfWidth, shoulder);
50
+ }
51
+ shape.closePath();
52
+ const geometry = new THREE.ExtrudeGeometry(shape, {
53
+ bevelEnabled: false,
54
+ curveSegments: 8,
55
+ depth,
56
+ steps: 1,
57
+ });
58
+ geometry.translate(0, 0, -depth / 2);
59
+ return geometry;
60
+ }
61
+ function getInfillOffset(fence, supportDepth, infillDepth) {
62
+ const direction = fence.infillPlacement === 'front' ? 1 : fence.infillPlacement === 'back' ? -1 : 0;
63
+ // A small overlap avoids coincident faces at the attachment surface.
64
+ return direction * Math.max(0, (supportDepth + infillDepth) / 2 - 0.002);
65
+ }
66
+ function getFencePointAt(fence, t) {
67
+ const frame = getFenceCenterlineFrameAt(fence, t);
68
+ return {
69
+ point: frame.point,
70
+ tangentAngle: Math.atan2(frame.tangent.y, frame.tangent.x),
71
+ };
72
+ }
73
+ function createFenceCurveBlockPart(fence, startT, endT, centerY, height, depth, lateralOffset = 0) {
74
+ if (endT - startT <= 1e-5)
75
+ return null;
76
+ const halfHeight = height / 2;
77
+ const halfDepth = depth / 2;
78
+ const centerlineLength = getFenceCenterlineLength(fence);
79
+ const startDistance = startT * centerlineLength;
80
+ const endDistance = endT * centerlineLength;
81
+ const bottomY = centerY - halfHeight;
82
+ const topY = centerY + halfHeight;
83
+ const corners = [];
84
+ for (const t of [startT, endT]) {
85
+ const frame = getFencePointAt(fence, t);
86
+ const normalX = -Math.sin(frame.tangentAngle);
87
+ const normalZ = Math.cos(frame.tangentAngle);
88
+ const outerX = frame.point.x + normalX * (halfDepth + lateralOffset);
89
+ const outerZ = frame.point.y + normalZ * (halfDepth + lateralOffset);
90
+ const innerX = frame.point.x - normalX * (halfDepth - lateralOffset);
91
+ const innerZ = frame.point.y - normalZ * (halfDepth - lateralOffset);
92
+ corners.push([outerX, bottomY, outerZ], [innerX, bottomY, innerZ], [outerX, topY, outerZ], [innerX, topY, innerZ]);
93
+ }
94
+ const positions = [];
95
+ const uvs = [];
96
+ const pushVertex = (index, uv) => {
97
+ positions.push(...corners[index]);
98
+ uvs.push(...uv);
99
+ };
100
+ const pushQuad = (a, b, c, d, uvA, uvB, uvC, uvD) => {
101
+ pushVertex(a, uvA);
102
+ pushVertex(b, uvB);
103
+ pushVertex(c, uvC);
104
+ pushVertex(a, uvA);
105
+ pushVertex(c, uvC);
106
+ pushVertex(d, uvD);
107
+ };
108
+ const topOuterV = topY;
109
+ const topInnerV = topY + depth;
110
+ const innerTopV = topInnerV;
111
+ const innerBottomV = topInnerV + height;
112
+ const bottomInnerV = bottomY - depth;
113
+ pushQuad(0, 4, 6, 2, [startDistance, bottomY], [endDistance, bottomY], [endDistance, topY], [startDistance, topY]);
114
+ pushQuad(1, 3, 7, 5, [startDistance, innerBottomV], [startDistance, innerTopV], [endDistance, innerTopV], [endDistance, innerBottomV]);
115
+ pushQuad(2, 6, 7, 3, [startDistance, topOuterV], [endDistance, topOuterV], [endDistance, topInnerV], [startDistance, topInnerV]);
116
+ pushQuad(0, 1, 5, 4, [startDistance, bottomY], [startDistance, bottomInnerV], [endDistance, bottomInnerV], [endDistance, bottomY]);
117
+ pushQuad(0, 2, 3, 1, [0, bottomY], [0, topY], [depth, innerTopV], [depth, innerBottomV]);
118
+ pushQuad(4, 5, 7, 6, [0, bottomY], [depth, innerBottomV], [depth, innerTopV], [0, topY]);
119
+ const geometry = new THREE.BufferGeometry();
120
+ geometry.setAttribute('position', new THREE.Float32BufferAttribute(new Float32Array(positions), 3));
121
+ geometry.setAttribute('uv', new THREE.Float32BufferAttribute(new Float32Array(uvs), 2));
122
+ geometry.setAttribute('uv2', new THREE.Float32BufferAttribute(new Float32Array(uvs), 2));
123
+ geometry.computeVertexNormals();
124
+ return {
125
+ geometry,
126
+ position: [0, 0, 0],
127
+ scale: [1, 1, 1],
128
+ startT,
129
+ endT,
130
+ curveBlock: { centerY, height, depth, lateralOffset },
131
+ };
132
+ }
133
+ function createFenceCurveBlockParts(fence, startT, endT, centerY, height, depth, maxSegmentLength = MIN_CURVE_SEGMENT_LENGTH, lateralOffset = 0) {
134
+ const length = getFenceCenterlineLength(fence) * Math.max(1e-4, endT - startT);
135
+ const segmentCount = Math.max(1, Math.ceil(length / Math.max(1e-4, maxSegmentLength)));
136
+ const parts = [];
137
+ for (let index = 0; index < segmentCount; index += 1) {
138
+ const segmentStartT = startT + (endT - startT) * (index / segmentCount);
139
+ const segmentEndT = startT + (endT - startT) * ((index + 1) / segmentCount);
140
+ const part = createFenceCurveBlockPart(fence, segmentStartT, segmentEndT, centerY, height, depth, lateralOffset);
141
+ if (part)
142
+ parts.push(part);
143
+ }
144
+ return parts;
145
+ }
146
+ function applyFenceUVs(geometry) {
147
+ const position = geometry.getAttribute('position');
148
+ const normal = geometry.getAttribute('normal');
149
+ if (!(position && normal))
150
+ return;
151
+ // World-scale triplanar UVs: 1 UV unit = 1 metre, sampled from the part's
152
+ // local-space (already translated into fence space) coordinates with NO
153
+ // per-part origin shift. A shared origin keeps a tiled finish continuous
154
+ // across posts, rails, and infill instead of restarting the tile at each
155
+ // part's own min corner (the previous behaviour, which broke the 1 m
156
+ // contract and made adjacent parts mistile).
157
+ const uvs = new Float32Array(position.count * 2);
158
+ for (let index = 0; index < position.count; index += 1) {
159
+ const px = position.getX(index);
160
+ const py = position.getY(index);
161
+ const pz = position.getZ(index);
162
+ const nx = Math.abs(normal.getX(index));
163
+ const ny = Math.abs(normal.getY(index));
164
+ const nz = Math.abs(normal.getZ(index));
165
+ let u = 0;
166
+ let v = 0;
167
+ if (ny >= nx && ny >= nz) {
168
+ u = px;
169
+ v = pz;
170
+ }
171
+ else if (nx >= nz) {
172
+ u = pz;
173
+ v = py;
174
+ }
175
+ else {
176
+ u = px;
177
+ v = py;
178
+ }
179
+ uvs[index * 2] = u;
180
+ uvs[index * 2 + 1] = v;
181
+ }
182
+ geometry.setAttribute('uv', new THREE.Float32BufferAttribute(uvs, 2));
183
+ geometry.setAttribute('uv2', new THREE.Float32BufferAttribute(uvs.slice(), 2));
184
+ }
185
+ function getStyleDefaults(style) {
186
+ if (style === 'privacy') {
187
+ return { spacingFactor: 0.42, postFactor: 1.35, baseFactor: 1.2, topFactor: 1.2 };
188
+ }
189
+ if (style === 'rail') {
190
+ return { spacingFactor: 0.68, postFactor: 0.8, baseFactor: 0.85, topFactor: 0.85 };
191
+ }
192
+ return { spacingFactor: 0.3, postFactor: 0.55, baseFactor: 1, topFactor: 0.75 };
193
+ }
194
+ function getFenceInfillVerticalBounds(fence) {
195
+ const height = fence.style === 'picket' ? Math.max(fence.height, 0.3) : fence.height;
196
+ if (fence.style === 'picket') {
197
+ const baseHeight = fence.baseStyle === 'floating' ? 0 : Math.min(Math.max(fence.baseHeight, 0.04), height * 0.5);
198
+ const bottom = Math.min(baseHeight + Math.max(fence.groundClearance, 0), height * 0.75);
199
+ const topClearance = Math.min(Math.max(fence.picketTopClearance ?? 0, 0), height - bottom - 0.02);
200
+ return { bottom, top: height - topClearance };
201
+ }
202
+ const styleDefaults = getStyleDefaults(fence.style);
203
+ const baseY = fence.baseStyle === 'floating' ? Math.max(fence.groundClearance, 0) : 0;
204
+ const baseHeight = Math.max(fence.baseHeight * (fence.style === 'horizontal' ? 1 : styleDefaults.baseFactor), 0.04);
205
+ const topRailHeight = Math.max(fence.topRailHeight * (fence.style === 'horizontal' ? 1 : styleDefaults.topFactor), 0.01);
206
+ const verticalHeight = Math.max(height - baseHeight - topRailHeight, 0.08);
207
+ const bottom = baseY + baseHeight;
208
+ return { bottom, top: bottom + verticalHeight };
209
+ }
210
+ export function getFenceFeatureDimensions(fence, feature) {
211
+ const bounds = getFenceInfillVerticalBounds(fence);
212
+ const fullPost = fence.style === 'picket' ||
213
+ fence.style === 'horizontal' ||
214
+ fence.baseStyle === 'floating' ||
215
+ !fence.showInfill;
216
+ const postBottom = fullPost ? 0 : bounds.bottom;
217
+ const defaults = getStyleDefaults(fence.style);
218
+ const railHeight = Math.max(fence.topRailHeight * (fence.style === 'horizontal' ? 1 : defaults.topFactor), 0.01);
219
+ const postTop = fence.style === 'picket'
220
+ ? Math.max(fence.height, 0.3)
221
+ : fullPost
222
+ ? bounds.top -
223
+ (fence.baseStyle === 'floating' ? Math.max(fence.groundClearance, 0) : 0) +
224
+ railHeight +
225
+ Math.max(fence.groundClearance, 0)
226
+ : bounds.top;
227
+ const matchesHeight = feature.matchFenceHeight ?? feature.matchFenceStyle !== false;
228
+ const bottom = feature.kind === 'opening'
229
+ ? postBottom
230
+ : matchesHeight
231
+ ? bounds.bottom
232
+ : (feature.clearance ?? bounds.bottom);
233
+ const defaultHeight = feature.kind === 'opening' ? postTop - postBottom : bounds.top - bounds.bottom;
234
+ const height = matchesHeight ? defaultHeight : (feature.height ?? defaultHeight);
235
+ const postHeight = Math.max(0.02, feature.kind === 'opening' ? height : postTop - postBottom);
236
+ return { bottom, height, postBottom, postHeight };
237
+ }
238
+ function distributePattern(fence, start, end, targetSpacing, minimumSpacing, minimumCount = 1) {
239
+ const length = Math.max(0, end - start);
240
+ if (length < 1e-5)
241
+ return minimumCount > 1 ? [start, end] : [(start + end) / 2];
242
+ const target = Math.max(targetSpacing, minimumSpacing);
243
+ const maxCount = Math.max(minimumCount, Math.floor(length / minimumSpacing) + 1);
244
+ const mode = fence.patternDistribution;
245
+ let count;
246
+ if (mode === 'fixed-count') {
247
+ count = THREE.MathUtils.clamp(Math.round(fence.patternCount), minimumCount, maxCount);
248
+ }
249
+ else if (mode === 'maximum-spacing') {
250
+ count = THREE.MathUtils.clamp(Math.ceil(length / target) + 1, minimumCount, maxCount);
251
+ }
252
+ else if (mode === 'equal-fit') {
253
+ count = THREE.MathUtils.clamp(Math.round(length / target) + 1, minimumCount, maxCount);
254
+ }
255
+ else {
256
+ count = THREE.MathUtils.clamp(Math.floor(length / target) + 1, minimumCount, maxCount);
257
+ }
258
+ if (count === 1) {
259
+ return [
260
+ mode === 'fixed-spacing' && fence.patternAlignment === 'start'
261
+ ? start
262
+ : mode === 'fixed-spacing' && fence.patternAlignment === 'end'
263
+ ? end
264
+ : (start + end) / 2,
265
+ ];
266
+ }
267
+ const fixed = mode === 'fixed-spacing' && fence.patternRemainder === 'leave';
268
+ const spacing = fixed ? target : length / (count - 1);
269
+ const extra = Math.max(0, length - spacing * (count - 1));
270
+ const origin = fixed
271
+ ? start +
272
+ (fence.patternAlignment === 'end'
273
+ ? extra
274
+ : fence.patternAlignment === 'center'
275
+ ? extra / 2
276
+ : 0)
277
+ : start;
278
+ return Array.from({ length: count }, (_, index) => origin + index * spacing);
279
+ }
280
+ function miterFencePartEnd(fence, part, endpoint, neighbor) {
281
+ if (!part.geometry || !part.curveBlock)
282
+ return;
283
+ const t = endpoint === 'start' ? 0 : 1;
284
+ if (Math.abs(((endpoint === 'start' ? part.startT : part.endT) ?? -1) - t) > 1e-5)
285
+ return;
286
+ const point = fence[endpoint];
287
+ const frame = getFenceCenterlineFrameAt(fence, t);
288
+ const sign = endpoint === 'start' ? 1 : -1;
289
+ const ux = frame.tangent.x * sign;
290
+ const uz = frame.tangent.y * sign;
291
+ const neighborAtStart = Math.hypot(neighbor.start[0] - point[0], neighbor.start[1] - point[1]) < 0.001;
292
+ const other = getFenceCenterlineFrameAt(neighbor, neighborAtStart ? 0 : 1);
293
+ const vx = other.tangent.x * (neighborAtStart ? 1 : -1);
294
+ const vz = other.tangent.y * (neighborAtStart ? 1 : -1);
295
+ const cross = ux * vz - uz * vx;
296
+ if (Math.abs(cross) < 0.15)
297
+ return;
298
+ const { depth, lateralOffset } = part.curveBlock;
299
+ const ratio = Math.max(neighbor.thickness, 0.03) / Math.max(fence.thickness, 0.03);
300
+ const position = part.geometry.getAttribute('position');
301
+ for (let index = 0; index < position.count; index += 1) {
302
+ const x = position.getX(index);
303
+ const z = position.getZ(index);
304
+ for (const side of [-1, 1]) {
305
+ const offset = lateralOffset + (side * depth) / 2;
306
+ const originalX = point[0] - uz * offset * sign;
307
+ const originalZ = point[1] + ux * offset * sign;
308
+ if (Math.hypot(x - originalX, z - originalZ) > 1e-4)
309
+ continue;
310
+ const neighborOffset = -offset * sign * ratio;
311
+ const nx = -uz * offset * sign;
312
+ const nz = ux * offset * sign;
313
+ const mx = -vz * neighborOffset;
314
+ const mz = vx * neighborOffset;
315
+ const reach = ((mx - nx) * vz - (mz - nz) * vx) / cross;
316
+ if (Math.abs(reach) > Math.max(depth, depth * ratio) * 4)
317
+ break;
318
+ position.setX(index, originalX + ux * reach);
319
+ position.setZ(index, originalZ + uz * reach);
320
+ break;
321
+ }
322
+ }
323
+ position.needsUpdate = true;
324
+ part.geometry.computeVertexNormals();
325
+ }
326
+ /**
327
+ * Horizontal-board fence — composite cladding boards stacked between square
328
+ * intermediate posts (each capped), instead of the vertical pickets the other
329
+ * styles draw. Posts march along the whole span at `postSpacing` (not just the
330
+ * two ends), the boards run full-length so they curve with the fence, and a
331
+ * thin reveal between boards leaves the groove shadow that reads as cladding.
332
+ */
333
+ function createHorizontalFenceParts(fence, sharedEndpoints) {
334
+ const posts = [];
335
+ const infill = [];
336
+ const base = [];
337
+ const rail = [];
338
+ const length = Math.max(getFenceCenterlineLength(fence), 0.01);
339
+ const panelDepth = Math.max(fence.thickness, 0.03);
340
+ const clearance = Math.max(fence.groundClearance, 0);
341
+ const isFloating = fence.baseStyle === 'floating';
342
+ // 'raised': the kickboard becomes a bottom rail `clearance` up; the posts still reach the ground
343
+ const isRaised = fence.baseStyle === 'raised';
344
+ const showInfill = fence.showInfill ?? true;
345
+ const baseHeight = Math.max(fence.baseHeight, 0.04);
346
+ const topRailHeight = Math.max(fence.topRailHeight, 0.01);
347
+ const verticalHeight = Math.max(fence.height - baseHeight - topRailHeight, 0.08);
348
+ const baseY = isFloating || isRaised ? clearance : 0;
349
+ // Square posts stand proud of the recessed boards on both faces.
350
+ const postWidth = Math.max(fence.postSize * 1.4, 0.04);
351
+ const postDepth = postWidth;
352
+ const boardDepth = Math.min(panelDepth, postDepth - 0.012);
353
+ const infillOffset = getInfillOffset(fence, postDepth, boardDepth);
354
+ // Stop the horizontal boards / base / rail at the inner faces of the
355
+ // end posts. Letting curved spans run all the way to t=0/1 makes them
356
+ // overlap the terminal post mesh and creates the broken seam/notch seen
357
+ // at curve ends.
358
+ const edgeInset = Math.max(fence.edgeInset ?? 0.015, postWidth * 0.5);
359
+ const startInsetT = sharedEndpoints?.has('start') ? 0 : Math.min(0.499, edgeInset / length);
360
+ const endInsetT = sharedEndpoints?.has('end') ? 1 : Math.max(0.501, 1 - edgeInset / length);
361
+ // Grounded fences get a kickboard along the bottom; floating ones don't.
362
+ if (!isFloating) {
363
+ base.push(...createFenceCurveBlockParts(fence, startInsetT, endInsetT, baseY + baseHeight / 2, baseHeight, postDepth * 0.92, HORIZONTAL_FENCE_CURVE_SEGMENT_LENGTH));
364
+ }
365
+ // Stack full-length boards between the kickboard and the top rail. The board
366
+ // height is derived to evenly fill the panel around a ~0.145 m target, with a
367
+ // constant reveal between each so the count adapts to any fence height.
368
+ if (showInfill) {
369
+ const reveal = Math.max(fence.slatGap ?? 0.01, 0);
370
+ const infillBottom = baseY + baseHeight;
371
+ if (reveal < 0.002) {
372
+ // No reveal → one flush panel, so the stacked-board edge seams don't
373
+ // read as faint lines where the user asked for a smooth surface.
374
+ infill.push(...createFenceCurveBlockParts(fence, startInsetT, endInsetT, infillBottom + verticalHeight / 2, verticalHeight, boardDepth, HORIZONTAL_FENCE_CURVE_SEGMENT_LENGTH, infillOffset));
375
+ }
376
+ else {
377
+ const boardCount = Math.max(1, Math.round(verticalHeight / (0.145 + reveal)));
378
+ const slabHeight = Math.max((verticalHeight - reveal * (boardCount - 1)) / boardCount, 0.02);
379
+ for (let index = 0; index < boardCount; index += 1) {
380
+ const centerY = infillBottom + slabHeight / 2 + index * (slabHeight + reveal);
381
+ infill.push(...createFenceCurveBlockParts(fence, startInsetT, endInsetT, centerY, slabHeight, boardDepth, HORIZONTAL_FENCE_CURVE_SEGMENT_LENGTH, infillOffset));
382
+ }
383
+ }
384
+ }
385
+ // Top rail caps the boards.
386
+ rail.push(...createFenceCurveBlockParts(fence, startInsetT, endInsetT, baseY + baseHeight + verticalHeight + topRailHeight / 2, topRailHeight, Math.max(postDepth * 0.78, 0.02), HORIZONTAL_FENCE_CURVE_SEGMENT_LENGTH));
387
+ // Posts at every `postSpacing`, anchored at both ends, each with a flat cap.
388
+ const spacing = Math.max(fence.postSpacing, postWidth * 1.4);
389
+ const postCount = Math.max(2, Math.floor(length / spacing) + 1);
390
+ const postDistances = fence.patternDistribution === 'automatic'
391
+ ? Array.from({ length: postCount }, (_, index) => (length * index) / (postCount - 1))
392
+ : distributePattern(fence, 0, length, spacing, postWidth * 1.4, 2);
393
+ const anchoredPostDistances = fence.patternDistribution === 'fixed-spacing'
394
+ ? [
395
+ 0,
396
+ ...postDistances.filter((distance) => distance > postWidth * 1.4 && length - distance > postWidth * 1.4),
397
+ length,
398
+ ]
399
+ : postDistances;
400
+ const postHeight = baseHeight + verticalHeight + topRailHeight + clearance;
401
+ const capHeight = Math.max(postWidth * 0.32, 0.03);
402
+ const cap = fence.postCap ?? 'pyramid';
403
+ for (const distance of anchoredPostDistances) {
404
+ const t = distance / length;
405
+ const frame = getFencePointAt(fence, t);
406
+ posts.push({
407
+ endpoint: distance === 0 ? 'start' : distance === length ? 'end' : undefined,
408
+ position: [frame.point.x, postHeight / 2, frame.point.y],
409
+ rotationY: -frame.tangentAngle,
410
+ scale: [postWidth, postHeight, postDepth],
411
+ });
412
+ if (cap === 'flat') {
413
+ posts.push({
414
+ endpoint: distance === 0 ? 'start' : distance === length ? 'end' : undefined,
415
+ position: [frame.point.x, postHeight + capHeight / 2, frame.point.y],
416
+ rotationY: -frame.tangentAngle,
417
+ scale: [postWidth * 1.22, capHeight, postDepth * 1.22],
418
+ });
419
+ }
420
+ else if (cap === 'pyramid') {
421
+ posts.push({
422
+ endpoint: distance === 0 ? 'start' : distance === length ? 'end' : undefined,
423
+ position: [frame.point.x, postHeight + capHeight * 0.9, frame.point.y],
424
+ rotationY: -frame.tangentAngle,
425
+ scale: [postWidth * 1.18, capHeight * 1.8, postDepth * 1.18],
426
+ shape: 'pyramid',
427
+ });
428
+ }
429
+ }
430
+ return { posts, infill, base, rail };
431
+ }
432
+ /** Dressed lumber the guard is built from, metres. */
433
+ const IN = 0.0254;
434
+ const GUARD_CAP_T = 1.5 * IN;
435
+ const GUARD_CAP_W = 5.5 * IN;
436
+ const GUARD_RAIL_T = 1.5 * IN;
437
+ const GUARD_RAIL_D = 3.5 * IN;
438
+ const GUARD_BALUSTER = 1.5 * IN;
439
+ const GUARD_BOARD_D = 5.5 * IN;
440
+ const GUARD_CABLE = 0.5 * IN;
441
+ const GUARD_POST_ABOVE_CAP = 3 * IN;
442
+ const GUARD_POST_CAP_T = 1 * IN;
443
+ /**
444
+ * A deck guard the way the AWC Deck Construction Guide (DCA 6) draws one:
445
+ * 4x4 posts (`postSize`) no more than `postSpacing` apart — the two ends
446
+ * counted as posts whether drawn or not (`startPost` / `endPost` false:
447
+ * the rails die into a post already standing there, a porch's 6x6) — a 2x6
448
+ * cap rail flat over the posts, a 2x4 top rail on edge under it, and the
449
+ * infill: balusters (2x2 on a 2x4 bottom rail `groundClearance` over the
450
+ * deck, `slatGap` clear), cable (½ in runs `slatGap` apart from
451
+ * `groundClearance` up), or boards (`thickness` × 5½ in, `slatGap` apart
452
+ * from `groundClearance` up). `postThrough` runs the posts 3 in past the
453
+ * cap under a cap of their own (`postCap`). Slots: posts / infill / base
454
+ * (the bottom rail) / rail (cap + top rail).
455
+ */
456
+ function createGuardFenceParts(fence) {
457
+ const posts = [];
458
+ const infill = [];
459
+ const base = [];
460
+ const rail = [];
461
+ const length = Math.max(getFenceCenterlineLength(fence), 0.01);
462
+ const H = Math.max(fence.height, 0.4);
463
+ const postW = Math.max(fence.postSize, 0.02);
464
+ const clearance = Math.max(fence.groundClearance, 0);
465
+ const gap = Math.max(fence.slatGap ?? 0.09, 0.01);
466
+ const infillKind = fence.guardInfill ?? 'balusters';
467
+ const through = fence.postThrough === true;
468
+ const capTop = H;
469
+ const capBottom = H - GUARD_CAP_T;
470
+ const topRailBottom = capBottom - GUARD_RAIL_D;
471
+ const bays = Math.max(1, Math.ceil(length / Math.max(fence.postSpacing, postW * 2)));
472
+ const stations = [];
473
+ for (let i = 0; i <= bays; i++)
474
+ stations.push(i / bays);
475
+ // posts: to the cap's underside, or through it with a cap
476
+ const postH = through ? capTop + GUARD_POST_ABOVE_CAP : capBottom;
477
+ for (const [i, t] of stations.entries()) {
478
+ if (i === 0 && fence.startPost === false)
479
+ continue;
480
+ if (i === stations.length - 1 && fence.endPost === false)
481
+ continue;
482
+ const frame = getFencePointAt(fence, t);
483
+ posts.push({
484
+ position: [frame.point.x, postH / 2, frame.point.y],
485
+ rotationY: -frame.tangentAngle,
486
+ scale: [postW, postH, postW],
487
+ });
488
+ if (through && (fence.postCap ?? 'flat') !== 'none') {
489
+ const cap = fence.postCap ?? 'flat';
490
+ if (cap === 'pyramid') {
491
+ posts.push({
492
+ position: [frame.point.x, postH + postW * 0.45, frame.point.y],
493
+ rotationY: -frame.tangentAngle,
494
+ scale: [postW * 1.18, postW * 0.9, postW * 1.18],
495
+ shape: 'pyramid',
496
+ });
497
+ }
498
+ else {
499
+ posts.push({
500
+ position: [frame.point.x, postH + GUARD_POST_CAP_T / 2, frame.point.y],
501
+ rotationY: -frame.tangentAngle,
502
+ scale: [postW + 2 * IN, GUARD_POST_CAP_T, postW + 2 * IN],
503
+ });
504
+ }
505
+ }
506
+ }
507
+ // the cap rail flat over the posts and the 2x4 top rail on edge under it
508
+ rail.push(...createFenceCurveBlockParts(fence, 0, 1, capBottom + GUARD_CAP_T / 2, GUARD_CAP_T, GUARD_CAP_W));
509
+ rail.push(...createFenceCurveBlockParts(fence, 0, 1, topRailBottom + GUARD_RAIL_D / 2, GUARD_RAIL_D, GUARD_RAIL_T));
510
+ const postHalfT = postW / 2 / length;
511
+ const clearOfPosts = (t, halfT) => !stations.some((s) => Math.abs(s - t) < postHalfT + halfT);
512
+ if (infillKind === 'balusters') {
513
+ // the 2x4 bottom rail `clearance` over the deck, the balusters on it
514
+ const bottomRailTop = clearance + GUARD_RAIL_D;
515
+ base.push(...createFenceCurveBlockParts(fence, 0, 1, clearance + GUARD_RAIL_D / 2, GUARD_RAIL_D, GUARD_RAIL_T));
516
+ const balH = Math.max(topRailBottom - bottomRailTop, 0.05);
517
+ const pitch = GUARD_BALUSTER + gap;
518
+ const halfT = GUARD_BALUSTER / 2 / length;
519
+ for (let s = pitch; s < length - GUARD_BALUSTER; s += pitch) {
520
+ const t = s / length;
521
+ if (!clearOfPosts(t, halfT))
522
+ continue;
523
+ const part = createFenceCurveBlockPart(fence, t - halfT, t + halfT, bottomRailTop + balH / 2, balH, GUARD_BALUSTER);
524
+ if (part)
525
+ infill.push(part);
526
+ }
527
+ }
528
+ else if (infillKind === 'cable') {
529
+ // ½ in cables `gap` apart from `clearance` up to under the top rail
530
+ for (let y = clearance; y < topRailBottom - GUARD_CABLE; y += gap) {
531
+ infill.push(...createFenceCurveBlockParts(fence, 0, 1, y + GUARD_CABLE / 2, GUARD_CABLE, GUARD_CABLE));
532
+ }
533
+ }
534
+ else {
535
+ // boards `gap` apart from `clearance` up to under the top rail
536
+ const boardT = Math.max(fence.thickness, 0.012);
537
+ for (let y = clearance; y + GUARD_BOARD_D <= topRailBottom + 1e-6; y += GUARD_BOARD_D + gap) {
538
+ infill.push(...createFenceCurveBlockParts(fence, 0, 1, y + GUARD_BOARD_D / 2, GUARD_BOARD_D, boardT));
539
+ }
540
+ }
541
+ return { posts, infill, base, rail };
542
+ }
543
+ function createFenceParts(fence, sharedEndpoints) {
544
+ if (fence.style === 'guard')
545
+ return createGuardFenceParts(fence);
546
+ if (fence.style === 'horizontal')
547
+ return createHorizontalFenceParts(fence, sharedEndpoints);
548
+ if (fence.style === 'picket')
549
+ return createPicketFenceParts(fence, sharedEndpoints);
550
+ const posts = [];
551
+ const infill = [];
552
+ const base = [];
553
+ const rail = [];
554
+ const length = Math.max(getFenceCenterlineLength(fence), 0.01);
555
+ const panelDepth = Math.max(fence.thickness, 0.03);
556
+ const clearance = Math.max(fence.groundClearance, 0);
557
+ const styleDefaults = getStyleDefaults(fence.style);
558
+ const baseHeight = Math.max(fence.baseHeight * styleDefaults.baseFactor, 0.04);
559
+ const topRailHeight = Math.max(fence.topRailHeight * styleDefaults.topFactor, 0.01);
560
+ const verticalHeight = Math.max(fence.height - baseHeight - topRailHeight, 0.08);
561
+ const postWidth = Math.max(fence.postSize * styleDefaults.postFactor, 0.01);
562
+ const spacing = Math.max(fence.postSpacing *
563
+ (fence.patternDistribution === 'automatic' ? styleDefaults.spacingFactor : 1), postWidth * 1.2);
564
+ const edgeInset = Math.max(fence.edgeInset ?? 0.015, 0.005);
565
+ const isFloating = fence.baseStyle === 'floating';
566
+ // 'raised': the base is a guard's bottom rail held `clearance` above the
567
+ // ground, the pickets ending on it; the end posts run to the ground
568
+ const isRaised = fence.baseStyle === 'raised';
569
+ const showInfill = fence.showInfill ?? true;
570
+ const baseY = isFloating || isRaised ? clearance : 0;
571
+ const effectiveBaseHeight = baseHeight;
572
+ const startInsetT = Math.min(0.499, edgeInset / length);
573
+ const endInsetT = Math.max(0.501, 1 - edgeInset / length);
574
+ if (!isFloating) {
575
+ base.push(...createFenceCurveBlockParts(fence, 0, 1, baseY + effectiveBaseHeight / 2, effectiveBaseHeight, panelDepth * 1.05));
576
+ // the grounded kickboard's thin band above it — not on a bottom rail
577
+ if (!isRaised) {
578
+ base.push(...createFenceCurveBlockParts(fence, 0, 1, baseY + effectiveBaseHeight + verticalHeight * 0.15, topRailHeight * 0.8, panelDepth * 0.35));
579
+ }
580
+ }
581
+ const count = showInfill && fence.style !== 'privacy'
582
+ ? Math.max(2, Math.floor((length - edgeInset * 2) / spacing) + 1)
583
+ : 2;
584
+ const interiorStart = edgeInset + postWidth * 1.5;
585
+ const interiorEnd = length - edgeInset - postWidth * 1.5;
586
+ const positions = !showInfill || fence.patternDistribution === 'automatic'
587
+ ? Array.from({ length: count }, (_, index) => count === 1 ? 0.5 : startInsetT + (endInsetT - startInsetT) * (index / (count - 1)))
588
+ : [
589
+ startInsetT,
590
+ ...(interiorEnd >= interiorStart
591
+ ? distributePattern(fence, interiorStart, interiorEnd, spacing, postWidth * 1.2).map((distance) => distance / length)
592
+ : []),
593
+ endInsetT,
594
+ ];
595
+ const verticalY = baseY + effectiveBaseHeight + verticalHeight / 2;
596
+ for (let index = 0; index < positions.length; index += 1) {
597
+ const t = positions[index];
598
+ const isEdgePost = index === 0 || index === positions.length - 1;
599
+ const fullHeightPost = !showInfill || ((isFloating || isRaised) && isEdgePost);
600
+ const postHeight = fullHeightPost
601
+ ? effectiveBaseHeight + verticalHeight + topRailHeight + clearance
602
+ : verticalHeight;
603
+ const postY = fullHeightPost ? postHeight / 2 : verticalY;
604
+ // End posts are the structural `posts` slot; the intermediate verticals are
605
+ // the `infill` slats (only present when showInfill adds them).
606
+ const slatHalfT = Math.max(0.0005, postWidth / (2 * length));
607
+ const slatStartT = Math.max(0, t - slatHalfT);
608
+ const slatEndT = Math.min(1, t + slatHalfT);
609
+ const slat = createFenceCurveBlockPart(fence, slatStartT, slatEndT, postY, postHeight, Math.max(panelDepth * 0.35 - 0.001, 0.011), isEdgePost
610
+ ? 0
611
+ : getInfillOffset(fence, Math.max(panelDepth * 0.55, 0.018), Math.max(panelDepth * 0.35 - 0.001, 0.011)));
612
+ if (slat) {
613
+ if (isEdgePost)
614
+ slat.endpoint = index === 0 ? 'start' : 'end';
615
+ (isEdgePost ? posts : infill).push(slat);
616
+ }
617
+ }
618
+ if (showInfill && fence.style === 'privacy') {
619
+ infill.push(...createFenceCurveBlockParts(fence, startInsetT, endInsetT, verticalY, verticalHeight, panelDepth * 0.7, MIN_CURVE_SEGMENT_LENGTH, getInfillOffset(fence, Math.max(panelDepth * 0.55, 0.018), panelDepth * 0.7)));
620
+ }
621
+ rail.push(...createFenceCurveBlockParts(fence, 0, 1, baseY + effectiveBaseHeight + verticalHeight + topRailHeight / 2, topRailHeight, Math.max(panelDepth * 0.55, 0.018)));
622
+ if (isFloating) {
623
+ rail.push(...createFenceCurveBlockParts(fence, 0, 1, baseY + effectiveBaseHeight + topRailHeight / 2, topRailHeight, Math.max(panelDepth * 0.55, 0.018)));
624
+ }
625
+ return { posts, infill, base, rail };
626
+ }
627
+ function createPicketFenceParts(fence, sharedEndpoints) {
628
+ const posts = [];
629
+ const infill = [];
630
+ const base = [];
631
+ const rail = [];
632
+ const length = Math.max(getFenceCenterlineLength(fence), 0.01);
633
+ const height = Math.max(fence.height, 0.3);
634
+ const postWidth = Math.max(fence.postSize, 0.02);
635
+ const postDepth = Math.max(fence.thickness, postWidth);
636
+ const baseHeight = fence.baseStyle === 'floating' ? 0 : Math.min(Math.max(fence.baseHeight, 0.04), height * 0.5);
637
+ const picketBottom = Math.min(baseHeight + Math.max(fence.groundClearance, 0), height * 0.75);
638
+ const topClearance = Math.min(Math.max(fence.picketTopClearance ?? 0, 0), height - picketBottom - 0.02);
639
+ const picketHeight = height - picketBottom - topClearance;
640
+ const railHeight = Math.min(Math.max(fence.topRailHeight, 0.01), picketHeight * 0.15);
641
+ // Separate the exposed faces at post/base and post/rail intersections.
642
+ const baseDepth = postDepth * 0.8;
643
+ const railDepth = postDepth + 2 * clampFencePicketRailProjection(fence.picketRailProjection, fence.postSize);
644
+ const variation = fence.picketProfile === 'level'
645
+ ? 0
646
+ : Math.min(Math.max(fence.picketVariation, 0), picketHeight * 0.3);
647
+ const shortestPicketHeight = picketHeight - variation;
648
+ const picketDepth = Math.max(Math.min(fence.thickness * 0.5, 0.052), 0.01);
649
+ const picketWidth = Math.max(fence.picketWidth, 0.02);
650
+ const isCurved = (fence.path?.length ?? 0) >= 2 || Math.abs(fence.curveOffset ?? 0) > 0.0001;
651
+ // Curved runs need more clearance as neighboring boards turn toward each other.
652
+ const curveClearance = isCurved ? 0.03 : 0;
653
+ const spacing = Math.max(fence.picketSpacing, picketWidth + 0.01) + curveClearance;
654
+ const endInset = Math.max(fence.edgeInset, 0) + postWidth / 2;
655
+ const postCount = Math.max(1, Math.ceil(length / Math.max(fence.postSpacing, postWidth * 2)));
656
+ for (let index = 0; index <= postCount; index += 1) {
657
+ const frame = getFencePointAt(fence, index / postCount);
658
+ posts.push({
659
+ endpoint: index === 0 ? 'start' : index === postCount ? 'end' : undefined,
660
+ position: [frame.point.x, height / 2, frame.point.y],
661
+ rotationY: -frame.tangentAngle,
662
+ scale: [postWidth, height, postDepth],
663
+ });
664
+ if (fence.postCap !== 'none') {
665
+ const capHeight = postWidth * (fence.postCap === 'flat' ? 0.2 : 0.5);
666
+ posts.push({
667
+ endpoint: index === 0 ? 'start' : index === postCount ? 'end' : undefined,
668
+ position: [frame.point.x, height + capHeight / 2, frame.point.y],
669
+ rotationY: -frame.tangentAngle,
670
+ scale: [postWidth * 1.5, capHeight, postDepth * 1.5],
671
+ shape: fence.postCap === 'flat' ? 'box' : 'pyramid',
672
+ });
673
+ }
674
+ }
675
+ const startInsetT = sharedEndpoints?.has('start') ? 0 : Math.min(0.499, endInset / length);
676
+ const endInsetT = sharedEndpoints?.has('end') ? 1 : Math.max(0.501, 1 - endInset / length);
677
+ const railEndInset = Math.max(0, postWidth / 2 - Math.min(postWidth * 0.2, 0.015));
678
+ const railStartT = sharedEndpoints?.has('start') ? 0 : Math.min(0.499, railEndInset / length);
679
+ const railEndT = sharedEndpoints?.has('end') ? 1 : Math.max(0.501, 1 - railEndInset / length);
680
+ if (baseHeight > 0) {
681
+ base.push(...createFenceCurveBlockParts(fence, startInsetT, endInsetT, baseHeight / 2, baseHeight, baseDepth));
682
+ }
683
+ const railCount = Math.min(3, Math.max(2, Math.round(fence.picketRailCount)));
684
+ for (let index = 0; index < railCount; index += 1) {
685
+ const centerY = picketBottom + shortestPicketHeight * (0.2 + (0.55 * index) / (railCount - 1));
686
+ rail.push(...createFenceCurveBlockParts(fence, railStartT, railEndT, centerY, railHeight, railDepth, 0.22));
687
+ }
688
+ // Lay out each bay independently so boards never intersect the structural posts.
689
+ const bayLength = length / postCount;
690
+ const usableLength = bayLength - 2 * endInset - picketWidth;
691
+ if (fence.showInfill && usableLength >= 0) {
692
+ const faceOffset = getInfillOffset(fence, railDepth, picketDepth);
693
+ for (let bay = 0; bay < postCount; bay += 1) {
694
+ const distances = fence.patternDistribution === 'automatic'
695
+ ? (() => {
696
+ const count = Math.max(1, Math.floor(usableLength / spacing) + 1);
697
+ const occupied = (count - 1) * spacing;
698
+ return Array.from({ length: count }, (_, index) => bay * bayLength + (bayLength - occupied) / 2 + index * spacing);
699
+ })()
700
+ : distributePattern(fence, bay * bayLength + endInset + picketWidth / 2, (bay + 1) * bayLength - endInset - picketWidth / 2, fence.picketSpacing, picketWidth + curveClearance + 0.01);
701
+ for (let index = 0; index < distances.length; index += 1) {
702
+ const distance = distances[index];
703
+ const frame = getFenceCenterlineFrameAt(fence, distance / length);
704
+ const u = distances.length === 1 ? 0.5 : index / (distances.length - 1);
705
+ const arch = Math.sin(Math.PI * u);
706
+ const reduction = fence.picketProfile === 'arched'
707
+ ? 1 - arch
708
+ : fence.picketProfile === 'scalloped'
709
+ ? arch
710
+ : fence.picketProfile === 'alternating'
711
+ ? index % 2
712
+ : 0;
713
+ const boardHeight = picketHeight - variation * reduction;
714
+ infill.push({
715
+ position: [
716
+ frame.point.x + frame.normal.x * faceOffset,
717
+ picketBottom + boardHeight / 2,
718
+ frame.point.y + frame.normal.y * faceOffset,
719
+ ],
720
+ rotationY: -Math.atan2(frame.tangent.y, frame.tangent.x),
721
+ scale: [picketWidth, boardHeight, picketDepth],
722
+ shape: 'picket',
723
+ picketTop: fence.picketTop,
724
+ });
725
+ }
726
+ }
727
+ }
728
+ return { posts, infill, base, rail };
729
+ }
730
+ function fenceHeightTransitions(fence, heightAt) {
731
+ const length = getFenceCenterlineLength(fence);
732
+ const count = Math.max(2, Math.ceil(length / 0.06));
733
+ const transitions = [];
734
+ let previous = getFencePointAt(fence, 0).point;
735
+ let previousHeight = heightAt(previous.x, previous.y);
736
+ for (let index = 1; index <= count; index += 1) {
737
+ const point = getFencePointAt(fence, index / count).point;
738
+ const height = heightAt(point.x, point.y);
739
+ if (Math.abs(height - previousHeight) >= 0.12) {
740
+ const t = (index - 0.5) / count;
741
+ const last = transitions.at(-1);
742
+ if (last && (t - last.t) * length < 0.18) {
743
+ last.after = height;
744
+ }
745
+ else {
746
+ transitions.push({ t, before: previousHeight, after: height });
747
+ }
748
+ }
749
+ previous = point;
750
+ previousHeight = height;
751
+ }
752
+ return transitions;
753
+ }
754
+ function createFencePathProgress(fence) {
755
+ const length = getFenceCenterlineLength(fence);
756
+ const count = Math.max(2, Math.ceil(length / 0.15));
757
+ const points = Array.from({ length: count + 1 }, (_, index) => getFencePointAt(fence, index / count).point);
758
+ return (x, z) => {
759
+ let bestT = 0;
760
+ let bestDistance = Number.POSITIVE_INFINITY;
761
+ for (let index = 1; index <= count; index += 1) {
762
+ const previous = points[index - 1];
763
+ const next = points[index];
764
+ const dx = next.x - previous.x;
765
+ const dz = next.y - previous.y;
766
+ const squared = dx * dx + dz * dz;
767
+ const fraction = squared > 1e-8
768
+ ? THREE.MathUtils.clamp(((x - previous.x) * dx + (z - previous.y) * dz) / squared, 0, 1)
769
+ : 0;
770
+ const px = previous.x + dx * fraction;
771
+ const pz = previous.y + dz * fraction;
772
+ const distance = (x - px) ** 2 + (z - pz) ** 2;
773
+ if (distance < bestDistance) {
774
+ bestDistance = distance;
775
+ bestT = (index - 1 + fraction) / count;
776
+ }
777
+ }
778
+ return bestT;
779
+ };
780
+ }
781
+ function transitionRailHeight(fence, rawHeight, transitions) {
782
+ const length = getFenceCenterlineLength(fence);
783
+ const halfSpan = Math.max(0.1, fence.transitionWidth / 2) / Math.max(length, 0.01);
784
+ const progress = createFencePathProgress(fence);
785
+ const ramps = transitions.map((transition) => {
786
+ const left = Math.max(0, transition.t - halfSpan);
787
+ const right = Math.min(1, transition.t + halfSpan);
788
+ const beforePoint = getFencePointAt(fence, left).point;
789
+ const afterPoint = getFencePointAt(fence, right).point;
790
+ return {
791
+ left,
792
+ right,
793
+ before: rawHeight(beforePoint.x, beforePoint.y),
794
+ after: rawHeight(afterPoint.x, afterPoint.y),
795
+ };
796
+ });
797
+ return (x, z) => {
798
+ const t = progress(x, z);
799
+ for (const ramp of ramps) {
800
+ if (t < ramp.left || t > ramp.right)
801
+ continue;
802
+ return THREE.MathUtils.lerp(ramp.before, ramp.after, (t - ramp.left) / Math.max(ramp.right - ramp.left, 1e-6));
803
+ }
804
+ return rawHeight(x, z);
805
+ };
806
+ }
807
+ export function createFenceRailHeightSampler(fence, heightAt) {
808
+ if (fence.surfaceMode === 'level' || fence.transitionMode !== 'slope')
809
+ return heightAt;
810
+ const transitions = fenceHeightTransitions(fence, heightAt);
811
+ return transitions.length > 0 ? transitionRailHeight(fence, heightAt, transitions) : heightAt;
812
+ }
813
+ function addTransitionPosts(fence, parts, transitions) {
814
+ const length = getFenceCenterlineLength(fence);
815
+ const width = Math.max(fence.postSize, fence.transitionMode === 'step' ? 0.22 : 0.07);
816
+ const depth = Math.max(fence.thickness, width);
817
+ for (const transition of transitions) {
818
+ if (fence.transitionMode === 'break') {
819
+ const offset = Math.min(0.08 / Math.max(length, 0.01), 0.2);
820
+ for (const t of [Math.max(0, transition.t - offset), Math.min(1, transition.t + offset)]) {
821
+ const frame = getFencePointAt(fence, t);
822
+ parts.posts.push({
823
+ position: [frame.point.x, fence.height / 2, frame.point.y],
824
+ rotationY: -frame.tangentAngle,
825
+ scale: [width, fence.height, depth],
826
+ });
827
+ }
828
+ }
829
+ else {
830
+ const frame = getFencePointAt(fence, transition.t);
831
+ const rise = Math.abs(transition.after - transition.before);
832
+ parts.posts.push({
833
+ position: [frame.point.x, (fence.height + rise) / 2, frame.point.y],
834
+ rotationY: -frame.tangentAngle,
835
+ scale: [width, fence.height + rise, depth],
836
+ heightOverride: Math.min(transition.before, transition.after),
837
+ });
838
+ }
839
+ }
840
+ }
841
+ function omitCrossingParts(parts, transitions) {
842
+ return parts.filter((part) => part.startT === undefined ||
843
+ part.endT === undefined ||
844
+ !transitions.some((transition) => transition.t > part.startT && transition.t < part.endT));
845
+ }
846
+ function cutFenceParts(fence, parts, features, heightAt, renderFeatures = true, gateLeafGeometries) {
847
+ const progress = createFencePathProgress(fence);
848
+ for (const slot of ['posts', 'infill', 'base', 'rail']) {
849
+ parts[slot] = parts[slot].flatMap((part) => {
850
+ if (part.startT === undefined || part.endT === undefined || !part.curveBlock) {
851
+ const t = progress(part.position[0], part.position[2]);
852
+ return features.some((feature) => t >= feature.startT && t <= feature.endT) ? [] : [part];
853
+ }
854
+ const ranges = [];
855
+ let cursor = part.startT;
856
+ for (const feature of features) {
857
+ if (feature.endT <= cursor || feature.startT >= part.endT)
858
+ continue;
859
+ if (feature.startT > cursor)
860
+ ranges.push([cursor, Math.min(feature.startT, part.endT)]);
861
+ cursor = Math.max(cursor, feature.endT);
862
+ if (cursor >= part.endT)
863
+ break;
864
+ }
865
+ if (cursor < part.endT)
866
+ ranges.push([cursor, part.endT]);
867
+ if (ranges.length === 1 && ranges[0][0] === part.startT && ranges[0][1] === part.endT)
868
+ return [part];
869
+ part.geometry?.dispose();
870
+ return ranges.flatMap(([start, end]) => {
871
+ const block = part.curveBlock;
872
+ const clipped = createFenceCurveBlockPart(fence, start, end, block.centerY, block.height, block.depth, block.lateralOffset);
873
+ return clipped ? [clipped] : [];
874
+ });
875
+ });
876
+ }
877
+ if (!renderFeatures)
878
+ return;
879
+ for (const feature of features) {
880
+ const matchesFence = feature.matchFenceStyle !== false;
881
+ const styleDefaults = getStyleDefaults(fence.style);
882
+ const postWidth = matchesFence
883
+ ? fence.style === 'picket'
884
+ ? Math.max(fence.postSize, 0.02)
885
+ : fence.style === 'horizontal'
886
+ ? Math.max(fence.postSize * 1.4, 0.04)
887
+ : Math.max(fence.postSize * styleDefaults.postFactor, 0.01)
888
+ : Math.max(fence.postSize, 0.05);
889
+ const postDepth = matchesFence && fence.style === 'horizontal'
890
+ ? postWidth
891
+ : matchesFence && fence.style !== 'picket'
892
+ ? Math.max(Math.max(fence.thickness, 0.03) * 0.35 - 0.001, 0.011)
893
+ : Math.max(fence.thickness, postWidth);
894
+ const { bottom, height, postBottom, postHeight } = getFenceFeatureDimensions(fence, feature);
895
+ const top = bottom + height;
896
+ if (feature.showPosts !== false)
897
+ for (const t of [feature.startT, feature.endT]) {
898
+ const frame = getFencePointAt(fence, t);
899
+ parts.posts.push({
900
+ position: [frame.point.x, postBottom + postHeight / 2, frame.point.y],
901
+ rotationY: -frame.tangentAngle,
902
+ scale: [postWidth, postHeight, postDepth],
903
+ });
904
+ if (matchesFence &&
905
+ fence.postCap !== 'none' &&
906
+ (fence.style === 'picket' || fence.style === 'horizontal')) {
907
+ const horizontal = fence.style === 'horizontal';
908
+ const capHeight = horizontal
909
+ ? Math.max(postWidth * 0.32, 0.03)
910
+ : postWidth * (fence.postCap === 'flat' ? 0.2 : 0.5);
911
+ const capScale = horizontal ? 1.22 : 1.5;
912
+ parts.posts.push({
913
+ position: [
914
+ frame.point.x,
915
+ postBottom +
916
+ postHeight +
917
+ (horizontal && fence.postCap === 'pyramid' ? capHeight * 0.9 : capHeight / 2),
918
+ frame.point.y,
919
+ ],
920
+ rotationY: -frame.tangentAngle,
921
+ scale: [
922
+ postWidth * (horizontal && fence.postCap === 'pyramid' ? 1.18 : capScale),
923
+ horizontal && fence.postCap === 'pyramid' ? capHeight * 1.8 : capHeight,
924
+ postDepth * (horizontal && fence.postCap === 'pyramid' ? 1.18 : capScale),
925
+ ],
926
+ shape: fence.postCap === 'pyramid' ? 'pyramid' : 'box',
927
+ });
928
+ }
929
+ }
930
+ if (feature.kind !== 'gate')
931
+ continue;
932
+ const style = matchesFence
933
+ ? fence.style
934
+ : !feature.style || feature.style === 'match'
935
+ ? 'picket'
936
+ : feature.style;
937
+ const hostPostWidth = fence.style === 'picket'
938
+ ? Math.max(fence.postSize, 0.02)
939
+ : fence.style === 'horizontal'
940
+ ? Math.max(fence.postSize * 1.4, 0.04)
941
+ : Math.max(fence.postSize * styleDefaults.postFactor, 0.01);
942
+ const member = Math.min(matchesFence
943
+ ? fence.style === 'rail'
944
+ ? Math.max(fence.topRailHeight * styleDefaults.topFactor, 0.01)
945
+ : Math.max(fence.picketWidth, hostPostWidth * 0.55)
946
+ : (feature.frameWidth ?? 0.055), height / 4);
947
+ const matchedDepth = fence.style === 'picket'
948
+ ? Math.max(Math.min(fence.thickness * 0.5, 0.052), 0.01)
949
+ : fence.style === 'slat'
950
+ ? Math.max(fence.thickness * 0.35, 0.011)
951
+ : Math.max(fence.thickness, 0.03);
952
+ const depth = matchesFence ? matchedDepth : (feature.thickness ?? 0.06);
953
+ const animatedLeaves = getFenceGateLeaves(fence, feature);
954
+ const fullyOpenLeaves = getFenceGateLeaves(fence, { ...feature, openAngle: 90 });
955
+ const leaves = gateLeafGeometries
956
+ ? getFenceGateLeaves(fence, { ...feature, openAngle: 0 })
957
+ : animatedLeaves;
958
+ // A swinging leaf is rigid: both leaves share the higher jamb elevation.
959
+ const support = Math.max(...[feature.startT, feature.endT].map((t) => {
960
+ const point = getFencePointAt(fence, t).point;
961
+ return heightAt?.(point.x, point.y) ?? 0;
962
+ }));
963
+ for (const [leafIndex, leaf] of leaves.entries()) {
964
+ const leafParts = [];
965
+ const width = leaf.width;
966
+ const frame = Math.min(member, width / 4);
967
+ const innerWidth = width - frame * 2;
968
+ const innerHeight = height - frame * 2;
969
+ const cos = Math.cos(leaf.rotation);
970
+ const sin = Math.sin(leaf.rotation);
971
+ const add = (x, y, z, w, h, d, rotationZ = 0, picket = false) => {
972
+ leafParts.push({
973
+ position: [leaf.hinge.x + cos * x - sin * z, y, leaf.hinge.y + sin * x + cos * z],
974
+ rotationY: -leaf.rotation,
975
+ rotationZ,
976
+ scale: [w, h, d],
977
+ heightOverride: support,
978
+ shape: picket ? 'picket' : 'box',
979
+ picketTop: fence.picketTop,
980
+ });
981
+ };
982
+ for (const x of [frame / 2, width - frame / 2])
983
+ add(x, bottom + height / 2, 0, frame, height, depth);
984
+ const railThickness = matchesFence && style === 'rail'
985
+ ? Math.max(fence.topRailHeight * styleDefaults.topFactor, 0.01)
986
+ : frame;
987
+ for (const y of [
988
+ bottom + railThickness / 2,
989
+ top + (style === 'rail' && matchesFence ? railThickness / 2 : -railThickness / 2),
990
+ ])
991
+ add(width / 2, y, 0, innerWidth, railThickness, depth);
992
+ const matchedSpacing = fence.style === 'picket'
993
+ ? fence.picketSpacing
994
+ : fence.style === 'slat'
995
+ ? fence.postSpacing * styleDefaults.spacingFactor
996
+ : fence.style === 'horizontal'
997
+ ? 0.155 + Math.max(fence.slatGap, 0)
998
+ : 0.15;
999
+ const spacing = Math.max(matchesFence ? matchedSpacing : (feature.spacing ?? 0.15), 0.04);
1000
+ const matchedBoardWidth = fence.style === 'picket'
1001
+ ? fence.picketWidth
1002
+ : fence.style === 'slat'
1003
+ ? hostPostWidth
1004
+ : fence.style === 'horizontal'
1005
+ ? 0.14
1006
+ : 0.055;
1007
+ const board = Math.min(matchesFence ? matchedBoardWidth : (feature.boardWidth ?? 0.055), innerWidth);
1008
+ if (style === 'privacy')
1009
+ add(width / 2, bottom + height / 2, 0, innerWidth, innerHeight, depth * 0.6);
1010
+ else if (style === 'horizontal') {
1011
+ const count = Math.max(1, Math.floor(innerHeight / spacing));
1012
+ const boardHeight = Math.min(board, (innerHeight / count) * 0.8);
1013
+ for (let i = 0; i < count; i++)
1014
+ add(width / 2, bottom + frame + (innerHeight * (i + 0.5)) / count, 0, innerWidth, boardHeight, depth * 0.65);
1015
+ }
1016
+ else if (style !== 'rail') {
1017
+ const count = Math.max(1, Math.floor(innerWidth / Math.max(spacing, board + 0.015)));
1018
+ for (let i = 0; i < count; i++)
1019
+ add(frame + (innerWidth * (i + 0.5)) / count, bottom + height / 2, 0, Math.min(board, (innerWidth / count) * 0.8), innerHeight, depth * 0.65, 0, style === 'picket');
1020
+ }
1021
+ if (feature.brace && feature.brace !== 'none') {
1022
+ const angle = Math.atan2(innerHeight, innerWidth);
1023
+ add(width / 2, bottom + height / 2, depth * 0.65, Math.hypot(innerWidth, innerHeight), frame * 0.7, depth * 0.35, angle);
1024
+ if (feature.brace === 'cross')
1025
+ add(width / 2, bottom + height / 2, -depth * 0.65, Math.hypot(innerWidth, innerHeight), frame * 0.7, depth * 0.35, -angle);
1026
+ }
1027
+ if (feature.showHardware !== false) {
1028
+ for (const y of [bottom + height * 0.25, bottom + height * 0.75])
1029
+ add(0, y, depth * 0.7, frame * 1.3, 0.075, depth * 0.6);
1030
+ add(width - frame, bottom + height * 0.55, depth * 0.8, Math.min(0.12, width / 4), 0.025, depth * 0.6);
1031
+ }
1032
+ if (gateLeafGeometries) {
1033
+ gateLeafGeometries.push({
1034
+ geometry: mergeFenceParts(leafParts, heightAt),
1035
+ hinge: { x: leaf.hinge.x, z: leaf.hinge.y },
1036
+ rotationY: -(animatedLeaves[leafIndex].rotation - leaf.rotation),
1037
+ openRotationY: -(fullyOpenLeaves[leafIndex].rotation - leaf.rotation),
1038
+ });
1039
+ }
1040
+ else {
1041
+ parts.infill.push(...leafParts);
1042
+ }
1043
+ }
1044
+ }
1045
+ }
1046
+ function mergeFenceParts(parts, heightAt) {
1047
+ // An empty slot group (e.g. infill with showInfill off, or base on a floating
1048
+ // fence) must not reach mergeGeometries — it throws on an empty array. The
1049
+ // empty geometry has no position attribute, so the renderer skips its mesh.
1050
+ if (parts.length === 0)
1051
+ return new THREE.BufferGeometry();
1052
+ const geometries = parts.map((part) => {
1053
+ const geometry = createFencePartGeometry(part);
1054
+ if (heightAt) {
1055
+ const positions = geometry.getAttribute('position');
1056
+ if (positions) {
1057
+ for (let index = 0; index < positions.count; index += 1) {
1058
+ const x = positions.getX(index);
1059
+ const z = positions.getZ(index);
1060
+ const lift = part.heightOverride !== undefined
1061
+ ? part.heightOverride
1062
+ : part.geometry
1063
+ ? heightAt(x, z)
1064
+ : heightAt(part.position[0], part.position[2]);
1065
+ positions.setY(index, positions.getY(index) + lift);
1066
+ }
1067
+ positions.needsUpdate = true;
1068
+ geometry.computeVertexNormals();
1069
+ }
1070
+ }
1071
+ if (!geometry.index)
1072
+ return geometry;
1073
+ const nonIndexed = geometry.toNonIndexed();
1074
+ geometry.dispose();
1075
+ return nonIndexed;
1076
+ });
1077
+ const merged = mergeGeometries(geometries, false) ?? new THREE.BufferGeometry();
1078
+ geometries.forEach((geometry) => {
1079
+ geometry.dispose();
1080
+ });
1081
+ const mergedUv = merged.getAttribute('uv');
1082
+ if (mergedUv) {
1083
+ merged.setAttribute('uv2', new THREE.Float32BufferAttribute(Array.from(mergedUv.array), 2));
1084
+ }
1085
+ merged.computeVertexNormals();
1086
+ return merged;
1087
+ }
1088
+ /**
1089
+ * Geometry split by paint slot — posts, infill, base, rail — each a separate
1090
+ * merged BufferGeometry (empty ones included) so the fence renderer can give
1091
+ * each its own material + `userData.slotId`. Slots match the panel's build
1092
+ * options 1:1.
1093
+ */
1094
+ export function generateFenceSlotGeometries(fence, heightAt, mode = 'all', omitEndpointPosts, cornerNeighbors, gateLeafGeometries) {
1095
+ const parts = mode === 'features'
1096
+ ? { posts: [], infill: [], base: [], rail: [] }
1097
+ : createFenceParts(fence, omitEndpointPosts);
1098
+ if (omitEndpointPosts?.size) {
1099
+ parts.posts = parts.posts.filter((part) => !part.endpoint || !omitEndpointPosts.has(part.endpoint));
1100
+ }
1101
+ if (cornerNeighbors) {
1102
+ for (const slot of ['base', 'rail', 'infill']) {
1103
+ if (slot === 'infill' && fence.style !== 'horizontal')
1104
+ continue;
1105
+ for (const part of parts[slot]) {
1106
+ for (const endpoint of ['start', 'end']) {
1107
+ const neighbor = cornerNeighbors[endpoint];
1108
+ if (neighbor)
1109
+ miterFencePartEnd(fence, part, endpoint, neighbor);
1110
+ }
1111
+ }
1112
+ }
1113
+ }
1114
+ const features = resolveFenceFeatures(fence);
1115
+ if (features.length > 0)
1116
+ cutFenceParts(fence, parts, features, heightAt, mode !== 'body', gateLeafGeometries);
1117
+ const transitions = mode !== 'features' && heightAt && fence.surfaceMode !== 'level'
1118
+ ? fenceHeightTransitions(fence, heightAt)
1119
+ : [];
1120
+ if (heightAt && transitions.length > 0 && fence.transitionMode !== 'slope') {
1121
+ addTransitionPosts(fence, parts, transitions);
1122
+ parts.rail = omitCrossingParts(parts.rail, transitions);
1123
+ parts.base = omitCrossingParts(parts.base, transitions);
1124
+ if (fence.style === 'horizontal')
1125
+ parts.infill = omitCrossingParts(parts.infill, transitions);
1126
+ }
1127
+ const railHeightAt = heightAt && transitions.length > 0 && fence.transitionMode === 'slope'
1128
+ ? transitionRailHeight(fence, heightAt, transitions)
1129
+ : heightAt;
1130
+ return {
1131
+ posts: mergeFenceParts(parts.posts, heightAt),
1132
+ infill: mergeFenceParts(parts.infill, fence.style === 'horizontal' ? railHeightAt : heightAt),
1133
+ base: mergeFenceParts(parts.base, railHeightAt),
1134
+ rail: mergeFenceParts(parts.rail, railHeightAt),
1135
+ };
1136
+ }
1137
+ export function generateFenceGeometry(fence, heightAt) {
1138
+ const slots = generateFenceSlotGeometries(fence, heightAt);
1139
+ const geometries = Object.values(slots).filter((geometry) => geometry.getAttribute('position'));
1140
+ const merged = mergeGeometries(geometries, false) ?? new THREE.BufferGeometry();
1141
+ for (const geometry of Object.values(slots))
1142
+ geometry.dispose();
1143
+ return merged;
1144
+ }