@pascal-app/nodes 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1717) hide show
  1. package/dist/box-vent/definition.d.ts +30 -0
  2. package/dist/box-vent/definition.d.ts.map +1 -0
  3. package/dist/box-vent/definition.js +210 -0
  4. package/dist/box-vent/floorplan.d.ts +15 -0
  5. package/dist/box-vent/floorplan.d.ts.map +1 -0
  6. package/dist/box-vent/floorplan.js +187 -0
  7. package/dist/box-vent/geometry.d.ts +40 -0
  8. package/dist/box-vent/geometry.d.ts.map +1 -0
  9. package/dist/box-vent/geometry.js +421 -0
  10. package/dist/box-vent/index.d.ts +4 -0
  11. package/dist/box-vent/index.d.ts.map +1 -0
  12. package/dist/box-vent/index.js +3 -0
  13. package/dist/box-vent/move-tool.d.ts +14 -0
  14. package/dist/box-vent/move-tool.d.ts.map +1 -0
  15. package/dist/box-vent/move-tool.js +217 -0
  16. package/dist/box-vent/panel.d.ts +14 -0
  17. package/dist/box-vent/panel.d.ts.map +1 -0
  18. package/dist/box-vent/panel.js +143 -0
  19. package/dist/box-vent/parametrics.d.ts +9 -0
  20. package/dist/box-vent/parametrics.d.ts.map +1 -0
  21. package/dist/box-vent/parametrics.js +35 -0
  22. package/dist/box-vent/preview.d.ts +17 -0
  23. package/dist/box-vent/preview.d.ts.map +1 -0
  24. package/dist/box-vent/preview.js +41 -0
  25. package/dist/box-vent/renderer.d.ts +26 -0
  26. package/dist/box-vent/renderer.d.ts.map +1 -0
  27. package/dist/box-vent/renderer.js +127 -0
  28. package/dist/box-vent/schema.d.ts +2 -0
  29. package/dist/box-vent/schema.d.ts.map +1 -0
  30. package/dist/box-vent/schema.js +3 -0
  31. package/dist/box-vent/tool.d.ts +13 -0
  32. package/dist/box-vent/tool.d.ts.map +1 -0
  33. package/dist/box-vent/tool.js +116 -0
  34. package/dist/building/definition.d.ts +12 -0
  35. package/dist/building/definition.d.ts.map +1 -0
  36. package/dist/building/definition.js +53 -0
  37. package/dist/building/index.d.ts +2 -0
  38. package/dist/building/index.d.ts.map +1 -0
  39. package/dist/building/index.js +1 -0
  40. package/dist/building/move-tool.d.ts +6 -0
  41. package/dist/building/move-tool.d.ts.map +1 -0
  42. package/dist/building/move-tool.js +187 -0
  43. package/dist/building/parametrics.d.ts +3 -0
  44. package/dist/building/parametrics.d.ts.map +1 -0
  45. package/dist/building/parametrics.js +3 -0
  46. package/dist/building/renderer.d.ts +6 -0
  47. package/dist/building/renderer.d.ts.map +1 -0
  48. package/dist/building/renderer.js +12 -0
  49. package/dist/building/schema.d.ts +2 -0
  50. package/dist/building/schema.d.ts.map +1 -0
  51. package/dist/building/schema.js +1 -0
  52. package/dist/cabinet/animation.d.ts +5 -0
  53. package/dist/cabinet/animation.d.ts.map +1 -0
  54. package/dist/cabinet/animation.js +48 -0
  55. package/dist/cabinet/compartment-card.d.ts +17 -0
  56. package/dist/cabinet/compartment-card.d.ts.map +1 -0
  57. package/dist/cabinet/compartment-card.js +145 -0
  58. package/dist/cabinet/continuous-placement.d.ts +49 -0
  59. package/dist/cabinet/continuous-placement.d.ts.map +1 -0
  60. package/dist/cabinet/continuous-placement.js +110 -0
  61. package/dist/cabinet/cooktop-flame.d.ts +14 -0
  62. package/dist/cabinet/cooktop-flame.d.ts.map +1 -0
  63. package/dist/cabinet/cooktop-flame.js +115 -0
  64. package/dist/cabinet/definition.d.ts +26 -0
  65. package/dist/cabinet/definition.d.ts.map +1 -0
  66. package/dist/cabinet/definition.js +1016 -0
  67. package/dist/cabinet/floorplan-move.d.ts +15 -0
  68. package/dist/cabinet/floorplan-move.d.ts.map +1 -0
  69. package/dist/cabinet/floorplan-move.js +192 -0
  70. package/dist/cabinet/floorplan-overrides.d.ts +16 -0
  71. package/dist/cabinet/floorplan-overrides.d.ts.map +1 -0
  72. package/dist/cabinet/floorplan-overrides.js +47 -0
  73. package/dist/cabinet/floorplan.d.ts +4 -0
  74. package/dist/cabinet/floorplan.d.ts.map +1 -0
  75. package/dist/cabinet/floorplan.js +311 -0
  76. package/dist/cabinet/geometry/cooktop.d.ts +20 -0
  77. package/dist/cabinet/geometry/cooktop.d.ts.map +1 -0
  78. package/dist/cabinet/geometry/cooktop.js +269 -0
  79. package/dist/cabinet/geometry/dishwasher.d.ts +4 -0
  80. package/dist/cabinet/geometry/dishwasher.d.ts.map +1 -0
  81. package/dist/cabinet/geometry/dishwasher.js +100 -0
  82. package/dist/cabinet/geometry/fridge.d.ts +5 -0
  83. package/dist/cabinet/geometry/fridge.d.ts.map +1 -0
  84. package/dist/cabinet/geometry/fridge.js +393 -0
  85. package/dist/cabinet/geometry/fronts.d.ts +9 -0
  86. package/dist/cabinet/geometry/fronts.d.ts.map +1 -0
  87. package/dist/cabinet/geometry/fronts.js +468 -0
  88. package/dist/cabinet/geometry/hood.d.ts +6 -0
  89. package/dist/cabinet/geometry/hood.d.ts.map +1 -0
  90. package/dist/cabinet/geometry/hood.js +108 -0
  91. package/dist/cabinet/geometry/oven-microwave.d.ts +5 -0
  92. package/dist/cabinet/geometry/oven-microwave.d.ts.map +1 -0
  93. package/dist/cabinet/geometry/oven-microwave.js +292 -0
  94. package/dist/cabinet/geometry/pantry.d.ts +5 -0
  95. package/dist/cabinet/geometry/pantry.d.ts.map +1 -0
  96. package/dist/cabinet/geometry/pantry.js +80 -0
  97. package/dist/cabinet/geometry/run.d.ts +6 -0
  98. package/dist/cabinet/geometry/run.d.ts.map +1 -0
  99. package/dist/cabinet/geometry/run.js +124 -0
  100. package/dist/cabinet/geometry/shared.d.ts +46 -0
  101. package/dist/cabinet/geometry/shared.d.ts.map +1 -0
  102. package/dist/cabinet/geometry/shared.js +356 -0
  103. package/dist/cabinet/geometry/sink.d.ts +29 -0
  104. package/dist/cabinet/geometry/sink.d.ts.map +1 -0
  105. package/dist/cabinet/geometry/sink.js +262 -0
  106. package/dist/cabinet/geometry.d.ts +6 -0
  107. package/dist/cabinet/geometry.d.ts.map +1 -0
  108. package/dist/cabinet/geometry.js +219 -0
  109. package/dist/cabinet/index.d.ts +5 -0
  110. package/dist/cabinet/index.d.ts.map +1 -0
  111. package/dist/cabinet/index.js +4 -0
  112. package/dist/cabinet/interaction.d.ts +15 -0
  113. package/dist/cabinet/interaction.d.ts.map +1 -0
  114. package/dist/cabinet/interaction.js +109 -0
  115. package/dist/cabinet/move-frame.d.ts +3 -0
  116. package/dist/cabinet/move-frame.d.ts.map +1 -0
  117. package/dist/cabinet/move-frame.js +252 -0
  118. package/dist/cabinet/paint.d.ts +2 -0
  119. package/dist/cabinet/paint.d.ts.map +1 -0
  120. package/dist/cabinet/paint.js +17 -0
  121. package/dist/cabinet/panel.d.ts +2 -0
  122. package/dist/cabinet/panel.d.ts.map +1 -0
  123. package/dist/cabinet/panel.js +356 -0
  124. package/dist/cabinet/parametrics.d.ts +4 -0
  125. package/dist/cabinet/parametrics.d.ts.map +1 -0
  126. package/dist/cabinet/parametrics.js +46 -0
  127. package/dist/cabinet/placement-status.d.ts +7 -0
  128. package/dist/cabinet/placement-status.d.ts.map +1 -0
  129. package/dist/cabinet/placement-status.js +6 -0
  130. package/dist/cabinet/placement-type.d.ts +9 -0
  131. package/dist/cabinet/placement-type.d.ts.map +1 -0
  132. package/dist/cabinet/placement-type.js +13 -0
  133. package/dist/cabinet/presets.d.ts +10 -0
  134. package/dist/cabinet/presets.d.ts.map +1 -0
  135. package/dist/cabinet/presets.js +168 -0
  136. package/dist/cabinet/quick-action-icons.d.ts +13 -0
  137. package/dist/cabinet/quick-action-icons.d.ts.map +1 -0
  138. package/dist/cabinet/quick-action-icons.js +29 -0
  139. package/dist/cabinet/quick-actions.d.ts +6 -0
  140. package/dist/cabinet/quick-actions.d.ts.map +1 -0
  141. package/dist/cabinet/quick-actions.js +203 -0
  142. package/dist/cabinet/run-layout.d.ts +94 -0
  143. package/dist/cabinet/run-layout.d.ts.map +1 -0
  144. package/dist/cabinet/run-layout.js +315 -0
  145. package/dist/cabinet/run-ops.d.ts +140 -0
  146. package/dist/cabinet/run-ops.d.ts.map +1 -0
  147. package/dist/cabinet/run-ops.js +1472 -0
  148. package/dist/cabinet/run-panel.d.ts +17 -0
  149. package/dist/cabinet/run-panel.d.ts.map +1 -0
  150. package/dist/cabinet/run-panel.js +220 -0
  151. package/dist/cabinet/scene-action.d.ts +8 -0
  152. package/dist/cabinet/scene-action.d.ts.map +1 -0
  153. package/dist/cabinet/scene-action.js +130 -0
  154. package/dist/cabinet/schema.d.ts +2 -0
  155. package/dist/cabinet/schema.d.ts.map +1 -0
  156. package/dist/cabinet/schema.js +1 -0
  157. package/dist/cabinet/slots.d.ts +4 -0
  158. package/dist/cabinet/slots.d.ts.map +1 -0
  159. package/dist/cabinet/slots.js +24 -0
  160. package/dist/cabinet/stack-transitions.d.ts +12 -0
  161. package/dist/cabinet/stack-transitions.d.ts.map +1 -0
  162. package/dist/cabinet/stack-transitions.js +112 -0
  163. package/dist/cabinet/stack.d.ts +102 -0
  164. package/dist/cabinet/stack.d.ts.map +1 -0
  165. package/dist/cabinet/stack.js +388 -0
  166. package/dist/cabinet/system.d.ts +13 -0
  167. package/dist/cabinet/system.d.ts.map +1 -0
  168. package/dist/cabinet/system.js +116 -0
  169. package/dist/cabinet/tool.d.ts +3 -0
  170. package/dist/cabinet/tool.d.ts.map +1 -0
  171. package/dist/cabinet/tool.js +850 -0
  172. package/dist/cabinet/tree-structure.d.ts +13 -0
  173. package/dist/cabinet/tree-structure.d.ts.map +1 -0
  174. package/dist/cabinet/tree-structure.js +138 -0
  175. package/dist/cabinet/wall-snap.d.ts +66 -0
  176. package/dist/cabinet/wall-snap.d.ts.map +1 -0
  177. package/dist/cabinet/wall-snap.js +255 -0
  178. package/dist/ceiling/boundary-editor.d.ts +17 -0
  179. package/dist/ceiling/boundary-editor.d.ts.map +1 -0
  180. package/dist/ceiling/boundary-editor.js +118 -0
  181. package/dist/ceiling/definition.d.ts +20 -0
  182. package/dist/ceiling/definition.d.ts.map +1 -0
  183. package/dist/ceiling/definition.js +161 -0
  184. package/dist/ceiling/floorplan-affordances.d.ts +181 -0
  185. package/dist/ceiling/floorplan-affordances.d.ts.map +1 -0
  186. package/dist/ceiling/floorplan-affordances.js +28 -0
  187. package/dist/ceiling/floorplan-move.d.ts +12 -0
  188. package/dist/ceiling/floorplan-move.d.ts.map +1 -0
  189. package/dist/ceiling/floorplan-move.js +16 -0
  190. package/dist/ceiling/floorplan.d.ts +9 -0
  191. package/dist/ceiling/floorplan.d.ts.map +1 -0
  192. package/dist/ceiling/floorplan.js +90 -0
  193. package/dist/ceiling/hole-editor.d.ts +10 -0
  194. package/dist/ceiling/hole-editor.d.ts.map +1 -0
  195. package/dist/ceiling/hole-editor.js +45 -0
  196. package/dist/ceiling/index.d.ts +3 -0
  197. package/dist/ceiling/index.d.ts.map +1 -0
  198. package/dist/ceiling/index.js +2 -0
  199. package/dist/ceiling/materials.d.ts +15 -0
  200. package/dist/ceiling/materials.d.ts.map +1 -0
  201. package/dist/ceiling/materials.js +61 -0
  202. package/dist/ceiling/move-tool.d.ts +6 -0
  203. package/dist/ceiling/move-tool.d.ts.map +1 -0
  204. package/dist/ceiling/move-tool.js +264 -0
  205. package/dist/ceiling/paint.d.ts +9 -0
  206. package/dist/ceiling/paint.d.ts.map +1 -0
  207. package/dist/ceiling/paint.js +37 -0
  208. package/dist/ceiling/panel.d.ts +11 -0
  209. package/dist/ceiling/panel.d.ts.map +1 -0
  210. package/dist/ceiling/panel.js +138 -0
  211. package/dist/ceiling/parametrics.d.ts +11 -0
  212. package/dist/ceiling/parametrics.d.ts.map +1 -0
  213. package/dist/ceiling/parametrics.js +16 -0
  214. package/dist/ceiling/renderer.d.ts +6 -0
  215. package/dist/ceiling/renderer.d.ts.map +1 -0
  216. package/dist/ceiling/renderer.js +87 -0
  217. package/dist/ceiling/schema.d.ts +2 -0
  218. package/dist/ceiling/schema.d.ts.map +1 -0
  219. package/dist/ceiling/schema.js +1 -0
  220. package/dist/ceiling/slots.d.ts +6 -0
  221. package/dist/ceiling/slots.d.ts.map +1 -0
  222. package/dist/ceiling/slots.js +7 -0
  223. package/dist/ceiling/system.d.ts +10 -0
  224. package/dist/ceiling/system.d.ts.map +1 -0
  225. package/dist/ceiling/system.js +14 -0
  226. package/dist/ceiling/tool.d.ts +3 -0
  227. package/dist/ceiling/tool.d.ts.map +1 -0
  228. package/dist/ceiling/tool.js +227 -0
  229. package/dist/chimney/definition.d.ts +18 -0
  230. package/dist/chimney/definition.d.ts.map +1 -0
  231. package/dist/chimney/definition.js +387 -0
  232. package/dist/chimney/floorplan.d.ts +17 -0
  233. package/dist/chimney/floorplan.d.ts.map +1 -0
  234. package/dist/chimney/floorplan.js +190 -0
  235. package/dist/chimney/geometry.d.ts +29 -0
  236. package/dist/chimney/geometry.d.ts.map +1 -0
  237. package/dist/chimney/geometry.js +500 -0
  238. package/dist/chimney/holes.d.ts +30 -0
  239. package/dist/chimney/holes.d.ts.map +1 -0
  240. package/dist/chimney/holes.js +310 -0
  241. package/dist/chimney/index.d.ts +4 -0
  242. package/dist/chimney/index.d.ts.map +1 -0
  243. package/dist/chimney/index.js +3 -0
  244. package/dist/chimney/move-tool.d.ts +19 -0
  245. package/dist/chimney/move-tool.d.ts.map +1 -0
  246. package/dist/chimney/move-tool.js +286 -0
  247. package/dist/chimney/paint.d.ts +24 -0
  248. package/dist/chimney/paint.d.ts.map +1 -0
  249. package/dist/chimney/paint.js +96 -0
  250. package/dist/chimney/panel.d.ts +2 -0
  251. package/dist/chimney/panel.d.ts.map +1 -0
  252. package/dist/chimney/panel.js +350 -0
  253. package/dist/chimney/parametrics.d.ts +4 -0
  254. package/dist/chimney/parametrics.d.ts.map +1 -0
  255. package/dist/chimney/parametrics.js +177 -0
  256. package/dist/chimney/presets.d.ts +27 -0
  257. package/dist/chimney/presets.d.ts.map +1 -0
  258. package/dist/chimney/presets.js +93 -0
  259. package/dist/chimney/preview.d.ts +14 -0
  260. package/dist/chimney/preview.d.ts.map +1 -0
  261. package/dist/chimney/preview.js +74 -0
  262. package/dist/chimney/renderer.d.ts +17 -0
  263. package/dist/chimney/renderer.d.ts.map +1 -0
  264. package/dist/chimney/renderer.js +193 -0
  265. package/dist/chimney/roof-trim.d.ts +23 -0
  266. package/dist/chimney/roof-trim.d.ts.map +1 -0
  267. package/dist/chimney/roof-trim.js +94 -0
  268. package/dist/chimney/schema.d.ts +2 -0
  269. package/dist/chimney/schema.d.ts.map +1 -0
  270. package/dist/chimney/schema.js +1 -0
  271. package/dist/chimney/tool.d.ts +3 -0
  272. package/dist/chimney/tool.d.ts.map +1 -0
  273. package/dist/chimney/tool.js +126 -0
  274. package/dist/column/definition.d.ts +21 -0
  275. package/dist/column/definition.d.ts.map +1 -0
  276. package/dist/column/definition.js +375 -0
  277. package/dist/column/floorplan-affordances.d.ts +32 -0
  278. package/dist/column/floorplan-affordances.d.ts.map +1 -0
  279. package/dist/column/floorplan-affordances.js +126 -0
  280. package/dist/column/floorplan-move.d.ts +11 -0
  281. package/dist/column/floorplan-move.d.ts.map +1 -0
  282. package/dist/column/floorplan-move.js +66 -0
  283. package/dist/column/floorplan.d.ts +15 -0
  284. package/dist/column/floorplan.d.ts.map +1 -0
  285. package/dist/column/floorplan.js +238 -0
  286. package/dist/column/index.d.ts +2 -0
  287. package/dist/column/index.d.ts.map +1 -0
  288. package/dist/column/index.js +1 -0
  289. package/dist/column/paint.d.ts +2 -0
  290. package/dist/column/paint.d.ts.map +1 -0
  291. package/dist/column/paint.js +15 -0
  292. package/dist/column/panel.d.ts +2 -0
  293. package/dist/column/panel.d.ts.map +1 -0
  294. package/dist/column/panel.js +414 -0
  295. package/dist/column/parametrics.d.ts +12 -0
  296. package/dist/column/parametrics.d.ts.map +1 -0
  297. package/dist/column/parametrics.js +21 -0
  298. package/dist/column/renderer.d.ts +20 -0
  299. package/dist/column/renderer.d.ts.map +1 -0
  300. package/dist/column/renderer.js +1016 -0
  301. package/dist/column/schema.d.ts +2 -0
  302. package/dist/column/schema.d.ts.map +1 -0
  303. package/dist/column/schema.js +1 -0
  304. package/dist/column/slots.d.ts +9 -0
  305. package/dist/column/slots.d.ts.map +1 -0
  306. package/dist/column/slots.js +19 -0
  307. package/dist/column/tool.d.ts +14 -0
  308. package/dist/column/tool.d.ts.map +1 -0
  309. package/dist/column/tool.js +133 -0
  310. package/dist/cupola/definition.d.ts +11 -0
  311. package/dist/cupola/definition.d.ts.map +1 -0
  312. package/dist/cupola/definition.js +143 -0
  313. package/dist/cupola/floorplan.d.ts +9 -0
  314. package/dist/cupola/floorplan.d.ts.map +1 -0
  315. package/dist/cupola/floorplan.js +89 -0
  316. package/dist/cupola/geometry.d.ts +23 -0
  317. package/dist/cupola/geometry.d.ts.map +1 -0
  318. package/dist/cupola/geometry.js +262 -0
  319. package/dist/cupola/index.d.ts +4 -0
  320. package/dist/cupola/index.d.ts.map +1 -0
  321. package/dist/cupola/index.js +3 -0
  322. package/dist/cupola/move-tool.d.ts +12 -0
  323. package/dist/cupola/move-tool.d.ts.map +1 -0
  324. package/dist/cupola/move-tool.js +206 -0
  325. package/dist/cupola/panel.d.ts +7 -0
  326. package/dist/cupola/panel.d.ts.map +1 -0
  327. package/dist/cupola/panel.js +106 -0
  328. package/dist/cupola/parametrics.d.ts +9 -0
  329. package/dist/cupola/parametrics.d.ts.map +1 -0
  330. package/dist/cupola/parametrics.js +30 -0
  331. package/dist/cupola/preview.d.ts +13 -0
  332. package/dist/cupola/preview.d.ts.map +1 -0
  333. package/dist/cupola/preview.js +37 -0
  334. package/dist/cupola/renderer.d.ts +12 -0
  335. package/dist/cupola/renderer.d.ts.map +1 -0
  336. package/dist/cupola/renderer.js +66 -0
  337. package/dist/cupola/schema.d.ts +2 -0
  338. package/dist/cupola/schema.d.ts.map +1 -0
  339. package/dist/cupola/schema.js +3 -0
  340. package/dist/cupola/tool.d.ts +8 -0
  341. package/dist/cupola/tool.d.ts.map +1 -0
  342. package/dist/cupola/tool.js +105 -0
  343. package/dist/door/definition.d.ts +23 -0
  344. package/dist/door/definition.d.ts.map +1 -0
  345. package/dist/door/definition.js +257 -0
  346. package/dist/door/door-math.d.ts +23 -0
  347. package/dist/door/door-math.d.ts.map +1 -0
  348. package/dist/door/door-math.js +38 -0
  349. package/dist/door/floorplan-affordances.d.ts +21 -0
  350. package/dist/door/floorplan-affordances.d.ts.map +1 -0
  351. package/dist/door/floorplan-affordances.js +102 -0
  352. package/dist/door/floorplan-move.d.ts +18 -0
  353. package/dist/door/floorplan-move.d.ts.map +1 -0
  354. package/dist/door/floorplan-move.js +239 -0
  355. package/dist/door/floorplan.d.ts +37 -0
  356. package/dist/door/floorplan.d.ts.map +1 -0
  357. package/dist/door/floorplan.js +702 -0
  358. package/dist/door/index.d.ts +3 -0
  359. package/dist/door/index.d.ts.map +1 -0
  360. package/dist/door/index.js +2 -0
  361. package/dist/door/move-tool.d.ts +6 -0
  362. package/dist/door/move-tool.d.ts.map +1 -0
  363. package/dist/door/move-tool.js +898 -0
  364. package/dist/door/paint.d.ts +8 -0
  365. package/dist/door/paint.d.ts.map +1 -0
  366. package/dist/door/paint.js +11 -0
  367. package/dist/door/panel.d.ts +2 -0
  368. package/dist/door/panel.d.ts.map +1 -0
  369. package/dist/door/panel.js +576 -0
  370. package/dist/door/parametrics.d.ts +12 -0
  371. package/dist/door/parametrics.d.ts.map +1 -0
  372. package/dist/door/parametrics.js +27 -0
  373. package/dist/door/preview.d.ts +18 -0
  374. package/dist/door/preview.d.ts.map +1 -0
  375. package/dist/door/preview.js +36 -0
  376. package/dist/door/renderer.d.ts +6 -0
  377. package/dist/door/renderer.d.ts.map +1 -0
  378. package/dist/door/renderer.js +26 -0
  379. package/dist/door/schema.d.ts +2 -0
  380. package/dist/door/schema.d.ts.map +1 -0
  381. package/dist/door/schema.js +1 -0
  382. package/dist/door/slots.d.ts +9 -0
  383. package/dist/door/slots.d.ts.map +1 -0
  384. package/dist/door/slots.js +20 -0
  385. package/dist/door/system.d.ts +18 -0
  386. package/dist/door/system.d.ts.map +1 -0
  387. package/dist/door/system.js +22 -0
  388. package/dist/door/tool.d.ts +15 -0
  389. package/dist/door/tool.d.ts.map +1 -0
  390. package/dist/door/tool.js +555 -0
  391. package/dist/dormer/csg-geometry.d.ts +104 -0
  392. package/dist/dormer/csg-geometry.d.ts.map +1 -0
  393. package/dist/dormer/csg-geometry.js +755 -0
  394. package/dist/dormer/definition.d.ts +20 -0
  395. package/dist/dormer/definition.d.ts.map +1 -0
  396. package/dist/dormer/definition.js +491 -0
  397. package/dist/dormer/floorplan.d.ts +23 -0
  398. package/dist/dormer/floorplan.d.ts.map +1 -0
  399. package/dist/dormer/floorplan.js +193 -0
  400. package/dist/dormer/geometry.d.ts +42 -0
  401. package/dist/dormer/geometry.d.ts.map +1 -0
  402. package/dist/dormer/geometry.js +63 -0
  403. package/dist/dormer/index.d.ts +5 -0
  404. package/dist/dormer/index.d.ts.map +1 -0
  405. package/dist/dormer/index.js +3 -0
  406. package/dist/dormer/move-tool.d.ts +16 -0
  407. package/dist/dormer/move-tool.d.ts.map +1 -0
  408. package/dist/dormer/move-tool.js +136 -0
  409. package/dist/dormer/paint.d.ts +24 -0
  410. package/dist/dormer/paint.d.ts.map +1 -0
  411. package/dist/dormer/paint.js +103 -0
  412. package/dist/dormer/panel-actions-section.d.ts +10 -0
  413. package/dist/dormer/panel-actions-section.d.ts.map +1 -0
  414. package/dist/dormer/panel-actions-section.js +11 -0
  415. package/dist/dormer/panel-position-section.d.ts +17 -0
  416. package/dist/dormer/panel-position-section.d.ts.map +1 -0
  417. package/dist/dormer/panel-position-section.js +162 -0
  418. package/dist/dormer/panel-window-section.d.ts +14 -0
  419. package/dist/dormer/panel-window-section.d.ts.map +1 -0
  420. package/dist/dormer/panel-window-section.js +59 -0
  421. package/dist/dormer/panel.d.ts +2 -0
  422. package/dist/dormer/panel.d.ts.map +1 -0
  423. package/dist/dormer/panel.js +134 -0
  424. package/dist/dormer/parametrics.d.ts +4 -0
  425. package/dist/dormer/parametrics.d.ts.map +1 -0
  426. package/dist/dormer/parametrics.js +110 -0
  427. package/dist/dormer/placement-guides.d.ts +28 -0
  428. package/dist/dormer/placement-guides.d.ts.map +1 -0
  429. package/dist/dormer/placement-guides.js +170 -0
  430. package/dist/dormer/preview.d.ts +7 -0
  431. package/dist/dormer/preview.d.ts.map +1 -0
  432. package/dist/dormer/preview.js +29 -0
  433. package/dist/dormer/renderer.d.ts +8 -0
  434. package/dist/dormer/renderer.d.ts.map +1 -0
  435. package/dist/dormer/renderer.js +134 -0
  436. package/dist/dormer/schema.d.ts +3 -0
  437. package/dist/dormer/schema.d.ts.map +1 -0
  438. package/dist/dormer/schema.js +1 -0
  439. package/dist/dormer/tool.d.ts +11 -0
  440. package/dist/dormer/tool.d.ts.map +1 -0
  441. package/dist/dormer/tool.js +69 -0
  442. package/dist/dormer/use-dormer-placement.d.ts +44 -0
  443. package/dist/dormer/use-dormer-placement.d.ts.map +1 -0
  444. package/dist/dormer/use-dormer-placement.js +166 -0
  445. package/dist/dormer/window-assembly.d.ts +22 -0
  446. package/dist/dormer/window-assembly.d.ts.map +1 -0
  447. package/dist/dormer/window-assembly.js +111 -0
  448. package/dist/dormer/window-frame.d.ts +24 -0
  449. package/dist/dormer/window-frame.d.ts.map +1 -0
  450. package/dist/dormer/window-frame.js +100 -0
  451. package/dist/downspout/definition.d.ts +17 -0
  452. package/dist/downspout/definition.d.ts.map +1 -0
  453. package/dist/downspout/definition.js +173 -0
  454. package/dist/downspout/geometry.d.ts +5 -0
  455. package/dist/downspout/geometry.d.ts.map +1 -0
  456. package/dist/downspout/geometry.js +204 -0
  457. package/dist/downspout/index.d.ts +4 -0
  458. package/dist/downspout/index.d.ts.map +1 -0
  459. package/dist/downspout/index.js +3 -0
  460. package/dist/downspout/inspector-editors.d.ts +25 -0
  461. package/dist/downspout/inspector-editors.d.ts.map +1 -0
  462. package/dist/downspout/inspector-editors.js +61 -0
  463. package/dist/downspout/parametrics.d.ts +4 -0
  464. package/dist/downspout/parametrics.d.ts.map +1 -0
  465. package/dist/downspout/parametrics.js +66 -0
  466. package/dist/downspout/preview.d.ts +19 -0
  467. package/dist/downspout/preview.d.ts.map +1 -0
  468. package/dist/downspout/preview.js +48 -0
  469. package/dist/downspout/renderer.d.ts +22 -0
  470. package/dist/downspout/renderer.d.ts.map +1 -0
  471. package/dist/downspout/renderer.js +153 -0
  472. package/dist/downspout/routing.d.ts +81 -0
  473. package/dist/downspout/routing.d.ts.map +1 -0
  474. package/dist/downspout/routing.js +131 -0
  475. package/dist/downspout/schema.d.ts +2 -0
  476. package/dist/downspout/schema.d.ts.map +1 -0
  477. package/dist/downspout/schema.js +3 -0
  478. package/dist/downspout/tool.d.ts +3 -0
  479. package/dist/downspout/tool.d.ts.map +1 -0
  480. package/dist/downspout/tool.js +148 -0
  481. package/dist/duct-fitting/definition.d.ts +12 -0
  482. package/dist/duct-fitting/definition.d.ts.map +1 -0
  483. package/dist/duct-fitting/definition.js +124 -0
  484. package/dist/duct-fitting/floorplan.d.ts +12 -0
  485. package/dist/duct-fitting/floorplan.d.ts.map +1 -0
  486. package/dist/duct-fitting/floorplan.js +59 -0
  487. package/dist/duct-fitting/geometry.d.ts +26 -0
  488. package/dist/duct-fitting/geometry.d.ts.map +1 -0
  489. package/dist/duct-fitting/geometry.js +341 -0
  490. package/dist/duct-fitting/index.d.ts +5 -0
  491. package/dist/duct-fitting/index.d.ts.map +1 -0
  492. package/dist/duct-fitting/index.js +4 -0
  493. package/dist/duct-fitting/inspector-editors.d.ts +6 -0
  494. package/dist/duct-fitting/inspector-editors.d.ts.map +1 -0
  495. package/dist/duct-fitting/inspector-editors.js +16 -0
  496. package/dist/duct-fitting/move-tool.d.ts +23 -0
  497. package/dist/duct-fitting/move-tool.d.ts.map +1 -0
  498. package/dist/duct-fitting/move-tool.js +302 -0
  499. package/dist/duct-fitting/parametrics.d.ts +4 -0
  500. package/dist/duct-fitting/parametrics.d.ts.map +1 -0
  501. package/dist/duct-fitting/parametrics.js +328 -0
  502. package/dist/duct-fitting/ports.d.ts +32 -0
  503. package/dist/duct-fitting/ports.d.ts.map +1 -0
  504. package/dist/duct-fitting/ports.js +140 -0
  505. package/dist/duct-fitting/schema.d.ts +2 -0
  506. package/dist/duct-fitting/schema.d.ts.map +1 -0
  507. package/dist/duct-fitting/schema.js +1 -0
  508. package/dist/duct-fitting/selection.d.ts +27 -0
  509. package/dist/duct-fitting/selection.d.ts.map +1 -0
  510. package/dist/duct-fitting/selection.js +677 -0
  511. package/dist/duct-fitting/tool.d.ts +18 -0
  512. package/dist/duct-fitting/tool.d.ts.map +1 -0
  513. package/dist/duct-fitting/tool.js +160 -0
  514. package/dist/duct-segment/definition.d.ts +4 -0
  515. package/dist/duct-segment/definition.d.ts.map +1 -0
  516. package/dist/duct-segment/definition.js +180 -0
  517. package/dist/duct-segment/floorplan.d.ts +12 -0
  518. package/dist/duct-segment/floorplan.d.ts.map +1 -0
  519. package/dist/duct-segment/floorplan.js +121 -0
  520. package/dist/duct-segment/geometry.d.ts +99 -0
  521. package/dist/duct-segment/geometry.d.ts.map +1 -0
  522. package/dist/duct-segment/geometry.js +368 -0
  523. package/dist/duct-segment/index.d.ts +4 -0
  524. package/dist/duct-segment/index.d.ts.map +1 -0
  525. package/dist/duct-segment/index.js +3 -0
  526. package/dist/duct-segment/move-tool.d.ts +22 -0
  527. package/dist/duct-segment/move-tool.d.ts.map +1 -0
  528. package/dist/duct-segment/move-tool.js +347 -0
  529. package/dist/duct-segment/parametrics.d.ts +4 -0
  530. package/dist/duct-segment/parametrics.d.ts.map +1 -0
  531. package/dist/duct-segment/parametrics.js +165 -0
  532. package/dist/duct-segment/schema.d.ts +2 -0
  533. package/dist/duct-segment/schema.d.ts.map +1 -0
  534. package/dist/duct-segment/schema.js +1 -0
  535. package/dist/duct-segment/selection.d.ts +34 -0
  536. package/dist/duct-segment/selection.d.ts.map +1 -0
  537. package/dist/duct-segment/selection.js +1395 -0
  538. package/dist/duct-segment/tool.d.ts +3 -0
  539. package/dist/duct-segment/tool.d.ts.map +1 -0
  540. package/dist/duct-segment/tool.js +924 -0
  541. package/dist/duct-terminal/definition.d.ts +13 -0
  542. package/dist/duct-terminal/definition.d.ts.map +1 -0
  543. package/dist/duct-terminal/definition.js +87 -0
  544. package/dist/duct-terminal/floorplan.d.ts +11 -0
  545. package/dist/duct-terminal/floorplan.d.ts.map +1 -0
  546. package/dist/duct-terminal/floorplan.js +61 -0
  547. package/dist/duct-terminal/geometry.d.ts +14 -0
  548. package/dist/duct-terminal/geometry.d.ts.map +1 -0
  549. package/dist/duct-terminal/geometry.js +78 -0
  550. package/dist/duct-terminal/index.d.ts +5 -0
  551. package/dist/duct-terminal/index.d.ts.map +1 -0
  552. package/dist/duct-terminal/index.js +4 -0
  553. package/dist/duct-terminal/parametrics.d.ts +4 -0
  554. package/dist/duct-terminal/parametrics.d.ts.map +1 -0
  555. package/dist/duct-terminal/parametrics.js +69 -0
  556. package/dist/duct-terminal/ports.d.ts +27 -0
  557. package/dist/duct-terminal/ports.d.ts.map +1 -0
  558. package/dist/duct-terminal/ports.js +60 -0
  559. package/dist/duct-terminal/schema.d.ts +2 -0
  560. package/dist/duct-terminal/schema.d.ts.map +1 -0
  561. package/dist/duct-terminal/schema.js +1 -0
  562. package/dist/duct-terminal/tool.d.ts +13 -0
  563. package/dist/duct-terminal/tool.d.ts.map +1 -0
  564. package/dist/duct-terminal/tool.js +360 -0
  565. package/dist/elevator/definition.d.ts +11 -0
  566. package/dist/elevator/definition.d.ts.map +1 -0
  567. package/dist/elevator/definition.js +255 -0
  568. package/dist/elevator/floorplan-affordances.d.ts +21 -0
  569. package/dist/elevator/floorplan-affordances.d.ts.map +1 -0
  570. package/dist/elevator/floorplan-affordances.js +94 -0
  571. package/dist/elevator/floorplan.d.ts +3 -0
  572. package/dist/elevator/floorplan.d.ts.map +1 -0
  573. package/dist/elevator/floorplan.js +360 -0
  574. package/dist/elevator/index.d.ts +2 -0
  575. package/dist/elevator/index.d.ts.map +1 -0
  576. package/dist/elevator/index.js +1 -0
  577. package/dist/elevator/paint.d.ts +2 -0
  578. package/dist/elevator/paint.d.ts.map +1 -0
  579. package/dist/elevator/paint.js +6 -0
  580. package/dist/elevator/panel.d.ts +2 -0
  581. package/dist/elevator/panel.d.ts.map +1 -0
  582. package/dist/elevator/panel.js +397 -0
  583. package/dist/elevator/parametrics.d.ts +3 -0
  584. package/dist/elevator/parametrics.d.ts.map +1 -0
  585. package/dist/elevator/parametrics.js +4 -0
  586. package/dist/elevator/renderer.d.ts +6 -0
  587. package/dist/elevator/renderer.d.ts.map +1 -0
  588. package/dist/elevator/renderer.js +583 -0
  589. package/dist/elevator/schema.d.ts +2 -0
  590. package/dist/elevator/schema.d.ts.map +1 -0
  591. package/dist/elevator/schema.js +1 -0
  592. package/dist/elevator/slots.d.ts +8 -0
  593. package/dist/elevator/slots.d.ts.map +1 -0
  594. package/dist/elevator/slots.js +17 -0
  595. package/dist/elevator/system.d.ts +8 -0
  596. package/dist/elevator/system.d.ts.map +1 -0
  597. package/dist/elevator/system.js +13 -0
  598. package/dist/eyebrow-vent/definition.d.ts +12 -0
  599. package/dist/eyebrow-vent/definition.d.ts.map +1 -0
  600. package/dist/eyebrow-vent/definition.js +150 -0
  601. package/dist/eyebrow-vent/floorplan.d.ts +9 -0
  602. package/dist/eyebrow-vent/floorplan.d.ts.map +1 -0
  603. package/dist/eyebrow-vent/floorplan.js +86 -0
  604. package/dist/eyebrow-vent/geometry.d.ts +25 -0
  605. package/dist/eyebrow-vent/geometry.d.ts.map +1 -0
  606. package/dist/eyebrow-vent/geometry.js +313 -0
  607. package/dist/eyebrow-vent/index.d.ts +4 -0
  608. package/dist/eyebrow-vent/index.d.ts.map +1 -0
  609. package/dist/eyebrow-vent/index.js +3 -0
  610. package/dist/eyebrow-vent/move-tool.d.ts +13 -0
  611. package/dist/eyebrow-vent/move-tool.d.ts.map +1 -0
  612. package/dist/eyebrow-vent/move-tool.js +207 -0
  613. package/dist/eyebrow-vent/panel.d.ts +7 -0
  614. package/dist/eyebrow-vent/panel.d.ts.map +1 -0
  615. package/dist/eyebrow-vent/panel.js +106 -0
  616. package/dist/eyebrow-vent/parametrics.d.ts +9 -0
  617. package/dist/eyebrow-vent/parametrics.d.ts.map +1 -0
  618. package/dist/eyebrow-vent/parametrics.js +31 -0
  619. package/dist/eyebrow-vent/preview.d.ts +13 -0
  620. package/dist/eyebrow-vent/preview.d.ts.map +1 -0
  621. package/dist/eyebrow-vent/preview.js +37 -0
  622. package/dist/eyebrow-vent/renderer.d.ts +12 -0
  623. package/dist/eyebrow-vent/renderer.d.ts.map +1 -0
  624. package/dist/eyebrow-vent/renderer.js +68 -0
  625. package/dist/eyebrow-vent/schema.d.ts +2 -0
  626. package/dist/eyebrow-vent/schema.d.ts.map +1 -0
  627. package/dist/eyebrow-vent/schema.js +3 -0
  628. package/dist/eyebrow-vent/tool.d.ts +9 -0
  629. package/dist/eyebrow-vent/tool.d.ts.map +1 -0
  630. package/dist/eyebrow-vent/tool.js +111 -0
  631. package/dist/fence/actions/move-endpoint.d.ts +32 -0
  632. package/dist/fence/actions/move-endpoint.d.ts.map +1 -0
  633. package/dist/fence/actions/move-endpoint.js +201 -0
  634. package/dist/fence/curve-tool.d.ts +17 -0
  635. package/dist/fence/curve-tool.d.ts.map +1 -0
  636. package/dist/fence/curve-tool.js +122 -0
  637. package/dist/fence/definition.d.ts +17 -0
  638. package/dist/fence/definition.d.ts.map +1 -0
  639. package/dist/fence/definition.js +281 -0
  640. package/dist/fence/floorplan-affordances.d.ts +31 -0
  641. package/dist/fence/floorplan-affordances.d.ts.map +1 -0
  642. package/dist/fence/floorplan-affordances.js +271 -0
  643. package/dist/fence/floorplan-move.d.ts +10 -0
  644. package/dist/fence/floorplan-move.d.ts.map +1 -0
  645. package/dist/fence/floorplan-move.js +162 -0
  646. package/dist/fence/floorplan.d.ts +4 -0
  647. package/dist/fence/floorplan.d.ts.map +1 -0
  648. package/dist/fence/floorplan.js +452 -0
  649. package/dist/fence/geometry.d.ts +6 -0
  650. package/dist/fence/geometry.d.ts.map +1 -0
  651. package/dist/fence/geometry.js +65 -0
  652. package/dist/fence/index.d.ts +3 -0
  653. package/dist/fence/index.d.ts.map +1 -0
  654. package/dist/fence/index.js +2 -0
  655. package/dist/fence/inspector-editors.d.ts +24 -0
  656. package/dist/fence/inspector-editors.d.ts.map +1 -0
  657. package/dist/fence/inspector-editors.js +43 -0
  658. package/dist/fence/move-control-point-tool.d.ts +9 -0
  659. package/dist/fence/move-control-point-tool.d.ts.map +1 -0
  660. package/dist/fence/move-control-point-tool.js +91 -0
  661. package/dist/fence/move-endpoint-tool.d.ts +27 -0
  662. package/dist/fence/move-endpoint-tool.d.ts.map +1 -0
  663. package/dist/fence/move-endpoint-tool.js +190 -0
  664. package/dist/fence/move-tangent-tool.d.ts +10 -0
  665. package/dist/fence/move-tangent-tool.d.ts.map +1 -0
  666. package/dist/fence/move-tangent-tool.js +88 -0
  667. package/dist/fence/move-tool.d.ts +6 -0
  668. package/dist/fence/move-tool.d.ts.map +1 -0
  669. package/dist/fence/move-tool.js +271 -0
  670. package/dist/fence/paint.d.ts +2 -0
  671. package/dist/fence/paint.d.ts.map +1 -0
  672. package/dist/fence/paint.js +17 -0
  673. package/dist/fence/parametrics.d.ts +16 -0
  674. package/dist/fence/parametrics.d.ts.map +1 -0
  675. package/dist/fence/parametrics.js +86 -0
  676. package/dist/fence/schema.d.ts +10 -0
  677. package/dist/fence/schema.d.ts.map +1 -0
  678. package/dist/fence/schema.js +9 -0
  679. package/dist/fence/slots.d.ts +10 -0
  680. package/dist/fence/slots.d.ts.map +1 -0
  681. package/dist/fence/slots.js +23 -0
  682. package/dist/fence/tool.d.ts +3 -0
  683. package/dist/fence/tool.d.ts.map +1 -0
  684. package/dist/fence/tool.js +563 -0
  685. package/dist/guide/definition.d.ts +10 -0
  686. package/dist/guide/definition.d.ts.map +1 -0
  687. package/dist/guide/definition.js +52 -0
  688. package/dist/guide/index.d.ts +2 -0
  689. package/dist/guide/index.d.ts.map +1 -0
  690. package/dist/guide/index.js +1 -0
  691. package/dist/guide/parametrics.d.ts +3 -0
  692. package/dist/guide/parametrics.d.ts.map +1 -0
  693. package/dist/guide/parametrics.js +3 -0
  694. package/dist/guide/renderer.d.ts +6 -0
  695. package/dist/guide/renderer.d.ts.map +1 -0
  696. package/dist/guide/renderer.js +52 -0
  697. package/dist/guide/schema.d.ts +2 -0
  698. package/dist/guide/schema.d.ts.map +1 -0
  699. package/dist/guide/schema.js +1 -0
  700. package/dist/guide/system.d.ts +3 -0
  701. package/dist/guide/system.d.ts.map +1 -0
  702. package/dist/guide/system.js +3 -0
  703. package/dist/gutter/corner-mitre.d.ts +88 -0
  704. package/dist/gutter/corner-mitre.d.ts.map +1 -0
  705. package/dist/gutter/corner-mitre.js +176 -0
  706. package/dist/gutter/definition.d.ts +19 -0
  707. package/dist/gutter/definition.d.ts.map +1 -0
  708. package/dist/gutter/definition.js +164 -0
  709. package/dist/gutter/downspouts-panel.d.ts +8 -0
  710. package/dist/gutter/downspouts-panel.d.ts.map +1 -0
  711. package/dist/gutter/downspouts-panel.js +111 -0
  712. package/dist/gutter/eave-align.d.ts +33 -0
  713. package/dist/gutter/eave-align.d.ts.map +1 -0
  714. package/dist/gutter/eave-align.js +50 -0
  715. package/dist/gutter/eave-snap.d.ts +45 -0
  716. package/dist/gutter/eave-snap.d.ts.map +1 -0
  717. package/dist/gutter/eave-snap.js +128 -0
  718. package/dist/gutter/floorplan.d.ts +18 -0
  719. package/dist/gutter/floorplan.d.ts.map +1 -0
  720. package/dist/gutter/floorplan.js +274 -0
  721. package/dist/gutter/geometry.d.ts +39 -0
  722. package/dist/gutter/geometry.d.ts.map +1 -0
  723. package/dist/gutter/geometry.js +532 -0
  724. package/dist/gutter/index.d.ts +4 -0
  725. package/dist/gutter/index.d.ts.map +1 -0
  726. package/dist/gutter/index.js +3 -0
  727. package/dist/gutter/length-snap.d.ts +16 -0
  728. package/dist/gutter/length-snap.d.ts.map +1 -0
  729. package/dist/gutter/length-snap.js +177 -0
  730. package/dist/gutter/move-tool.d.ts +21 -0
  731. package/dist/gutter/move-tool.d.ts.map +1 -0
  732. package/dist/gutter/move-tool.js +223 -0
  733. package/dist/gutter/outlet-lookup.d.ts +43 -0
  734. package/dist/gutter/outlet-lookup.d.ts.map +1 -0
  735. package/dist/gutter/outlet-lookup.js +50 -0
  736. package/dist/gutter/parametrics.d.ts +4 -0
  737. package/dist/gutter/parametrics.d.ts.map +1 -0
  738. package/dist/gutter/parametrics.js +62 -0
  739. package/dist/gutter/preview.d.ts +22 -0
  740. package/dist/gutter/preview.d.ts.map +1 -0
  741. package/dist/gutter/preview.js +57 -0
  742. package/dist/gutter/profile-geometry.d.ts +44 -0
  743. package/dist/gutter/profile-geometry.d.ts.map +1 -0
  744. package/dist/gutter/profile-geometry.js +56 -0
  745. package/dist/gutter/renderer.d.ts +22 -0
  746. package/dist/gutter/renderer.d.ts.map +1 -0
  747. package/dist/gutter/renderer.js +202 -0
  748. package/dist/gutter/schema.d.ts +2 -0
  749. package/dist/gutter/schema.d.ts.map +1 -0
  750. package/dist/gutter/schema.js +3 -0
  751. package/dist/gutter/tool.d.ts +25 -0
  752. package/dist/gutter/tool.d.ts.map +1 -0
  753. package/dist/gutter/tool.js +124 -0
  754. package/dist/hvac-equipment/definition.d.ts +13 -0
  755. package/dist/hvac-equipment/definition.d.ts.map +1 -0
  756. package/dist/hvac-equipment/definition.js +92 -0
  757. package/dist/hvac-equipment/floorplan.d.ts +10 -0
  758. package/dist/hvac-equipment/floorplan.d.ts.map +1 -0
  759. package/dist/hvac-equipment/floorplan.js +71 -0
  760. package/dist/hvac-equipment/geometry.d.ts +20 -0
  761. package/dist/hvac-equipment/geometry.d.ts.map +1 -0
  762. package/dist/hvac-equipment/geometry.js +701 -0
  763. package/dist/hvac-equipment/index.d.ts +5 -0
  764. package/dist/hvac-equipment/index.d.ts.map +1 -0
  765. package/dist/hvac-equipment/index.js +4 -0
  766. package/dist/hvac-equipment/parametrics.d.ts +4 -0
  767. package/dist/hvac-equipment/parametrics.d.ts.map +1 -0
  768. package/dist/hvac-equipment/parametrics.js +101 -0
  769. package/dist/hvac-equipment/ports.d.ts +36 -0
  770. package/dist/hvac-equipment/ports.d.ts.map +1 -0
  771. package/dist/hvac-equipment/ports.js +91 -0
  772. package/dist/hvac-equipment/schema.d.ts +2 -0
  773. package/dist/hvac-equipment/schema.d.ts.map +1 -0
  774. package/dist/hvac-equipment/schema.js +1 -0
  775. package/dist/hvac-equipment/tool.d.ts +11 -0
  776. package/dist/hvac-equipment/tool.d.ts.map +1 -0
  777. package/dist/hvac-equipment/tool.js +103 -0
  778. package/dist/index.d.ts +62 -0
  779. package/dist/index.d.ts.map +1 -0
  780. package/dist/index.js +158 -0
  781. package/dist/item/definition.d.ts +32 -0
  782. package/dist/item/definition.d.ts.map +1 -0
  783. package/dist/item/definition.js +309 -0
  784. package/dist/item/floorplan-move.d.ts +3 -0
  785. package/dist/item/floorplan-move.d.ts.map +1 -0
  786. package/dist/item/floorplan-move.js +307 -0
  787. package/dist/item/floorplan.d.ts +3 -0
  788. package/dist/item/floorplan.d.ts.map +1 -0
  789. package/dist/item/floorplan.js +204 -0
  790. package/dist/item/index.d.ts +3 -0
  791. package/dist/item/index.d.ts.map +1 -0
  792. package/dist/item/index.js +2 -0
  793. package/dist/item/model-loader.d.ts +18 -0
  794. package/dist/item/model-loader.d.ts.map +1 -0
  795. package/dist/item/model-loader.js +131 -0
  796. package/dist/item/move-tool.d.ts +6 -0
  797. package/dist/item/move-tool.d.ts.map +1 -0
  798. package/dist/item/move-tool.js +150 -0
  799. package/dist/item/paint.d.ts +3 -0
  800. package/dist/item/paint.d.ts.map +1 -0
  801. package/dist/item/paint.js +214 -0
  802. package/dist/item/panel.d.ts +16 -0
  803. package/dist/item/panel.d.ts.map +1 -0
  804. package/dist/item/panel.js +103 -0
  805. package/dist/item/parametrics.d.ts +12 -0
  806. package/dist/item/parametrics.d.ts.map +1 -0
  807. package/dist/item/parametrics.js +12 -0
  808. package/dist/item/renderer.d.ts +6 -0
  809. package/dist/item/renderer.d.ts.map +1 -0
  810. package/dist/item/renderer.js +425 -0
  811. package/dist/item/schema.d.ts +2 -0
  812. package/dist/item/schema.d.ts.map +1 -0
  813. package/dist/item/schema.js +1 -0
  814. package/dist/item/system.d.ts +11 -0
  815. package/dist/item/system.d.ts.map +1 -0
  816. package/dist/item/system.js +15 -0
  817. package/dist/item/tool.d.ts +3 -0
  818. package/dist/item/tool.d.ts.map +1 -0
  819. package/dist/item/tool.js +46 -0
  820. package/dist/level/definition.d.ts +9 -0
  821. package/dist/level/definition.d.ts.map +1 -0
  822. package/dist/level/definition.js +55 -0
  823. package/dist/level/index.d.ts +2 -0
  824. package/dist/level/index.d.ts.map +1 -0
  825. package/dist/level/index.js +1 -0
  826. package/dist/level/parametrics.d.ts +3 -0
  827. package/dist/level/parametrics.d.ts.map +1 -0
  828. package/dist/level/parametrics.js +3 -0
  829. package/dist/level/renderer.d.ts +6 -0
  830. package/dist/level/renderer.d.ts.map +1 -0
  831. package/dist/level/renderer.js +12 -0
  832. package/dist/level/schema.d.ts +2 -0
  833. package/dist/level/schema.d.ts.map +1 -0
  834. package/dist/level/schema.js +1 -0
  835. package/dist/level/system.d.ts +3 -0
  836. package/dist/level/system.d.ts.map +1 -0
  837. package/dist/level/system.js +3 -0
  838. package/dist/lineset/definition.d.ts +15 -0
  839. package/dist/lineset/definition.d.ts.map +1 -0
  840. package/dist/lineset/definition.js +118 -0
  841. package/dist/lineset/floorplan.d.ts +10 -0
  842. package/dist/lineset/floorplan.d.ts.map +1 -0
  843. package/dist/lineset/floorplan.js +78 -0
  844. package/dist/lineset/geometry.d.ts +20 -0
  845. package/dist/lineset/geometry.d.ts.map +1 -0
  846. package/dist/lineset/geometry.js +87 -0
  847. package/dist/lineset/index.d.ts +4 -0
  848. package/dist/lineset/index.d.ts.map +1 -0
  849. package/dist/lineset/index.js +3 -0
  850. package/dist/lineset/move-tool.d.ts +27 -0
  851. package/dist/lineset/move-tool.d.ts.map +1 -0
  852. package/dist/lineset/move-tool.js +256 -0
  853. package/dist/lineset/parametrics.d.ts +4 -0
  854. package/dist/lineset/parametrics.d.ts.map +1 -0
  855. package/dist/lineset/parametrics.js +34 -0
  856. package/dist/lineset/schema.d.ts +2 -0
  857. package/dist/lineset/schema.d.ts.map +1 -0
  858. package/dist/lineset/schema.js +1 -0
  859. package/dist/lineset/selection.d.ts +3 -0
  860. package/dist/lineset/selection.d.ts.map +1 -0
  861. package/dist/lineset/selection.js +3 -0
  862. package/dist/lineset/tool.d.ts +3 -0
  863. package/dist/lineset/tool.d.ts.map +1 -0
  864. package/dist/lineset/tool.js +298 -0
  865. package/dist/liquid-line/definition.d.ts +16 -0
  866. package/dist/liquid-line/definition.d.ts.map +1 -0
  867. package/dist/liquid-line/definition.js +110 -0
  868. package/dist/liquid-line/floorplan.d.ts +10 -0
  869. package/dist/liquid-line/floorplan.d.ts.map +1 -0
  870. package/dist/liquid-line/floorplan.js +66 -0
  871. package/dist/liquid-line/geometry.d.ts +16 -0
  872. package/dist/liquid-line/geometry.d.ts.map +1 -0
  873. package/dist/liquid-line/geometry.js +57 -0
  874. package/dist/liquid-line/index.d.ts +5 -0
  875. package/dist/liquid-line/index.d.ts.map +1 -0
  876. package/dist/liquid-line/index.js +4 -0
  877. package/dist/liquid-line/move-tool.d.ts +23 -0
  878. package/dist/liquid-line/move-tool.d.ts.map +1 -0
  879. package/dist/liquid-line/move-tool.js +231 -0
  880. package/dist/liquid-line/options.d.ts +16 -0
  881. package/dist/liquid-line/options.d.ts.map +1 -0
  882. package/dist/liquid-line/options.js +6 -0
  883. package/dist/liquid-line/parametrics.d.ts +4 -0
  884. package/dist/liquid-line/parametrics.d.ts.map +1 -0
  885. package/dist/liquid-line/parametrics.js +17 -0
  886. package/dist/liquid-line/schema.d.ts +2 -0
  887. package/dist/liquid-line/schema.d.ts.map +1 -0
  888. package/dist/liquid-line/schema.js +1 -0
  889. package/dist/liquid-line/selection.d.ts +3 -0
  890. package/dist/liquid-line/selection.d.ts.map +1 -0
  891. package/dist/liquid-line/selection.js +3 -0
  892. package/dist/liquid-line/tool.d.ts +3 -0
  893. package/dist/liquid-line/tool.d.ts.map +1 -0
  894. package/dist/liquid-line/tool.js +517 -0
  895. package/dist/measurement/definition.d.ts +4 -0
  896. package/dist/measurement/definition.d.ts.map +1 -0
  897. package/dist/measurement/definition.js +61 -0
  898. package/dist/measurement/edit.d.ts +9 -0
  899. package/dist/measurement/edit.d.ts.map +1 -0
  900. package/dist/measurement/edit.js +97 -0
  901. package/dist/measurement/floorplan-affordance.d.ts +3 -0
  902. package/dist/measurement/floorplan-affordance.d.ts.map +1 -0
  903. package/dist/measurement/floorplan-affordance.js +90 -0
  904. package/dist/measurement/floorplan.d.ts +3 -0
  905. package/dist/measurement/floorplan.d.ts.map +1 -0
  906. package/dist/measurement/floorplan.js +195 -0
  907. package/dist/measurement/index.d.ts +3 -0
  908. package/dist/measurement/index.d.ts.map +1 -0
  909. package/dist/measurement/index.js +2 -0
  910. package/dist/measurement/renderer.d.ts +8 -0
  911. package/dist/measurement/renderer.d.ts.map +1 -0
  912. package/dist/measurement/renderer.js +285 -0
  913. package/dist/measurement/resolve.d.ts +42 -0
  914. package/dist/measurement/resolve.d.ts.map +1 -0
  915. package/dist/measurement/resolve.js +207 -0
  916. package/dist/measurement/schema.d.ts +2 -0
  917. package/dist/measurement/schema.d.ts.map +1 -0
  918. package/dist/measurement/schema.js +1 -0
  919. package/dist/measurement/selection.d.ts +3 -0
  920. package/dist/measurement/selection.d.ts.map +1 -0
  921. package/dist/measurement/selection.js +259 -0
  922. package/dist/measurement/smart-surface.d.ts +4 -0
  923. package/dist/measurement/smart-surface.d.ts.map +1 -0
  924. package/dist/measurement/smart-surface.js +21 -0
  925. package/dist/measurement/smart-tool.d.ts +3 -0
  926. package/dist/measurement/smart-tool.d.ts.map +1 -0
  927. package/dist/measurement/smart-tool.js +264 -0
  928. package/dist/measurement/surface-query.d.ts +90 -0
  929. package/dist/measurement/surface-query.d.ts.map +1 -0
  930. package/dist/measurement/surface-query.js +519 -0
  931. package/dist/measurement/tool-router.d.ts +2 -0
  932. package/dist/measurement/tool-router.d.ts.map +1 -0
  933. package/dist/measurement/tool-router.js +9 -0
  934. package/dist/measurement/tool.d.ts +62 -0
  935. package/dist/measurement/tool.d.ts.map +1 -0
  936. package/dist/measurement/tool.js +1342 -0
  937. package/dist/pipe-fitting/definition.d.ts +10 -0
  938. package/dist/pipe-fitting/definition.d.ts.map +1 -0
  939. package/dist/pipe-fitting/definition.js +91 -0
  940. package/dist/pipe-fitting/floorplan.d.ts +10 -0
  941. package/dist/pipe-fitting/floorplan.d.ts.map +1 -0
  942. package/dist/pipe-fitting/floorplan.js +50 -0
  943. package/dist/pipe-fitting/geometry.d.ts +11 -0
  944. package/dist/pipe-fitting/geometry.d.ts.map +1 -0
  945. package/dist/pipe-fitting/geometry.js +31 -0
  946. package/dist/pipe-fitting/index.d.ts +5 -0
  947. package/dist/pipe-fitting/index.d.ts.map +1 -0
  948. package/dist/pipe-fitting/index.js +4 -0
  949. package/dist/pipe-fitting/move-tool.d.ts +30 -0
  950. package/dist/pipe-fitting/move-tool.d.ts.map +1 -0
  951. package/dist/pipe-fitting/move-tool.js +312 -0
  952. package/dist/pipe-fitting/parametrics.d.ts +4 -0
  953. package/dist/pipe-fitting/parametrics.d.ts.map +1 -0
  954. package/dist/pipe-fitting/parametrics.js +105 -0
  955. package/dist/pipe-fitting/ports.d.ts +26 -0
  956. package/dist/pipe-fitting/ports.d.ts.map +1 -0
  957. package/dist/pipe-fitting/ports.js +93 -0
  958. package/dist/pipe-fitting/schema.d.ts +2 -0
  959. package/dist/pipe-fitting/schema.d.ts.map +1 -0
  960. package/dist/pipe-fitting/schema.js +1 -0
  961. package/dist/pipe-fitting/selection.d.ts +3 -0
  962. package/dist/pipe-fitting/selection.d.ts.map +1 -0
  963. package/dist/pipe-fitting/selection.js +579 -0
  964. package/dist/pipe-fitting/tool.d.ts +19 -0
  965. package/dist/pipe-fitting/tool.d.ts.map +1 -0
  966. package/dist/pipe-fitting/tool.js +162 -0
  967. package/dist/pipe-segment/definition.d.ts +14 -0
  968. package/dist/pipe-segment/definition.d.ts.map +1 -0
  969. package/dist/pipe-segment/definition.js +116 -0
  970. package/dist/pipe-segment/floorplan.d.ts +9 -0
  971. package/dist/pipe-segment/floorplan.d.ts.map +1 -0
  972. package/dist/pipe-segment/floorplan.js +87 -0
  973. package/dist/pipe-segment/geometry.d.ts +16 -0
  974. package/dist/pipe-segment/geometry.d.ts.map +1 -0
  975. package/dist/pipe-segment/geometry.js +54 -0
  976. package/dist/pipe-segment/index.d.ts +4 -0
  977. package/dist/pipe-segment/index.d.ts.map +1 -0
  978. package/dist/pipe-segment/index.js +3 -0
  979. package/dist/pipe-segment/move-tool.d.ts +25 -0
  980. package/dist/pipe-segment/move-tool.d.ts.map +1 -0
  981. package/dist/pipe-segment/move-tool.js +254 -0
  982. package/dist/pipe-segment/parametrics.d.ts +4 -0
  983. package/dist/pipe-segment/parametrics.d.ts.map +1 -0
  984. package/dist/pipe-segment/parametrics.js +33 -0
  985. package/dist/pipe-segment/schema.d.ts +2 -0
  986. package/dist/pipe-segment/schema.d.ts.map +1 -0
  987. package/dist/pipe-segment/schema.js +1 -0
  988. package/dist/pipe-segment/selection.d.ts +31 -0
  989. package/dist/pipe-segment/selection.d.ts.map +1 -0
  990. package/dist/pipe-segment/selection.js +841 -0
  991. package/dist/pipe-segment/tool.d.ts +3 -0
  992. package/dist/pipe-segment/tool.d.ts.map +1 -0
  993. package/dist/pipe-segment/tool.js +595 -0
  994. package/dist/pipe-trap/definition.d.ts +10 -0
  995. package/dist/pipe-trap/definition.d.ts.map +1 -0
  996. package/dist/pipe-trap/definition.js +59 -0
  997. package/dist/pipe-trap/floorplan.d.ts +10 -0
  998. package/dist/pipe-trap/floorplan.d.ts.map +1 -0
  999. package/dist/pipe-trap/floorplan.js +41 -0
  1000. package/dist/pipe-trap/geometry.d.ts +16 -0
  1001. package/dist/pipe-trap/geometry.d.ts.map +1 -0
  1002. package/dist/pipe-trap/geometry.js +74 -0
  1003. package/dist/pipe-trap/index.d.ts +5 -0
  1004. package/dist/pipe-trap/index.d.ts.map +1 -0
  1005. package/dist/pipe-trap/index.js +4 -0
  1006. package/dist/pipe-trap/parametrics.d.ts +4 -0
  1007. package/dist/pipe-trap/parametrics.d.ts.map +1 -0
  1008. package/dist/pipe-trap/parametrics.js +16 -0
  1009. package/dist/pipe-trap/ports.d.ts +11 -0
  1010. package/dist/pipe-trap/ports.d.ts.map +1 -0
  1011. package/dist/pipe-trap/ports.js +32 -0
  1012. package/dist/pipe-trap/schema.d.ts +2 -0
  1013. package/dist/pipe-trap/schema.d.ts.map +1 -0
  1014. package/dist/pipe-trap/schema.js +1 -0
  1015. package/dist/pipe-trap/tool.d.ts +9 -0
  1016. package/dist/pipe-trap/tool.d.ts.map +1 -0
  1017. package/dist/pipe-trap/tool.js +99 -0
  1018. package/dist/ridge-vent/definition.d.ts +16 -0
  1019. package/dist/ridge-vent/definition.d.ts.map +1 -0
  1020. package/dist/ridge-vent/definition.js +195 -0
  1021. package/dist/ridge-vent/floorplan.d.ts +15 -0
  1022. package/dist/ridge-vent/floorplan.d.ts.map +1 -0
  1023. package/dist/ridge-vent/floorplan.js +121 -0
  1024. package/dist/ridge-vent/geometry.d.ts +22 -0
  1025. package/dist/ridge-vent/geometry.d.ts.map +1 -0
  1026. package/dist/ridge-vent/geometry.js +526 -0
  1027. package/dist/ridge-vent/index.d.ts +4 -0
  1028. package/dist/ridge-vent/index.d.ts.map +1 -0
  1029. package/dist/ridge-vent/index.js +3 -0
  1030. package/dist/ridge-vent/move-tool.d.ts +12 -0
  1031. package/dist/ridge-vent/move-tool.d.ts.map +1 -0
  1032. package/dist/ridge-vent/move-tool.js +210 -0
  1033. package/dist/ridge-vent/panel.d.ts +7 -0
  1034. package/dist/ridge-vent/panel.d.ts.map +1 -0
  1035. package/dist/ridge-vent/panel.js +118 -0
  1036. package/dist/ridge-vent/parametrics.d.ts +4 -0
  1037. package/dist/ridge-vent/parametrics.d.ts.map +1 -0
  1038. package/dist/ridge-vent/parametrics.js +28 -0
  1039. package/dist/ridge-vent/preview.d.ts +7 -0
  1040. package/dist/ridge-vent/preview.d.ts.map +1 -0
  1041. package/dist/ridge-vent/preview.js +31 -0
  1042. package/dist/ridge-vent/renderer.d.ts +20 -0
  1043. package/dist/ridge-vent/renderer.d.ts.map +1 -0
  1044. package/dist/ridge-vent/renderer.js +205 -0
  1045. package/dist/ridge-vent/schema.d.ts +2 -0
  1046. package/dist/ridge-vent/schema.d.ts.map +1 -0
  1047. package/dist/ridge-vent/schema.js +2 -0
  1048. package/dist/ridge-vent/tool.d.ts +8 -0
  1049. package/dist/ridge-vent/tool.d.ts.map +1 -0
  1050. package/dist/ridge-vent/tool.js +130 -0
  1051. package/dist/roof/definition.d.ts +16 -0
  1052. package/dist/roof/definition.d.ts.map +1 -0
  1053. package/dist/roof/definition.js +170 -0
  1054. package/dist/roof/floorplan.d.ts +21 -0
  1055. package/dist/roof/floorplan.d.ts.map +1 -0
  1056. package/dist/roof/floorplan.js +271 -0
  1057. package/dist/roof/index.d.ts +3 -0
  1058. package/dist/roof/index.d.ts.map +1 -0
  1059. package/dist/roof/index.js +2 -0
  1060. package/dist/roof/panel.d.ts +2 -0
  1061. package/dist/roof/panel.d.ts.map +1 -0
  1062. package/dist/roof/panel.js +214 -0
  1063. package/dist/roof/parametrics.d.ts +3 -0
  1064. package/dist/roof/parametrics.d.ts.map +1 -0
  1065. package/dist/roof/parametrics.js +4 -0
  1066. package/dist/roof/renderer.d.ts +6 -0
  1067. package/dist/roof/renderer.d.ts.map +1 -0
  1068. package/dist/roof/renderer.js +79 -0
  1069. package/dist/roof/roof-materials.d.ts +5 -0
  1070. package/dist/roof/roof-materials.d.ts.map +1 -0
  1071. package/dist/roof/roof-materials.js +43 -0
  1072. package/dist/roof/schema.d.ts +2 -0
  1073. package/dist/roof/schema.d.ts.map +1 -0
  1074. package/dist/roof/schema.js +1 -0
  1075. package/dist/roof/system.d.ts +3 -0
  1076. package/dist/roof/system.d.ts.map +1 -0
  1077. package/dist/roof/system.js +3 -0
  1078. package/dist/roof-segment/definition.d.ts +10 -0
  1079. package/dist/roof-segment/definition.d.ts.map +1 -0
  1080. package/dist/roof-segment/definition.js +305 -0
  1081. package/dist/roof-segment/floorplan-affordances.d.ts +31 -0
  1082. package/dist/roof-segment/floorplan-affordances.d.ts.map +1 -0
  1083. package/dist/roof-segment/floorplan-affordances.js +170 -0
  1084. package/dist/roof-segment/floorplan.d.ts +41 -0
  1085. package/dist/roof-segment/floorplan.d.ts.map +1 -0
  1086. package/dist/roof-segment/floorplan.js +265 -0
  1087. package/dist/roof-segment/index.d.ts +2 -0
  1088. package/dist/roof-segment/index.d.ts.map +1 -0
  1089. package/dist/roof-segment/index.js +1 -0
  1090. package/dist/roof-segment/measurement.d.ts +4 -0
  1091. package/dist/roof-segment/measurement.d.ts.map +1 -0
  1092. package/dist/roof-segment/measurement.js +64 -0
  1093. package/dist/roof-segment/panel.d.ts +2 -0
  1094. package/dist/roof-segment/panel.d.ts.map +1 -0
  1095. package/dist/roof-segment/panel.js +180 -0
  1096. package/dist/roof-segment/parametrics.d.ts +3 -0
  1097. package/dist/roof-segment/parametrics.d.ts.map +1 -0
  1098. package/dist/roof-segment/parametrics.js +4 -0
  1099. package/dist/roof-segment/renderer.d.ts +6 -0
  1100. package/dist/roof-segment/renderer.d.ts.map +1 -0
  1101. package/dist/roof-segment/renderer.js +93 -0
  1102. package/dist/roof-segment/schema.d.ts +2 -0
  1103. package/dist/roof-segment/schema.d.ts.map +1 -0
  1104. package/dist/roof-segment/schema.js +1 -0
  1105. package/dist/scan/definition.d.ts +9 -0
  1106. package/dist/scan/definition.d.ts.map +1 -0
  1107. package/dist/scan/definition.js +49 -0
  1108. package/dist/scan/index.d.ts +2 -0
  1109. package/dist/scan/index.d.ts.map +1 -0
  1110. package/dist/scan/index.js +1 -0
  1111. package/dist/scan/parametrics.d.ts +3 -0
  1112. package/dist/scan/parametrics.d.ts.map +1 -0
  1113. package/dist/scan/parametrics.js +3 -0
  1114. package/dist/scan/renderer.d.ts +6 -0
  1115. package/dist/scan/renderer.d.ts.map +1 -0
  1116. package/dist/scan/renderer.js +54 -0
  1117. package/dist/scan/schema.d.ts +2 -0
  1118. package/dist/scan/schema.d.ts.map +1 -0
  1119. package/dist/scan/schema.js +1 -0
  1120. package/dist/scan/system.d.ts +3 -0
  1121. package/dist/scan/system.d.ts.map +1 -0
  1122. package/dist/scan/system.js +3 -0
  1123. package/dist/shared/auto-fitting.d.ts +253 -0
  1124. package/dist/shared/auto-fitting.d.ts.map +1 -0
  1125. package/dist/shared/auto-fitting.js +659 -0
  1126. package/dist/shared/auto-offset-tag.d.ts +67 -0
  1127. package/dist/shared/auto-offset-tag.d.ts.map +1 -0
  1128. package/dist/shared/auto-offset-tag.js +94 -0
  1129. package/dist/shared/draw-alignment.d.ts +25 -0
  1130. package/dist/shared/draw-alignment.d.ts.map +1 -0
  1131. package/dist/shared/draw-alignment.js +30 -0
  1132. package/dist/shared/duct-body-paint.d.ts +6 -0
  1133. package/dist/shared/duct-body-paint.d.ts.map +1 -0
  1134. package/dist/shared/duct-body-paint.js +13 -0
  1135. package/dist/shared/fitting-endpoint-reaim.d.ts +72 -0
  1136. package/dist/shared/fitting-endpoint-reaim.d.ts.map +1 -0
  1137. package/dist/shared/fitting-endpoint-reaim.js +123 -0
  1138. package/dist/shared/fitting-rotation.d.ts +21 -0
  1139. package/dist/shared/fitting-rotation.d.ts.map +1 -0
  1140. package/dist/shared/fitting-rotation.js +39 -0
  1141. package/dist/shared/floor-placement.d.ts +25 -0
  1142. package/dist/shared/floor-placement.d.ts.map +1 -0
  1143. package/dist/shared/floor-placement.js +109 -0
  1144. package/dist/shared/floorplan-cursor.d.ts +11 -0
  1145. package/dist/shared/floorplan-cursor.d.ts.map +1 -0
  1146. package/dist/shared/floorplan-cursor.js +17 -0
  1147. package/dist/shared/ghost-alignment.d.ts +31 -0
  1148. package/dist/shared/ghost-alignment.d.ts.map +1 -0
  1149. package/dist/shared/ghost-alignment.js +29 -0
  1150. package/dist/shared/ghost-materials.d.ts +29 -0
  1151. package/dist/shared/ghost-materials.d.ts.map +1 -0
  1152. package/dist/shared/ghost-materials.js +81 -0
  1153. package/dist/shared/level-offset-group.d.ts +18 -0
  1154. package/dist/shared/level-offset-group.d.ts.map +1 -0
  1155. package/dist/shared/level-offset-group.js +31 -0
  1156. package/dist/shared/mep-ghost.d.ts +37 -0
  1157. package/dist/shared/mep-ghost.d.ts.map +1 -0
  1158. package/dist/shared/mep-ghost.js +83 -0
  1159. package/dist/shared/move-roof-tool.d.ts +6 -0
  1160. package/dist/shared/move-roof-tool.d.ts.map +1 -0
  1161. package/dist/shared/move-roof-tool.js +420 -0
  1162. package/dist/shared/opening-guides-runtime.d.ts +70 -0
  1163. package/dist/shared/opening-guides-runtime.d.ts.map +1 -0
  1164. package/dist/shared/opening-guides-runtime.js +182 -0
  1165. package/dist/shared/opening-placement-dimensions.d.ts +19 -0
  1166. package/dist/shared/opening-placement-dimensions.d.ts.map +1 -0
  1167. package/dist/shared/opening-placement-dimensions.js +152 -0
  1168. package/dist/shared/path-offset.d.ts +10 -0
  1169. package/dist/shared/path-offset.d.ts.map +1 -0
  1170. package/dist/shared/path-offset.js +74 -0
  1171. package/dist/shared/path-point-affordance.d.ts +34 -0
  1172. package/dist/shared/path-point-affordance.d.ts.map +1 -0
  1173. package/dist/shared/path-point-affordance.js +97 -0
  1174. package/dist/shared/path-segment-affordance.d.ts +33 -0
  1175. package/dist/shared/path-segment-affordance.d.ts.map +1 -0
  1176. package/dist/shared/path-segment-affordance.js +77 -0
  1177. package/dist/shared/pipe-run-translation-offset.d.ts +27 -0
  1178. package/dist/shared/pipe-run-translation-offset.d.ts.map +1 -0
  1179. package/dist/shared/pipe-run-translation-offset.js +131 -0
  1180. package/dist/shared/pipe-vertical-offset.d.ts +98 -0
  1181. package/dist/shared/pipe-vertical-offset.d.ts.map +1 -0
  1182. package/dist/shared/pipe-vertical-offset.js +836 -0
  1183. package/dist/shared/placeholder-geometry.d.ts +22 -0
  1184. package/dist/shared/placeholder-geometry.d.ts.map +1 -0
  1185. package/dist/shared/placeholder-geometry.js +31 -0
  1186. package/dist/shared/polygon-centroid-move.d.ts +21 -0
  1187. package/dist/shared/polygon-centroid-move.d.ts.map +1 -0
  1188. package/dist/shared/polygon-centroid-move.js +117 -0
  1189. package/dist/shared/polygon-measurement.d.ts +10 -0
  1190. package/dist/shared/polygon-measurement.d.ts.map +1 -0
  1191. package/dist/shared/polygon-measurement.js +35 -0
  1192. package/dist/shared/polygon-vertex-affordance.d.ts +108 -0
  1193. package/dist/shared/polygon-vertex-affordance.d.ts.map +1 -0
  1194. package/dist/shared/polygon-vertex-affordance.js +325 -0
  1195. package/dist/shared/ports.d.ts +75 -0
  1196. package/dist/shared/ports.d.ts.map +1 -0
  1197. package/dist/shared/ports.js +164 -0
  1198. package/dist/shared/quick-measurement.d.ts +8 -0
  1199. package/dist/shared/quick-measurement.d.ts.map +1 -0
  1200. package/dist/shared/quick-measurement.js +15 -0
  1201. package/dist/shared/refrigerant-line-selection.d.ts +4 -0
  1202. package/dist/shared/refrigerant-line-selection.d.ts.map +1 -0
  1203. package/dist/shared/refrigerant-line-selection.js +405 -0
  1204. package/dist/shared/relative-roof-drag.d.ts +18 -0
  1205. package/dist/shared/relative-roof-drag.d.ts.map +1 -0
  1206. package/dist/shared/relative-roof-drag.js +83 -0
  1207. package/dist/shared/ridge-snap.d.ts +31 -0
  1208. package/dist/shared/ridge-snap.d.ts.map +1 -0
  1209. package/dist/shared/ridge-snap.js +61 -0
  1210. package/dist/shared/roof-attachment-fallback-preview.d.ts +14 -0
  1211. package/dist/shared/roof-attachment-fallback-preview.d.ts.map +1 -0
  1212. package/dist/shared/roof-attachment-fallback-preview.js +84 -0
  1213. package/dist/shared/roof-face-host.d.ts +17 -0
  1214. package/dist/shared/roof-face-host.d.ts.map +1 -0
  1215. package/dist/shared/roof-face-host.js +24 -0
  1216. package/dist/shared/roof-opening-host.d.ts +66 -0
  1217. package/dist/shared/roof-opening-host.d.ts.map +1 -0
  1218. package/dist/shared/roof-opening-host.js +98 -0
  1219. package/dist/shared/roof-segment-hit.d.ts +34 -0
  1220. package/dist/shared/roof-segment-hit.d.ts.map +1 -0
  1221. package/dist/shared/roof-segment-hit.js +72 -0
  1222. package/dist/shared/roof-surface-placement-guides.d.ts +68 -0
  1223. package/dist/shared/roof-surface-placement-guides.d.ts.map +1 -0
  1224. package/dist/shared/roof-surface-placement-guides.js +716 -0
  1225. package/dist/shared/roof-surface.d.ts +20 -0
  1226. package/dist/shared/roof-surface.d.ts.map +1 -0
  1227. package/dist/shared/roof-surface.js +467 -0
  1228. package/dist/shared/roof-wall-opening-cut.d.ts +16 -0
  1229. package/dist/shared/roof-wall-opening-cut.d.ts.map +1 -0
  1230. package/dist/shared/roof-wall-opening-cut.js +52 -0
  1231. package/dist/shared/roof-wall-opening-placement.d.ts +53 -0
  1232. package/dist/shared/roof-wall-opening-placement.d.ts.map +1 -0
  1233. package/dist/shared/roof-wall-opening-placement.js +58 -0
  1234. package/dist/shared/rotate-affordance.d.ts +16 -0
  1235. package/dist/shared/rotate-affordance.d.ts.map +1 -0
  1236. package/dist/shared/rotate-affordance.js +20 -0
  1237. package/dist/shared/run-move-connectivity.d.ts +52 -0
  1238. package/dist/shared/run-move-connectivity.d.ts.map +1 -0
  1239. package/dist/shared/run-move-connectivity.js +82 -0
  1240. package/dist/shared/run-translation-offset.d.ts +24 -0
  1241. package/dist/shared/run-translation-offset.d.ts.map +1 -0
  1242. package/dist/shared/run-translation-offset.js +140 -0
  1243. package/dist/shared/selection-handles.d.ts +51 -0
  1244. package/dist/shared/selection-handles.d.ts.map +1 -0
  1245. package/dist/shared/selection-handles.js +74 -0
  1246. package/dist/shared/slot-paint.d.ts +46 -0
  1247. package/dist/shared/slot-paint.d.ts.map +1 -0
  1248. package/dist/shared/slot-paint.js +235 -0
  1249. package/dist/shared/surface-paint.d.ts +3 -0
  1250. package/dist/shared/surface-paint.d.ts.map +1 -0
  1251. package/dist/shared/surface-paint.js +41 -0
  1252. package/dist/shared/use-segment-trim-clip.d.ts +44 -0
  1253. package/dist/shared/use-segment-trim-clip.d.ts.map +1 -0
  1254. package/dist/shared/use-segment-trim-clip.js +149 -0
  1255. package/dist/shared/vertical-offset.d.ts +95 -0
  1256. package/dist/shared/vertical-offset.d.ts.map +1 -0
  1257. package/dist/shared/vertical-offset.js +851 -0
  1258. package/dist/shared/wall-attach-target.d.ts +109 -0
  1259. package/dist/shared/wall-attach-target.d.ts.map +1 -0
  1260. package/dist/shared/wall-attach-target.js +192 -0
  1261. package/dist/shared/wall-opening-alignment.d.ts +34 -0
  1262. package/dist/shared/wall-opening-alignment.d.ts.map +1 -0
  1263. package/dist/shared/wall-opening-alignment.js +113 -0
  1264. package/dist/shelf/definition.d.ts +4 -0
  1265. package/dist/shelf/definition.d.ts.map +1 -0
  1266. package/dist/shelf/definition.js +265 -0
  1267. package/dist/shelf/dimensions.d.ts +3 -0
  1268. package/dist/shelf/dimensions.d.ts.map +1 -0
  1269. package/dist/shelf/dimensions.js +15 -0
  1270. package/dist/shelf/floorplan-affordances.d.ts +26 -0
  1271. package/dist/shelf/floorplan-affordances.d.ts.map +1 -0
  1272. package/dist/shelf/floorplan-affordances.js +88 -0
  1273. package/dist/shelf/floorplan-move.d.ts +25 -0
  1274. package/dist/shelf/floorplan-move.d.ts.map +1 -0
  1275. package/dist/shelf/floorplan-move.js +90 -0
  1276. package/dist/shelf/floorplan.d.ts +20 -0
  1277. package/dist/shelf/floorplan.d.ts.map +1 -0
  1278. package/dist/shelf/floorplan.js +124 -0
  1279. package/dist/shelf/geometry.d.ts +15 -0
  1280. package/dist/shelf/geometry.d.ts.map +1 -0
  1281. package/dist/shelf/geometry.js +304 -0
  1282. package/dist/shelf/index.d.ts +4 -0
  1283. package/dist/shelf/index.d.ts.map +1 -0
  1284. package/dist/shelf/index.js +3 -0
  1285. package/dist/shelf/paint.d.ts +3 -0
  1286. package/dist/shelf/paint.d.ts.map +1 -0
  1287. package/dist/shelf/paint.js +181 -0
  1288. package/dist/shelf/parametrics.d.ts +14 -0
  1289. package/dist/shelf/parametrics.d.ts.map +1 -0
  1290. package/dist/shelf/parametrics.js +81 -0
  1291. package/dist/shelf/preview.d.ts +31 -0
  1292. package/dist/shelf/preview.d.ts.map +1 -0
  1293. package/dist/shelf/preview.js +77 -0
  1294. package/dist/shelf/schema.d.ts +2 -0
  1295. package/dist/shelf/schema.d.ts.map +1 -0
  1296. package/dist/shelf/schema.js +6 -0
  1297. package/dist/shelf/slots.d.ts +9 -0
  1298. package/dist/shelf/slots.d.ts.map +1 -0
  1299. package/dist/shelf/slots.js +30 -0
  1300. package/dist/shelf/tool.d.ts +3 -0
  1301. package/dist/shelf/tool.d.ts.map +1 -0
  1302. package/dist/shelf/tool.js +125 -0
  1303. package/dist/site/definition.d.ts +10 -0
  1304. package/dist/site/definition.d.ts.map +1 -0
  1305. package/dist/site/definition.js +54 -0
  1306. package/dist/site/index.d.ts +2 -0
  1307. package/dist/site/index.d.ts.map +1 -0
  1308. package/dist/site/index.js +1 -0
  1309. package/dist/site/parametrics.d.ts +3 -0
  1310. package/dist/site/parametrics.d.ts.map +1 -0
  1311. package/dist/site/parametrics.js +3 -0
  1312. package/dist/site/recessed-slab-ground-holes.d.ts +3 -0
  1313. package/dist/site/recessed-slab-ground-holes.d.ts.map +1 -0
  1314. package/dist/site/recessed-slab-ground-holes.js +46 -0
  1315. package/dist/site/renderer.d.ts +6 -0
  1316. package/dist/site/renderer.d.ts.map +1 -0
  1317. package/dist/site/renderer.js +196 -0
  1318. package/dist/site/schema.d.ts +2 -0
  1319. package/dist/site/schema.d.ts.map +1 -0
  1320. package/dist/site/schema.js +1 -0
  1321. package/dist/skylight/definition.d.ts +10 -0
  1322. package/dist/skylight/definition.d.ts.map +1 -0
  1323. package/dist/skylight/definition.js +268 -0
  1324. package/dist/skylight/floorplan.d.ts +16 -0
  1325. package/dist/skylight/floorplan.d.ts.map +1 -0
  1326. package/dist/skylight/floorplan.js +129 -0
  1327. package/dist/skylight/frame-csg.d.ts +4 -0
  1328. package/dist/skylight/frame-csg.d.ts.map +1 -0
  1329. package/dist/skylight/frame-csg.js +49 -0
  1330. package/dist/skylight/geometry.d.ts +7 -0
  1331. package/dist/skylight/geometry.d.ts.map +1 -0
  1332. package/dist/skylight/geometry.js +114 -0
  1333. package/dist/skylight/index.d.ts +5 -0
  1334. package/dist/skylight/index.d.ts.map +1 -0
  1335. package/dist/skylight/index.js +4 -0
  1336. package/dist/skylight/interaction.d.ts +11 -0
  1337. package/dist/skylight/interaction.d.ts.map +1 -0
  1338. package/dist/skylight/interaction.js +42 -0
  1339. package/dist/skylight/move-tool.d.ts +5 -0
  1340. package/dist/skylight/move-tool.d.ts.map +1 -0
  1341. package/dist/skylight/move-tool.js +233 -0
  1342. package/dist/skylight/panel.d.ts +2 -0
  1343. package/dist/skylight/panel.d.ts.map +1 -0
  1344. package/dist/skylight/panel.js +253 -0
  1345. package/dist/skylight/parametrics.d.ts +4 -0
  1346. package/dist/skylight/parametrics.d.ts.map +1 -0
  1347. package/dist/skylight/parametrics.js +99 -0
  1348. package/dist/skylight/preview.d.ts +7 -0
  1349. package/dist/skylight/preview.d.ts.map +1 -0
  1350. package/dist/skylight/preview.js +49 -0
  1351. package/dist/skylight/renderer.d.ts +6 -0
  1352. package/dist/skylight/renderer.d.ts.map +1 -0
  1353. package/dist/skylight/renderer.js +303 -0
  1354. package/dist/skylight/roof-cut.d.ts +21 -0
  1355. package/dist/skylight/roof-cut.d.ts.map +1 -0
  1356. package/dist/skylight/roof-cut.js +61 -0
  1357. package/dist/skylight/schema.d.ts +2 -0
  1358. package/dist/skylight/schema.d.ts.map +1 -0
  1359. package/dist/skylight/schema.js +1 -0
  1360. package/dist/skylight/system.d.ts +3 -0
  1361. package/dist/skylight/system.d.ts.map +1 -0
  1362. package/dist/skylight/system.js +49 -0
  1363. package/dist/skylight/tool.d.ts +3 -0
  1364. package/dist/skylight/tool.d.ts.map +1 -0
  1365. package/dist/skylight/tool.js +100 -0
  1366. package/dist/slab/boundary-editor.d.ts +24 -0
  1367. package/dist/slab/boundary-editor.d.ts.map +1 -0
  1368. package/dist/slab/boundary-editor.js +127 -0
  1369. package/dist/slab/definition.d.ts +20 -0
  1370. package/dist/slab/definition.d.ts.map +1 -0
  1371. package/dist/slab/definition.js +218 -0
  1372. package/dist/slab/floorplan-affordances.d.ts +177 -0
  1373. package/dist/slab/floorplan-affordances.d.ts.map +1 -0
  1374. package/dist/slab/floorplan-affordances.js +52 -0
  1375. package/dist/slab/floorplan-move.d.ts +12 -0
  1376. package/dist/slab/floorplan-move.d.ts.map +1 -0
  1377. package/dist/slab/floorplan-move.js +19 -0
  1378. package/dist/slab/floorplan.d.ts +20 -0
  1379. package/dist/slab/floorplan.d.ts.map +1 -0
  1380. package/dist/slab/floorplan.js +144 -0
  1381. package/dist/slab/geometry.d.ts +5 -0
  1382. package/dist/slab/geometry.d.ts.map +1 -0
  1383. package/dist/slab/geometry.js +133 -0
  1384. package/dist/slab/hole-editor.d.ts +14 -0
  1385. package/dist/slab/hole-editor.d.ts.map +1 -0
  1386. package/dist/slab/hole-editor.js +54 -0
  1387. package/dist/slab/index.d.ts +3 -0
  1388. package/dist/slab/index.d.ts.map +1 -0
  1389. package/dist/slab/index.js +2 -0
  1390. package/dist/slab/move-tool.d.ts +6 -0
  1391. package/dist/slab/move-tool.d.ts.map +1 -0
  1392. package/dist/slab/move-tool.js +232 -0
  1393. package/dist/slab/paint.d.ts +8 -0
  1394. package/dist/slab/paint.d.ts.map +1 -0
  1395. package/dist/slab/paint.js +26 -0
  1396. package/dist/slab/panel.d.ts +14 -0
  1397. package/dist/slab/panel.d.ts.map +1 -0
  1398. package/dist/slab/panel.js +144 -0
  1399. package/dist/slab/parametrics.d.ts +14 -0
  1400. package/dist/slab/parametrics.d.ts.map +1 -0
  1401. package/dist/slab/parametrics.js +19 -0
  1402. package/dist/slab/quick-measurement.d.ts +3 -0
  1403. package/dist/slab/quick-measurement.d.ts.map +1 -0
  1404. package/dist/slab/quick-measurement.js +35 -0
  1405. package/dist/slab/schema.d.ts +2 -0
  1406. package/dist/slab/schema.d.ts.map +1 -0
  1407. package/dist/slab/schema.js +1 -0
  1408. package/dist/slab/slots.d.ts +10 -0
  1409. package/dist/slab/slots.d.ts.map +1 -0
  1410. package/dist/slab/slots.js +20 -0
  1411. package/dist/slab/system.d.ts +3 -0
  1412. package/dist/slab/system.d.ts.map +1 -0
  1413. package/dist/slab/system.js +63 -0
  1414. package/dist/slab/tool.d.ts +3 -0
  1415. package/dist/slab/tool.d.ts.map +1 -0
  1416. package/dist/slab/tool.js +204 -0
  1417. package/dist/solar-panel/definition.d.ts +15 -0
  1418. package/dist/solar-panel/definition.d.ts.map +1 -0
  1419. package/dist/solar-panel/definition.js +260 -0
  1420. package/dist/solar-panel/floorplan.d.ts +21 -0
  1421. package/dist/solar-panel/floorplan.d.ts.map +1 -0
  1422. package/dist/solar-panel/floorplan.js +120 -0
  1423. package/dist/solar-panel/geometry.d.ts +29 -0
  1424. package/dist/solar-panel/geometry.d.ts.map +1 -0
  1425. package/dist/solar-panel/geometry.js +196 -0
  1426. package/dist/solar-panel/index.d.ts +5 -0
  1427. package/dist/solar-panel/index.d.ts.map +1 -0
  1428. package/dist/solar-panel/index.js +4 -0
  1429. package/dist/solar-panel/move-tool.d.ts +5 -0
  1430. package/dist/solar-panel/move-tool.d.ts.map +1 -0
  1431. package/dist/solar-panel/move-tool.js +257 -0
  1432. package/dist/solar-panel/panel.d.ts +2 -0
  1433. package/dist/solar-panel/panel.d.ts.map +1 -0
  1434. package/dist/solar-panel/panel.js +146 -0
  1435. package/dist/solar-panel/parametrics.d.ts +4 -0
  1436. package/dist/solar-panel/parametrics.d.ts.map +1 -0
  1437. package/dist/solar-panel/parametrics.js +52 -0
  1438. package/dist/solar-panel/preview.d.ts +7 -0
  1439. package/dist/solar-panel/preview.d.ts.map +1 -0
  1440. package/dist/solar-panel/preview.js +46 -0
  1441. package/dist/solar-panel/renderer.d.ts +26 -0
  1442. package/dist/solar-panel/renderer.d.ts.map +1 -0
  1443. package/dist/solar-panel/renderer.js +162 -0
  1444. package/dist/solar-panel/schema.d.ts +2 -0
  1445. package/dist/solar-panel/schema.d.ts.map +1 -0
  1446. package/dist/solar-panel/schema.js +1 -0
  1447. package/dist/solar-panel/tool.d.ts +11 -0
  1448. package/dist/solar-panel/tool.d.ts.map +1 -0
  1449. package/dist/solar-panel/tool.js +120 -0
  1450. package/dist/spawn/definition.d.ts +4 -0
  1451. package/dist/spawn/definition.d.ts.map +1 -0
  1452. package/dist/spawn/definition.js +107 -0
  1453. package/dist/spawn/floorplan-affordances.d.ts +3 -0
  1454. package/dist/spawn/floorplan-affordances.d.ts.map +1 -0
  1455. package/dist/spawn/floorplan-affordances.js +31 -0
  1456. package/dist/spawn/floorplan-move.d.ts +3 -0
  1457. package/dist/spawn/floorplan-move.d.ts.map +1 -0
  1458. package/dist/spawn/floorplan-move.js +31 -0
  1459. package/dist/spawn/floorplan.d.ts +14 -0
  1460. package/dist/spawn/floorplan.d.ts.map +1 -0
  1461. package/dist/spawn/floorplan.js +135 -0
  1462. package/dist/spawn/index.d.ts +3 -0
  1463. package/dist/spawn/index.d.ts.map +1 -0
  1464. package/dist/spawn/index.js +2 -0
  1465. package/dist/spawn/panel.d.ts +2 -0
  1466. package/dist/spawn/panel.d.ts.map +1 -0
  1467. package/dist/spawn/panel.js +71 -0
  1468. package/dist/spawn/parametrics.d.ts +8 -0
  1469. package/dist/spawn/parametrics.d.ts.map +1 -0
  1470. package/dist/spawn/parametrics.js +23 -0
  1471. package/dist/spawn/renderer.d.ts +16 -0
  1472. package/dist/spawn/renderer.d.ts.map +1 -0
  1473. package/dist/spawn/renderer.js +47 -0
  1474. package/dist/spawn/schema.d.ts +2 -0
  1475. package/dist/spawn/schema.d.ts.map +1 -0
  1476. package/dist/spawn/schema.js +5 -0
  1477. package/dist/spawn/tool.d.ts +10 -0
  1478. package/dist/spawn/tool.d.ts.map +1 -0
  1479. package/dist/spawn/tool.js +109 -0
  1480. package/dist/stair/definition.d.ts +9 -0
  1481. package/dist/stair/definition.d.ts.map +1 -0
  1482. package/dist/stair/definition.js +440 -0
  1483. package/dist/stair/floor-stack.d.ts +10 -0
  1484. package/dist/stair/floor-stack.d.ts.map +1 -0
  1485. package/dist/stair/floor-stack.js +77 -0
  1486. package/dist/stair/floorplan-affordances.d.ts +53 -0
  1487. package/dist/stair/floorplan-affordances.d.ts.map +1 -0
  1488. package/dist/stair/floorplan-affordances.js +266 -0
  1489. package/dist/stair/floorplan-move.d.ts +17 -0
  1490. package/dist/stair/floorplan-move.d.ts.map +1 -0
  1491. package/dist/stair/floorplan-move.js +64 -0
  1492. package/dist/stair/floorplan.d.ts +26 -0
  1493. package/dist/stair/floorplan.d.ts.map +1 -0
  1494. package/dist/stair/floorplan.js +455 -0
  1495. package/dist/stair/index.d.ts +2 -0
  1496. package/dist/stair/index.d.ts.map +1 -0
  1497. package/dist/stair/index.js +1 -0
  1498. package/dist/stair/paint.d.ts +2 -0
  1499. package/dist/stair/paint.d.ts.map +1 -0
  1500. package/dist/stair/paint.js +86 -0
  1501. package/dist/stair/panel.d.ts +2 -0
  1502. package/dist/stair/panel.d.ts.map +1 -0
  1503. package/dist/stair/panel.js +196 -0
  1504. package/dist/stair/parametrics.d.ts +3 -0
  1505. package/dist/stair/parametrics.d.ts.map +1 -0
  1506. package/dist/stair/parametrics.js +4 -0
  1507. package/dist/stair/renderer.d.ts +6 -0
  1508. package/dist/stair/renderer.d.ts.map +1 -0
  1509. package/dist/stair/renderer.js +667 -0
  1510. package/dist/stair/schema.d.ts +2 -0
  1511. package/dist/stair/schema.d.ts.map +1 -0
  1512. package/dist/stair/schema.js +1 -0
  1513. package/dist/stair/slots.d.ts +7 -0
  1514. package/dist/stair/slots.d.ts.map +1 -0
  1515. package/dist/stair/slots.js +13 -0
  1516. package/dist/stair/system.d.ts +3 -0
  1517. package/dist/stair/system.d.ts.map +1 -0
  1518. package/dist/stair/system.js +3 -0
  1519. package/dist/stair-segment/definition.d.ts +8 -0
  1520. package/dist/stair-segment/definition.d.ts.map +1 -0
  1521. package/dist/stair-segment/definition.js +133 -0
  1522. package/dist/stair-segment/index.d.ts +2 -0
  1523. package/dist/stair-segment/index.d.ts.map +1 -0
  1524. package/dist/stair-segment/index.js +1 -0
  1525. package/dist/stair-segment/panel.d.ts +2 -0
  1526. package/dist/stair-segment/panel.d.ts.map +1 -0
  1527. package/dist/stair-segment/panel.js +126 -0
  1528. package/dist/stair-segment/parametrics.d.ts +3 -0
  1529. package/dist/stair-segment/parametrics.d.ts.map +1 -0
  1530. package/dist/stair-segment/parametrics.js +4 -0
  1531. package/dist/stair-segment/renderer.d.ts +6 -0
  1532. package/dist/stair-segment/renderer.d.ts.map +1 -0
  1533. package/dist/stair-segment/renderer.js +55 -0
  1534. package/dist/stair-segment/schema.d.ts +2 -0
  1535. package/dist/stair-segment/schema.d.ts.map +1 -0
  1536. package/dist/stair-segment/schema.js +1 -0
  1537. package/dist/turbine-vent/definition.d.ts +24 -0
  1538. package/dist/turbine-vent/definition.d.ts.map +1 -0
  1539. package/dist/turbine-vent/definition.js +119 -0
  1540. package/dist/turbine-vent/floorplan.d.ts +13 -0
  1541. package/dist/turbine-vent/floorplan.d.ts.map +1 -0
  1542. package/dist/turbine-vent/floorplan.js +111 -0
  1543. package/dist/turbine-vent/geometry.d.ts +6 -0
  1544. package/dist/turbine-vent/geometry.d.ts.map +1 -0
  1545. package/dist/turbine-vent/geometry.js +284 -0
  1546. package/dist/turbine-vent/index.d.ts +4 -0
  1547. package/dist/turbine-vent/index.d.ts.map +1 -0
  1548. package/dist/turbine-vent/index.js +3 -0
  1549. package/dist/turbine-vent/move-tool.d.ts +13 -0
  1550. package/dist/turbine-vent/move-tool.d.ts.map +1 -0
  1551. package/dist/turbine-vent/move-tool.js +207 -0
  1552. package/dist/turbine-vent/panel.d.ts +8 -0
  1553. package/dist/turbine-vent/panel.d.ts.map +1 -0
  1554. package/dist/turbine-vent/panel.js +127 -0
  1555. package/dist/turbine-vent/parametrics.d.ts +9 -0
  1556. package/dist/turbine-vent/parametrics.d.ts.map +1 -0
  1557. package/dist/turbine-vent/parametrics.js +34 -0
  1558. package/dist/turbine-vent/preview.d.ts +14 -0
  1559. package/dist/turbine-vent/preview.d.ts.map +1 -0
  1560. package/dist/turbine-vent/preview.js +38 -0
  1561. package/dist/turbine-vent/renderer.d.ts +18 -0
  1562. package/dist/turbine-vent/renderer.d.ts.map +1 -0
  1563. package/dist/turbine-vent/renderer.js +107 -0
  1564. package/dist/turbine-vent/schema.d.ts +2 -0
  1565. package/dist/turbine-vent/schema.d.ts.map +1 -0
  1566. package/dist/turbine-vent/schema.js +3 -0
  1567. package/dist/turbine-vent/tool.d.ts +9 -0
  1568. package/dist/turbine-vent/tool.d.ts.map +1 -0
  1569. package/dist/turbine-vent/tool.js +111 -0
  1570. package/dist/wall/curve-tool.d.ts +14 -0
  1571. package/dist/wall/curve-tool.d.ts.map +1 -0
  1572. package/dist/wall/curve-tool.js +123 -0
  1573. package/dist/wall/definition.d.ts +19 -0
  1574. package/dist/wall/definition.d.ts.map +1 -0
  1575. package/dist/wall/definition.js +132 -0
  1576. package/dist/wall/floorplan-affordances.d.ts +13 -0
  1577. package/dist/wall/floorplan-affordances.d.ts.map +1 -0
  1578. package/dist/wall/floorplan-affordances.js +241 -0
  1579. package/dist/wall/floorplan-move.d.ts +32 -0
  1580. package/dist/wall/floorplan-move.d.ts.map +1 -0
  1581. package/dist/wall/floorplan-move.js +259 -0
  1582. package/dist/wall/floorplan-overrides.d.ts +22 -0
  1583. package/dist/wall/floorplan-overrides.d.ts.map +1 -0
  1584. package/dist/wall/floorplan-overrides.js +32 -0
  1585. package/dist/wall/floorplan.d.ts +23 -0
  1586. package/dist/wall/floorplan.d.ts.map +1 -0
  1587. package/dist/wall/floorplan.js +249 -0
  1588. package/dist/wall/index.d.ts +3 -0
  1589. package/dist/wall/index.d.ts.map +1 -0
  1590. package/dist/wall/index.js +2 -0
  1591. package/dist/wall/measurement.d.ts +5 -0
  1592. package/dist/wall/measurement.d.ts.map +1 -0
  1593. package/dist/wall/measurement.js +174 -0
  1594. package/dist/wall/move-endpoint-tool.d.ts +22 -0
  1595. package/dist/wall/move-endpoint-tool.d.ts.map +1 -0
  1596. package/dist/wall/move-endpoint-tool.js +450 -0
  1597. package/dist/wall/move-shared.d.ts +48 -0
  1598. package/dist/wall/move-shared.d.ts.map +1 -0
  1599. package/dist/wall/move-shared.js +162 -0
  1600. package/dist/wall/move-tool.d.ts +6 -0
  1601. package/dist/wall/move-tool.d.ts.map +1 -0
  1602. package/dist/wall/move-tool.js +523 -0
  1603. package/dist/wall/paint.d.ts +33 -0
  1604. package/dist/wall/paint.d.ts.map +1 -0
  1605. package/dist/wall/paint.js +176 -0
  1606. package/dist/wall/panel.d.ts +2 -0
  1607. package/dist/wall/panel.d.ts.map +1 -0
  1608. package/dist/wall/panel.js +198 -0
  1609. package/dist/wall/parametrics.d.ts +16 -0
  1610. package/dist/wall/parametrics.d.ts.map +1 -0
  1611. package/dist/wall/parametrics.js +30 -0
  1612. package/dist/wall/quick-measurement.d.ts +3 -0
  1613. package/dist/wall/quick-measurement.d.ts.map +1 -0
  1614. package/dist/wall/quick-measurement.js +30 -0
  1615. package/dist/wall/renderer.d.ts +25 -0
  1616. package/dist/wall/renderer.d.ts.map +1 -0
  1617. package/dist/wall/renderer.js +65 -0
  1618. package/dist/wall/schema.d.ts +12 -0
  1619. package/dist/wall/schema.d.ts.map +1 -0
  1620. package/dist/wall/schema.js +10 -0
  1621. package/dist/wall/slots.d.ts +10 -0
  1622. package/dist/wall/slots.d.ts.map +1 -0
  1623. package/dist/wall/slots.js +84 -0
  1624. package/dist/wall/system.d.ts +14 -0
  1625. package/dist/wall/system.d.ts.map +1 -0
  1626. package/dist/wall/system.js +18 -0
  1627. package/dist/wall/tool.d.ts +3 -0
  1628. package/dist/wall/tool.d.ts.map +1 -0
  1629. package/dist/wall/tool.js +628 -0
  1630. package/dist/wall/treatments.d.ts +26 -0
  1631. package/dist/wall/treatments.d.ts.map +1 -0
  1632. package/dist/wall/treatments.js +503 -0
  1633. package/dist/window/definition.d.ts +15 -0
  1634. package/dist/window/definition.d.ts.map +1 -0
  1635. package/dist/window/definition.js +237 -0
  1636. package/dist/window/floor-projection.d.ts +9 -0
  1637. package/dist/window/floor-projection.d.ts.map +1 -0
  1638. package/dist/window/floor-projection.js +84 -0
  1639. package/dist/window/floorplan-affordances.d.ts +22 -0
  1640. package/dist/window/floorplan-affordances.d.ts.map +1 -0
  1641. package/dist/window/floorplan-affordances.js +82 -0
  1642. package/dist/window/floorplan-move.d.ts +14 -0
  1643. package/dist/window/floorplan-move.d.ts.map +1 -0
  1644. package/dist/window/floorplan-move.js +223 -0
  1645. package/dist/window/floorplan.d.ts +16 -0
  1646. package/dist/window/floorplan.d.ts.map +1 -0
  1647. package/dist/window/floorplan.js +151 -0
  1648. package/dist/window/index.d.ts +3 -0
  1649. package/dist/window/index.d.ts.map +1 -0
  1650. package/dist/window/index.js +2 -0
  1651. package/dist/window/move-tool.d.ts +18 -0
  1652. package/dist/window/move-tool.d.ts.map +1 -0
  1653. package/dist/window/move-tool.js +914 -0
  1654. package/dist/window/paint.d.ts +8 -0
  1655. package/dist/window/paint.d.ts.map +1 -0
  1656. package/dist/window/paint.js +11 -0
  1657. package/dist/window/panel.d.ts +2 -0
  1658. package/dist/window/panel.d.ts.map +1 -0
  1659. package/dist/window/panel.js +384 -0
  1660. package/dist/window/parametrics.d.ts +11 -0
  1661. package/dist/window/parametrics.d.ts.map +1 -0
  1662. package/dist/window/parametrics.js +22 -0
  1663. package/dist/window/preview.d.ts +18 -0
  1664. package/dist/window/preview.d.ts.map +1 -0
  1665. package/dist/window/preview.js +36 -0
  1666. package/dist/window/renderer.d.ts +6 -0
  1667. package/dist/window/renderer.d.ts.map +1 -0
  1668. package/dist/window/renderer.js +37 -0
  1669. package/dist/window/schema.d.ts +2 -0
  1670. package/dist/window/schema.d.ts.map +1 -0
  1671. package/dist/window/schema.js +1 -0
  1672. package/dist/window/slots.d.ts +5 -0
  1673. package/dist/window/slots.d.ts.map +1 -0
  1674. package/dist/window/slots.js +11 -0
  1675. package/dist/window/system.d.ts +12 -0
  1676. package/dist/window/system.d.ts.map +1 -0
  1677. package/dist/window/system.js +16 -0
  1678. package/dist/window/tool.d.ts +13 -0
  1679. package/dist/window/tool.d.ts.map +1 -0
  1680. package/dist/window/tool.js +580 -0
  1681. package/dist/window/window-math.d.ts +31 -0
  1682. package/dist/window/window-math.d.ts.map +1 -0
  1683. package/dist/window/window-math.js +41 -0
  1684. package/dist/zone/definition.d.ts +10 -0
  1685. package/dist/zone/definition.d.ts.map +1 -0
  1686. package/dist/zone/definition.js +80 -0
  1687. package/dist/zone/floorplan-affordances.d.ts +81 -0
  1688. package/dist/zone/floorplan-affordances.d.ts.map +1 -0
  1689. package/dist/zone/floorplan-affordances.js +19 -0
  1690. package/dist/zone/floorplan-move.d.ts +13 -0
  1691. package/dist/zone/floorplan-move.d.ts.map +1 -0
  1692. package/dist/zone/floorplan-move.js +17 -0
  1693. package/dist/zone/floorplan.d.ts +13 -0
  1694. package/dist/zone/floorplan.d.ts.map +1 -0
  1695. package/dist/zone/floorplan.js +147 -0
  1696. package/dist/zone/index.d.ts +2 -0
  1697. package/dist/zone/index.d.ts.map +1 -0
  1698. package/dist/zone/index.js +1 -0
  1699. package/dist/zone/parametrics.d.ts +3 -0
  1700. package/dist/zone/parametrics.d.ts.map +1 -0
  1701. package/dist/zone/parametrics.js +4 -0
  1702. package/dist/zone/quantities-panel.d.ts +2 -0
  1703. package/dist/zone/quantities-panel.d.ts.map +1 -0
  1704. package/dist/zone/quantities-panel.js +83 -0
  1705. package/dist/zone/quick-measurement.d.ts +3 -0
  1706. package/dist/zone/quick-measurement.d.ts.map +1 -0
  1707. package/dist/zone/quick-measurement.js +29 -0
  1708. package/dist/zone/renderer.d.ts +6 -0
  1709. package/dist/zone/renderer.d.ts.map +1 -0
  1710. package/dist/zone/renderer.js +205 -0
  1711. package/dist/zone/schema.d.ts +2 -0
  1712. package/dist/zone/schema.d.ts.map +1 -0
  1713. package/dist/zone/schema.js +1 -0
  1714. package/dist/zone/system.d.ts +3 -0
  1715. package/dist/zone/system.d.ts.map +1 -0
  1716. package/dist/zone/system.js +3 -0
  1717. package/package.json +61 -0
@@ -0,0 +1,1016 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { useLiveNodeOverrides, useLiveTransforms, useRegistry, useScene, } from '@pascal-app/core';
4
+ import { baseMaterial, createColumnBoxGeometry, createColumnCylinderGeometry, createColumnSphereGeometry, createColumnTorusGeometry, createMaterial, createMaterialFromPresetRef, createSurfaceRoleMaterial, resolveMaterialRef, resolveSlotDefaultMaterial, useNodeEvents, useViewer, } from '@pascal-app/viewer';
5
+ import { createContext, useContext, useEffect, useMemo, useRef } from 'react';
6
+ import { BufferGeometry, Float32BufferAttribute } from 'three';
7
+ import { COLUMN_BASE_DEFAULT, COLUMN_CAPITAL_DEFAULT, COLUMN_FRAME_DEFAULT, COLUMN_SHAFT_DEFAULT, } from './slots';
8
+ const DEFAULT_COLUMN_MATERIAL = baseMaterial();
9
+ const DEFAULT_COLUMN_SLOT_MATERIALS = createSingleColumnMaterialMap(DEFAULT_COLUMN_MATERIAL);
10
+ const ColumnMaterialContext = createContext(DEFAULT_COLUMN_SLOT_MATERIALS);
11
+ const ColumnSlotContext = createContext('shaft');
12
+ const ColumnEdgeSoftnessContext = createContext(0.025);
13
+ function ColumnMaterial() {
14
+ const slotId = useContext(ColumnSlotContext);
15
+ const materials = useContext(ColumnMaterialContext);
16
+ const material = materials[slotId] ?? materials.shaft;
17
+ return _jsx("primitive", { attach: "material", object: material });
18
+ }
19
+ function ColumnSlot({ children, slotId }) {
20
+ return _jsx(ColumnSlotContext.Provider, { value: slotId, children: children });
21
+ }
22
+ function createSingleColumnMaterialMap(material) {
23
+ return {
24
+ shaft: material,
25
+ base: material,
26
+ capital: material,
27
+ frame: material,
28
+ };
29
+ }
30
+ function createLegacyColumnMaterial({ material, materialPreset, shading, textures, colorPreset, }) {
31
+ if (!textures)
32
+ return createSurfaceRoleMaterial('wall', colorPreset);
33
+ const presetMaterial = createMaterialFromPresetRef(materialPreset, shading);
34
+ if (presetMaterial)
35
+ return presetMaterial;
36
+ if (material)
37
+ return createMaterial(material, shading);
38
+ return baseMaterial(shading);
39
+ }
40
+ function resolveColumnSlotMaterial({ colorPreset, legacyMaterial, node, sceneMaterials, shading, slotId, textures, }) {
41
+ if (!textures)
42
+ return createSurfaceRoleMaterial('wall', colorPreset);
43
+ const slotRef = node.slots?.[slotId];
44
+ if (slotRef) {
45
+ const resolved = resolveMaterialRef(slotRef, sceneMaterials, shading);
46
+ if (resolved)
47
+ return resolved;
48
+ }
49
+ if (legacyMaterial)
50
+ return legacyMaterial;
51
+ if (slotId === 'frame')
52
+ return resolveSlotDefaultMaterial(COLUMN_FRAME_DEFAULT, shading);
53
+ if (slotId === 'base')
54
+ return resolveSlotDefaultMaterial(COLUMN_BASE_DEFAULT, shading);
55
+ if (slotId === 'capital')
56
+ return resolveSlotDefaultMaterial(COLUMN_CAPITAL_DEFAULT, shading);
57
+ return resolveSlotDefaultMaterial(COLUMN_SHAFT_DEFAULT, shading);
58
+ }
59
+ function createColumnSlotMaterials({ colorPreset, material, materialPreset, node, sceneMaterials, shading, textures, }) {
60
+ const legacyMaterial = materialPreset || material
61
+ ? createLegacyColumnMaterial({ colorPreset, material, materialPreset, shading, textures })
62
+ : null;
63
+ return {
64
+ shaft: resolveColumnSlotMaterial({
65
+ colorPreset,
66
+ legacyMaterial,
67
+ node,
68
+ sceneMaterials,
69
+ shading,
70
+ slotId: 'shaft',
71
+ textures,
72
+ }),
73
+ base: resolveColumnSlotMaterial({
74
+ colorPreset,
75
+ legacyMaterial,
76
+ node,
77
+ sceneMaterials,
78
+ shading,
79
+ slotId: 'base',
80
+ textures,
81
+ }),
82
+ capital: resolveColumnSlotMaterial({
83
+ colorPreset,
84
+ legacyMaterial,
85
+ node,
86
+ sceneMaterials,
87
+ shading,
88
+ slotId: 'capital',
89
+ textures,
90
+ }),
91
+ frame: resolveColumnSlotMaterial({
92
+ colorPreset,
93
+ legacyMaterial,
94
+ node,
95
+ sceneMaterials,
96
+ shading,
97
+ slotId: 'frame',
98
+ textures,
99
+ }),
100
+ };
101
+ }
102
+ function getSegments(node) {
103
+ if (node.crossSection === 'octagonal')
104
+ return 8;
105
+ if (node.crossSection === 'sixteen-sided')
106
+ return 16;
107
+ return 32;
108
+ }
109
+ function getShaftProfile(node) {
110
+ return node.shaftProfile ?? (node.shaftTaper > 0 ? 'tapered' : 'straight');
111
+ }
112
+ function getShaftSegmentCount(node) {
113
+ const shaftProfile = getShaftProfile(node);
114
+ const shaftTaper = node.shaftTaper ?? 0;
115
+ const hasTwist = Math.abs(node.shaftTwistStep ?? 0) > 0.001;
116
+ return Math.max(hasTwist ? 4 : 1, shaftProfile === 'straight' && shaftTaper <= 0 && !hasTwist
117
+ ? 1
118
+ : (node.shaftSegmentCount ?? (hasTwist ? 12 : 24)));
119
+ }
120
+ function getShaftTwistRadians(node, index) {
121
+ return ((node.shaftTwistStep ?? 0) * Math.PI * index) / 180;
122
+ }
123
+ function getShaftScaleAt(node, t) {
124
+ const shaftProfile = getShaftProfile(node);
125
+ const shaftTaper = Math.min(node.shaftTaper ?? 0, 0.85);
126
+ const startScale = node.shaftStartScale ?? 0.72;
127
+ const endScale = node.shaftEndScale ?? startScale;
128
+ const shaftBulge = node.shaftBulge ??
129
+ (shaftProfile === 'bulged'
130
+ ? 0.16
131
+ : shaftProfile === 'baluster'
132
+ ? 0.2
133
+ : shaftProfile === 'hourglass'
134
+ ? 0.18
135
+ : 0);
136
+ const taperedScale = 1 - shaftTaper * t;
137
+ const linearScale = (startScale + (endScale - startScale) * t) * taperedScale;
138
+ const bulgeCurve = Math.sin(Math.PI * t);
139
+ const hourglassCurve = Math.abs(t - 0.5) * 2;
140
+ const profileScale = shaftProfile === 'bulged' || shaftProfile === 'baluster'
141
+ ? linearScale + shaftBulge * bulgeCurve
142
+ : shaftProfile === 'hourglass'
143
+ ? linearScale - shaftBulge * (1 - hourglassCurve)
144
+ : linearScale;
145
+ return Math.max(0.1, profileScale);
146
+ }
147
+ function clamp(value, min, max) {
148
+ return Math.min(max, Math.max(min, value));
149
+ }
150
+ function MappedBox({ depth, height, position, rotation, softenEdges = true, width, }) {
151
+ const edgeSoftness = useContext(ColumnEdgeSoftnessContext);
152
+ const slotId = useContext(ColumnSlotContext);
153
+ const minDimension = Math.max(0, Math.min(width, height, depth));
154
+ const bevelRadius = softenEdges ? Math.min(Math.max(0, edgeSoftness), minDimension * 0.35) : 0;
155
+ const geometry = useMemo(() => {
156
+ if (height <= 0 || width <= 0 || depth <= 0)
157
+ return null;
158
+ return createColumnBoxGeometry(width, height, depth, bevelRadius);
159
+ }, [bevelRadius, depth, height, width]);
160
+ if (!geometry)
161
+ return null;
162
+ return (_jsxs("mesh", { castShadow: true, dispose: null, position: position, receiveShadow: true, rotation: rotation, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
163
+ }
164
+ function FlatEndedBeam({ depth, end, start, width, }) {
165
+ const slotId = useContext(ColumnSlotContext);
166
+ const dx = end[0] - start[0];
167
+ const dy = end[1] - start[1];
168
+ const dz = end[2] - start[2];
169
+ const length = Math.hypot(dx, dy, dz);
170
+ const geometry = useMemo(() => {
171
+ if (length <= 0.001 || width <= 0 || depth <= 0)
172
+ return null;
173
+ const halfWidth = width / 2;
174
+ const halfDepth = depth / 2;
175
+ const bottomY = start[1];
176
+ const topY = end[1];
177
+ const bottomCenterX = start[0];
178
+ const topCenterX = end[0];
179
+ const bottomCenterZ = start[2];
180
+ const topCenterZ = end[2];
181
+ const vertices = [
182
+ [bottomCenterX - halfWidth, bottomY, bottomCenterZ - halfDepth],
183
+ [bottomCenterX + halfWidth, bottomY, bottomCenterZ - halfDepth],
184
+ [bottomCenterX + halfWidth, bottomY, bottomCenterZ + halfDepth],
185
+ [bottomCenterX - halfWidth, bottomY, bottomCenterZ + halfDepth],
186
+ [topCenterX - halfWidth, topY, topCenterZ - halfDepth],
187
+ [topCenterX + halfWidth, topY, topCenterZ - halfDepth],
188
+ [topCenterX + halfWidth, topY, topCenterZ + halfDepth],
189
+ [topCenterX - halfWidth, topY, topCenterZ + halfDepth],
190
+ ];
191
+ const faceQuads = [
192
+ [0, 1, 2, 3],
193
+ [4, 7, 6, 5],
194
+ [0, 4, 5, 1],
195
+ [1, 5, 6, 2],
196
+ [2, 6, 7, 3],
197
+ [3, 7, 4, 0],
198
+ ];
199
+ const positions = [];
200
+ const uvs = [];
201
+ const pushVertex = (vertexIndex, uv) => {
202
+ const vertex = vertices[vertexIndex];
203
+ if (!vertex)
204
+ return false;
205
+ positions.push(...vertex);
206
+ uvs.push(...uv);
207
+ return true;
208
+ };
209
+ const pushTriangle = (a, b, c, uvA, uvB, uvC) => {
210
+ const va = vertices[a];
211
+ const vb = vertices[b];
212
+ const vc = vertices[c];
213
+ if (!va || !vb || !vc)
214
+ return;
215
+ pushVertex(a, uvA);
216
+ pushVertex(b, uvB);
217
+ pushVertex(c, uvC);
218
+ };
219
+ for (const [a, b, c, d] of faceQuads) {
220
+ const va = vertices[a];
221
+ const vb = vertices[b];
222
+ const vc = vertices[c];
223
+ const vd = vertices[d];
224
+ if (!va || !vb || !vc || !vd)
225
+ continue;
226
+ const edgeU = Math.hypot(vb[0] - va[0], vb[1] - va[1], vb[2] - va[2]);
227
+ const edgeV = Math.hypot(vd[0] - va[0], vd[1] - va[1], vd[2] - va[2]);
228
+ const uvA = [0, 0];
229
+ const uvB = [edgeU, 0];
230
+ const uvC = [edgeU, edgeV];
231
+ const uvD = [0, edgeV];
232
+ pushTriangle(a, b, c, uvA, uvB, uvC);
233
+ pushTriangle(a, c, d, uvA, uvC, uvD);
234
+ pushTriangle(a, c, b, uvA, uvC, uvB);
235
+ pushTriangle(a, d, c, uvA, uvD, uvC);
236
+ }
237
+ const geometry = new BufferGeometry();
238
+ geometry.setAttribute('position', new Float32BufferAttribute(positions, 3));
239
+ geometry.setAttribute('uv', new Float32BufferAttribute(uvs, 2));
240
+ geometry.setAttribute('uv2', new Float32BufferAttribute(uvs.slice(), 2));
241
+ geometry.computeVertexNormals();
242
+ return geometry;
243
+ }, [depth, length, start, end, width]);
244
+ if (!geometry)
245
+ return null;
246
+ return (_jsxs("mesh", { castShadow: true, dispose: null, receiveShadow: true, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
247
+ }
248
+ function AFrameSupport({ node }) {
249
+ const height = Math.max(0.2, node.height);
250
+ const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
251
+ const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
252
+ const bottomSpread = Math.max(0.2, node.braceBottomSpread ?? Math.max(node.width * 3, 1.2));
253
+ const topSpread = clamp(node.braceTopSpread ?? 0.12, 0, bottomSpread);
254
+ const bottomY = 0;
255
+ const topY = height;
256
+ const leftBottom = [-bottomSpread / 2, bottomY, 0];
257
+ const rightBottom = [bottomSpread / 2, bottomY, 0];
258
+ const leftTop = [-topSpread / 2, topY, 0];
259
+ const rightTop = [topSpread / 2, topY, 0];
260
+ const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
261
+ const footPlateWidth = braceWidth * 1.9;
262
+ const footPlateDepth = braceDepth * 1.75;
263
+ const topPlateWidth = Math.max(topSpread + braceWidth * 1.9, braceWidth * 2.2);
264
+ const topPlateDepth = braceDepth * 1.75;
265
+ return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: leftTop, start: leftBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: rightBottom, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [leftBottom[0], plateHeight / 2, leftBottom[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [rightBottom[0], plateHeight / 2, rightBottom[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: topPlateDepth, height: plateHeight, position: [0, height - plateHeight / 2, 0], width: topPlateWidth })] }))] }));
266
+ }
267
+ function YFrameSupport({ node }) {
268
+ const height = Math.max(0.2, node.height);
269
+ const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
270
+ const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
271
+ const topSpread = Math.max(0.2, node.braceTopSpread ?? 0.9);
272
+ const splitY = height * 0.56;
273
+ const foot = [0, 0, 0];
274
+ const split = [0, splitY, 0];
275
+ const leftTop = [-topSpread / 2, height, 0];
276
+ const rightTop = [topSpread / 2, height, 0];
277
+ const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
278
+ const footPlateWidth = braceWidth * 1.9;
279
+ const footPlateDepth = braceDepth * 1.75;
280
+ const topPlateWidth = topSpread + braceWidth * 1.9;
281
+ const topPlateDepth = braceDepth * 1.75;
282
+ return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: split, start: foot, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: leftTop, start: split, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: split, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [foot[0], plateHeight / 2, foot[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: topPlateDepth, height: plateHeight, position: [0, height - plateHeight / 2, 0], width: topPlateWidth })] }))] }));
283
+ }
284
+ function VFrameSupport({ node }) {
285
+ const height = Math.max(0.2, node.height);
286
+ const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
287
+ const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
288
+ const topSpread = Math.max(0.2, node.braceTopSpread ?? 1);
289
+ const foot = [0, 0, 0];
290
+ const leftTop = [-topSpread / 2, height, 0];
291
+ const rightTop = [topSpread / 2, height, 0];
292
+ const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
293
+ const footPlateWidth = braceWidth * 1.9;
294
+ const footPlateDepth = braceDepth * 1.75;
295
+ const topPlateWidth = topSpread + braceWidth * 1.9;
296
+ const topPlateDepth = braceDepth * 1.75;
297
+ return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: leftTop, start: foot, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: foot, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [foot[0], plateHeight / 2, foot[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: topPlateDepth, height: plateHeight, position: [0, height - plateHeight / 2, 0], width: topPlateWidth })] }))] }));
298
+ }
299
+ function XBraceSupport({ node }) {
300
+ const height = Math.max(0.2, node.height);
301
+ const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
302
+ const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
303
+ const bottomSpread = Math.max(0.2, node.braceBottomSpread ?? 1);
304
+ const topSpread = Math.max(0.2, node.braceTopSpread ?? 1);
305
+ const leftBottom = [-bottomSpread / 2, 0, 0];
306
+ const rightBottom = [bottomSpread / 2, 0, 0];
307
+ const leftTop = [-topSpread / 2, height, 0];
308
+ const rightTop = [topSpread / 2, height, 0];
309
+ const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
310
+ const footPlateWidth = braceWidth * 1.9;
311
+ const footPlateDepth = braceDepth * 1.75;
312
+ const topPlateWidth = braceWidth * 1.9;
313
+ const topPlateDepth = braceDepth * 1.75;
314
+ return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: leftBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: leftTop, start: rightBottom, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [leftBottom[0], plateHeight / 2, leftBottom[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [rightBottom[0], plateHeight / 2, rightBottom[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: topPlateDepth, height: plateHeight, position: [leftTop[0], height - plateHeight / 2, leftTop[2]], width: topPlateWidth }), _jsx(MappedBox, { depth: topPlateDepth, height: plateHeight, position: [rightTop[0], height - plateHeight / 2, rightTop[2]], width: topPlateWidth })] }))] }));
315
+ }
316
+ function KBraceSupport({ node }) {
317
+ const height = Math.max(0.2, node.height);
318
+ const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
319
+ const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
320
+ const spread = Math.max(0.2, Math.max(node.braceBottomSpread ?? 1, node.braceTopSpread ?? 1));
321
+ const leftBottom = [-spread / 2, 0, 0];
322
+ const leftTop = [-spread / 2, height, 0];
323
+ const centerBottom = [0, 0, 0];
324
+ const centerMiddle = [0, height / 2, 0];
325
+ const centerTop = [0, height, 0];
326
+ const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
327
+ const plateWidth = braceWidth * 1.9;
328
+ const plateDepth = braceDepth * 1.75;
329
+ return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: centerTop, start: centerBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: centerMiddle, start: leftBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: centerMiddle, start: leftTop, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [leftBottom[0], plateHeight / 2, leftBottom[2]], width: plateWidth }), _jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [centerBottom[0], plateHeight / 2, centerBottom[2]], width: plateWidth }), _jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [leftTop[0], height - plateHeight / 2, leftTop[2]], width: plateWidth }), _jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [centerTop[0], height - plateHeight / 2, centerTop[2]], width: plateWidth })] }))] }));
330
+ }
331
+ function SingleStrutSupport({ node }) {
332
+ const height = Math.max(0.2, node.height);
333
+ const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
334
+ const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
335
+ const spread = Math.max(0.2, Math.max(node.braceBottomSpread ?? 1, node.braceTopSpread ?? 1));
336
+ const bottom = [-spread / 2, 0, 0];
337
+ const top = [spread / 2, height, 0];
338
+ const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
339
+ const plateWidth = braceWidth * 1.9;
340
+ const plateDepth = braceDepth * 1.75;
341
+ return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: top, start: bottom, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [bottom[0], plateHeight / 2, bottom[2]], width: plateWidth }), _jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [top[0], height - plateHeight / 2, top[2]], width: plateWidth })] }))] }));
342
+ }
343
+ function TripodSupport({ node }) {
344
+ const height = Math.max(0.2, node.height);
345
+ const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
346
+ const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
347
+ const width = Math.max(0.2, node.braceBottomSpread ?? 1.1);
348
+ const depth = Math.max(0.2, node.braceTopSpread ?? 1.1);
349
+ const top = [0, height, 0];
350
+ const feet = [
351
+ [0, 0, -depth / 2],
352
+ [-width / 2, 0, depth / 2],
353
+ [width / 2, 0, depth / 2],
354
+ ];
355
+ const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
356
+ const plateWidth = braceWidth * 1.9;
357
+ const plateDepth = braceDepth * 1.75;
358
+ return (_jsxs("group", { children: [feet.map((foot, index) => (_jsx(FlatEndedBeam, { depth: braceDepth, end: top, start: foot, width: braceWidth }, `leg-${index}`))), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [feet.map((foot, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [foot[0], plateHeight / 2, foot[2]], width: plateWidth }, `foot-${index}`))), _jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [0, height - plateHeight / 2, 0], width: plateWidth })] }))] }));
359
+ }
360
+ function TrestleSupport({ node }) {
361
+ const height = Math.max(0.2, node.height);
362
+ const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
363
+ const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
364
+ const width = Math.max(0.2, node.braceBottomSpread ?? 1.2);
365
+ const depth = Math.max(0.2, node.braceTopSpread ?? 1);
366
+ const zPositions = [-depth / 2, depth / 2];
367
+ const topPoints = zPositions.map((z) => [0, height, z]);
368
+ const footPoints = zPositions.flatMap((z) => [
369
+ [-width / 2, 0, z],
370
+ [width / 2, 0, z],
371
+ ]);
372
+ const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
373
+ const plateWidth = braceWidth * 1.9;
374
+ const plateDepth = braceDepth * 1.75;
375
+ return (_jsxs("group", { children: [zPositions.map((z, index) => {
376
+ const leftBottom = [-width / 2, 0, z];
377
+ const rightBottom = [width / 2, 0, z];
378
+ const top = topPoints[index] ?? [0, height, z];
379
+ return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: top, start: leftBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: top, start: rightBottom, width: braceWidth })] }, `frame-${z}`));
380
+ }), _jsx(FlatEndedBeam, { depth: braceDepth, end: topPoints[1] ?? [0, height, depth / 2], start: topPoints[0] ?? [0, height, -depth / 2], width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [footPoints.map((foot, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [foot[0], plateHeight / 2, foot[2]], width: plateWidth }, `foot-${index}`))), topPoints.map((top, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [top[0], height - plateHeight / 2, top[2]], width: plateWidth }, `top-${index}`)))] }))] }));
381
+ }
382
+ function PortalFrameSupport({ node }) {
383
+ const height = Math.max(0.2, node.height);
384
+ const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
385
+ const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
386
+ const width = Math.max(0.2, node.braceBottomSpread ?? 1.4);
387
+ const leftBottom = [-width / 2, 0, 0];
388
+ const rightBottom = [width / 2, 0, 0];
389
+ const leftTop = [-width / 2, height, 0];
390
+ const rightTop = [width / 2, height, 0];
391
+ const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
392
+ const plateWidth = braceWidth * 1.9;
393
+ const plateDepth = braceDepth * 1.75;
394
+ return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: leftTop, start: leftBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: rightBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: leftTop, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [[leftBottom, rightBottom].map((foot, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [foot[0], plateHeight / 2, foot[2]], width: plateWidth }, `foot-${index}`))), [leftTop, rightTop].map((top, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [top[0], height - plateHeight / 2, top[2]], width: plateWidth }, `top-${index}`)))] }))] }));
395
+ }
396
+ function BoxFrameSupport({ node }) {
397
+ const height = Math.max(0.2, node.height);
398
+ const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
399
+ const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
400
+ const width = Math.max(0.2, node.braceBottomSpread ?? 1.4);
401
+ const depth = Math.max(0.2, node.braceTopSpread ?? 1);
402
+ const corners = [
403
+ [-width / 2, 0, -depth / 2],
404
+ [width / 2, 0, -depth / 2],
405
+ [width / 2, 0, depth / 2],
406
+ [-width / 2, 0, depth / 2],
407
+ ];
408
+ const topCorners = corners.map(([x, _y, z]) => [x, height, z]);
409
+ const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
410
+ const plateWidth = braceWidth * 1.9;
411
+ const plateDepth = braceDepth * 1.75;
412
+ return (_jsxs("group", { children: [corners.map((corner, index) => (_jsx(FlatEndedBeam, { depth: braceDepth, end: topCorners[index] ?? [corner[0], height, corner[2]], start: corner, width: braceWidth }, `post-${index}`))), topCorners.map((corner, index) => (_jsx(FlatEndedBeam, { depth: braceDepth, end: topCorners[(index + 1) % topCorners.length] ?? corner, start: corner, width: braceWidth }, `top-rail-${index}`))), corners.map((corner, index) => (_jsx(FlatEndedBeam, { depth: braceDepth, end: corners[(index + 1) % corners.length] ?? corner, start: corner, width: braceWidth }, `bottom-rail-${index}`))), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [corners.map((corner, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [corner[0], plateHeight / 2, corner[2]], width: plateWidth }, `foot-${index}`))), topCorners.map((corner, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [corner[0], height - plateHeight / 2, corner[2]], width: plateWidth }, `top-${index}`)))] }))] }));
413
+ }
414
+ function MappedCylinder({ height, position, radius, radiusBottom = radius, radiusTop = radius, radiusX = 1, radiusZ = 1, rotation, segments = 32, }) {
415
+ const slotId = useContext(ColumnSlotContext);
416
+ const geometry = useMemo(() => {
417
+ if (height <= 0 || radius <= 0 || radiusBottom < 0 || radiusTop < 0)
418
+ return null;
419
+ return createColumnCylinderGeometry({
420
+ height,
421
+ radiusBottom,
422
+ radiusTop,
423
+ radiusX,
424
+ radiusZ,
425
+ segments,
426
+ });
427
+ }, [height, radius, radiusBottom, radiusTop, radiusX, radiusZ, segments]);
428
+ if (!geometry)
429
+ return null;
430
+ return (_jsxs("mesh", { castShadow: true, dispose: null, position: position, receiveShadow: true, rotation: rotation, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
431
+ }
432
+ function MappedCone({ height, position, radiusX, radiusZ = radiusX, rotation, segments = 6, }) {
433
+ const slotId = useContext(ColumnSlotContext);
434
+ const geometry = useMemo(() => {
435
+ if (height <= 0 || radiusX <= 0 || radiusZ <= 0)
436
+ return null;
437
+ return createColumnCylinderGeometry({
438
+ height,
439
+ radiusBottom: 1,
440
+ radiusTop: 0,
441
+ radiusX,
442
+ radiusZ,
443
+ segments,
444
+ });
445
+ }, [height, radiusX, radiusZ, segments]);
446
+ if (!geometry)
447
+ return null;
448
+ return (_jsxs("mesh", { castShadow: true, dispose: null, position: position, receiveShadow: true, rotation: rotation, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
449
+ }
450
+ function MappedSphere({ position, radius, segments = 10, verticalSegments = 8, }) {
451
+ const slotId = useContext(ColumnSlotContext);
452
+ const geometry = useMemo(() => {
453
+ if (radius <= 0)
454
+ return null;
455
+ return createColumnSphereGeometry(radius, segments, verticalSegments);
456
+ }, [radius, segments, verticalSegments]);
457
+ if (!geometry)
458
+ return null;
459
+ return (_jsxs("mesh", { castShadow: true, dispose: null, position: position, receiveShadow: true, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
460
+ }
461
+ function MappedTorus({ arc, position, ringRadius, rotation, scaleX, scaleY, scaleZ, tubeRadius, }) {
462
+ const slotId = useContext(ColumnSlotContext);
463
+ const geometry = useMemo(() => {
464
+ if (ringRadius <= 0 || tubeRadius <= 0)
465
+ return null;
466
+ return createColumnTorusGeometry({
467
+ arc,
468
+ ringRadius,
469
+ scaleX,
470
+ scaleY,
471
+ scaleZ,
472
+ tubeRadius,
473
+ });
474
+ }, [arc, ringRadius, scaleX, scaleY, scaleZ, tubeRadius]);
475
+ if (!geometry)
476
+ return null;
477
+ return (_jsxs("mesh", { castShadow: true, dispose: null, position: position, receiveShadow: true, rotation: rotation, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
478
+ }
479
+ function SquareBlock({ y, height, width, depth, softenEdges = true, }) {
480
+ return (_jsx(MappedBox, { depth: depth, height: height, position: [0, y + height / 2, 0], softenEdges: softenEdges, width: width }));
481
+ }
482
+ function RoundBlock({ x = 0, y, z = 0, height, radius, segments = 32, }) {
483
+ return (_jsx(MappedCylinder, { height: height, position: [x, y + height / 2, z], radius: radius, segments: segments }));
484
+ }
485
+ function RoundedRectangleShaftSegment({ y, height, width, depth, cornerRadius, }) {
486
+ if (height <= 0)
487
+ return null;
488
+ const radius = Math.min(Math.max(0, cornerRadius), Math.min(width, depth) * 0.45);
489
+ if (radius <= 0.001) {
490
+ return _jsx(SquareBlock, { depth: depth, height: height, width: width, y: y });
491
+ }
492
+ const innerWidth = Math.max(0, width - radius * 2);
493
+ const innerDepth = Math.max(0, depth - radius * 2);
494
+ const cornerX = width / 2 - radius;
495
+ const cornerZ = depth / 2 - radius;
496
+ return (_jsxs("group", { children: [innerWidth > 0 && (_jsx(SquareBlock, { depth: depth, height: height, softenEdges: false, width: innerWidth, y: y })), innerDepth > 0 && (_jsx(SquareBlock, { depth: innerDepth, height: height, softenEdges: false, width: width, y: y })), [
497
+ [cornerX, cornerZ],
498
+ [cornerX, -cornerZ],
499
+ [-cornerX, cornerZ],
500
+ [-cornerX, -cornerZ],
501
+ ].map(([x, z], index) => (_jsx(RoundBlock, { height: height, radius: radius, segments: 18, x: x, y: y, z: z }, index)))] }));
502
+ }
503
+ function OvalBlock({ y, height, width, depth, segments = 32, }) {
504
+ return (_jsx(MappedCylinder, { height: height, position: [0, y + height / 2, 0], radius: 1, radiusX: width / 2, radiusZ: depth / 2, segments: segments }));
505
+ }
506
+ function ColumnBlock({ node, y, height, scale = 1, }) {
507
+ if (height <= 0)
508
+ return null;
509
+ const width = node.width * scale;
510
+ const depth = node.depth * scale;
511
+ const radius = node.radius * scale;
512
+ if (node.crossSection === 'square' || node.crossSection === 'rectangular') {
513
+ return _jsx(SquareBlock, { depth: depth, height: height, width: width, y: y });
514
+ }
515
+ return _jsx(RoundBlock, { height: height, radius: radius, segments: getSegments(node), y: y });
516
+ }
517
+ function TaperedRoundShaft({ node, y, height }) {
518
+ const segmentCount = getShaftSegmentCount(node);
519
+ const segmentHeight = height / segmentCount;
520
+ return (_jsx("group", { children: Array.from({ length: segmentCount }, (_, index) => {
521
+ const t = (index + 0.5) / segmentCount;
522
+ const profileScale = getShaftScaleAt(node, t);
523
+ return (_jsx("group", { rotation: [0, getShaftTwistRadians(node, index), 0], children: _jsx(RoundBlock, { height: segmentHeight * 1.015, radius: node.radius * profileScale, segments: getSegments(node), y: y + index * segmentHeight }) }, index));
524
+ }) }));
525
+ }
526
+ function TaperedSquareShaft({ node, y, height }) {
527
+ const segmentCount = getShaftSegmentCount(node);
528
+ const segmentHeight = height / segmentCount;
529
+ return (_jsx("group", { children: Array.from({ length: segmentCount }, (_, index) => {
530
+ const t = (index + 0.5) / segmentCount;
531
+ const profileScale = getShaftScaleAt(node, t);
532
+ return (_jsx("group", { rotation: [0, getShaftTwistRadians(node, index), 0], children: _jsx(RoundedRectangleShaftSegment, { cornerRadius: (node.shaftCornerRadius ?? 0.035) * profileScale, depth: node.depth * profileScale, height: segmentHeight * 1.015, width: node.width * profileScale, y: y + index * segmentHeight }) }, index));
533
+ }) }));
534
+ }
535
+ function Shaft({ node, y, height }) {
536
+ if (height <= 0)
537
+ return null;
538
+ if (node.style === 'cluster') {
539
+ const sideRadius = Math.max(0.04, node.radius * 0.36);
540
+ const offset = Math.max(node.radius * 0.78, node.width * 0.22);
541
+ return (_jsxs("group", { children: [_jsx(RoundBlock, { height: height, radius: node.radius * 0.62, segments: 24, y: y }), [
542
+ [offset, 0],
543
+ [-offset, 0],
544
+ [0, offset],
545
+ [0, -offset],
546
+ ].map(([x, z], index) => (_jsx(RoundBlock, { height: height, radius: sideRadius, segments: 16, x: x, y: y, z: z }, `${x}-${z}-${index}`)))] }));
547
+ }
548
+ if (node.crossSection === 'round' ||
549
+ node.crossSection === 'octagonal' ||
550
+ node.crossSection === 'sixteen-sided') {
551
+ return _jsx(TaperedRoundShaft, { height: height, node: node, y: y });
552
+ }
553
+ return _jsx(TaperedSquareShaft, { height: height, node: node, y: y });
554
+ }
555
+ function Base({ node, height }) {
556
+ if (height <= 0)
557
+ return null;
558
+ const baseStyle = node.baseStyle ?? 'round-rings';
559
+ const widthScale = node.baseWidthScale ?? 1.24;
560
+ const depthScale = node.baseDepthScale ?? widthScale;
561
+ if (baseStyle === 'none')
562
+ return null;
563
+ if (baseStyle === 'simple-square') {
564
+ return (_jsx(SquareBlock, { depth: node.depth * depthScale, height: height, width: node.width * widthScale, y: 0 }));
565
+ }
566
+ if (baseStyle === 'square-plinth') {
567
+ return (_jsxs("group", { children: [_jsx(SquareBlock, { depth: node.depth * depthScale, height: height * 0.35, width: node.width * widthScale, y: 0 }), _jsx(SquareBlock, { depth: node.depth * Math.max(0.9, depthScale * 0.84), height: height * 0.65, width: node.width * Math.max(0.9, widthScale * 0.84), y: height * 0.35 })] }));
568
+ }
569
+ if (baseStyle === 'stepped-square') {
570
+ const tierCount = Math.max(3, node.baseTierCount ?? 3);
571
+ const tierHeight = height / tierCount;
572
+ const stepSpread = node.baseStepSpread ?? 0.42;
573
+ return (_jsx("group", { children: Array.from({ length: tierCount }, (_, index) => {
574
+ const t = index / Math.max(1, tierCount - 1);
575
+ const widthScaleAt = Math.max(0.5, widthScale - t * stepSpread);
576
+ const depthScaleAt = Math.max(0.5, depthScale - t * stepSpread);
577
+ return (_jsx(SquareBlock, { depth: node.depth * depthScaleAt, height: tierHeight * 1.01, width: node.width * widthScaleAt, y: index * tierHeight }, index));
578
+ }) }));
579
+ }
580
+ if (baseStyle === 'round-rings') {
581
+ const baseWidth = node.width * widthScale;
582
+ const baseDepth = node.depth * depthScale;
583
+ const plinthRatio = Math.min(0.7, Math.max(0.2, node.basePlinthHeightRatio ?? 0.44));
584
+ const plinthHeight = height * plinthRatio;
585
+ const roundedHeight = height - plinthHeight;
586
+ const bandHeight = roundedHeight * 0.57;
587
+ const neckHeight = roundedHeight - bandHeight;
588
+ const bandScale = node.baseRoundBandScale ?? 0.92;
589
+ const neckScale = node.baseNeckScale ?? 0.72;
590
+ return (_jsxs("group", { children: [_jsx(SquareBlock, { depth: baseDepth, height: plinthHeight, width: baseWidth, y: 0 }), _jsx(OvalBlock, { depth: baseDepth * bandScale, height: bandHeight, segments: 32, width: baseWidth * bandScale, y: plinthHeight }), _jsx(OvalBlock, { depth: baseDepth * neckScale, height: neckHeight, segments: 32, width: baseWidth * neckScale, y: plinthHeight + bandHeight })] }));
591
+ }
592
+ if (baseStyle === 'lotus' || baseStyle === 'ribbed-lotus') {
593
+ const ribCount = node.baseRibCount ?? (baseStyle === 'ribbed-lotus' ? 24 : 14);
594
+ const ribRadius = Math.max(0.01, node.width * 0.025);
595
+ const baseRadius = Math.max(node.radius * widthScale, node.width * widthScale * 0.5);
596
+ return (_jsxs("group", { children: [_jsx(SquareBlock, { depth: node.depth * 1.28, height: height * 0.22, width: node.width * 1.28, y: 0 }), _jsx(RoundBlock, { height: height * 0.24, radius: baseRadius * 0.86, segments: 32, y: height * 0.22 }), Array.from({ length: ribCount }, (_, index) => {
597
+ const angle = (index / ribCount) * Math.PI * 2;
598
+ return (_jsx(MappedCylinder, { height: height * 0.38, position: [
599
+ Math.cos(angle) * baseRadius * 0.86,
600
+ height * 0.58,
601
+ Math.sin(angle) * baseRadius * 0.86,
602
+ ], radius: ribRadius, rotation: [0, -angle, 0], segments: 6 }, index));
603
+ }), _jsx(RoundBlock, { height: height * 0.16, radius: baseRadius * 0.72, segments: 32, y: height * 0.82 })] }));
604
+ }
605
+ if (baseStyle === 'panelled-pedestal') {
606
+ const inset = node.basePanelInset ?? 0.02;
607
+ return (_jsxs("group", { children: [_jsx(SquareBlock, { depth: node.depth * widthScale, height: height, width: node.width * widthScale, y: 0 }), [
608
+ [0, node.depth * widthScale * 0.51, 0],
609
+ [0, -node.depth * widthScale * 0.51, 0],
610
+ [node.width * widthScale * 0.51, 0, Math.PI / 2],
611
+ [-node.width * widthScale * 0.51, 0, Math.PI / 2],
612
+ ].map(([x, z, rotation], index) => (_jsx(MappedBox, { depth: inset, height: height * 0.42, position: [x, height * 0.5, z], rotation: [0, rotation, 0], softenEdges: false, width: node.width * 0.36 }, index)))] }));
613
+ }
614
+ return _jsx(ColumnBlock, { height: height, node: node, scale: 1.12, y: 0 });
615
+ }
616
+ function BaseCarvings({ node, height }) {
617
+ const placement = node.carvingPlacement ?? 'capital';
618
+ const carvingLevel = node.baseCarvingLevel ?? 0;
619
+ if (carvingLevel <= 0 || height <= 0 || (placement !== 'base' && placement !== 'all')) {
620
+ return null;
621
+ }
622
+ const count = Math.max(8, carvingLevel * 8);
623
+ const radius = Math.max(node.radius * 1.04, Math.max(node.width, node.depth) * 0.5);
624
+ const y = height * 0.52;
625
+ return (_jsx("group", { children: Array.from({ length: count }, (_, index) => {
626
+ const angle = (index / count) * Math.PI * 2;
627
+ return (_jsx(MappedCone, { height: height * 0.28, position: [Math.cos(angle) * radius, y, Math.sin(angle) * radius], radiusX: 0.014, radiusZ: 0.01, rotation: [0.36, -angle, 0], segments: 5 }, index));
628
+ }) }));
629
+ }
630
+ function Rings({ node, shaftY, shaftHeight, }) {
631
+ if (node.ringCount <= 0 || shaftHeight <= 0)
632
+ return null;
633
+ const ringPlacement = node.ringPlacement ?? 'ends';
634
+ const ringSpread = Math.min(0.45, Math.max(0.04, node.ringSpread ?? 0.16));
635
+ const ringHeight = Math.min(node.ringThickness ?? 0.055, shaftHeight / Math.max(8, node.ringCount * 3));
636
+ const rings = Array.from({ length: node.ringCount }, (_, index) => {
637
+ const pairIndex = Math.floor(index / 2);
638
+ const nearTop = index % 2 === 1;
639
+ const pairCount = Math.ceil(node.ringCount / 2);
640
+ const pairT = pairCount <= 1 ? 0 : pairIndex / (pairCount - 1);
641
+ const offset = Math.min(0.48, 0.06 + pairT * Math.max(0, ringSpread - 0.06));
642
+ const oneSideT = 0.06 + (index / Math.max(1, node.ringCount - 1)) * Math.max(0, ringSpread - 0.06);
643
+ const t = ringPlacement === 'even'
644
+ ? (index + 1) / (node.ringCount + 1)
645
+ : ringPlacement === 'top'
646
+ ? 1 - Math.min(0.48, oneSideT)
647
+ : ringPlacement === 'bottom'
648
+ ? Math.min(0.48, oneSideT)
649
+ : nearTop
650
+ ? 1 - offset
651
+ : offset;
652
+ return {
653
+ scale: Math.min(1.4, getShaftScaleAt(node, t) + 0.12),
654
+ y: shaftY + shaftHeight * t - ringHeight / 2,
655
+ };
656
+ }).sort((a, b) => a.y - b.y);
657
+ return (_jsx("group", { children: rings.map((ring, index) => (_jsx(ColumnBlock, { height: ringHeight, node: node, scale: ring.scale, y: ring.y }, index))) }));
658
+ }
659
+ function LatheBands({ node, shaftY, shaftHeight, }) {
660
+ const latheRingCount = Math.max(node.latheRingCount ?? 0, node.shaftDetail === 'lathe-turned' ? 8 : 0);
661
+ if (latheRingCount <= 0 || shaftHeight <= 0)
662
+ return null;
663
+ const placement = node.latheRingSpacing ?? 'ends';
664
+ const bandHeight = Math.min(0.04, shaftHeight / Math.max(12, latheRingCount * 3));
665
+ const bands = Array.from({ length: latheRingCount }, (_, index) => {
666
+ const pairIndex = Math.floor(index / 2);
667
+ const nearTop = index % 2 === 1;
668
+ const offset = Math.min(0.48, 0.1 + pairIndex * 0.04);
669
+ const t = placement === 'even'
670
+ ? (index + 1) / (latheRingCount + 1)
671
+ : placement === 'top'
672
+ ? 1 - Math.min(0.48, 0.08 + index * 0.04)
673
+ : placement === 'bottom'
674
+ ? Math.min(0.48, 0.08 + index * 0.04)
675
+ : nearTop
676
+ ? 1 - offset
677
+ : offset;
678
+ return shaftY + shaftHeight * t - bandHeight / 2;
679
+ }).sort((a, b) => a - b);
680
+ return (_jsx("group", { children: bands.map((y, index) => (_jsx(ColumnBlock, { height: bandHeight, node: node, scale: 0.82 + (index % 2) * 0.08, y: y }, index))) }));
681
+ }
682
+ function Flutes({ node, shaftY, shaftHeight, }) {
683
+ const fluteCount = Math.max(node.fluteCount, node.shaftDetail === 'fluted' ? 16 : 0);
684
+ if (fluteCount <= 0 || shaftHeight <= 0 || node.crossSection !== 'round')
685
+ return null;
686
+ const fluteDepth = node.fluteDepth ?? 0.02;
687
+ const fluteWidth = node.fluteWidth ?? fluteDepth;
688
+ const fluteRadius = Math.max(0.006, fluteWidth * 0.42);
689
+ const shaftRadius = node.radius * 0.74;
690
+ return (_jsx("group", { children: Array.from({ length: fluteCount }, (_, index) => {
691
+ const angle = (index / fluteCount) * Math.PI * 2;
692
+ const x = Math.cos(angle) * shaftRadius;
693
+ const z = Math.sin(angle) * shaftRadius;
694
+ return (_jsx(MappedCylinder, { height: shaftHeight * 0.92, position: [x, shaftY + shaftHeight / 2, z], radius: fluteRadius, segments: 8 }, index));
695
+ }) }));
696
+ }
697
+ function DravidianPanelFace({ position, rotation = 0, panelHeight, panelWidth, rail, reliefDepth, panelShape, }) {
698
+ return (_jsxs("group", { position: position, rotation: [0, rotation, 0], children: [_jsx(MappedBox, { depth: reliefDepth, height: rail, position: [0, panelHeight / 2, 0], softenEdges: false, width: panelWidth }), _jsx(MappedBox, { depth: reliefDepth, height: rail, position: [0, -panelHeight / 2, 0], softenEdges: false, width: panelWidth }), _jsx(MappedBox, { depth: reliefDepth, height: panelHeight, position: [panelWidth / 2, 0, 0], softenEdges: false, width: rail }), _jsx(MappedBox, { depth: reliefDepth, height: panelHeight, position: [-panelWidth / 2, 0, 0], softenEdges: false, width: rail }), panelShape === 'diamond' && (_jsx(MappedBox, { depth: reliefDepth, height: panelHeight * 0.42, position: [0, 0, 0], rotation: [0, 0, Math.PI / 4], softenEdges: false, width: rail * 1.2 })), panelShape === 'arched' && (_jsx(MappedTorus, { arc: Math.PI, position: [0, panelHeight * 0.28, 0], ringRadius: panelWidth * 0.42, scaleX: panelWidth * 0.42, scaleY: rail, scaleZ: reliefDepth, tubeRadius: Math.max(rail, reliefDepth) * 0.18 }))] }));
699
+ }
700
+ function DravidianShaftPanels({ node, shaftY, shaftHeight, }) {
701
+ const panelCount = Math.max(node.panelCount ?? 0, node.style === 'dravidian-carved' || node.shaftDetail === 'panelled' ? 3 : 0);
702
+ if (panelCount <= 0 || shaftHeight <= 0)
703
+ return null;
704
+ const shaftWidth = node.width * 0.72;
705
+ const shaftDepth = node.depth * 0.72;
706
+ const panelHeight = Math.min(0.42, shaftHeight / Math.max(4, panelCount + 2));
707
+ const panelWidth = node.width * 0.26;
708
+ const rail = Math.max(0.012, node.width * 0.028);
709
+ const reliefDepth = Math.max(0.012, node.panelInsetDepth ?? node.width * 0.025);
710
+ const rows = Array.from({ length: panelCount }, (_, index) => (index + 1) / (panelCount + 1));
711
+ const panelShape = node.panelShape ?? 'rectangle';
712
+ const faceProps = { panelHeight, panelWidth, rail, reliefDepth, panelShape };
713
+ return (_jsx("group", { children: rows.map((t, rowIndex) => {
714
+ const y = shaftY + shaftHeight * t;
715
+ return (_jsxs("group", { children: [_jsx(DravidianPanelFace, { position: [0, y, shaftDepth / 2 + reliefDepth / 2], ...faceProps }), _jsx(DravidianPanelFace, { position: [0, y, -shaftDepth / 2 - reliefDepth / 2], ...faceProps }), _jsx(DravidianPanelFace, { position: [shaftWidth / 2 + reliefDepth / 2, y, 0], rotation: Math.PI / 2, ...faceProps }), _jsx(DravidianPanelFace, { position: [-shaftWidth / 2 - reliefDepth / 2, y, 0], rotation: Math.PI / 2, ...faceProps })] }, rowIndex));
716
+ }) }));
717
+ }
718
+ function SpiralRibs({ node, shaftY, shaftHeight, }) {
719
+ const spiralRibCount = node.spiralRibCount ?? 0;
720
+ const spiralTwist = node.spiralTwist ?? 0;
721
+ const shaftTaper = node.shaftTaper ?? 0;
722
+ const ribCountSetting = Math.max(spiralRibCount, node.shaftDetail === 'spiral' ? 12 : 0);
723
+ if (ribCountSetting <= 0 || spiralTwist === 0 || shaftHeight <= 0)
724
+ return null;
725
+ const ribCount = Math.min(ribCountSetting, 24);
726
+ const stepCount = 28;
727
+ const ribDistance = node.radius * 0.78;
728
+ const ribWidth = Math.max(0.012, node.radius * 0.06);
729
+ const segmentHeight = (shaftHeight / stepCount) * 1.18;
730
+ const lean = spiralTwist > 0 ? -0.55 : 0.55;
731
+ return (_jsx("group", { children: Array.from({ length: ribCount * stepCount }, (_, index) => {
732
+ const ribIndex = index % ribCount;
733
+ const stepIndex = Math.floor(index / ribCount);
734
+ const t = (stepIndex + 0.5) / stepCount;
735
+ const angle = (ribIndex / ribCount) * Math.PI * 2 + t * spiralTwist * Math.PI * 2;
736
+ const taperScale = 1 - Math.min(shaftTaper, 0.85) * t;
737
+ return (_jsx(MappedCylinder, { height: segmentHeight, position: [
738
+ Math.cos(angle) * ribDistance * taperScale,
739
+ shaftY + shaftHeight * t,
740
+ Math.sin(angle) * ribDistance * taperScale,
741
+ ], radius: ribWidth, rotation: [0, -angle, lean], segments: 8 }, index));
742
+ }) }));
743
+ }
744
+ function LowerCarvedBand({ node, shaftY, shaftHeight, }) {
745
+ const placement = node.carvingPlacement ?? 'capital';
746
+ if (!node.lowerBandEnabled ||
747
+ shaftHeight <= 0 ||
748
+ (placement !== 'shaft' && placement !== 'all')) {
749
+ return null;
750
+ }
751
+ const bandHeight = Math.min(node.lowerBandHeight ?? 0.24, shaftHeight * 0.35);
752
+ const y = shaftY + shaftHeight * 0.12;
753
+ const level = Math.max(1, node.lowerBandCarvingLevel ?? 1);
754
+ const count = Math.max(6, level * 6);
755
+ const distance = Math.max(node.radius * 0.82, Math.max(node.width, node.depth) * 0.36);
756
+ return (_jsxs("group", { children: [_jsx(ColumnBlock, { height: bandHeight, node: node, scale: 0.84, y: y }), Array.from({ length: count }, (_, index) => {
757
+ const angle = (index / count) * Math.PI * 2;
758
+ return (_jsx(MappedCylinder, { height: bandHeight * 0.62, position: [
759
+ Math.cos(angle) * distance,
760
+ y + bandHeight * 0.5,
761
+ Math.sin(angle) * distance,
762
+ ], radius: 0.012, rotation: [0, -angle, 0], segments: 5 }, index));
763
+ })] }));
764
+ }
765
+ function CapitalCarvings({ node, capitalY, capitalHeight, }) {
766
+ const placement = node.carvingPlacement ?? 'capital';
767
+ const carvingLevel = Math.max(node.carvingLevel ?? 0, node.capitalCarvingLevel ?? 0);
768
+ const bandSetting = node.capitalBandCount ?? 0;
769
+ if ((carvingLevel <= 0 && bandSetting <= 0) ||
770
+ capitalHeight <= 0 ||
771
+ (placement !== 'capital' && placement !== 'all')) {
772
+ return null;
773
+ }
774
+ const level = Math.min(Math.max(carvingLevel, bandSetting > 0 ? 1 : 0), 4);
775
+ const bandHeight = Math.min(0.035, capitalHeight / 8);
776
+ const bandCount = Math.min(bandSetting > 0 ? bandSetting : level + 1, 16);
777
+ const bands = Array.from({ length: bandCount }, (_, index) => {
778
+ const t = (index + 1) / (bandCount + 1);
779
+ return capitalY + capitalHeight * t - bandHeight / 2;
780
+ });
781
+ if (node.crossSection === 'square' || node.crossSection === 'rectangular') {
782
+ const dentilCount = Math.max(node.dentilCount ?? 0, level * 4, 4);
783
+ const dentilHeight = Math.min(0.08, capitalHeight * 0.28);
784
+ const dentilDepth = Math.min(0.08, Math.min(node.width, node.depth) * 0.16);
785
+ const dentilWidth = Math.max(0.025, node.width / (dentilCount * 1.75));
786
+ const halfWidth = node.width * 0.56;
787
+ const halfDepth = node.depth * 0.56;
788
+ const y = capitalY + capitalHeight * 0.28;
789
+ const xPositions = Array.from({ length: dentilCount }, (_, index) => {
790
+ const t = dentilCount === 1 ? 0.5 : index / (dentilCount - 1);
791
+ return -halfWidth + t * halfWidth * 2;
792
+ });
793
+ const zPositions = Array.from({ length: dentilCount }, (_, index) => {
794
+ const t = dentilCount === 1 ? 0.5 : index / (dentilCount - 1);
795
+ return -halfDepth + t * halfDepth * 2;
796
+ });
797
+ return (_jsxs("group", { children: [bands.map((bandY, index) => (_jsx(ColumnBlock, { height: bandHeight, node: node, scale: 1.28, y: bandY }, `band-${index}`))), xPositions.map((x, index) => (_jsxs("group", { children: [_jsx(MappedBox, { depth: dentilDepth, height: dentilHeight, position: [x, y, halfDepth], softenEdges: false, width: dentilWidth }), _jsx(MappedBox, { depth: dentilDepth, height: dentilHeight, position: [x, y, -halfDepth], softenEdges: false, width: dentilWidth })] }, `front-back-dentil-${index}`))), zPositions.map((z, index) => (_jsxs("group", { children: [_jsx(MappedBox, { depth: dentilWidth, height: dentilHeight, position: [halfWidth, y, z], softenEdges: false, width: dentilDepth }), _jsx(MappedBox, { depth: dentilWidth, height: dentilHeight, position: [-halfWidth, y, z], softenEdges: false, width: dentilDepth })] }, `side-dentil-${index}`)))] }));
798
+ }
799
+ const beadCount = Math.max(node.beadCount ?? 0, 8, level * 8);
800
+ const beadRadius = Math.max(0.012, Math.min(0.03, node.radius * 0.12));
801
+ const beadDistance = node.radius * 1.24;
802
+ const beadY = capitalY + capitalHeight * 0.24;
803
+ return (_jsxs("group", { children: [bands.map((bandY, index) => (_jsx(ColumnBlock, { height: bandHeight, node: node, scale: 1.24, y: bandY }, `band-${index}`))), Array.from({ length: beadCount }, (_, index) => {
804
+ const angle = (index / beadCount) * Math.PI * 2;
805
+ return (_jsx(MappedSphere, { position: [Math.cos(angle) * beadDistance, beadY, Math.sin(angle) * beadDistance], radius: beadRadius }, `bead-${index}`));
806
+ })] }));
807
+ }
808
+ function Volutes({ node, capitalY, capitalHeight, }) {
809
+ if (!['volute', 'ionic-volute'].includes(node.capitalStyle ?? 'simple') || capitalHeight <= 0)
810
+ return null;
811
+ const y = capitalY + capitalHeight * 0.62;
812
+ const radius = node.voluteSize ?? Math.min(0.085, Math.max(0.04, node.width * 0.12));
813
+ const x = node.width * 0.46;
814
+ const z = node.depth * 0.7;
815
+ const maxVolutes = Math.max(0, Math.min(node.voluteCount ?? 4, 8));
816
+ const volutes = [
817
+ {
818
+ position: [x, y, z],
819
+ rotation: [0, 0, 0],
820
+ },
821
+ {
822
+ position: [-x, y, z],
823
+ rotation: [0, 0, 0],
824
+ },
825
+ {
826
+ position: [x, y, -z],
827
+ rotation: [0, Math.PI, 0],
828
+ },
829
+ {
830
+ position: [-x, y, -z],
831
+ rotation: [0, Math.PI, 0],
832
+ },
833
+ {
834
+ position: [z, y, x],
835
+ rotation: [0, Math.PI / 2, 0],
836
+ },
837
+ {
838
+ position: [z, y, -x],
839
+ rotation: [0, Math.PI / 2, 0],
840
+ },
841
+ {
842
+ position: [-z, y, x],
843
+ rotation: [0, -Math.PI / 2, 0],
844
+ },
845
+ {
846
+ position: [-z, y, -x],
847
+ rotation: [0, -Math.PI / 2, 0],
848
+ },
849
+ ].slice(0, maxVolutes);
850
+ return (_jsx("group", { children: volutes.map((volute, index) => (_jsx(MappedTorus, { position: volute.position, ringRadius: radius, rotation: volute.rotation, scaleZ: radius * 0.28, tubeRadius: radius * 0.18 }, index))) }));
851
+ }
852
+ function LeafCarvings({ node, capitalY, capitalHeight, }) {
853
+ if (!['leaf-carved', 'corinthian-leaf'].includes(node.capitalStyle ?? 'simple') ||
854
+ capitalHeight <= 0) {
855
+ return null;
856
+ }
857
+ const leafCount = node.leafCount ?? (node.crossSection === 'round' ? 18 : 12);
858
+ const distance = Math.max(node.radius * 1.05, Math.max(node.width, node.depth) * 0.48);
859
+ const rowCount = Math.max(0, Math.min(node.leafRows ?? 2, 4));
860
+ const rows = Array.from({ length: rowCount }, (_, index) => ({
861
+ y: capitalY + capitalHeight * (0.3 + index * 0.16),
862
+ scale: 0.28 - index * 0.04,
863
+ offset: index % 2 === 0 ? 0 : Math.PI / leafCount,
864
+ }));
865
+ return (_jsx("group", { children: rows.flatMap((row, rowIndex) => Array.from({ length: leafCount }, (_, index) => {
866
+ const angle = (index / leafCount) * Math.PI * 2 + row.offset;
867
+ return (_jsx(MappedCone, { height: capitalHeight * row.scale, position: [Math.cos(angle) * distance, row.y, Math.sin(angle) * distance], radiusX: 0.018, radiusZ: 0.01, rotation: [0.48, -angle, 0], segments: 6 }, `${rowIndex}-${index}`));
868
+ })) }));
869
+ }
870
+ function Capital({ node, y, height }) {
871
+ if (height <= 0)
872
+ return null;
873
+ const capitalStyle = node.capitalStyle ?? 'simple';
874
+ if (capitalStyle === 'none')
875
+ return null;
876
+ if (capitalStyle === 'south-indian-bracket' || capitalStyle === 'wood-bracket') {
877
+ const tierCount = Math.max(1, node.bracketTierCount ?? 3);
878
+ const tierHeight = height / tierCount;
879
+ const bracketDepth = node.bracketDepth ?? 0.35;
880
+ return (_jsxs("group", { children: [Array.from({ length: tierCount }, (_, index) => {
881
+ const t = index / Math.max(1, tierCount - 1);
882
+ const scale = (node.capitalWidthScale ?? 1.6) + t * 0.32;
883
+ return (_jsx(SquareBlock, { depth: node.depth * scale + bracketDepth * t, height: tierHeight, width: node.width * scale + bracketDepth * t, y: y + index * tierHeight }, index));
884
+ }), Array.from({ length: node.pendantCount ?? 0 }, (_, index) => {
885
+ const count = Math.max(1, node.pendantCount ?? 0);
886
+ const angle = (index / count) * Math.PI * 2;
887
+ const distance = Math.max(node.width, node.depth) * 0.56;
888
+ return (_jsx(MappedCone, { height: height * 0.28, position: [Math.cos(angle) * distance, y - height * 0.1, Math.sin(angle) * distance], radiusX: 0.035, rotation: [0, 0, 0], segments: 6 }, index));
889
+ })] }));
890
+ }
891
+ if (capitalStyle === 'rounded' || capitalStyle === 'doric') {
892
+ const topWidth = node.width * (node.capitalWidthScale ?? 1.34);
893
+ const topDepth = node.depth * (node.capitalDepthScale ?? node.capitalWidthScale ?? 1.34);
894
+ return (_jsxs("group", { children: [_jsx(OvalBlock, { depth: topDepth * 0.72, height: height * 0.24, segments: 32, width: topWidth * 0.72, y: y }), _jsx(OvalBlock, { depth: topDepth * 0.92, height: height * 0.32, segments: 32, width: topWidth * 0.92, y: y + height * 0.24 }), _jsx(SquareBlock, { depth: topDepth, height: height * 0.44, width: topWidth, y: y + height * 0.56 })] }));
895
+ }
896
+ if (capitalStyle === 'stepped') {
897
+ const widthScale = node.capitalWidthScale ?? 1.46;
898
+ const depthScale = node.capitalDepthScale ?? widthScale;
899
+ const tierCount = Math.max(3, node.capitalTierCount ?? 3);
900
+ const tierHeight = height / tierCount;
901
+ const stepSpread = node.capitalStepSpread ?? 0.42;
902
+ return (_jsx("group", { children: Array.from({ length: tierCount }, (_, index) => {
903
+ const t = index / Math.max(1, tierCount - 1);
904
+ const widthScaleAt = Math.max(0.5, widthScale - (1 - t) * stepSpread);
905
+ const depthScaleAt = Math.max(0.5, depthScale - (1 - t) * stepSpread);
906
+ return (_jsx(SquareBlock, { depth: node.depth * depthScaleAt, height: tierHeight * 1.01, width: node.width * widthScaleAt, y: y + index * tierHeight }, index));
907
+ }) }));
908
+ }
909
+ if (capitalStyle === 'volute' ||
910
+ capitalStyle === 'ionic-volute' ||
911
+ capitalStyle === 'leaf-carved' ||
912
+ capitalStyle === 'corinthian-leaf') {
913
+ const topWidth = node.width * (node.capitalWidthScale ?? 1.46);
914
+ const topDepth = node.depth * (node.capitalDepthScale ?? node.capitalWidthScale ?? 1.46);
915
+ return (_jsxs("group", { children: [_jsx(ColumnBlock, { height: height * 0.24, node: node, scale: 0.9, y: y }), _jsx(ColumnBlock, { height: height * 0.2, node: node, scale: 1.08, y: y + height * 0.24 }), _jsx(SquareBlock, { depth: topDepth, height: height * 0.28, width: topWidth, y: y + height * 0.44 }), _jsx(Volutes, { capitalHeight: height, capitalY: y, node: node }), _jsx(LeafCarvings, { capitalHeight: height, capitalY: y, node: node })] }));
916
+ }
917
+ const widthScale = node.capitalWidthScale ?? (capitalStyle === 'simple-slab' ? 1.28 : 1.18);
918
+ const depthScale = node.capitalDepthScale ?? widthScale;
919
+ if (node.crossSection === 'square' || node.crossSection === 'rectangular') {
920
+ return (_jsx(SquareBlock, { depth: node.depth * depthScale, height: height, width: node.width * widthScale, y: y }));
921
+ }
922
+ return (_jsx(RoundBlock, { height: height, radius: Math.max(node.radius * widthScale, node.width * widthScale * 0.5), segments: getSegments(node), y: y }));
923
+ }
924
+ /**
925
+ * The column's geometry tree — either a fabricated support frame or the
926
+ * classical base / shaft / capital stack. Extracted from `ColumnRenderer`
927
+ * so the translucent placement ghost (`ColumnPreview`) renders the exact
928
+ * same shape without the registry registration, pointer handlers, or
929
+ * live-transform wiring the real renderer layers on. Material and edge
930
+ * softness arrive through context, so each caller controls appearance by
931
+ * wrapping this in its own providers.
932
+ */
933
+ function ColumnBody({ node }) {
934
+ const shaftLayout = useMemo(() => {
935
+ const baseHeight = node.baseStyle === 'none' ? 0 : Math.min(node.baseHeight, node.height * 0.4);
936
+ const capitalHeight = node.capitalStyle === 'none' ? 0 : Math.min(node.capitalHeight, node.height * 0.4);
937
+ const shaftHeight = Math.max(0.1, node.height - baseHeight - capitalHeight);
938
+ return { baseHeight, capitalHeight, shaftY: baseHeight, shaftHeight };
939
+ }, [node.baseHeight, node.baseStyle, node.capitalHeight, node.capitalStyle, node.height]);
940
+ if (node.supportStyle !== 'vertical') {
941
+ const support = node.supportStyle === 'a-frame' ? (_jsx(AFrameSupport, { node: node })) : node.supportStyle === 'y-frame' ? (_jsx(YFrameSupport, { node: node })) : node.supportStyle === 'v-frame' ? (_jsx(VFrameSupport, { node: node })) : node.supportStyle === 'x-brace' ? (_jsx(XBraceSupport, { node: node })) : node.supportStyle === 'k-brace' ? (_jsx(KBraceSupport, { node: node })) : node.supportStyle === 'single-strut' ? (_jsx(SingleStrutSupport, { node: node })) : node.supportStyle === 'tripod' ? (_jsx(TripodSupport, { node: node })) : node.supportStyle === 'trestle' ? (_jsx(TrestleSupport, { node: node })) : node.supportStyle === 'portal-frame' ? (_jsx(PortalFrameSupport, { node: node })) : (_jsx(BoxFrameSupport, { node: node }));
942
+ return _jsx(ColumnSlot, { slotId: "frame", children: support });
943
+ }
944
+ return (_jsxs(_Fragment, { children: [_jsxs(ColumnSlot, { slotId: "base", children: [_jsx(Base, { height: shaftLayout.baseHeight, node: node }), _jsx(BaseCarvings, { height: shaftLayout.baseHeight, node: node })] }), _jsxs(ColumnSlot, { slotId: "shaft", children: [_jsx(Shaft, { height: shaftLayout.shaftHeight, node: node, y: shaftLayout.shaftY }), _jsx(Rings, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY }), _jsx(LatheBands, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY }), _jsx(Flutes, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY }), _jsx(LowerCarvedBand, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY }), _jsx(DravidianShaftPanels, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY }), _jsx(SpiralRibs, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY })] }), _jsxs(ColumnSlot, { slotId: "capital", children: [_jsx(Capital, { height: shaftLayout.capitalHeight, node: node, y: shaftLayout.baseHeight + shaftLayout.shaftHeight }), _jsx(CapitalCarvings, { capitalHeight: shaftLayout.capitalHeight, capitalY: shaftLayout.baseHeight + shaftLayout.shaftHeight, node: node })] })] }));
945
+ }
946
+ /**
947
+ * Translucent, non-interactive ghost of a column — the placement tool's
948
+ * cursor preview, mirroring `ShelfPreview`. Builds the same geometry tree
949
+ * as the real renderer via `<ColumnBody>` but:
950
+ * - clones the material and makes it transparent (cloning is required:
951
+ * `createLegacyColumnMaterial` can hand back a shared/cached instance, and
952
+ * mutating it would turn every committed column see-through);
953
+ * - disables raycast on every mesh so the ghost doesn't intercept the
954
+ * placement cursor ray (which would stall `grid:move`);
955
+ * - renders at the local origin so the caller's cursor group positions it.
956
+ */
957
+ export const ColumnPreview = ({ node }) => {
958
+ const shading = useViewer((state) => state.shading);
959
+ const textures = useViewer((state) => state.textures);
960
+ const colorPreset = useViewer((state) => state.colorPreset);
961
+ const groupRef = useRef(null);
962
+ const materials = useMemo(() => {
963
+ const ghost = createLegacyColumnMaterial({
964
+ material: node.material,
965
+ materialPreset: node.materialPreset,
966
+ shading,
967
+ textures,
968
+ colorPreset,
969
+ }).clone();
970
+ ghost.transparent = true;
971
+ ghost.opacity = 0.5;
972
+ ghost.depthWrite = false;
973
+ return createSingleColumnMaterialMap(ghost);
974
+ }, [shading, textures, colorPreset, node.material, node.materialPreset]);
975
+ useEffect(() => () => {
976
+ for (const material of new Set(Object.values(materials)))
977
+ material.dispose();
978
+ }, [materials]);
979
+ // Strip pointer events off the freshly-built meshes every render — the
980
+ // geometry tree rebuilds when the ghost's dimensions change, so a one-shot
981
+ // effect wouldn't cover later meshes.
982
+ useEffect(() => {
983
+ groupRef.current?.traverse((obj) => {
984
+ ;
985
+ obj.raycast = () => { };
986
+ });
987
+ });
988
+ return (_jsx(ColumnMaterialContext.Provider, { value: materials, children: _jsx(ColumnEdgeSoftnessContext.Provider, { value: node.edgeSoftness ?? 0.025, children: _jsx("group", { ref: groupRef, children: _jsx(ColumnBody, { node: node }) }) }) }));
989
+ };
990
+ export const ColumnRenderer = ({ node: rawNode }) => {
991
+ const ref = useRef(null);
992
+ // Merge any live drag override so width / depth / radius / height
993
+ // arrows update the mesh on every pointer move, with zustand only
994
+ // hearing the commit on release. Subscribes narrowly to this node's
995
+ // override entry; unrelated writes don't re-render.
996
+ const liveOverride = useLiveNodeOverrides((s) => s.overrides.get(rawNode.id));
997
+ const node = useMemo(() => (liveOverride ? { ...rawNode, ...liveOverride } : rawNode), [rawNode, liveOverride]);
998
+ const handlers = useNodeEvents(node, 'column');
999
+ const liveTransform = useLiveTransforms((state) => state.get(node.id));
1000
+ const shading = useViewer((state) => state.shading);
1001
+ const textures = useViewer((state) => state.textures);
1002
+ const colorPreset = useViewer((state) => state.colorPreset);
1003
+ const sceneMaterials = useScene((state) => state.materials);
1004
+ const materials = useMemo(() => createColumnSlotMaterials({
1005
+ material: node.material,
1006
+ materialPreset: node.materialPreset,
1007
+ node,
1008
+ sceneMaterials,
1009
+ shading,
1010
+ textures,
1011
+ colorPreset,
1012
+ }), [shading, textures, colorPreset, node, sceneMaterials]);
1013
+ useRegistry(node.id, node.type, ref);
1014
+ return (_jsx(ColumnMaterialContext.Provider, { value: materials, children: _jsx(ColumnEdgeSoftnessContext.Provider, { value: node.edgeSoftness ?? 0.025, children: _jsx("group", { position: liveTransform?.position ?? node.position, ref: ref, rotation: [0, liveTransform?.rotation ?? node.rotation, 0], visible: node.visible, ...handlers, children: _jsx(ColumnBody, { node: node }) }) }) }));
1015
+ };
1016
+ export default ColumnRenderer;