@pascal-app/nodes 1.0.5 → 1.0.7

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 (566) hide show
  1. package/README.md +1 -0
  2. package/dist/beam/actions/move-endpoint.d.ts +24 -0
  3. package/dist/beam/actions/move-endpoint.d.ts.map +1 -0
  4. package/dist/beam/actions/move-endpoint.js +54 -0
  5. package/dist/beam/definition.d.ts +14 -0
  6. package/dist/beam/definition.d.ts.map +1 -0
  7. package/dist/beam/definition.js +173 -0
  8. package/dist/beam/draft-settings.d.ts +17 -0
  9. package/dist/beam/draft-settings.d.ts.map +1 -0
  10. package/dist/beam/draft-settings.js +81 -0
  11. package/dist/beam/drafting.d.ts +35 -0
  12. package/dist/beam/drafting.d.ts.map +1 -0
  13. package/dist/beam/drafting.js +103 -0
  14. package/dist/beam/floorplan-affordances.d.ts +8 -0
  15. package/dist/beam/floorplan-affordances.d.ts.map +1 -0
  16. package/dist/beam/floorplan-affordances.js +40 -0
  17. package/dist/beam/floorplan-move.d.ts +11 -0
  18. package/dist/beam/floorplan-move.d.ts.map +1 -0
  19. package/dist/beam/floorplan-move.js +54 -0
  20. package/dist/beam/floorplan.d.ts +11 -0
  21. package/dist/beam/floorplan.d.ts.map +1 -0
  22. package/dist/beam/floorplan.js +91 -0
  23. package/dist/beam/geometry.d.ts +19 -0
  24. package/dist/beam/geometry.d.ts.map +1 -0
  25. package/dist/beam/geometry.js +63 -0
  26. package/dist/beam/index.d.ts +3 -0
  27. package/dist/beam/index.d.ts.map +1 -0
  28. package/dist/beam/index.js +2 -0
  29. package/dist/beam/move-endpoint-tool.d.ts +21 -0
  30. package/dist/beam/move-endpoint-tool.d.ts.map +1 -0
  31. package/dist/beam/move-endpoint-tool.js +49 -0
  32. package/dist/beam/move-tool.d.ts +12 -0
  33. package/dist/beam/move-tool.d.ts.map +1 -0
  34. package/dist/beam/move-tool.js +114 -0
  35. package/dist/beam/panel-model.d.ts +28 -0
  36. package/dist/beam/panel-model.d.ts.map +1 -0
  37. package/dist/beam/panel-model.js +123 -0
  38. package/dist/beam/panel.d.ts +13 -0
  39. package/dist/beam/panel.d.ts.map +1 -0
  40. package/dist/beam/panel.js +107 -0
  41. package/dist/beam/parametrics.d.ts +3 -0
  42. package/dist/beam/parametrics.d.ts.map +1 -0
  43. package/dist/beam/parametrics.js +4 -0
  44. package/dist/beam/renderer.d.ts +13 -0
  45. package/dist/beam/renderer.d.ts.map +1 -0
  46. package/dist/beam/renderer.js +36 -0
  47. package/dist/beam/schema.d.ts +2 -0
  48. package/dist/beam/schema.d.ts.map +1 -0
  49. package/dist/beam/schema.js +1 -0
  50. package/dist/beam/tool.d.ts +13 -0
  51. package/dist/beam/tool.d.ts.map +1 -0
  52. package/dist/beam/tool.js +152 -0
  53. package/dist/box-vent/panel.d.ts.map +1 -1
  54. package/dist/box-vent/panel.js +8 -7
  55. package/dist/cabinet/batchable.d.ts +10 -0
  56. package/dist/cabinet/batchable.d.ts.map +1 -0
  57. package/dist/cabinet/batchable.js +12 -0
  58. package/dist/cabinet/compartment-card.d.ts.map +1 -1
  59. package/dist/cabinet/compartment-card.js +142 -46
  60. package/dist/cabinet/countertop-layout.d.ts +5 -0
  61. package/dist/cabinet/countertop-layout.d.ts.map +1 -1
  62. package/dist/cabinet/definition.d.ts.map +1 -1
  63. package/dist/cabinet/definition.js +3 -0
  64. package/dist/cabinet/dimension-input.d.ts +6 -0
  65. package/dist/cabinet/dimension-input.d.ts.map +1 -0
  66. package/dist/cabinet/dimension-input.js +8 -0
  67. package/dist/cabinet/essential-controls.d.ts.map +1 -1
  68. package/dist/cabinet/essential-controls.js +82 -17
  69. package/dist/cabinet/index.d.ts +1 -1
  70. package/dist/cabinet/index.d.ts.map +1 -1
  71. package/dist/cabinet/index.js +1 -1
  72. package/dist/cabinet/kitchen-catalog.d.ts +17 -4
  73. package/dist/cabinet/kitchen-catalog.d.ts.map +1 -1
  74. package/dist/cabinet/kitchen-catalog.js +45 -7
  75. package/dist/cabinet/kitchen-collection.d.ts.map +1 -1
  76. package/dist/cabinet/kitchen-collection.js +21 -5
  77. package/dist/cabinet/kitchen-module-actions.d.ts.map +1 -1
  78. package/dist/cabinet/kitchen-module-actions.js +107 -14
  79. package/dist/cabinet/neighbor-placement.d.ts +10 -0
  80. package/dist/cabinet/neighbor-placement.d.ts.map +1 -1
  81. package/dist/cabinet/panel.d.ts.map +1 -1
  82. package/dist/cabinet/panel.js +127 -50
  83. package/dist/cabinet/run-finishing.d.ts +5 -0
  84. package/dist/cabinet/run-finishing.d.ts.map +1 -1
  85. package/dist/cabinet/run-ops.d.ts +5 -0
  86. package/dist/cabinet/run-ops.d.ts.map +1 -1
  87. package/dist/cabinet/run-panel.d.ts.map +1 -1
  88. package/dist/cabinet/run-panel.js +203 -52
  89. package/dist/cabinet/tool.d.ts.map +1 -1
  90. package/dist/cabinet/tool.js +8 -5
  91. package/dist/ceiling/build-up-section.d.ts +7 -0
  92. package/dist/ceiling/build-up-section.d.ts.map +1 -0
  93. package/dist/ceiling/build-up-section.js +57 -0
  94. package/dist/ceiling/definition.d.ts.map +1 -1
  95. package/dist/ceiling/definition.js +3 -1
  96. package/dist/ceiling/floorplan-affordances.d.ts +112 -0
  97. package/dist/ceiling/floorplan-affordances.d.ts.map +1 -1
  98. package/dist/ceiling/materials.d.ts +5 -0
  99. package/dist/ceiling/materials.d.ts.map +1 -1
  100. package/dist/ceiling/materials.js +17 -0
  101. package/dist/ceiling/panel-model.d.ts +13 -0
  102. package/dist/ceiling/panel-model.d.ts.map +1 -0
  103. package/dist/ceiling/panel-model.js +49 -0
  104. package/dist/ceiling/panel.d.ts.map +1 -1
  105. package/dist/ceiling/panel.js +82 -18
  106. package/dist/ceiling/renderer.d.ts.map +1 -1
  107. package/dist/ceiling/renderer.js +10 -4
  108. package/dist/ceiling/tool.d.ts.map +1 -1
  109. package/dist/ceiling/tool.js +24 -4
  110. package/dist/chimney/panel.d.ts.map +1 -1
  111. package/dist/chimney/panel.js +113 -41
  112. package/dist/column/definition.d.ts.map +1 -1
  113. package/dist/column/definition.js +3 -0
  114. package/dist/column/floorplan.d.ts.map +1 -1
  115. package/dist/column/floorplan.js +17 -0
  116. package/dist/column/hosted-resize.d.ts +28 -1
  117. package/dist/column/hosted-resize.d.ts.map +1 -1
  118. package/dist/column/panel.d.ts.map +1 -1
  119. package/dist/column/panel.js +125 -37
  120. package/dist/column/post-options.d.ts +10 -0
  121. package/dist/column/post-options.d.ts.map +1 -0
  122. package/dist/column/post-options.js +71 -0
  123. package/dist/column/post-placement.d.ts +78 -0
  124. package/dist/column/post-placement.d.ts.map +1 -0
  125. package/dist/column/post-placement.js +157 -0
  126. package/dist/column/post-section.d.ts +17 -0
  127. package/dist/column/post-section.d.ts.map +1 -0
  128. package/dist/column/post-section.js +95 -0
  129. package/dist/column/post-tool.d.ts +11 -0
  130. package/dist/column/post-tool.d.ts.map +1 -0
  131. package/dist/column/post-tool.js +94 -0
  132. package/dist/column/tool.d.ts +3 -10
  133. package/dist/column/tool.d.ts.map +1 -1
  134. package/dist/column/tool.js +13 -1
  135. package/dist/cupola/panel.d.ts.map +1 -1
  136. package/dist/cupola/panel.js +14 -7
  137. package/dist/door/actions.d.ts +7 -0
  138. package/dist/door/actions.d.ts.map +1 -0
  139. package/dist/door/actions.js +32 -0
  140. package/dist/door/contextual-dimensions.d.ts.map +1 -1
  141. package/dist/door/contextual-dimensions.js +11 -1
  142. package/dist/door/definition.d.ts.map +1 -1
  143. package/dist/door/definition.js +34 -7
  144. package/dist/door/floorplan-affordances.d.ts.map +1 -1
  145. package/dist/door/floorplan-affordances.js +5 -2
  146. package/dist/door/floorplan-move.d.ts.map +1 -1
  147. package/dist/door/floorplan-move.js +28 -6
  148. package/dist/door/floorplan.d.ts +2 -0
  149. package/dist/door/floorplan.d.ts.map +1 -1
  150. package/dist/door/floorplan.js +89 -16
  151. package/dist/door/move-tool.d.ts.map +1 -1
  152. package/dist/door/move-tool.js +60 -16
  153. package/dist/door/paint.d.ts +2 -7
  154. package/dist/door/paint.d.ts.map +1 -1
  155. package/dist/door/paint.js +26 -2
  156. package/dist/door/panel.d.ts.map +1 -1
  157. package/dist/door/panel.js +242 -90
  158. package/dist/door/parametrics.js +1 -1
  159. package/dist/door/placement.d.ts.map +1 -1
  160. package/dist/door/placement.js +9 -2
  161. package/dist/door/swing.d.ts +22 -0
  162. package/dist/door/swing.d.ts.map +1 -0
  163. package/dist/door/swing.js +36 -0
  164. package/dist/door/tool.d.ts.map +1 -1
  165. package/dist/door/tool.js +76 -29
  166. package/dist/dormer/panel-actions-section.d.ts.map +1 -1
  167. package/dist/dormer/panel-actions-section.js +3 -1
  168. package/dist/dormer/panel-position-section.d.ts.map +1 -1
  169. package/dist/dormer/panel-position-section.js +4 -3
  170. package/dist/dormer/panel-windows-section.d.ts.map +1 -1
  171. package/dist/dormer/panel-windows-section.js +38 -1
  172. package/dist/dormer/panel.d.ts.map +1 -1
  173. package/dist/dormer/panel.js +24 -18
  174. package/dist/downspout/inspector-editors.d.ts.map +1 -1
  175. package/dist/downspout/inspector-editors.js +3 -2
  176. package/dist/duct-fitting/inspector-editors.d.ts.map +1 -1
  177. package/dist/duct-fitting/inspector-editors.js +6 -1
  178. package/dist/duct-fitting/tool.d.ts.map +1 -1
  179. package/dist/duct-fitting/tool.js +11 -2
  180. package/dist/duct-terminal/tool.d.ts.map +1 -1
  181. package/dist/duct-terminal/tool.js +11 -2
  182. package/dist/elevator/panel.d.ts.map +1 -1
  183. package/dist/elevator/panel.js +41 -18
  184. package/dist/eyebrow-vent/panel.d.ts.map +1 -1
  185. package/dist/eyebrow-vent/panel.js +16 -6
  186. package/dist/fence/drafting.d.ts +2 -3
  187. package/dist/fence/drafting.d.ts.map +1 -1
  188. package/dist/fence/drafting.js +2 -3
  189. package/dist/fence/inspector-editors.d.ts.map +1 -1
  190. package/dist/fence/inspector-editors.js +64 -21
  191. package/dist/fence/move-endpoint-tool.d.ts.map +1 -1
  192. package/dist/fence/move-endpoint-tool.js +11 -2
  193. package/dist/fence/system.d.ts.map +1 -1
  194. package/dist/fence/system.js +13 -0
  195. package/dist/fence-feature/actions.d.ts.map +1 -1
  196. package/dist/fence-feature/actions.js +5 -2
  197. package/dist/fence-feature/inspector.d.ts.map +1 -1
  198. package/dist/fence-feature/inspector.js +150 -34
  199. package/dist/fence-feature/move-session.d.ts +1 -1
  200. package/dist/floor-opening/floorplan.d.ts +29 -6
  201. package/dist/floor-opening/floorplan.d.ts.map +1 -1
  202. package/dist/floor-opening/floorplan.js +172 -14
  203. package/dist/gutter/downspouts-panel.d.ts.map +1 -1
  204. package/dist/gutter/downspouts-panel.js +14 -2
  205. package/dist/hvac-equipment/tool.d.ts.map +1 -1
  206. package/dist/hvac-equipment/tool.js +3 -2
  207. package/dist/i18n/definition-messages.d.ts +5 -0
  208. package/dist/i18n/definition-messages.d.ts.map +1 -0
  209. package/dist/i18n/definition-messages.js +771 -0
  210. package/dist/index.d.ts +4 -1
  211. package/dist/index.d.ts.map +1 -1
  212. package/dist/index.js +6 -1
  213. package/dist/item/authored-params.d.ts.map +1 -1
  214. package/dist/item/authored-params.js +19 -4
  215. package/dist/item/floorplan.d.ts +1 -1
  216. package/dist/item/floorplan.d.ts.map +1 -1
  217. package/dist/item/panel.d.ts.map +1 -1
  218. package/dist/item/panel.js +9 -7
  219. package/dist/liquid-line/tool.d.ts.map +1 -1
  220. package/dist/liquid-line/tool.js +10 -3
  221. package/dist/measurement/tool.d.ts +1 -1
  222. package/dist/measurement/tool.d.ts.map +1 -1
  223. package/dist/measurement/tool.js +8 -8
  224. package/dist/pipe-fitting/tool.d.ts.map +1 -1
  225. package/dist/pipe-fitting/tool.js +3 -2
  226. package/dist/pipe-trap/tool.d.ts.map +1 -1
  227. package/dist/pipe-trap/tool.js +7 -2
  228. package/dist/procedural-item/renderer.d.ts.map +1 -1
  229. package/dist/procedural-item/renderer.js +8 -1
  230. package/dist/ridge-vent/panel.d.ts.map +1 -1
  231. package/dist/ridge-vent/panel.js +22 -9
  232. package/dist/roof/barrel-panel.d.ts.map +1 -1
  233. package/dist/roof/barrel-panel.js +7 -3
  234. package/dist/roof/definition.d.ts.map +1 -1
  235. package/dist/roof/definition.js +33 -3
  236. package/dist/roof/floorplan-overrides.d.ts +22 -0
  237. package/dist/roof/floorplan-overrides.d.ts.map +1 -0
  238. package/dist/roof/floorplan-overrides.js +46 -0
  239. package/dist/roof/floorplan-tool.d.ts +9 -0
  240. package/dist/roof/floorplan-tool.d.ts.map +1 -0
  241. package/dist/roof/floorplan-tool.js +168 -0
  242. package/dist/roof/floorplan.d.ts.map +1 -1
  243. package/dist/roof/floorplan.js +131 -41
  244. package/dist/roof/glazing-controls.d.ts +2 -1
  245. package/dist/roof/glazing-controls.d.ts.map +1 -1
  246. package/dist/roof/glazing-controls.js +51 -13
  247. package/dist/roof/glazing-panel-editor.d.ts.map +1 -1
  248. package/dist/roof/glazing-panel-editor.js +40 -13
  249. package/dist/roof/glazing-panel.d.ts.map +1 -1
  250. package/dist/roof/glazing-panel.js +73 -9
  251. package/dist/roof/paint.d.ts +19 -0
  252. package/dist/roof/paint.d.ts.map +1 -0
  253. package/dist/roof/paint.js +158 -0
  254. package/dist/roof/panel.d.ts.map +1 -1
  255. package/dist/roof/panel.js +90 -22
  256. package/dist/roof/renderer.d.ts.map +1 -1
  257. package/dist/roof/renderer.js +13 -2
  258. package/dist/roof/roof-footprint-source.d.ts +17 -0
  259. package/dist/roof/roof-footprint-source.d.ts.map +1 -1
  260. package/dist/roof/roof-footprint-source.js +14 -0
  261. package/dist/roof/roof-footprint.d.ts +36 -2
  262. package/dist/roof/roof-footprint.d.ts.map +1 -1
  263. package/dist/roof/roof-footprint.js +124 -2
  264. package/dist/roof/roof-materials.d.ts.map +1 -1
  265. package/dist/roof/roof-materials.js +10 -1
  266. package/dist/roof/roof-placement-mode.d.ts +0 -2
  267. package/dist/roof/roof-placement-mode.d.ts.map +1 -1
  268. package/dist/roof/roof-placement-mode.js +8 -6
  269. package/dist/roof/roof-plan-creases.d.ts +50 -0
  270. package/dist/roof/roof-plan-creases.d.ts.map +1 -0
  271. package/dist/roof/roof-plan-creases.js +194 -0
  272. package/dist/roof/roof-ridge-mode.d.ts +20 -0
  273. package/dist/roof/roof-ridge-mode.d.ts.map +1 -0
  274. package/dist/roof/roof-ridge-mode.js +16 -0
  275. package/dist/roof/tool.d.ts +17 -4
  276. package/dist/roof/tool.d.ts.map +1 -1
  277. package/dist/roof/tool.js +211 -113
  278. package/dist/roof/wall-catch.d.ts +106 -0
  279. package/dist/roof/wall-catch.d.ts.map +1 -0
  280. package/dist/roof/wall-catch.js +267 -0
  281. package/dist/roof-segment/build-up-section.d.ts +9 -0
  282. package/dist/roof-segment/build-up-section.d.ts.map +1 -0
  283. package/dist/roof-segment/build-up-section.js +191 -0
  284. package/dist/roof-segment/definition.d.ts.map +1 -1
  285. package/dist/roof-segment/definition.js +50 -5
  286. package/dist/roof-segment/floorplan-affordances.d.ts.map +1 -1
  287. package/dist/roof-segment/floorplan-affordances.js +68 -19
  288. package/dist/roof-segment/floorplan.d.ts.map +1 -1
  289. package/dist/roof-segment/floorplan.js +16 -12
  290. package/dist/roof-segment/paint.d.ts +3 -1
  291. package/dist/roof-segment/paint.d.ts.map +1 -1
  292. package/dist/roof-segment/paint.js +43 -2
  293. package/dist/roof-segment/panel-model.d.ts +23 -0
  294. package/dist/roof-segment/panel-model.d.ts.map +1 -0
  295. package/dist/roof-segment/panel-model.js +64 -0
  296. package/dist/roof-segment/panel.d.ts.map +1 -1
  297. package/dist/roof-segment/panel.js +96 -14
  298. package/dist/roof-segment/parametrics.d.ts.map +1 -1
  299. package/dist/roof-segment/parametrics.js +4 -0
  300. package/dist/roof-segment/renderer.d.ts.map +1 -1
  301. package/dist/roof-segment/renderer.js +26 -5
  302. package/dist/separator/definition.d.ts.map +1 -1
  303. package/dist/separator/definition.js +10 -12
  304. package/dist/separator/floorplan-affordances.d.ts +9 -0
  305. package/dist/separator/floorplan-affordances.d.ts.map +1 -0
  306. package/dist/separator/floorplan-affordances.js +23 -0
  307. package/dist/separator/floorplan.d.ts +9 -0
  308. package/dist/separator/floorplan.d.ts.map +1 -0
  309. package/dist/separator/floorplan.js +54 -0
  310. package/dist/separator/renderer.d.ts +4 -0
  311. package/dist/separator/renderer.d.ts.map +1 -1
  312. package/dist/separator/renderer.js +21 -6
  313. package/dist/separator/selection.d.ts +10 -0
  314. package/dist/separator/selection.d.ts.map +1 -0
  315. package/dist/separator/selection.js +35 -0
  316. package/dist/shared/build-up-controls.d.ts +88 -0
  317. package/dist/shared/build-up-controls.d.ts.map +1 -0
  318. package/dist/shared/build-up-controls.js +139 -0
  319. package/dist/shared/curtain-opening-limits.d.ts.map +1 -1
  320. package/dist/shared/curtain-opening-limits.js +44 -14
  321. package/dist/shared/item-interaction-actions.d.ts.map +1 -1
  322. package/dist/shared/item-interaction-actions.js +11 -2
  323. package/dist/shared/layer-thickness.d.ts +2 -0
  324. package/dist/shared/layer-thickness.d.ts.map +1 -0
  325. package/dist/shared/layer-thickness.js +3 -0
  326. package/dist/shared/move-roof-tool.d.ts.map +1 -1
  327. package/dist/shared/move-roof-tool.js +100 -5
  328. package/dist/shared/node-batch/batchable.d.ts +2 -0
  329. package/dist/shared/node-batch/batchable.d.ts.map +1 -1
  330. package/dist/shared/node-batch/batchable.js +4 -0
  331. package/dist/shared/node-batch/candidates.d.ts +21 -5
  332. package/dist/shared/node-batch/candidates.d.ts.map +1 -1
  333. package/dist/shared/node-batch/candidates.js +85 -50
  334. package/dist/shared/node-batch/system.d.ts.map +1 -1
  335. package/dist/shared/node-batch/system.js +24 -15
  336. package/dist/shared/opening-casing-move.d.ts +16 -0
  337. package/dist/shared/opening-casing-move.d.ts.map +1 -0
  338. package/dist/shared/opening-casing-move.js +33 -0
  339. package/dist/shared/opening-casing-section.d.ts +15 -0
  340. package/dist/shared/opening-casing-section.d.ts.map +1 -0
  341. package/dist/shared/opening-casing-section.js +38 -0
  342. package/dist/shared/opening-casing.d.ts +26 -0
  343. package/dist/shared/opening-casing.d.ts.map +1 -0
  344. package/dist/shared/opening-casing.js +80 -0
  345. package/dist/shared/opening-depth-position.d.ts +13 -0
  346. package/dist/shared/opening-depth-position.d.ts.map +1 -0
  347. package/dist/shared/opening-depth-position.js +34 -0
  348. package/dist/shared/opening-documentation.d.ts.map +1 -1
  349. package/dist/shared/opening-documentation.js +17 -8
  350. package/dist/shared/opening-guides-runtime.d.ts +2 -1
  351. package/dist/shared/opening-guides-runtime.d.ts.map +1 -1
  352. package/dist/shared/opening-guides-runtime.js +11 -7
  353. package/dist/shared/opening-labels.d.ts +11 -0
  354. package/dist/shared/opening-labels.d.ts.map +1 -0
  355. package/dist/shared/opening-labels.js +46 -0
  356. package/dist/shared/opening-placement-dimensions.d.ts.map +1 -1
  357. package/dist/shared/opening-placement-dimensions.js +11 -9
  358. package/dist/shared/opening-plane-offset.d.ts +4 -3
  359. package/dist/shared/opening-plane-offset.d.ts.map +1 -1
  360. package/dist/shared/opening-plane-offset.js +7 -4
  361. package/dist/shared/opening-swap.d.ts +8 -0
  362. package/dist/shared/opening-swap.d.ts.map +1 -0
  363. package/dist/shared/opening-swap.js +18 -0
  364. package/dist/shared/polygon-vertex-affordance.d.ts +19 -0
  365. package/dist/shared/polygon-vertex-affordance.d.ts.map +1 -1
  366. package/dist/shared/polygon-vertex-affordance.js +65 -6
  367. package/dist/shared/roof-opening-host.d.ts +2 -1
  368. package/dist/shared/roof-opening-host.d.ts.map +1 -1
  369. package/dist/shared/roof-opening-host.js +14 -5
  370. package/dist/shared/roof-wall-opening-cut.d.ts.map +1 -1
  371. package/dist/shared/roof-wall-opening-cut.js +14 -6
  372. package/dist/shared/roof-wall-opening-placement.d.ts +2 -1
  373. package/dist/shared/roof-wall-opening-placement.d.ts.map +1 -1
  374. package/dist/shared/roof-wall-opening-placement.js +6 -4
  375. package/dist/shared/run-hanger-inspector.d.ts.map +1 -1
  376. package/dist/shared/run-hanger-inspector.js +39 -5
  377. package/dist/shared/system-check-panel.d.ts.map +1 -1
  378. package/dist/shared/system-check-panel.js +94 -15
  379. package/dist/shared/wall-attach-target.d.ts.map +1 -1
  380. package/dist/shared/wall-attach-target.js +6 -3
  381. package/dist/shelf/definition.d.ts.map +1 -1
  382. package/dist/shelf/definition.js +2 -0
  383. package/dist/site/ground-hole.d.ts +3 -3
  384. package/dist/site/ground-hole.js +3 -3
  385. package/dist/site/ground-veil.d.ts +5 -12
  386. package/dist/site/ground-veil.d.ts.map +1 -1
  387. package/dist/site/ground-veil.js +9 -33
  388. package/dist/site/panel.d.ts.map +1 -1
  389. package/dist/site/panel.js +52 -12
  390. package/dist/site/renderer.d.ts.map +1 -1
  391. package/dist/site/renderer.js +52 -23
  392. package/dist/skylight/panel.d.ts.map +1 -1
  393. package/dist/skylight/panel.js +49 -19
  394. package/dist/slab/deck-geometry.d.ts +28 -0
  395. package/dist/slab/deck-geometry.d.ts.map +1 -0
  396. package/dist/slab/deck-geometry.js +320 -0
  397. package/dist/slab/definition.d.ts +2 -1
  398. package/dist/slab/definition.d.ts.map +1 -1
  399. package/dist/slab/definition.js +6 -1
  400. package/dist/slab/dependency-tracker.d.ts.map +1 -1
  401. package/dist/slab/dependency-tracker.js +3 -0
  402. package/dist/slab/floorplan-affordances.d.ts +500 -0
  403. package/dist/slab/floorplan-affordances.d.ts.map +1 -1
  404. package/dist/slab/geometry.d.ts.map +1 -1
  405. package/dist/slab/geometry.js +46 -9
  406. package/dist/slab/panel.d.ts.map +1 -1
  407. package/dist/slab/panel.js +97 -21
  408. package/dist/slab/renderer.d.ts +11 -0
  409. package/dist/slab/renderer.d.ts.map +1 -0
  410. package/dist/slab/renderer.js +19 -0
  411. package/dist/slab/system.d.ts.map +1 -1
  412. package/dist/slab/system.js +12 -1
  413. package/dist/solar-panel/panel.d.ts.map +1 -1
  414. package/dist/solar-panel/panel.js +49 -14
  415. package/dist/stair/construction-controls.d.ts +3 -1
  416. package/dist/stair/construction-controls.d.ts.map +1 -1
  417. package/dist/stair/construction-controls.js +75 -12
  418. package/dist/stair/paint.d.ts +6 -0
  419. package/dist/stair/paint.d.ts.map +1 -1
  420. package/dist/stair/panel.d.ts.map +1 -1
  421. package/dist/stair/panel.js +243 -51
  422. package/dist/stair/parametrics.d.ts.map +1 -1
  423. package/dist/stair/parametrics.js +7 -0
  424. package/dist/stair/placement-defaults.d.ts +18 -0
  425. package/dist/stair/placement-defaults.d.ts.map +1 -0
  426. package/dist/stair/placement-defaults.js +27 -0
  427. package/dist/stair/railing-controls.d.ts.map +1 -1
  428. package/dist/stair/railing-controls.js +78 -18
  429. package/dist/stair/renderer.d.ts.map +1 -1
  430. package/dist/stair/renderer.js +16 -10
  431. package/dist/stair/structure-controls.d.ts +18 -0
  432. package/dist/stair/structure-controls.d.ts.map +1 -0
  433. package/dist/stair/structure-controls.js +275 -0
  434. package/dist/stair/tool.d.ts.map +1 -1
  435. package/dist/stair/tool.js +13 -9
  436. package/dist/stair/use-stair-render-data.d.ts +41 -0
  437. package/dist/stair/use-stair-render-data.d.ts.map +1 -1
  438. package/dist/stair-segment/panel.d.ts.map +1 -1
  439. package/dist/stair-segment/panel.js +65 -18
  440. package/dist/turbine-vent/panel.d.ts.map +1 -1
  441. package/dist/turbine-vent/panel.js +14 -5
  442. package/dist/unit/unit-panel.d.ts.map +1 -1
  443. package/dist/unit/unit-panel.js +28 -12
  444. package/dist/wall/actions.d.ts +1 -1
  445. package/dist/wall/actions.d.ts.map +1 -1
  446. package/dist/wall/actions.js +17 -13
  447. package/dist/wall/construction-dimensions.d.ts +6 -0
  448. package/dist/wall/construction-dimensions.d.ts.map +1 -1
  449. package/dist/wall/construction-dimensions.js +8 -0
  450. package/dist/wall/contextual-dimensions.d.ts +6 -0
  451. package/dist/wall/contextual-dimensions.d.ts.map +1 -1
  452. package/dist/wall/contextual-dimensions.js +104 -17
  453. package/dist/wall/curtain-opening-frame.d.ts.map +1 -1
  454. package/dist/wall/curtain-opening-frame.js +6 -4
  455. package/dist/wall/curtain-wall-layout.d.ts +1 -1
  456. package/dist/wall/curtain-wall-layout.d.ts.map +1 -1
  457. package/dist/wall/curtain-wall-layout.js +6 -4
  458. package/dist/wall/curtain-wall-materials.d.ts.map +1 -1
  459. package/dist/wall/curtain-wall-materials.js +8 -3
  460. package/dist/wall/curtain-wall-panel.d.ts.map +1 -1
  461. package/dist/wall/curtain-wall-panel.js +241 -37
  462. package/dist/wall/curve-tool.d.ts.map +1 -1
  463. package/dist/wall/curve-tool.js +2 -3
  464. package/dist/wall/definition.d.ts.map +1 -1
  465. package/dist/wall/definition.js +20 -5
  466. package/dist/wall/floorplan-affordances.d.ts.map +1 -1
  467. package/dist/wall/floorplan-affordances.js +9 -6
  468. package/dist/wall/floorplan-move.d.ts.map +1 -1
  469. package/dist/wall/floorplan-move.js +66 -16
  470. package/dist/wall/floorplan.d.ts +4 -5
  471. package/dist/wall/floorplan.d.ts.map +1 -1
  472. package/dist/wall/floorplan.js +62 -46
  473. package/dist/wall/move-endpoint-tool.d.ts.map +1 -1
  474. package/dist/wall/move-endpoint-tool.js +1 -0
  475. package/dist/wall/move-tool.d.ts.map +1 -1
  476. package/dist/wall/move-tool.js +77 -12
  477. package/dist/wall/paint.d.ts +2 -2
  478. package/dist/wall/paint.d.ts.map +1 -1
  479. package/dist/wall/paint.js +11 -4
  480. package/dist/wall/panel-model.d.ts +17 -2
  481. package/dist/wall/panel-model.d.ts.map +1 -1
  482. package/dist/wall/panel-model.js +158 -18
  483. package/dist/wall/panel.d.ts +8 -0
  484. package/dist/wall/panel.d.ts.map +1 -1
  485. package/dist/wall/panel.js +228 -156
  486. package/dist/wall/parametrics.d.ts +1 -1
  487. package/dist/wall/parametrics.d.ts.map +1 -1
  488. package/dist/wall/parametrics.js +14 -1
  489. package/dist/wall/railing-wall-adapter.d.ts +7 -0
  490. package/dist/wall/railing-wall-adapter.d.ts.map +1 -0
  491. package/dist/wall/railing-wall-adapter.js +38 -0
  492. package/dist/wall/railing-wall-floorplan.d.ts +8 -0
  493. package/dist/wall/railing-wall-floorplan.d.ts.map +1 -0
  494. package/dist/wall/railing-wall-floorplan.js +27 -0
  495. package/dist/wall/railing-wall-geometry.d.ts +12 -0
  496. package/dist/wall/railing-wall-geometry.d.ts.map +1 -0
  497. package/dist/wall/railing-wall-geometry.js +51 -0
  498. package/dist/wall/railing-wall-guard.d.ts +81 -0
  499. package/dist/wall/railing-wall-guard.d.ts.map +1 -0
  500. package/dist/wall/railing-wall-guard.js +435 -0
  501. package/dist/wall/railing-wall-materials.d.ts +11 -0
  502. package/dist/wall/railing-wall-materials.d.ts.map +1 -0
  503. package/dist/wall/railing-wall-materials.js +31 -0
  504. package/dist/wall/railing-wall-panel-model.d.ts +30 -0
  505. package/dist/wall/railing-wall-panel-model.d.ts.map +1 -0
  506. package/dist/wall/railing-wall-panel-model.js +117 -0
  507. package/dist/wall/railing-wall-panel.d.ts +17 -0
  508. package/dist/wall/railing-wall-panel.d.ts.map +1 -0
  509. package/dist/wall/railing-wall-panel.js +42 -0
  510. package/dist/wall/rectangle-command.d.ts +79 -1
  511. package/dist/wall/rectangle-command.d.ts.map +1 -1
  512. package/dist/wall/rectangle-tool.d.ts.map +1 -1
  513. package/dist/wall/rectangle-tool.js +2 -0
  514. package/dist/wall/renderer.d.ts.map +1 -1
  515. package/dist/wall/renderer.js +3 -1
  516. package/dist/wall/skirting-floor-gaps.d.ts +8 -0
  517. package/dist/wall/skirting-floor-gaps.d.ts.map +1 -0
  518. package/dist/wall/skirting-floor-gaps.js +36 -0
  519. package/dist/wall/system.d.ts +0 -14
  520. package/dist/wall/system.d.ts.map +1 -1
  521. package/dist/wall/system.js +6 -1
  522. package/dist/wall/tool.d.ts +16 -0
  523. package/dist/wall/tool.d.ts.map +1 -1
  524. package/dist/wall/tool.js +160 -47
  525. package/dist/wall/treatments.d.ts +3 -0
  526. package/dist/wall/treatments.d.ts.map +1 -1
  527. package/dist/wall/treatments.js +30 -7
  528. package/dist/window/actions.d.ts +7 -0
  529. package/dist/window/actions.d.ts.map +1 -0
  530. package/dist/window/actions.js +29 -0
  531. package/dist/window/definition.d.ts.map +1 -1
  532. package/dist/window/definition.js +11 -2
  533. package/dist/window/floorplan-move.d.ts.map +1 -1
  534. package/dist/window/floorplan-move.js +5 -0
  535. package/dist/window/floorplan.d.ts +2 -0
  536. package/dist/window/floorplan.d.ts.map +1 -1
  537. package/dist/window/floorplan.js +58 -1
  538. package/dist/window/mechanism.d.ts.map +1 -1
  539. package/dist/window/mechanism.js +21 -1
  540. package/dist/window/move-tool.d.ts.map +1 -1
  541. package/dist/window/move-tool.js +10 -3
  542. package/dist/window/paint.d.ts +2 -7
  543. package/dist/window/paint.d.ts.map +1 -1
  544. package/dist/window/paint.js +31 -3
  545. package/dist/window/panel.d.ts.map +1 -1
  546. package/dist/window/panel.js +311 -69
  547. package/dist/window/placement.d.ts.map +1 -1
  548. package/dist/window/placement.js +5 -1
  549. package/dist/window/swing.d.ts +13 -0
  550. package/dist/window/swing.d.ts.map +1 -0
  551. package/dist/window/swing.js +16 -0
  552. package/dist/window/tool.d.ts.map +1 -1
  553. package/dist/window/tool.js +19 -14
  554. package/dist/zone/floorplan-affordances.d.ts +136 -0
  555. package/dist/zone/floorplan-affordances.d.ts.map +1 -1
  556. package/dist/zone/quantities-panel.d.ts.map +1 -1
  557. package/dist/zone/quantities-panel.js +34 -9
  558. package/dist/zone/renderer.d.ts.map +1 -1
  559. package/dist/zone/renderer.js +9 -5
  560. package/package.json +14 -14
  561. package/dist/site/generic-foundation-geometry.d.ts +0 -16
  562. package/dist/site/generic-foundation-geometry.d.ts.map +0 -1
  563. package/dist/site/generic-foundation-geometry.js +0 -75
  564. package/dist/site/generic-foundation.d.ts +0 -4
  565. package/dist/site/generic-foundation.d.ts.map +0 -1
  566. package/dist/site/generic-foundation.js +0 -91
@@ -1,14 +1,38 @@
1
- import { createSlotPaintCapability, previewSlotByUserData, resolveSlotByReRaycast, } from '../shared/slot-paint.js';
1
+ import { slotDefaultPaintMaterial, slotPaintMaterial } from '@pascal-app/core';
2
+ import { openingCasingPaintLabel } from '../shared/opening-casing.js';
3
+ import { createSlotPaintCapability, declaredSlotLook, previewSlotByUserData, resolveSlotByReRaycast, } from '../shared/slot-paint.js';
2
4
  /**
3
5
  * Door paint on the unified slot model. The door's opening proxy (a proud,
4
6
  * invisible cutout) wins the shared scene raycast over the wall in front of the
5
7
  * recessed door body, so `resolveSlotByReRaycast` re-raycasts the door's own
6
8
  * subtree to find the part (panel / frame / glass / hardware) under the cursor.
7
9
  */
8
- export const doorPaint = createSlotPaintCapability({
10
+ const base = createSlotPaintCapability({
9
11
  resolveRole: resolveSlotByReRaycast,
10
12
  applyPreview: previewSlotByUserData,
13
+ erasedLook: ({ node, role, materials = {} }) => {
14
+ if (role !== 'casing-a' && role !== 'casing-b')
15
+ return declaredSlotLook(node, role);
16
+ if (node.type !== 'door' || node.source)
17
+ return null;
18
+ const frame = slotPaintMaterial(node.slots?.frame, materials) ?? slotDefaultPaintMaterial(node.slots?.frame);
19
+ if (frame)
20
+ return frame;
21
+ if (node.material)
22
+ return { material: node.material };
23
+ return declaredSlotLook(node, 'frame');
24
+ },
11
25
  legacyEffective: (node, role) => node.type === 'door' && !node.source && node.material && (role === 'panel' || role === 'frame')
12
26
  ? { material: node.material, materialPreset: undefined }
13
27
  : null,
14
28
  });
29
+ export const doorPaint = {
30
+ ...base,
31
+ roleLabel: (_node, role) => openingCasingPaintLabel(role),
32
+ getEffectiveMaterial: (args) => {
33
+ const own = base.getEffectiveMaterial?.(args);
34
+ if (own || (args.role !== 'casing-a' && args.role !== 'casing-b'))
35
+ return own ?? null;
36
+ return base.getEffectiveMaterial?.({ ...args, role: 'frame' }) ?? null;
37
+ },
38
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../src/door/panel.tsx"],"names":[],"mappings":"AAiEA,MAAM,CAAC,OAAO,UAAU,SAAS,uCAogChC"}
1
+ {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../src/door/panel.tsx"],"names":[],"mappings":"AA0HA,MAAM,CAAC,OAAO,UAAU,SAAS,uCA2uChC"}
@@ -1,21 +1,70 @@
1
1
  'use client';
2
2
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { scriptImages, useInteractive, useScene, } from '@pascal-app/core';
4
- import { DOOR_STYLE_LABELS, DOOR_STYLES, doorStyleLook, doorStylesOf, doorTypeChange, } from '@pascal-app/core/building';
5
- import { ActionButton, ActionGroup, cn, duplicateNodeAndPickUp, PanelSection, PanelWrapper, SegmentedControl, SliderControl, ToggleControl, triggerSFX, useEditor, } from '@pascal-app/editor';
3
+ import { doorHandleStyle, doorPositionForFacing, isAutoFrameDepth, resolveHostedOpeningFrameDepth, scriptImages, useInteractive, usePascalI18n, useScene, } from '@pascal-app/core';
4
+ import { DOOR_STYLES, doorStyleLook, doorStylesOf, doorTypeChange } from '@pascal-app/core/building';
5
+ import { ActionButton, ActionGroup, cn, duplicateNodeAndPickUp, FinishSwatch, PanelSection, PanelWrapper, SegmentedControl, SliderControl, ToggleControl, triggerSFX, useEditor, } from '@pascal-app/editor';
6
6
  import { useViewer } from '@pascal-app/viewer';
7
7
  import { Copy, DoorOpen, FlipHorizontal2, Move, Trash2 } from 'lucide-react';
8
8
  import { useCallback, useEffect, useMemo } from 'react';
9
9
  import { AuthoredParams } from '../item/authored-params.js';
10
10
  import { constrainCurtainOpening, curtainOpeningLimits } from '../shared/curtain-opening-limits.js';
11
+ import { OpeningCasingSection } from '../shared/opening-casing-section.js';
12
+ import { OpeningDepthPositionControl } from '../shared/opening-depth-position.js';
13
+ import { DOOR_STYLE_MESSAGES } from '../shared/opening-labels.js';
11
14
  import { createOpeningPropertyPreview } from '../shared/opening-property-preview.js';
12
15
  import { openingPropertyPreviewHost } from '../shared/opening-property-preview-host.js';
13
16
  import { scaleHandleHeight } from './door-math.js';
14
17
  import { doorTypeOptions } from './placement.js';
18
+ import { hingesSidePatch } from './swing.js';
19
+ /** The type cards' names; `doorTypeOptions` keeps English for the placement chips. */
20
+ const DOOR_TYPE_LABELS = {
21
+ hinged: /* i18n */ { id: 'node.door.type.hinged', message: 'Hinged' },
22
+ double: /* i18n */ { id: 'node.door.type.double', message: 'Double' },
23
+ french: /* i18n */ { id: 'node.door.type.french', message: 'French' },
24
+ folding: /* i18n */ { id: 'node.door.type.folding', message: 'Folding' },
25
+ pocket: /* i18n */ { id: 'node.door.type.pocket', message: 'Pocket' },
26
+ barn: /* i18n */ { id: 'node.door.type.barn', message: 'Barn' },
27
+ sliding: /* i18n */ { id: 'node.door.type.sliding', message: 'Sliding' },
28
+ 'garage-sectional': /* i18n */ { id: 'node.door.type.garageSectional', message: 'Sectional' },
29
+ 'garage-rollup': /* i18n */ { id: 'node.door.type.garageRollup', message: 'Roll-up' },
30
+ 'garage-tiltup': /* i18n */ { id: 'node.door.type.garageTiltup', message: 'Tilt-up' },
31
+ };
32
+ const HANDLE_STYLE_LABELS = {
33
+ lever: /* i18n */ { id: 'node.door.panel.handleLever', message: 'Lever' },
34
+ 'lever-curved': /* i18n */ {
35
+ id: 'node.door.panel.handleLeverCurved',
36
+ message: 'Curved lever',
37
+ },
38
+ knob: /* i18n */ { id: 'node.door.panel.handleKnob', message: 'Knob' },
39
+ bar: /* i18n */ { id: 'node.door.panel.handleBar', message: 'Bar' },
40
+ plate: /* i18n */ { id: 'node.door.panel.handlePlate', message: 'Plate' },
41
+ };
42
+ const HANDLE_STYLES = Object.keys(HANDLE_STYLE_LABELS);
43
+ // The leaf profile clamps a raised or recessed field to 12 mm (viewer door/leaf-profile.ts); below
44
+ // zero the field is recessed.
45
+ const PANEL_DEPTH_MAX = 0.012;
46
+ // Fixed lights beside and above a swing door's leaf; 0 is none.
47
+ const SIDELIGHT_MAX = 0.6;
48
+ // The hardware slot's declared default (packages/core/src/node-slots/door.ts), shown as "Default".
49
+ const HARDWARE_FINISH_DEFAULT = 'library:metal-chrome';
50
+ // What the viewer draws for each stored leaf count (door-system `slidingPanels`, folding chain).
51
+ const FOLDING_PANEL_COUNTS = [2, 4, 6, 8];
52
+ const SLIDING_PANEL_COUNTS = [2, 3, 4];
53
+ const foldingPanelCount = (leafCount) => leafCount >= 6 ? leafCount : leafCount === 2 ? 2 : 4;
54
+ const slidingPanelCount = (leafCount) => Math.max(2, Math.min(4, leafCount));
15
55
  const garageDoorTypeOptions = [
16
- { label: 'Sectional', value: 'garage-sectional', available: true },
17
- { label: 'Roll-up', value: 'garage-rollup', available: true },
18
- { label: 'Tilt-up', value: 'garage-tiltup', available: true },
56
+ {
57
+ value: 'garage-sectional',
58
+ available: true,
59
+ },
60
+ {
61
+ value: 'garage-rollup',
62
+ available: true,
63
+ },
64
+ {
65
+ value: 'garage-tiltup',
66
+ available: true,
67
+ },
19
68
  ];
20
69
  function isSameDoorValue(current, next) {
21
70
  if (typeof current === 'number' && typeof next === 'number') {
@@ -28,6 +77,7 @@ function isSameDoorValue(current, next) {
28
77
  return Object.is(current, next);
29
78
  }
30
79
  export default function DoorPanel() {
80
+ const i18n = usePascalI18n();
31
81
  const selectedId = useViewer((s) => s.selection.selectedIds[0]);
32
82
  const setSelection = useViewer((s) => s.setSelection);
33
83
  const deleteNode = useScene((s) => s.deleteNode);
@@ -37,6 +87,8 @@ export default function DoorPanel() {
37
87
  : null, [selectedId]);
38
88
  useEffect(() => () => preview?.cancel(), [preview]);
39
89
  const node = useScene((s) => selectedId ? s.nodes[selectedId] : undefined);
90
+ // The depth the frame renders at: explicit, or the host wall's thickness plus the lip.
91
+ const frameDepth = useScene((s) => (node ? resolveHostedOpeningFrameDepth(node, s.nodes) : 0));
40
92
  // Stable handler refs ("Custom panels" in wiki/architecture/node-definitions.md).
41
93
  // Without them, the 29+ SliderControls in this panel would loop on drag.
42
94
  const handleUpdate = useCallback((updates) => {
@@ -72,6 +124,11 @@ export default function DoorPanel() {
72
124
  handleUpdate({
73
125
  side: node.side === 'front' ? 'back' : 'front',
74
126
  rotation: [node.rotation[0], node.rotation[1] + Math.PI, node.rotation[2]],
127
+ position: doorPositionForFacing(node, [
128
+ node.rotation[0],
129
+ node.rotation[1] + Math.PI,
130
+ node.rotation[2],
131
+ ]),
75
132
  });
76
133
  }, [node, handleUpdate]);
77
134
  const handleMove = useCallback(() => {
@@ -171,7 +228,6 @@ export default function DoorPanel() {
171
228
  const isCutoutOnly = isOpening;
172
229
  const typeMode = isCutoutOnly ? 'opening' : isGarageDoor ? 'garage' : 'door';
173
230
  const supportsHingeSide = doorType === 'hinged';
174
- const supportsHandleSide = doorType === 'hinged';
175
231
  const supportsTopShape = isSwingDoor;
176
232
  const showFlipSide = !isCutoutOnly;
177
233
  const showFoldSection = !scripted && isFoldingDoor && !isCutoutOnly;
@@ -182,11 +238,16 @@ export default function DoorPanel() {
182
238
  const showOpeningShapeSection = !scripted && isCutoutOnly;
183
239
  const showDoorShapeSection = !scripted && !isCutoutOnly && supportsTopShape;
184
240
  const showFrameSection = !scripted && !isCutoutOnly;
185
- const showContentPaddingSection = !scripted && !isCutoutOnly && !isGarageDoor;
186
- const showSwingSection = !scripted && isSwingDoor;
187
- const showThresholdSection = !scripted && isSwingDoor;
188
- const showHandleSection = !scripted && isSwingDoor;
189
- const showHardwareSection = !scripted && isSwingDoor;
241
+ // A plain passage (`openingKind: 'opening'`) has no leaf: no swing, threshold or hardware. Its
242
+ // Casing section stays, so the casing is not gated with these.
243
+ const showSwingSection = !scripted && !isCutoutOnly && isSwingDoor;
244
+ // Fixed lights only frame a swing leaf (getDoorOpeningSize ignores them on other types).
245
+ const showSidelights = !scripted && !isCutoutOnly && isSwingDoor;
246
+ const showThresholdSection = !scripted && !isCutoutOnly && isSwingDoor;
247
+ // Pocket, sliding, folding and barn doors draw their pulls, rails and rollers in the hardware
248
+ // slot: only its finish is theirs.
249
+ const showHardwareSection = !scripted && !isCutoutOnly && (isSwingDoor || isSlideFoldDoor);
250
+ // The segments and their leaf border; folded away while the leaf matches a style card.
190
251
  const showSegmentsSection = !scripted && !isCutoutOnly && !isGarageDoor;
191
252
  const maxDoorWidth = isGarageDoor ? 6 : 3;
192
253
  const setOpeningTopRadius = (index, value, commit = false) => {
@@ -200,7 +261,7 @@ export default function DoorPanel() {
200
261
  }
201
262
  };
202
263
  const getDoorTypeUpdates = (nextDoorType) => doorTypeChange(node, nextDoorType);
203
- return (_jsxs(PanelWrapper, { icon: scriptImages(node)?.thumbnail ?? '/icons/door.webp', onClose: handleClose, title: node.name || 'Door', width: 320, children: [!scripted && (_jsxs(PanelSection, { title: "Type", children: [_jsx("div", { className: "flex flex-col gap-2 px-1 pb-1", children: _jsx(SegmentedControl, { onChange: (v) => handleUpdate(v === 'opening'
264
+ return (_jsxs(PanelWrapper, { icon: scriptImages(node)?.thumbnail ?? '/icons/door.webp', onClose: handleClose, title: node.name || i18n._({ id: 'node.door.panel.door', message: 'Door' }), width: 320, children: [!scripted && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.type', message: 'Type' }), children: [_jsx("div", { className: "flex flex-col gap-2 px-1 pb-1", children: _jsx(SegmentedControl, { onChange: (v) => handleUpdate(v === 'opening'
204
265
  ? {
205
266
  openingKind: v,
206
267
  openingShape,
@@ -219,24 +280,81 @@ export default function DoorPanel() {
219
280
  openingKind: 'door',
220
281
  ...(isGarageDoor ? getDoorTypeUpdates('hinged') : {}),
221
282
  }), options: [
222
- { label: 'Door', value: 'door' },
223
- { label: 'Opening', value: 'opening' },
224
- { label: 'Garage', value: 'garage' },
283
+ { label: i18n._({ id: 'node.door.panel.door', message: 'Door' }), value: 'door' },
284
+ {
285
+ label: i18n._({ id: 'node.door.panel.opening', message: 'Opening' }),
286
+ value: 'opening',
287
+ },
288
+ {
289
+ label: i18n._({ id: 'node.door.panel.garage', message: 'Garage' }),
290
+ value: 'garage',
291
+ },
225
292
  ], value: typeMode }) }), !isOpening && (_jsx("div", { className: "grid grid-cols-2 gap-2 px-1 pt-1", children: (isGarageDoor ? garageDoorTypeOptions : doorTypeOptions).map((option) => {
226
293
  const isSelected = doorType === option.value;
227
294
  return (_jsxs("button", { className: cn('flex min-h-12 items-center gap-2.5 rounded-lg border px-3 py-2.5 text-left text-xs transition-colors', isSelected
228
295
  ? 'border-orange-400/60 bg-orange-400/10 text-foreground'
229
296
  : 'border-border/50 bg-black/4 dark:bg-[#2C2C2E] text-muted-foreground hover:bg-black/8 dark:hover:bg-[#3e3e3e] hover:text-foreground', !option.available &&
230
- 'cursor-not-allowed opacity-45 hover:bg-black/4 dark:hover:bg-[#2C2C2E] hover:text-muted-foreground'), disabled: !option.available, onClick: () => handleUpdate(getDoorTypeUpdates(option.value)), type: "button", children: [_jsx(DoorOpen, { className: "h-4 w-4 shrink-0" }), _jsx("span", { className: "truncate font-medium", children: option.label })] }, option.value));
231
- }) }))] })), !scripted && !isOpening && !isGarageDoor && (_jsxs(PanelSection, { title: "Style", children: [_jsx("div", { className: "grid grid-cols-2 gap-2 px-1 pt-1", children: DOOR_STYLES.map((style) => (_jsx("button", { "aria-pressed": doorStyles.includes(style), className: cn('flex min-h-10 items-center rounded-lg border px-3 py-2 text-left text-xs transition-colors', doorStyles.includes(style)
297
+ 'cursor-not-allowed opacity-45 hover:bg-black/4 dark:hover:bg-[#2C2C2E] hover:text-muted-foreground'), disabled: !option.available, onClick: () => handleUpdate(getDoorTypeUpdates(option.value)), type: "button", children: [_jsx(DoorOpen, { className: "h-4 w-4 shrink-0" }), _jsx("span", { className: "truncate font-medium", children: i18n._(DOOR_TYPE_LABELS[option.value]) })] }, option.value));
298
+ }) }))] })), !scripted && !isOpening && !isGarageDoor && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.style', message: 'Style' }), children: [_jsx("div", { className: "grid grid-cols-2 gap-2 px-1 pt-1", children: DOOR_STYLES.map((style) => (_jsx("button", { "aria-pressed": doorStyles.includes(style), className: cn('flex min-h-10 items-center rounded-lg border px-3 py-2 text-left text-xs transition-colors', doorStyles.includes(style)
232
299
  ? 'border-orange-400/60 bg-orange-400/10 text-foreground'
233
- : 'border-border/50 bg-black/4 dark:bg-[#2C2C2E] text-muted-foreground hover:bg-black/8 dark:hover:bg-[#3e3e3e] hover:text-foreground'), onClick: () => handleUpdate(doorStyleLook(style)), type: "button", children: _jsx("span", { className: "truncate font-medium", children: DOOR_STYLE_LABELS[style] }) }, style))) }), !doorStyles.length && (_jsx("p", { className: "px-1 pt-2 text-muted-foreground text-xs", children: "Custom: the segments match no style." }))] })), _jsxs(PanelSection, { title: "Position", children: [_jsx(SliderControl, { label: _jsxs(_Fragment, { children: ["X", _jsx("sub", { className: "ml-[1px] text-[11px] opacity-70", children: "wall" })] }), max: 10, min: -10, onChange: (v) => handleUpdate({ position: [v, node.position[1], node.position[2]] }), precision: 2, step: 0.1, unit: "m", value: node.position[0] }), showFlipSide && (_jsx("div", { className: "px-1 pt-2 pb-1", children: _jsx(ActionButton, { className: "w-full", icon: _jsx(FlipHorizontal2, { className: "h-4 w-4" }), label: "Flip Side", onClick: handleFlip }) }))] }), showFoldSection && (_jsxs(PanelSection, { title: "Fold", children: [_jsx("div", { className: "flex flex-col gap-2 px-1 pb-1", children: _jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: "Panels" }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ leafCount: v === '2' ? 2 : 4 }), options: [
234
- { label: '2', value: '2' },
235
- { label: '4', value: '4' },
236
- ], value: node.leafCount === 2 ? '2' : '4' })] }) }), _jsx(SliderControl, { label: "Open", max: 100, min: 0, onChange: (v) => handleUpdate({ operationState: v / 100 }), precision: 0, restoreOnCommit: false, step: 5, unit: "%", value: Math.round((node.operationState ?? 0) * 100) })] })), showSlideSection && (_jsxs(PanelSection, { title: "Slide", children: [_jsx("div", { className: "flex flex-col gap-2 px-1 pb-1", children: _jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: doorType === 'pocket' ? 'Pocket' : doorType === 'barn' ? 'Rail' : 'Panel' }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ slideDirection: v }), options: [
237
- { label: 'Left', value: 'left' },
238
- { label: 'Right', value: 'right' },
239
- ], value: node.slideDirection ?? 'left' })] }) }), _jsx(SliderControl, { label: "Open", max: 100, min: 0, onChange: (v) => handleUpdate({ operationState: v / 100 }), precision: 0, restoreOnCommit: false, step: 5, unit: "%", value: Math.round((node.operationState ?? 0) * 100) })] })), showGarageSection && (_jsxs(PanelSection, { title: "Garage", children: [_jsx(SliderControl, { label: "Open", max: 100, min: 0, onChange: (v) => handleUpdate({ operationState: v / 100 }), precision: 0, restoreOnCommit: false, step: 5, unit: "%", value: Math.round((node.operationState ?? 0) * 100) }), isSectionalGarageDoor && (_jsx(SliderControl, { label: "Panels", max: 8, min: 3, onChange: (v) => handleUpdate({ garagePanelCount: Math.round(v) }), precision: 0, restoreOnCommit: false, step: 1, value: node.garagePanelCount ?? 4 }))] })), scripted && _jsx(AuthoredParams, { node: node }), !scripted && (_jsxs(PanelSection, { title: "Dimensions", children: [limits && (_jsx("p", { className: "text-[11px] text-muted-foreground", children: "Size is limited to the wall, including clearance for the opening frame." })), _jsx(SliderControl, { label: "Width", max: Math.min(maxDoorWidth, limits?.width ?? Infinity), min: Math.min(0.5, limits?.width ?? 0.5), onChange: (v) => previewDoorUpdate('width', v), onCommit: (v) => commitDoorPreview('width', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, precision: 2, restoreOnCommit: false, step: 0.01, unit: "m", value: node.width }), _jsx(SliderControl, { label: "Height", max: limits?.height ?? 1000, min: Math.min(1, limits?.height ?? 1), onChange: (v) => preview?.preview(heightUpdates(v)), onCommit: (v) => preview?.commit(heightUpdates(v)), onCancel: () => preview?.cancel(), previewWhileTyping: true, precision: 2, restoreOnCommit: false, step: 0.01, unit: "m", value: node.height })] })), showDoorShapeSection && (_jsxs(PanelSection, { title: "Top Shape", children: [_jsx("div", { className: "flex flex-col gap-2 px-1 pb-1", children: _jsx(SegmentedControl, { onChange: (v) => handleUpdate({
300
+ : 'border-border/50 bg-black/4 dark:bg-[#2C2C2E] text-muted-foreground hover:bg-black/8 dark:hover:bg-[#3e3e3e] hover:text-foreground'), onClick: () => handleUpdate(doorStyleLook(style)), type: "button", children: _jsx("span", { className: "truncate font-medium", children: i18n._(DOOR_STYLE_MESSAGES[style]) }) }, style))) }), !doorStyles.length && (_jsx("p", { className: "px-1 pt-2 text-muted-foreground text-xs", children: i18n._({
301
+ id: 'node.door.panel.customTheSegmentsMatchNoStyle',
302
+ message: 'Custom: the segments match no style.',
303
+ }) }))] })), !scripted && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.dimensions', message: 'Dimensions' }), children: [limits && (_jsx("p", { className: "text-[11px] text-muted-foreground", children: i18n._({
304
+ id: 'node.door.panel.sizeIsLimitedToTheWall',
305
+ message: 'Size is limited to the wall, including clearance for the opening frame.',
306
+ }) })), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.width', message: 'Width' }), max: Math.min(maxDoorWidth, limits?.width ?? Infinity), min: Math.min(0.5, limits?.width ?? 0.5), onChange: (v) => previewDoorUpdate('width', v), onCommit: (v) => commitDoorPreview('width', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, precision: 2, restoreOnCommit: false, step: 0.01, unit: "m", value: node.width }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.height', message: 'Height' }), max: limits?.height ?? 1000, min: Math.min(1, limits?.height ?? 1), onChange: (v) => preview?.preview(heightUpdates(v)), onCommit: (v) => preview?.commit(heightUpdates(v)), onCancel: () => preview?.cancel(), previewWhileTyping: true, precision: 2, restoreOnCommit: false, step: 0.01, unit: "m", value: node.height }), showSidelights && (_jsxs("div", { className: "mt-1 flex flex-col gap-1 border-border/50 border-t pt-1", children: [_jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.leftSidelight', message: 'Left sidelight' }), max: SIDELIGHT_MAX, min: 0, onChange: (v) => handleUpdate({ sidelightLeft: v > 0 ? v : undefined }), precision: 2, step: 0.01, unit: "m", value: node.sidelightLeft ?? 0 }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.rightSidelight', message: 'Right sidelight' }), max: SIDELIGHT_MAX, min: 0, onChange: (v) => handleUpdate({ sidelightRight: v > 0 ? v : undefined }), precision: 2, step: 0.01, unit: "m", value: node.sidelightRight ?? 0 }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.transom', message: 'Transom' }), max: SIDELIGHT_MAX, min: 0, onChange: (v) => handleUpdate({ transomHeight: v > 0 ? v : undefined }), precision: 2, step: 0.01, unit: "m", value: node.transomHeight ?? 0 })] }))] })), _jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.position', message: 'Position' }), children: [_jsx(SliderControl, { label: _jsxs(_Fragment, { children: ["X", _jsx("sub", { className: "ml-[1px] text-[11px] opacity-70", children: i18n._({ id: 'node.door.panel.wall', message: 'wall' }) })] }), max: 10, min: -10, onChange: (v) => handleUpdate({ position: [v, node.position[1], node.position[2]] }), precision: 2, step: 0.1, unit: "m", value: node.position[0] }), showFlipSide && (_jsx("div", { className: "px-1 pt-2 pb-1", children: _jsx(ActionButton, { className: "w-full", icon: _jsx(FlipHorizontal2, { className: "h-4 w-4" }), label: i18n._({ id: 'node.door.panel.flipSide', message: 'Flip side' }), onClick: handleFlip }) }))] }), scripted && _jsx(AuthoredParams, { node: node }), showSegmentsSection && (_jsxs(PanelSection, { defaultExpanded: doorStyles.length === 0, title: i18n._({ id: 'node.door.panel.segments', message: 'Segments' }), children: [node.segments.map((seg, i) => {
307
+ const numCols = seg.columnRatios.length;
308
+ const colSum = seg.columnRatios.reduce((a, b) => a + b, 0);
309
+ const normCols = seg.columnRatios.map((r) => r / colSum);
310
+ return (_jsxs("div", { className: "mb-2 flex flex-col gap-1", children: [_jsx("div", { className: "flex items-center justify-between pb-1", children: _jsx("span", { className: "font-medium text-foreground/80 dark:text-white/80 text-xs", children: i18n._({
311
+ id: 'node.segmentNumber',
312
+ message: 'Segment {number}',
313
+ values: { number: i + 1 },
314
+ }) }) }), _jsx(SegmentedControl, { onChange: (t) => {
315
+ const updated = node.segments.map((s, idx) => idx === i ? { ...s, type: t } : s);
316
+ handleUpdate({ segments: updated });
317
+ }, options: [
318
+ {
319
+ label: i18n._({ id: 'node.door.panel.panel', message: 'Panel' }),
320
+ value: 'panel',
321
+ },
322
+ {
323
+ label: i18n._({ id: 'node.door.panel.glass', message: 'Glass' }),
324
+ value: 'glass',
325
+ },
326
+ {
327
+ label: i18n._({ id: 'node.door.panel.empty', message: 'Empty' }),
328
+ value: 'empty',
329
+ },
330
+ ], value: seg.type }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.height', message: 'Height' }), max: 95, min: 5, onChange: (v) => setSegmentHeightRatio(i, v / 100), precision: 1, step: 1, unit: "%", value: Math.round(normHeights[i] * 100 * 10) / 10 }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.columns', message: 'Columns' }), max: 8, min: 1, onChange: (v) => {
331
+ const n = Math.max(1, Math.min(8, Math.round(v)));
332
+ const updated = node.segments.map((s, idx) => idx === i ? { ...s, columnRatios: Array(n).fill(1 / n) } : s);
333
+ handleUpdate({ segments: updated });
334
+ }, precision: 0, step: 1, value: numCols }), numCols > 1 && (_jsxs("div", { className: "mt-1 border-border/50 border-t pt-1", children: [normCols.map((ratio, ci) => (_jsx(SliderControl, { label: `C${ci + 1}`, max: 95, min: 5, onChange: (v) => setSegmentColumnRatio(i, ci, v / 100), precision: 1, step: 1, unit: "%", value: Math.round(ratio * 100 * 10) / 10 }, `c-${ci}`))), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.divider', message: 'Divider' }), max: 0.1, min: 0.005, onChange: (v) => {
335
+ const updated = node.segments.map((s, idx) => idx === i ? { ...s, dividerThickness: v } : s);
336
+ handleUpdate({ segments: updated });
337
+ }, precision: 3, step: 0.005, unit: "m", value: seg.dividerThickness })] })), seg.type === 'panel' && (_jsxs("div", { className: "mt-1 border-border/50 border-t pt-1", children: [_jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.inset', message: 'Inset' }), max: 0.1, min: 0, onChange: (v) => {
338
+ const updated = node.segments.map((s, idx) => idx === i ? { ...s, panelInset: v } : s);
339
+ handleUpdate({ segments: updated });
340
+ }, precision: 3, step: 0.005, unit: "m", value: seg.panelInset }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.depth', message: 'Depth' }), max: PANEL_DEPTH_MAX, min: -PANEL_DEPTH_MAX, onChange: (v) => {
341
+ const updated = node.segments.map((s, idx) => idx === i ? { ...s, panelDepth: v } : s);
342
+ handleUpdate({ segments: updated });
343
+ }, precision: 3, step: 0.001, unit: "m", value: seg.panelDepth })] }))] }, i));
344
+ }), _jsxs("div", { className: "flex gap-1.5 px-1 pt-1", children: [_jsx(ActionButton, { label: i18n._({ id: 'node.door.panel.addSegment', message: '+ Add segment' }), onClick: () => {
345
+ const updated = [
346
+ ...node.segments,
347
+ {
348
+ type: 'panel',
349
+ heightRatio: 1,
350
+ columnRatios: [1],
351
+ dividerThickness: 0.03,
352
+ panelDepth: 0.01,
353
+ panelInset: 0.04,
354
+ },
355
+ ];
356
+ handleUpdate({ segments: updated });
357
+ } }), node.segments.length > 1 && (_jsx(ActionButton, { className: "text-foreground/60 hover:text-foreground dark:text-white/60 dark:hover:text-white", label: i18n._({ id: 'node.door.panel.remove', message: '- Remove' }), onClick: () => handleUpdate({ segments: node.segments.slice(0, -1) }) }))] }), _jsxs("div", { className: "mt-2 flex flex-col gap-1 border-border/50 border-t pt-2", children: [_jsx("span", { className: "px-1 font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: i18n._({ id: 'node.door.panel.contentPadding', message: 'Leaf border' }) }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.horizontal', message: 'Horizontal' }), max: 0.2, min: 0, onChange: (v) => handleUpdate({ contentPadding: [v, node.contentPadding[1]] }), precision: 3, step: 0.005, unit: "m", value: node.contentPadding[0] }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.vertical', message: 'Vertical' }), max: 0.2, min: 0, onChange: (v) => handleUpdate({ contentPadding: [node.contentPadding[0], v] }), precision: 3, step: 0.005, unit: "m", value: node.contentPadding[1] })] })] }, selectedId)), showDoorShapeSection && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.topShape', message: 'Top shape' }), children: [_jsx("div", { className: "flex flex-col gap-2 px-1 pb-1", children: _jsx(SegmentedControl, { onChange: (v) => handleUpdate({
240
358
  openingShape: v,
241
359
  ...(v === 'rounded'
242
360
  ? {
@@ -248,77 +366,111 @@ export default function DoorPanel() {
248
366
  : {}),
249
367
  ...(v === 'arch' ? { archHeight } : {}),
250
368
  }), options: [
251
- { label: 'Rect', value: 'rectangle' },
252
- { label: 'Rounded', value: 'rounded' },
253
- { label: 'Arch', value: 'arch' },
369
+ {
370
+ label: i18n._({ id: 'node.door.panel.rect', message: 'Rect' }),
371
+ value: 'rectangle',
372
+ },
373
+ {
374
+ label: i18n._({ id: 'node.door.panel.rounded', message: 'Rounded' }),
375
+ value: 'rounded',
376
+ },
377
+ { label: i18n._({ id: 'node.door.panel.arch', message: 'Arch' }), value: 'arch' },
254
378
  ], value: doorShape }) }), doorShape === 'rounded' && (_jsxs(_Fragment, { children: [_jsx("div", { className: "flex flex-col gap-2 px-1 pb-1", children: _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ openingRadiusMode: v }), options: [
255
- { label: 'All', value: 'all' },
256
- { label: 'Individual', value: 'individual' },
257
- ], value: openingRadiusMode }) }), openingRadiusMode === 'all' ? (_jsx(SliderControl, { label: "Corner Radius", max: maxRoundedRadius, min: 0, onChange: (v) => previewDoorUpdate('cornerRadius', v), onCommit: (v) => commitDoorPreview('cornerRadius', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 2, step: 0.05, unit: "m", value: cornerRadius })) : (_jsx(_Fragment, { children: [
258
- ['Top Left', 0],
259
- ['Top Right', 1],
260
- ].map(([label, index]) => (_jsx(SliderControl, { label: label, max: maxRoundedRadius, min: 0, onChange: (v) => setOpeningTopRadius(index, v), onCommit: (v) => setOpeningTopRadius(index, v, true), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 2, step: 0.05, unit: "m", value: openingTopRadii[index] ?? 0 }, label))) })), _jsx(SliderControl, { label: "Reveal Radius", max: 0.08, min: 0, onChange: (v) => previewDoorUpdate('openingRevealRadius', v), onCommit: (v) => commitDoorPreview('openingRevealRadius', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 3, step: 0.005, unit: "m", value: openingRevealRadius })] })), doorShape === 'arch' && (_jsx(SliderControl, { label: "Arch Height", max: node.height, min: 0.05, onChange: (v) => previewDoorUpdate('archHeight', v), onCommit: (v) => commitDoorPreview('archHeight', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, precision: 2, restoreOnCommit: false, step: 0.05, unit: "m", value: archHeight }))] })), showOpeningShapeSection && (_jsxs(PanelSection, { title: "Opening Shape", children: [_jsx("div", { className: "flex flex-col gap-2 px-1 pb-1", children: _jsx(SegmentedControl, { onChange: (v) => handleUpdate({
379
+ { label: i18n._({ id: 'node.door.panel.all', message: 'All' }), value: 'all' },
380
+ {
381
+ label: i18n._({ id: 'node.door.panel.individual', message: 'Individual' }),
382
+ value: 'individual',
383
+ },
384
+ ], value: openingRadiusMode }) }), openingRadiusMode === 'all' ? (_jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.cornerRadius', message: 'Corner radius' }), max: maxRoundedRadius, min: 0, onChange: (v) => previewDoorUpdate('cornerRadius', v), onCommit: (v) => commitDoorPreview('cornerRadius', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 2, step: 0.05, unit: "m", value: cornerRadius })) : (_jsx(_Fragment, { children: [
385
+ [i18n._({ id: 'node.cornerRadius.topLeft', message: 'Top left' }), 0],
386
+ [i18n._({ id: 'node.cornerRadius.topRight', message: 'Top right' }), 1],
387
+ ].map(([label, index]) => (_jsx(SliderControl, { label: label, max: maxRoundedRadius, min: 0, onChange: (v) => setOpeningTopRadius(index, v), onCommit: (v) => setOpeningTopRadius(index, v, true), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 2, step: 0.05, unit: "m", value: openingTopRadii[index] ?? 0 }, label))) })), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.revealRadius', message: 'Reveal radius' }), max: 0.08, min: 0, onChange: (v) => previewDoorUpdate('openingRevealRadius', v), onCommit: (v) => commitDoorPreview('openingRevealRadius', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 3, step: 0.005, unit: "m", value: openingRevealRadius })] })), doorShape === 'arch' && (_jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.archHeight', message: 'Arch height' }), max: node.height, min: 0.05, onChange: (v) => previewDoorUpdate('archHeight', v), onCommit: (v) => commitDoorPreview('archHeight', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, precision: 2, restoreOnCommit: false, step: 0.05, unit: "m", value: archHeight }))] })), showOpeningShapeSection && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.openingShape', message: 'Opening shape' }), children: [_jsx("div", { className: "flex flex-col gap-2 px-1 pb-1", children: _jsx(SegmentedControl, { onChange: (v) => handleUpdate({
261
388
  openingShape: v,
262
389
  ...(v === 'rounded'
263
390
  ? { openingRadiusMode, openingTopRadii, cornerRadius, openingRevealRadius }
264
391
  : {}),
265
392
  ...(v === 'arch' ? { archHeight } : {}),
266
393
  }), options: [
267
- { label: 'Rect', value: 'rectangle' },
268
- { label: 'Rounded', value: 'rounded' },
269
- { label: 'Arch', value: 'arch' },
394
+ {
395
+ label: i18n._({ id: 'node.door.panel.rect', message: 'Rect' }),
396
+ value: 'rectangle',
397
+ },
398
+ {
399
+ label: i18n._({ id: 'node.door.panel.rounded', message: 'Rounded' }),
400
+ value: 'rounded',
401
+ },
402
+ { label: i18n._({ id: 'node.door.panel.arch', message: 'Arch' }), value: 'arch' },
270
403
  ], value: openingShape }) }), openingShape === 'rounded' && (_jsxs(_Fragment, { children: [_jsx("div", { className: "flex flex-col gap-2 px-1 pb-1", children: _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ openingRadiusMode: v }), options: [
271
- { label: 'All', value: 'all' },
272
- { label: 'Individual', value: 'individual' },
273
- ], value: openingRadiusMode }) }), openingRadiusMode === 'all' ? (_jsx(SliderControl, { label: "Corner Radius", max: maxRoundedRadius, min: 0, onChange: (v) => previewDoorUpdate('cornerRadius', v), onCommit: (v) => commitDoorPreview('cornerRadius', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 2, step: 0.05, unit: "m", value: cornerRadius })) : (_jsx(_Fragment, { children: [
274
- ['Top Left', 0],
275
- ['Top Right', 1],
276
- ].map(([label, index]) => (_jsx(SliderControl, { label: label, max: maxRoundedRadius, min: 0, onChange: (v) => setOpeningTopRadius(index, v), onCommit: (v) => setOpeningTopRadius(index, v, true), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 2, step: 0.05, unit: "m", value: openingTopRadii[index] ?? 0 }, label))) })), _jsx(SliderControl, { label: "Reveal Radius", max: 0.08, min: 0, onChange: (v) => previewDoorUpdate('openingRevealRadius', v), onCommit: (v) => commitDoorPreview('openingRevealRadius', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 3, step: 0.005, unit: "m", value: openingRevealRadius })] })), openingShape === 'arch' && (_jsx(SliderControl, { label: "Arch Height", max: node.height, min: 0.05, onChange: (v) => previewDoorUpdate('archHeight', v), onCommit: (v) => commitDoorPreview('archHeight', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, precision: 2, restoreOnCommit: false, step: 0.05, unit: "m", value: archHeight }))] })), !isCutoutOnly && !scripted && (_jsxs(_Fragment, { children: [showFrameSection && (_jsxs(PanelSection, { title: "Frame", children: [_jsx(SliderControl, { label: "Thickness", max: 0.2, min: 0.01, onChange: (v) => handleUpdate({ frameThickness: v }), precision: 3, step: 0.01, unit: "m", value: node.frameThickness }), _jsx(SliderControl, { label: "Depth", max: 0.3, min: 0.01, onChange: (v) => handleUpdate({ frameDepth: v }), precision: 3, step: 0.01, unit: "m", value: node.frameDepth })] })), showContentPaddingSection && (_jsxs(PanelSection, { title: "Content Padding", children: [_jsx(SliderControl, { label: "Horizontal", max: 0.2, min: 0, onChange: (v) => handleUpdate({ contentPadding: [v, node.contentPadding[1]] }), precision: 3, step: 0.005, unit: "m", value: node.contentPadding[0] }), _jsx(SliderControl, { label: "Vertical", max: 0.2, min: 0, onChange: (v) => handleUpdate({ contentPadding: [node.contentPadding[0], v] }), precision: 3, step: 0.005, unit: "m", value: node.contentPadding[1] })] })), showSwingSection && (_jsx(PanelSection, { title: "Swing", children: _jsxs("div", { className: "flex flex-col gap-2 px-1 pb-1", children: [supportsHingeSide && (_jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: "Hinges Side" }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ hingesSide: v }), options: [
277
- { label: 'Left', value: 'left' },
278
- { label: 'Right', value: 'right' },
279
- ], value: node.hingesSide })] })), _jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: "Direction" }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ swingDirection: v }), options: [
280
- { label: 'Inward', value: 'inward' },
281
- { label: 'Outward', value: 'outward' },
282
- ], value: node.swingDirection })] })] }) })), showThresholdSection && (_jsxs(PanelSection, { title: "Threshold", children: [_jsx(ToggleControl, { checked: node.threshold, label: "Enable Threshold", onChange: (checked) => handleUpdate({ threshold: checked }) }), node.threshold && (_jsx("div", { className: "mt-1 flex flex-col gap-1", children: _jsx(SliderControl, { label: "Height", max: 0.1, min: 0.005, onChange: (v) => handleUpdate({ thresholdHeight: v }), precision: 3, step: 0.005, unit: "m", value: node.thresholdHeight }) }))] })), showHandleSection && (_jsxs(PanelSection, { title: "Handle", children: [isSwingDoor && (_jsx(ToggleControl, { checked: node.handle, label: "Enable Handle", onChange: (checked) => handleUpdate({ handle: checked }) })), (node.handle || !isSwingDoor) && (_jsxs("div", { className: "mt-1 flex flex-col gap-1", children: [_jsx(SliderControl, { label: "Height", max: node.height - 0.1, min: 0.5, onChange: (v) => handleUpdate({ handleHeight: v }), precision: 2, step: 0.05, unit: "m", value: node.handleHeight }), supportsHandleSide && (_jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: "Handle Side" }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ handleSide: v }), options: [
283
- { label: 'Left', value: 'left' },
284
- { label: 'Right', value: 'right' },
285
- ], value: node.handleSide })] }))] }))] })), showHardwareSection && (_jsxs(PanelSection, { title: "Hardware", children: [_jsx(ToggleControl, { checked: node.doorCloser, label: "Door Closer", onChange: (checked) => handleUpdate({ doorCloser: checked }) }), _jsx(ToggleControl, { checked: node.panicBar, label: "Panic Bar", onChange: (checked) => handleUpdate({ panicBar: checked }) }), node.panicBar && (_jsx("div", { className: "mt-1 flex flex-col gap-1", children: _jsx(SliderControl, { label: "Bar Height", max: node.height - 0.1, min: 0.5, onChange: (v) => handleUpdate({ panicBarHeight: v }), precision: 2, step: 0.05, unit: "m", value: node.panicBarHeight }) }))] })), showSegmentsSection && (_jsxs(PanelSection, { title: "Segments", children: [node.segments.map((seg, i) => {
286
- const numCols = seg.columnRatios.length;
287
- const colSum = seg.columnRatios.reduce((a, b) => a + b, 0);
288
- const normCols = seg.columnRatios.map((r) => r / colSum);
289
- return (_jsxs("div", { className: "mb-2 flex flex-col gap-1", children: [_jsx("div", { className: "flex items-center justify-between pb-1", children: _jsxs("span", { className: "font-medium text-foreground/80 dark:text-white/80 text-xs", children: ["Segment ", i + 1] }) }), _jsx(SegmentedControl, { onChange: (t) => {
290
- const updated = node.segments.map((s, idx) => idx === i ? { ...s, type: t } : s);
291
- handleUpdate({ segments: updated });
292
- }, options: [
293
- { label: 'Panel', value: 'panel' },
294
- { label: 'Glass', value: 'glass' },
295
- { label: 'Empty', value: 'empty' },
296
- ], value: seg.type }), _jsx(SliderControl, { label: "Height", max: 95, min: 5, onChange: (v) => setSegmentHeightRatio(i, v / 100), precision: 1, step: 1, unit: "%", value: Math.round(normHeights[i] * 100 * 10) / 10 }), _jsx(SliderControl, { label: "Columns", max: 8, min: 1, onChange: (v) => {
297
- const n = Math.max(1, Math.min(8, Math.round(v)));
298
- const updated = node.segments.map((s, idx) => idx === i ? { ...s, columnRatios: Array(n).fill(1 / n) } : s);
299
- handleUpdate({ segments: updated });
300
- }, precision: 0, step: 1, value: numCols }), numCols > 1 && (_jsxs("div", { className: "mt-1 border-border/50 border-t pt-1", children: [normCols.map((ratio, ci) => (_jsx(SliderControl, { label: `C${ci + 1}`, max: 95, min: 5, onChange: (v) => setSegmentColumnRatio(i, ci, v / 100), precision: 1, step: 1, unit: "%", value: Math.round(ratio * 100 * 10) / 10 }, `c-${ci}`))), _jsx(SliderControl, { label: "Divider", max: 0.1, min: 0.005, onChange: (v) => {
301
- const updated = node.segments.map((s, idx) => idx === i ? { ...s, dividerThickness: v } : s);
302
- handleUpdate({ segments: updated });
303
- }, precision: 3, step: 0.005, unit: "m", value: seg.dividerThickness })] })), seg.type === 'panel' && (_jsxs("div", { className: "mt-1 border-border/50 border-t pt-1", children: [_jsx(SliderControl, { label: "Inset", max: 0.1, min: 0, onChange: (v) => {
304
- const updated = node.segments.map((s, idx) => idx === i ? { ...s, panelInset: v } : s);
305
- handleUpdate({ segments: updated });
306
- }, precision: 3, step: 0.005, unit: "m", value: seg.panelInset }), _jsx(SliderControl, { label: "Depth", max: 0.1, min: 0, onChange: (v) => {
307
- const updated = node.segments.map((s, idx) => idx === i ? { ...s, panelDepth: v } : s);
308
- handleUpdate({ segments: updated });
309
- }, precision: 3, step: 0.005, unit: "m", value: seg.panelDepth })] }))] }, i));
310
- }), _jsxs("div", { className: "flex gap-1.5 px-1 pt-1", children: [_jsx(ActionButton, { label: "+ Add Segment", onClick: () => {
311
- const updated = [
312
- ...node.segments,
313
- {
314
- type: 'panel',
315
- heightRatio: 1,
316
- columnRatios: [1],
317
- dividerThickness: 0.03,
318
- panelDepth: 0.01,
319
- panelInset: 0.04,
320
- },
321
- ];
322
- handleUpdate({ segments: updated });
323
- } }), node.segments.length > 1 && (_jsx(ActionButton, { className: "text-foreground/60 hover:text-foreground dark:text-white/60 dark:hover:text-white", label: "- Remove", onClick: () => handleUpdate({ segments: node.segments.slice(0, -1) }) }))] })] }))] })), _jsx(PanelSection, { title: "Actions", children: _jsxs(ActionGroup, { children: [_jsx(ActionButton, { icon: _jsx(Move, { className: "h-3.5 w-3.5" }), label: "Move", onClick: handleMove }), _jsx(ActionButton, { icon: _jsx(Copy, { className: "h-3.5 w-3.5" }), label: "Duplicate", onClick: handleDuplicate }), _jsx(ActionButton, { className: "hover:bg-red-500/20", icon: _jsx(Trash2, { className: "h-3.5 w-3.5 text-red-600 dark:text-red-400" }), label: "Delete", onClick: handleDelete })] }) })] }));
404
+ { label: i18n._({ id: 'node.door.panel.all', message: 'All' }), value: 'all' },
405
+ {
406
+ label: i18n._({ id: 'node.door.panel.individual', message: 'Individual' }),
407
+ value: 'individual',
408
+ },
409
+ ], value: openingRadiusMode }) }), openingRadiusMode === 'all' ? (_jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.cornerRadius', message: 'Corner radius' }), max: maxRoundedRadius, min: 0, onChange: (v) => previewDoorUpdate('cornerRadius', v), onCommit: (v) => commitDoorPreview('cornerRadius', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 2, step: 0.05, unit: "m", value: cornerRadius })) : (_jsx(_Fragment, { children: [
410
+ [i18n._({ id: 'node.cornerRadius.topLeft', message: 'Top left' }), 0],
411
+ [i18n._({ id: 'node.cornerRadius.topRight', message: 'Top right' }), 1],
412
+ ].map(([label, index]) => (_jsx(SliderControl, { label: label, max: maxRoundedRadius, min: 0, onChange: (v) => setOpeningTopRadius(index, v), onCommit: (v) => setOpeningTopRadius(index, v, true), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 2, step: 0.05, unit: "m", value: openingTopRadii[index] ?? 0 }, label))) })), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.revealRadius', message: 'Reveal radius' }), max: 0.08, min: 0, onChange: (v) => previewDoorUpdate('openingRevealRadius', v), onCommit: (v) => commitDoorPreview('openingRevealRadius', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, restoreOnCommit: false, precision: 3, step: 0.005, unit: "m", value: openingRevealRadius })] })), openingShape === 'arch' && (_jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.archHeight', message: 'Arch height' }), max: node.height, min: 0.05, onChange: (v) => previewDoorUpdate('archHeight', v), onCommit: (v) => commitDoorPreview('archHeight', v), onCancel: () => preview?.cancel(), previewWhileTyping: true, precision: 2, restoreOnCommit: false, step: 0.05, unit: "m", value: archHeight }))] })), showSwingSection && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.swing', message: 'Swing' }), children: [_jsxs("div", { className: "flex flex-col gap-2 px-1 pb-1", children: [supportsHingeSide && (_jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: i18n._({ id: 'node.door.panel.hingesSide', message: 'Hinges side' }) }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate(hingesSidePatch(v)), options: [
413
+ {
414
+ label: i18n._({ id: 'node.door.panel.left', message: 'Left' }),
415
+ value: 'left',
416
+ },
417
+ {
418
+ label: i18n._({ id: 'node.door.panel.right', message: 'Right' }),
419
+ value: 'right',
420
+ },
421
+ ], value: node.hingesSide })] })), _jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: i18n._({ id: 'node.door.panel.direction', message: 'Direction' }) }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ swingDirection: v }), options: [
422
+ {
423
+ label: i18n._({ id: 'node.door.panel.inward', message: 'Inward' }),
424
+ value: 'inward',
425
+ },
426
+ {
427
+ label: i18n._({ id: 'node.door.panel.outward', message: 'Outward' }),
428
+ value: 'outward',
429
+ },
430
+ ], value: node.swingDirection })] })] }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.open', message: 'Open' }), max: 90, min: 0, onChange: (v) => handleUpdate({ swingAngle: (Math.max(0, Math.min(90, v)) * Math.PI) / 180 }), precision: 0, restoreOnCommit: false, step: 5, unit: "\u00B0", value: Math.round(((node.swingAngle ?? 0) * 180) / Math.PI) })] })), showFoldSection && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.fold', message: 'Fold' }), children: [_jsx("div", { className: "flex flex-col gap-2 px-1 pb-1", children: _jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: i18n._({ id: 'node.door.panel.panels', message: 'Panels' }) }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ leafCount: Number(v) }), options: FOLDING_PANEL_COUNTS.map((count) => ({
431
+ label: String(count),
432
+ value: String(count),
433
+ })), value: String(foldingPanelCount(node.leafCount)) })] }) }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.open', message: 'Open' }), max: 100, min: 0, onChange: (v) => handleUpdate({ operationState: v / 100 }), precision: 0, restoreOnCommit: false, step: 5, unit: "%", value: Math.round((node.operationState ?? 0) * 100) })] })), showSlideSection && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.slide', message: 'Slide' }), children: [_jsxs("div", { className: "flex flex-col gap-2 px-1 pb-1", children: [_jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: doorType === 'pocket'
434
+ ? i18n._({ id: 'node.door.panel.pocket', message: 'Pocket' })
435
+ : doorType === 'barn'
436
+ ? i18n._({ id: 'node.door.panel.rail', message: 'Rail' })
437
+ : i18n._({ id: 'node.door.panel.panel', message: 'Panel' }) }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ slideDirection: v }), options: [
438
+ { label: i18n._({ id: 'node.door.panel.left', message: 'Left' }), value: 'left' },
439
+ {
440
+ label: i18n._({ id: 'node.door.panel.right', message: 'Right' }),
441
+ value: 'right',
442
+ },
443
+ ], value: node.slideDirection ?? 'left' })] }), doorType === 'sliding' && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: i18n._({ id: 'node.door.panel.slidingLayout', message: 'Layout' }) }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ slidingStyle: v }), options: [
444
+ {
445
+ label: i18n._({ id: 'node.door.panel.slidingPatio', message: 'Patio' }),
446
+ value: 'patio',
447
+ },
448
+ {
449
+ label: i18n._({ id: 'node.door.panel.slidingBypass', message: 'Bypass' }),
450
+ value: 'bypass',
451
+ },
452
+ ], value: node.slidingStyle ?? 'patio' })] }), _jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: i18n._({ id: 'node.door.panel.panels', message: 'Panels' }) }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ leafCount: Number(v) }), options: SLIDING_PANEL_COUNTS.map((count) => ({
453
+ label: String(count),
454
+ value: String(count),
455
+ })), value: String(slidingPanelCount(node.leafCount)) })] })] }))] }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.open', message: 'Open' }), max: 100, min: 0, onChange: (v) => handleUpdate({ operationState: v / 100 }), precision: 0, restoreOnCommit: false, step: 5, unit: "%", value: Math.round((node.operationState ?? 0) * 100) })] })), showGarageSection && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.garage', message: 'Garage' }), children: [_jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.open', message: 'Open' }), max: 100, min: 0, onChange: (v) => handleUpdate({ operationState: v / 100 }), precision: 0, restoreOnCommit: false, step: 5, unit: "%", value: Math.round((node.operationState ?? 0) * 100) }), isSectionalGarageDoor && (_jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.panels', message: 'Panels' }), max: 8, min: 3, onChange: (v) => handleUpdate({ garagePanelCount: Math.round(v) }), precision: 0, restoreOnCommit: false, step: 1, value: node.garagePanelCount ?? 4 }))] })), showFrameSection && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.frame', message: 'Frame' }), children: [_jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.thickness', message: 'Thickness' }), max: 0.2, min: 0.01, onChange: (v) => handleUpdate({ frameThickness: v }), precision: 3, step: 0.01, unit: "m", value: node.frameThickness }), _jsx(SliderControl, { label: isAutoFrameDepth(node)
456
+ ? i18n._({ id: 'node.door.panel.frameDepthAuto', message: 'Depth (auto)' })
457
+ : i18n._({ id: 'node.door.panel.depth', message: 'Depth' }), max: 0.5, min: 0.01, onChange: (v) => handleUpdate({ frameDepth: v }), precision: 3, step: 0.01, unit: "m", value: frameDepth }), !isAutoFrameDepth(node) && (_jsxs("div", { className: "flex items-center justify-between px-2 text-muted-foreground text-xs", children: [_jsx("span", { children: i18n._({
458
+ id: 'node.door.panel.autoFollowsTheWall',
459
+ message: 'Auto follows the wall',
460
+ }) }), _jsx("button", { className: "rounded-full border border-border/50 px-2.5 py-0.5 transition-colors hover:bg-accent", onClick: () => handleUpdate({ frameDepth: undefined }), type: "button", children: i18n._({ id: 'node.door.panel.auto', message: 'Auto' }) })] })), _jsx(OpeningDepthPositionControl, { node: node, onUpdate: handleUpdate })] })), showThresholdSection && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.threshold', message: 'Threshold' }), children: [_jsx(ToggleControl, { checked: node.threshold, label: i18n._({
461
+ id: 'node.door.panel.enableThreshold',
462
+ message: 'Enable threshold',
463
+ }), onChange: (checked) => handleUpdate({ threshold: checked }) }), node.threshold && (_jsx("div", { className: "mt-1 flex flex-col gap-1", children: _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.height', message: 'Height' }), max: 0.1, min: 0.005, onChange: (v) => handleUpdate({ thresholdHeight: v }), precision: 3, step: 0.005, unit: "m", value: node.thresholdHeight }) }))] })), _jsx(OpeningCasingSection, { node: node, onUpdate: handleUpdate }), showHardwareSection && (_jsxs(PanelSection, { title: i18n._({ id: 'node.door.panel.hardware', message: 'Hardware' }), children: [isSwingDoor && (_jsxs(_Fragment, { children: [_jsx(ToggleControl, { checked: node.handle, label: i18n._({ id: 'node.door.panel.enableHandle', message: 'Enable handle' }), onChange: (checked) => handleUpdate({ handle: checked }) }), node.handle && (_jsxs("div", { className: "mt-1 flex flex-col gap-1", children: [_jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: i18n._({ id: 'node.door.panel.handleStyle', message: 'Style' }) }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ handleStyle: v }), options: HANDLE_STYLES.map((style) => ({
464
+ label: i18n._(HANDLE_STYLE_LABELS[style]),
465
+ value: style,
466
+ })), value: doorHandleStyle(node) })] }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.height', message: 'Height' }), max: node.height - 0.1, min: 0.5, onChange: (v) => handleUpdate({ handleHeight: v }), precision: 2, step: 0.05, unit: "m", value: node.handleHeight })] })), _jsxs("div", { className: "mt-1 flex flex-col gap-1.5 border-border/50 border-t pt-2", children: [_jsx(ToggleControl, { checked: node.doorCloser, label: i18n._({ id: 'node.door.panel.doorCloser', message: 'Door closer' }), onChange: (checked) => handleUpdate({ doorCloser: checked }) }), _jsx(ToggleControl, { checked: node.panicBar, label: i18n._({ id: 'node.door.panel.panicBar', message: 'Panic bar' }), onChange: (checked) => handleUpdate({ panicBar: checked }) }), node.panicBar && (_jsxs("div", { className: "mt-1 flex flex-col gap-1", children: [_jsxs("div", { className: "space-y-1", children: [_jsx("span", { className: "font-medium text-[10px] text-muted-foreground/80 uppercase tracking-wider", children: i18n._({ id: 'node.door.panel.panicBarStyle', message: 'Style' }) }), _jsx(SegmentedControl, { onChange: (v) => handleUpdate({ panicBarStyle: v }), options: [
467
+ {
468
+ label: i18n._({ id: 'node.door.panel.crossbar', message: 'Crossbar' }),
469
+ value: 'crossbar',
470
+ },
471
+ {
472
+ label: i18n._({ id: 'node.door.panel.touchbar', message: 'Touchbar' }),
473
+ value: 'touchbar',
474
+ },
475
+ ], value: node.panicBarStyle })] }), _jsx(ToggleControl, { checked: node.panicBarRods, label: i18n._({ id: 'node.door.panel.latchRods', message: 'Latch rods' }), onChange: (checked) => handleUpdate({ panicBarRods: checked }) }), _jsx(SliderControl, { label: i18n._({ id: 'node.door.panel.barHeight', message: 'Bar height' }), max: node.height - 0.1, min: 0.5, onChange: (v) => handleUpdate({ panicBarHeight: v }), precision: 2, step: 0.05, unit: "m", value: node.panicBarHeight })] }))] })] })), _jsx("div", { className: cn(isSwingDoor && 'mt-1 border-border/50 border-t pt-1'), children: _jsx(FinishSwatch, { fallback: HARDWARE_FINISH_DEFAULT, label: i18n._({ id: 'node.door.panel.finish', message: 'Finish' }), node: node, paintRole: "hardware", value: node.slots?.hardware }) })] })), _jsx(PanelSection, { title: i18n._({ id: 'node.door.panel.actions', message: 'Actions' }), children: _jsxs(ActionGroup, { children: [_jsx(ActionButton, { icon: _jsx(Move, { className: "h-3.5 w-3.5" }), label: i18n._({ id: 'node.door.panel.move', message: 'Move' }), onClick: handleMove }), _jsx(ActionButton, { icon: _jsx(Copy, { className: "h-3.5 w-3.5" }), label: i18n._({ id: 'node.door.panel.duplicate', message: 'Duplicate' }), onClick: handleDuplicate }), _jsx(ActionButton, { className: "hover:bg-red-500/20", icon: _jsx(Trash2, { className: "h-3.5 w-3.5 text-red-600 dark:text-red-400" }), label: i18n._({ id: 'node.door.panel.delete', message: 'Delete' }), onClick: handleDelete })] }) })] }));
324
476
  }
@@ -19,7 +19,7 @@ export const doorParametrics = {
19
19
  label: 'Frame',
20
20
  fields: [
21
21
  { key: 'frameThickness', kind: 'number', unit: 'm', min: 0.01, max: 0.2, step: 0.005 },
22
- { key: 'frameDepth', kind: 'number', unit: 'm', min: 0.01, max: 0.3, step: 0.005 },
22
+ { key: 'frameDepth', kind: 'number', unit: 'm', min: 0.01, max: 0.5, step: 0.005 },
23
23
  ],
24
24
  },
25
25
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"placement.d.ts","sourceRoot":"","sources":["../../src/door/placement.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAIL,KAAK,SAAS,EAGf,MAAM,2BAA2B,CAAA;AAGlC,uGAAuG;AACvG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYzB,CAAA;AAEH,KAAK,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAE/D,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,cAAc,CAAA;IACpB,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,IAAI,IAAI,CAAA;IACjB,UAAU,IAAI,IAAI,CAAA;CACnB,CAAA;AAID,eAAO,MAAM,gBAAgB,iFAW1B,CAAA;AAEH,yGAAyG;AACzG,wBAAgB,gBAAgB,IAAI,OAAO,CAAC,QAAQ,CAAC,CAGpD;AAED,eAAO,MAAM,oBAAoB,EAAE,QAAQ,EA2B1C,CAAA"}
1
+ {"version":3,"file":"placement.d.ts","sourceRoot":"","sources":["../../src/door/placement.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAIL,KAAK,SAAS,EAIf,MAAM,2BAA2B,CAAA;AAGlC,uGAAuG;AACvG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYzB,CAAA;AAEH,KAAK,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAE/D,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,cAAc,CAAA;IACpB,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,IAAI,IAAI,CAAA;IACjB,UAAU,IAAI,IAAI,CAAA;CACnB,CAAA;AAID,eAAO,MAAM,gBAAgB,iFAW1B,CAAA;AAEH,yGAAyG;AACzG,wBAAgB,gBAAgB,IAAI,OAAO,CAAC,QAAQ,CAAC,CAUpD;AAED,eAAO,MAAM,oBAAoB,EAAE,QAAQ,EA2B1C,CAAA"}