@pascal-app/nodes 1.0.6 → 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.
- package/README.md +1 -0
- package/dist/beam/actions/move-endpoint.d.ts +24 -0
- package/dist/beam/actions/move-endpoint.d.ts.map +1 -0
- package/dist/beam/actions/move-endpoint.js +54 -0
- package/dist/beam/definition.d.ts +14 -0
- package/dist/beam/definition.d.ts.map +1 -0
- package/dist/beam/definition.js +173 -0
- package/dist/beam/draft-settings.d.ts +17 -0
- package/dist/beam/draft-settings.d.ts.map +1 -0
- package/dist/beam/draft-settings.js +81 -0
- package/dist/beam/drafting.d.ts +35 -0
- package/dist/beam/drafting.d.ts.map +1 -0
- package/dist/beam/drafting.js +103 -0
- package/dist/beam/floorplan-affordances.d.ts +8 -0
- package/dist/beam/floorplan-affordances.d.ts.map +1 -0
- package/dist/beam/floorplan-affordances.js +40 -0
- package/dist/beam/floorplan-move.d.ts +11 -0
- package/dist/beam/floorplan-move.d.ts.map +1 -0
- package/dist/beam/floorplan-move.js +54 -0
- package/dist/beam/floorplan.d.ts +11 -0
- package/dist/beam/floorplan.d.ts.map +1 -0
- package/dist/beam/floorplan.js +91 -0
- package/dist/beam/geometry.d.ts +19 -0
- package/dist/beam/geometry.d.ts.map +1 -0
- package/dist/beam/geometry.js +63 -0
- package/dist/beam/index.d.ts +3 -0
- package/dist/beam/index.d.ts.map +1 -0
- package/dist/beam/index.js +2 -0
- package/dist/beam/move-endpoint-tool.d.ts +21 -0
- package/dist/beam/move-endpoint-tool.d.ts.map +1 -0
- package/dist/beam/move-endpoint-tool.js +49 -0
- package/dist/beam/move-tool.d.ts +12 -0
- package/dist/beam/move-tool.d.ts.map +1 -0
- package/dist/beam/move-tool.js +114 -0
- package/dist/beam/panel-model.d.ts +28 -0
- package/dist/beam/panel-model.d.ts.map +1 -0
- package/dist/beam/panel-model.js +123 -0
- package/dist/beam/panel.d.ts +13 -0
- package/dist/beam/panel.d.ts.map +1 -0
- package/dist/beam/panel.js +107 -0
- package/dist/beam/parametrics.d.ts +3 -0
- package/dist/beam/parametrics.d.ts.map +1 -0
- package/dist/beam/parametrics.js +4 -0
- package/dist/beam/renderer.d.ts +13 -0
- package/dist/beam/renderer.d.ts.map +1 -0
- package/dist/beam/renderer.js +36 -0
- package/dist/beam/schema.d.ts +2 -0
- package/dist/beam/schema.d.ts.map +1 -0
- package/dist/beam/schema.js +1 -0
- package/dist/beam/tool.d.ts +13 -0
- package/dist/beam/tool.d.ts.map +1 -0
- package/dist/beam/tool.js +152 -0
- package/dist/box-vent/panel.d.ts.map +1 -1
- package/dist/box-vent/panel.js +8 -7
- package/dist/cabinet/batchable.d.ts +10 -0
- package/dist/cabinet/batchable.d.ts.map +1 -0
- package/dist/cabinet/batchable.js +12 -0
- package/dist/cabinet/compartment-card.d.ts.map +1 -1
- package/dist/cabinet/compartment-card.js +142 -46
- package/dist/cabinet/countertop-layout.d.ts +5 -0
- package/dist/cabinet/countertop-layout.d.ts.map +1 -1
- package/dist/cabinet/definition.d.ts.map +1 -1
- package/dist/cabinet/definition.js +3 -0
- package/dist/cabinet/dimension-input.d.ts +6 -0
- package/dist/cabinet/dimension-input.d.ts.map +1 -0
- package/dist/cabinet/dimension-input.js +8 -0
- package/dist/cabinet/essential-controls.d.ts.map +1 -1
- package/dist/cabinet/essential-controls.js +82 -17
- package/dist/cabinet/index.d.ts +1 -1
- package/dist/cabinet/index.d.ts.map +1 -1
- package/dist/cabinet/index.js +1 -1
- package/dist/cabinet/kitchen-catalog.d.ts +17 -4
- package/dist/cabinet/kitchen-catalog.d.ts.map +1 -1
- package/dist/cabinet/kitchen-catalog.js +45 -7
- package/dist/cabinet/kitchen-collection.d.ts.map +1 -1
- package/dist/cabinet/kitchen-collection.js +21 -5
- package/dist/cabinet/kitchen-module-actions.d.ts.map +1 -1
- package/dist/cabinet/kitchen-module-actions.js +107 -14
- package/dist/cabinet/neighbor-placement.d.ts +10 -0
- package/dist/cabinet/neighbor-placement.d.ts.map +1 -1
- package/dist/cabinet/panel.d.ts.map +1 -1
- package/dist/cabinet/panel.js +127 -50
- package/dist/cabinet/run-finishing.d.ts +5 -0
- package/dist/cabinet/run-finishing.d.ts.map +1 -1
- package/dist/cabinet/run-ops.d.ts +5 -0
- package/dist/cabinet/run-ops.d.ts.map +1 -1
- package/dist/cabinet/run-panel.d.ts.map +1 -1
- package/dist/cabinet/run-panel.js +203 -52
- package/dist/cabinet/tool.d.ts.map +1 -1
- package/dist/cabinet/tool.js +8 -5
- package/dist/ceiling/build-up-section.d.ts +7 -0
- package/dist/ceiling/build-up-section.d.ts.map +1 -0
- package/dist/ceiling/build-up-section.js +57 -0
- package/dist/ceiling/definition.d.ts.map +1 -1
- package/dist/ceiling/definition.js +3 -1
- package/dist/ceiling/floorplan-affordances.d.ts +112 -0
- package/dist/ceiling/floorplan-affordances.d.ts.map +1 -1
- package/dist/ceiling/materials.d.ts +5 -0
- package/dist/ceiling/materials.d.ts.map +1 -1
- package/dist/ceiling/materials.js +17 -0
- package/dist/ceiling/panel-model.d.ts +13 -0
- package/dist/ceiling/panel-model.d.ts.map +1 -0
- package/dist/ceiling/panel-model.js +49 -0
- package/dist/ceiling/panel.d.ts.map +1 -1
- package/dist/ceiling/panel.js +82 -18
- package/dist/ceiling/renderer.d.ts.map +1 -1
- package/dist/ceiling/renderer.js +10 -4
- package/dist/ceiling/tool.d.ts.map +1 -1
- package/dist/ceiling/tool.js +24 -4
- package/dist/chimney/panel.d.ts.map +1 -1
- package/dist/chimney/panel.js +113 -41
- package/dist/column/definition.d.ts.map +1 -1
- package/dist/column/definition.js +3 -0
- package/dist/column/floorplan.d.ts.map +1 -1
- package/dist/column/floorplan.js +17 -0
- package/dist/column/hosted-resize.d.ts +28 -1
- package/dist/column/hosted-resize.d.ts.map +1 -1
- package/dist/column/panel.d.ts.map +1 -1
- package/dist/column/panel.js +125 -37
- package/dist/column/post-options.d.ts +10 -0
- package/dist/column/post-options.d.ts.map +1 -0
- package/dist/column/post-options.js +71 -0
- package/dist/column/post-placement.d.ts +78 -0
- package/dist/column/post-placement.d.ts.map +1 -0
- package/dist/column/post-placement.js +157 -0
- package/dist/column/post-section.d.ts +17 -0
- package/dist/column/post-section.d.ts.map +1 -0
- package/dist/column/post-section.js +95 -0
- package/dist/column/post-tool.d.ts +11 -0
- package/dist/column/post-tool.d.ts.map +1 -0
- package/dist/column/post-tool.js +94 -0
- package/dist/column/tool.d.ts +3 -10
- package/dist/column/tool.d.ts.map +1 -1
- package/dist/column/tool.js +13 -1
- package/dist/cupola/panel.d.ts.map +1 -1
- package/dist/cupola/panel.js +14 -7
- package/dist/door/actions.d.ts +7 -0
- package/dist/door/actions.d.ts.map +1 -0
- package/dist/door/actions.js +32 -0
- package/dist/door/contextual-dimensions.d.ts.map +1 -1
- package/dist/door/contextual-dimensions.js +11 -1
- package/dist/door/definition.d.ts.map +1 -1
- package/dist/door/definition.js +34 -7
- package/dist/door/floorplan-affordances.d.ts.map +1 -1
- package/dist/door/floorplan-affordances.js +5 -2
- package/dist/door/floorplan-move.d.ts.map +1 -1
- package/dist/door/floorplan-move.js +28 -6
- package/dist/door/floorplan.d.ts +2 -0
- package/dist/door/floorplan.d.ts.map +1 -1
- package/dist/door/floorplan.js +89 -16
- package/dist/door/move-tool.d.ts.map +1 -1
- package/dist/door/move-tool.js +60 -16
- package/dist/door/paint.d.ts +2 -7
- package/dist/door/paint.d.ts.map +1 -1
- package/dist/door/paint.js +26 -2
- package/dist/door/panel.d.ts.map +1 -1
- package/dist/door/panel.js +242 -90
- package/dist/door/parametrics.js +1 -1
- package/dist/door/placement.d.ts.map +1 -1
- package/dist/door/placement.js +9 -2
- package/dist/door/swing.d.ts +22 -0
- package/dist/door/swing.d.ts.map +1 -0
- package/dist/door/swing.js +36 -0
- package/dist/door/tool.d.ts.map +1 -1
- package/dist/door/tool.js +76 -29
- package/dist/dormer/panel-actions-section.d.ts.map +1 -1
- package/dist/dormer/panel-actions-section.js +3 -1
- package/dist/dormer/panel-position-section.d.ts.map +1 -1
- package/dist/dormer/panel-position-section.js +4 -3
- package/dist/dormer/panel-windows-section.d.ts.map +1 -1
- package/dist/dormer/panel-windows-section.js +38 -1
- package/dist/dormer/panel.d.ts.map +1 -1
- package/dist/dormer/panel.js +24 -18
- package/dist/downspout/inspector-editors.d.ts.map +1 -1
- package/dist/downspout/inspector-editors.js +3 -2
- package/dist/duct-fitting/inspector-editors.d.ts.map +1 -1
- package/dist/duct-fitting/inspector-editors.js +6 -1
- package/dist/duct-fitting/tool.d.ts.map +1 -1
- package/dist/duct-fitting/tool.js +11 -2
- package/dist/duct-terminal/tool.d.ts.map +1 -1
- package/dist/duct-terminal/tool.js +11 -2
- package/dist/elevator/panel.d.ts.map +1 -1
- package/dist/elevator/panel.js +41 -18
- package/dist/eyebrow-vent/panel.d.ts.map +1 -1
- package/dist/eyebrow-vent/panel.js +16 -6
- package/dist/fence/drafting.d.ts +2 -3
- package/dist/fence/drafting.d.ts.map +1 -1
- package/dist/fence/drafting.js +2 -3
- package/dist/fence/inspector-editors.d.ts.map +1 -1
- package/dist/fence/inspector-editors.js +64 -21
- package/dist/fence/move-endpoint-tool.d.ts.map +1 -1
- package/dist/fence/move-endpoint-tool.js +11 -2
- package/dist/fence/system.d.ts.map +1 -1
- package/dist/fence/system.js +13 -0
- package/dist/fence-feature/actions.d.ts.map +1 -1
- package/dist/fence-feature/actions.js +5 -2
- package/dist/fence-feature/inspector.d.ts.map +1 -1
- package/dist/fence-feature/inspector.js +150 -34
- package/dist/fence-feature/move-session.d.ts +1 -1
- package/dist/floor-opening/floorplan.d.ts +29 -6
- package/dist/floor-opening/floorplan.d.ts.map +1 -1
- package/dist/floor-opening/floorplan.js +172 -14
- package/dist/gutter/downspouts-panel.d.ts.map +1 -1
- package/dist/gutter/downspouts-panel.js +14 -2
- package/dist/hvac-equipment/tool.d.ts.map +1 -1
- package/dist/hvac-equipment/tool.js +3 -2
- package/dist/i18n/definition-messages.d.ts +5 -0
- package/dist/i18n/definition-messages.d.ts.map +1 -0
- package/dist/i18n/definition-messages.js +771 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/item/authored-params.d.ts.map +1 -1
- package/dist/item/authored-params.js +19 -4
- package/dist/item/floorplan.d.ts +1 -1
- package/dist/item/floorplan.d.ts.map +1 -1
- package/dist/item/panel.d.ts.map +1 -1
- package/dist/item/panel.js +9 -7
- package/dist/liquid-line/tool.d.ts.map +1 -1
- package/dist/liquid-line/tool.js +10 -3
- package/dist/measurement/tool.d.ts +1 -1
- package/dist/measurement/tool.d.ts.map +1 -1
- package/dist/measurement/tool.js +8 -8
- package/dist/pipe-fitting/tool.d.ts.map +1 -1
- package/dist/pipe-fitting/tool.js +3 -2
- package/dist/pipe-trap/tool.d.ts.map +1 -1
- package/dist/pipe-trap/tool.js +7 -2
- package/dist/procedural-item/renderer.d.ts.map +1 -1
- package/dist/procedural-item/renderer.js +8 -1
- package/dist/ridge-vent/panel.d.ts.map +1 -1
- package/dist/ridge-vent/panel.js +22 -9
- package/dist/roof/barrel-panel.d.ts.map +1 -1
- package/dist/roof/barrel-panel.js +7 -3
- package/dist/roof/definition.d.ts.map +1 -1
- package/dist/roof/definition.js +33 -3
- package/dist/roof/floorplan-overrides.d.ts +22 -0
- package/dist/roof/floorplan-overrides.d.ts.map +1 -0
- package/dist/roof/floorplan-overrides.js +46 -0
- package/dist/roof/floorplan-tool.d.ts +9 -0
- package/dist/roof/floorplan-tool.d.ts.map +1 -0
- package/dist/roof/floorplan-tool.js +168 -0
- package/dist/roof/floorplan.d.ts.map +1 -1
- package/dist/roof/floorplan.js +131 -41
- package/dist/roof/glazing-controls.d.ts +2 -1
- package/dist/roof/glazing-controls.d.ts.map +1 -1
- package/dist/roof/glazing-controls.js +51 -13
- package/dist/roof/glazing-panel-editor.d.ts.map +1 -1
- package/dist/roof/glazing-panel-editor.js +40 -13
- package/dist/roof/glazing-panel.d.ts.map +1 -1
- package/dist/roof/glazing-panel.js +73 -9
- package/dist/roof/paint.d.ts +19 -0
- package/dist/roof/paint.d.ts.map +1 -0
- package/dist/roof/paint.js +158 -0
- package/dist/roof/panel.d.ts.map +1 -1
- package/dist/roof/panel.js +90 -22
- package/dist/roof/renderer.d.ts.map +1 -1
- package/dist/roof/renderer.js +13 -2
- package/dist/roof/roof-footprint-source.d.ts +17 -0
- package/dist/roof/roof-footprint-source.d.ts.map +1 -1
- package/dist/roof/roof-footprint-source.js +14 -0
- package/dist/roof/roof-footprint.d.ts +36 -2
- package/dist/roof/roof-footprint.d.ts.map +1 -1
- package/dist/roof/roof-footprint.js +124 -2
- package/dist/roof/roof-materials.d.ts.map +1 -1
- package/dist/roof/roof-materials.js +10 -1
- package/dist/roof/roof-placement-mode.d.ts +0 -2
- package/dist/roof/roof-placement-mode.d.ts.map +1 -1
- package/dist/roof/roof-placement-mode.js +8 -6
- package/dist/roof/roof-plan-creases.d.ts +50 -0
- package/dist/roof/roof-plan-creases.d.ts.map +1 -0
- package/dist/roof/roof-plan-creases.js +194 -0
- package/dist/roof/roof-ridge-mode.d.ts +20 -0
- package/dist/roof/roof-ridge-mode.d.ts.map +1 -0
- package/dist/roof/roof-ridge-mode.js +16 -0
- package/dist/roof/tool.d.ts +17 -4
- package/dist/roof/tool.d.ts.map +1 -1
- package/dist/roof/tool.js +211 -113
- package/dist/roof/wall-catch.d.ts +106 -0
- package/dist/roof/wall-catch.d.ts.map +1 -0
- package/dist/roof/wall-catch.js +267 -0
- package/dist/roof-segment/build-up-section.d.ts +9 -0
- package/dist/roof-segment/build-up-section.d.ts.map +1 -0
- package/dist/roof-segment/build-up-section.js +191 -0
- package/dist/roof-segment/definition.d.ts.map +1 -1
- package/dist/roof-segment/definition.js +50 -5
- package/dist/roof-segment/floorplan-affordances.d.ts.map +1 -1
- package/dist/roof-segment/floorplan-affordances.js +68 -19
- package/dist/roof-segment/floorplan.d.ts.map +1 -1
- package/dist/roof-segment/floorplan.js +16 -12
- package/dist/roof-segment/paint.d.ts +3 -1
- package/dist/roof-segment/paint.d.ts.map +1 -1
- package/dist/roof-segment/paint.js +43 -2
- package/dist/roof-segment/panel-model.d.ts +23 -0
- package/dist/roof-segment/panel-model.d.ts.map +1 -0
- package/dist/roof-segment/panel-model.js +64 -0
- package/dist/roof-segment/panel.d.ts.map +1 -1
- package/dist/roof-segment/panel.js +96 -14
- package/dist/roof-segment/parametrics.d.ts.map +1 -1
- package/dist/roof-segment/parametrics.js +4 -0
- package/dist/roof-segment/renderer.d.ts.map +1 -1
- package/dist/roof-segment/renderer.js +26 -5
- package/dist/separator/definition.d.ts.map +1 -1
- package/dist/separator/definition.js +10 -12
- package/dist/separator/floorplan-affordances.d.ts +9 -0
- package/dist/separator/floorplan-affordances.d.ts.map +1 -0
- package/dist/separator/floorplan-affordances.js +23 -0
- package/dist/separator/floorplan.d.ts +9 -0
- package/dist/separator/floorplan.d.ts.map +1 -0
- package/dist/separator/floorplan.js +54 -0
- package/dist/separator/renderer.d.ts +4 -0
- package/dist/separator/renderer.d.ts.map +1 -1
- package/dist/separator/renderer.js +21 -6
- package/dist/separator/selection.d.ts +10 -0
- package/dist/separator/selection.d.ts.map +1 -0
- package/dist/separator/selection.js +35 -0
- package/dist/shared/build-up-controls.d.ts +88 -0
- package/dist/shared/build-up-controls.d.ts.map +1 -0
- package/dist/shared/build-up-controls.js +139 -0
- package/dist/shared/curtain-opening-limits.d.ts.map +1 -1
- package/dist/shared/curtain-opening-limits.js +44 -14
- package/dist/shared/item-interaction-actions.d.ts.map +1 -1
- package/dist/shared/item-interaction-actions.js +11 -2
- package/dist/shared/layer-thickness.d.ts +2 -0
- package/dist/shared/layer-thickness.d.ts.map +1 -0
- package/dist/shared/layer-thickness.js +3 -0
- package/dist/shared/move-roof-tool.d.ts.map +1 -1
- package/dist/shared/move-roof-tool.js +100 -5
- package/dist/shared/node-batch/batchable.d.ts +2 -0
- package/dist/shared/node-batch/batchable.d.ts.map +1 -1
- package/dist/shared/node-batch/batchable.js +4 -0
- package/dist/shared/node-batch/candidates.d.ts +21 -5
- package/dist/shared/node-batch/candidates.d.ts.map +1 -1
- package/dist/shared/node-batch/candidates.js +85 -50
- package/dist/shared/node-batch/system.d.ts.map +1 -1
- package/dist/shared/node-batch/system.js +24 -15
- package/dist/shared/opening-casing-move.d.ts +16 -0
- package/dist/shared/opening-casing-move.d.ts.map +1 -0
- package/dist/shared/opening-casing-move.js +33 -0
- package/dist/shared/opening-casing-section.d.ts +15 -0
- package/dist/shared/opening-casing-section.d.ts.map +1 -0
- package/dist/shared/opening-casing-section.js +38 -0
- package/dist/shared/opening-casing.d.ts +26 -0
- package/dist/shared/opening-casing.d.ts.map +1 -0
- package/dist/shared/opening-casing.js +80 -0
- package/dist/shared/opening-depth-position.d.ts +13 -0
- package/dist/shared/opening-depth-position.d.ts.map +1 -0
- package/dist/shared/opening-depth-position.js +34 -0
- package/dist/shared/opening-documentation.d.ts.map +1 -1
- package/dist/shared/opening-documentation.js +17 -8
- package/dist/shared/opening-guides-runtime.d.ts +2 -1
- package/dist/shared/opening-guides-runtime.d.ts.map +1 -1
- package/dist/shared/opening-guides-runtime.js +11 -7
- package/dist/shared/opening-labels.d.ts +11 -0
- package/dist/shared/opening-labels.d.ts.map +1 -0
- package/dist/shared/opening-labels.js +46 -0
- package/dist/shared/opening-placement-dimensions.d.ts.map +1 -1
- package/dist/shared/opening-placement-dimensions.js +11 -9
- package/dist/shared/opening-plane-offset.d.ts +4 -3
- package/dist/shared/opening-plane-offset.d.ts.map +1 -1
- package/dist/shared/opening-plane-offset.js +7 -4
- package/dist/shared/opening-swap.d.ts +8 -0
- package/dist/shared/opening-swap.d.ts.map +1 -0
- package/dist/shared/opening-swap.js +18 -0
- package/dist/shared/polygon-vertex-affordance.d.ts +19 -0
- package/dist/shared/polygon-vertex-affordance.d.ts.map +1 -1
- package/dist/shared/polygon-vertex-affordance.js +65 -6
- package/dist/shared/roof-opening-host.d.ts +2 -1
- package/dist/shared/roof-opening-host.d.ts.map +1 -1
- package/dist/shared/roof-opening-host.js +14 -5
- package/dist/shared/roof-wall-opening-cut.d.ts.map +1 -1
- package/dist/shared/roof-wall-opening-cut.js +14 -6
- package/dist/shared/roof-wall-opening-placement.d.ts +2 -1
- package/dist/shared/roof-wall-opening-placement.d.ts.map +1 -1
- package/dist/shared/roof-wall-opening-placement.js +6 -4
- package/dist/shared/run-hanger-inspector.d.ts.map +1 -1
- package/dist/shared/run-hanger-inspector.js +39 -5
- package/dist/shared/system-check-panel.d.ts.map +1 -1
- package/dist/shared/system-check-panel.js +94 -15
- package/dist/shared/wall-attach-target.d.ts.map +1 -1
- package/dist/shared/wall-attach-target.js +6 -3
- package/dist/shelf/definition.d.ts.map +1 -1
- package/dist/shelf/definition.js +2 -0
- package/dist/site/ground-hole.d.ts +3 -3
- package/dist/site/ground-hole.js +3 -3
- package/dist/site/ground-veil.d.ts +5 -12
- package/dist/site/ground-veil.d.ts.map +1 -1
- package/dist/site/ground-veil.js +9 -33
- package/dist/site/panel.d.ts.map +1 -1
- package/dist/site/panel.js +52 -12
- package/dist/site/renderer.d.ts.map +1 -1
- package/dist/site/renderer.js +52 -23
- package/dist/skylight/panel.d.ts.map +1 -1
- package/dist/skylight/panel.js +49 -19
- package/dist/slab/deck-geometry.d.ts +28 -0
- package/dist/slab/deck-geometry.d.ts.map +1 -0
- package/dist/slab/deck-geometry.js +320 -0
- package/dist/slab/definition.d.ts +2 -1
- package/dist/slab/definition.d.ts.map +1 -1
- package/dist/slab/definition.js +6 -1
- package/dist/slab/dependency-tracker.d.ts.map +1 -1
- package/dist/slab/dependency-tracker.js +3 -0
- package/dist/slab/floorplan-affordances.d.ts +500 -0
- package/dist/slab/floorplan-affordances.d.ts.map +1 -1
- package/dist/slab/geometry.d.ts.map +1 -1
- package/dist/slab/geometry.js +46 -9
- package/dist/slab/panel.d.ts.map +1 -1
- package/dist/slab/panel.js +97 -21
- package/dist/slab/renderer.d.ts +11 -0
- package/dist/slab/renderer.d.ts.map +1 -0
- package/dist/slab/renderer.js +19 -0
- package/dist/slab/system.d.ts.map +1 -1
- package/dist/slab/system.js +12 -1
- package/dist/solar-panel/panel.d.ts.map +1 -1
- package/dist/solar-panel/panel.js +49 -14
- package/dist/stair/construction-controls.d.ts +3 -1
- package/dist/stair/construction-controls.d.ts.map +1 -1
- package/dist/stair/construction-controls.js +75 -12
- package/dist/stair/paint.d.ts +6 -0
- package/dist/stair/paint.d.ts.map +1 -1
- package/dist/stair/panel.d.ts.map +1 -1
- package/dist/stair/panel.js +243 -51
- package/dist/stair/parametrics.d.ts.map +1 -1
- package/dist/stair/parametrics.js +7 -0
- package/dist/stair/placement-defaults.d.ts +18 -0
- package/dist/stair/placement-defaults.d.ts.map +1 -0
- package/dist/stair/placement-defaults.js +27 -0
- package/dist/stair/railing-controls.d.ts.map +1 -1
- package/dist/stair/railing-controls.js +78 -18
- package/dist/stair/renderer.d.ts.map +1 -1
- package/dist/stair/renderer.js +16 -10
- package/dist/stair/structure-controls.d.ts +18 -0
- package/dist/stair/structure-controls.d.ts.map +1 -0
- package/dist/stair/structure-controls.js +275 -0
- package/dist/stair/tool.d.ts.map +1 -1
- package/dist/stair/tool.js +13 -9
- package/dist/stair/use-stair-render-data.d.ts +41 -0
- package/dist/stair/use-stair-render-data.d.ts.map +1 -1
- package/dist/stair-segment/panel.d.ts.map +1 -1
- package/dist/stair-segment/panel.js +65 -18
- package/dist/turbine-vent/panel.d.ts.map +1 -1
- package/dist/turbine-vent/panel.js +14 -5
- package/dist/unit/unit-panel.d.ts.map +1 -1
- package/dist/unit/unit-panel.js +28 -12
- package/dist/wall/actions.d.ts +1 -1
- package/dist/wall/actions.d.ts.map +1 -1
- package/dist/wall/actions.js +17 -13
- package/dist/wall/construction-dimensions.d.ts +6 -0
- package/dist/wall/construction-dimensions.d.ts.map +1 -1
- package/dist/wall/construction-dimensions.js +8 -0
- package/dist/wall/contextual-dimensions.d.ts +6 -0
- package/dist/wall/contextual-dimensions.d.ts.map +1 -1
- package/dist/wall/contextual-dimensions.js +104 -17
- package/dist/wall/curtain-opening-frame.d.ts.map +1 -1
- package/dist/wall/curtain-opening-frame.js +6 -4
- package/dist/wall/curtain-wall-layout.d.ts +1 -1
- package/dist/wall/curtain-wall-layout.d.ts.map +1 -1
- package/dist/wall/curtain-wall-layout.js +6 -4
- package/dist/wall/curtain-wall-materials.d.ts.map +1 -1
- package/dist/wall/curtain-wall-materials.js +8 -3
- package/dist/wall/curtain-wall-panel.d.ts.map +1 -1
- package/dist/wall/curtain-wall-panel.js +241 -37
- package/dist/wall/curve-tool.d.ts.map +1 -1
- package/dist/wall/curve-tool.js +2 -3
- package/dist/wall/definition.d.ts.map +1 -1
- package/dist/wall/definition.js +20 -5
- package/dist/wall/floorplan-affordances.d.ts.map +1 -1
- package/dist/wall/floorplan-affordances.js +9 -6
- package/dist/wall/floorplan-move.d.ts.map +1 -1
- package/dist/wall/floorplan-move.js +66 -16
- package/dist/wall/floorplan.d.ts +4 -5
- package/dist/wall/floorplan.d.ts.map +1 -1
- package/dist/wall/floorplan.js +62 -46
- package/dist/wall/move-endpoint-tool.d.ts.map +1 -1
- package/dist/wall/move-endpoint-tool.js +1 -0
- package/dist/wall/move-tool.d.ts.map +1 -1
- package/dist/wall/move-tool.js +77 -12
- package/dist/wall/paint.d.ts +2 -2
- package/dist/wall/paint.d.ts.map +1 -1
- package/dist/wall/paint.js +11 -4
- package/dist/wall/panel-model.d.ts +17 -2
- package/dist/wall/panel-model.d.ts.map +1 -1
- package/dist/wall/panel-model.js +158 -18
- package/dist/wall/panel.d.ts +8 -0
- package/dist/wall/panel.d.ts.map +1 -1
- package/dist/wall/panel.js +228 -156
- package/dist/wall/parametrics.d.ts +1 -1
- package/dist/wall/parametrics.d.ts.map +1 -1
- package/dist/wall/parametrics.js +14 -1
- package/dist/wall/railing-wall-adapter.d.ts +7 -0
- package/dist/wall/railing-wall-adapter.d.ts.map +1 -0
- package/dist/wall/railing-wall-adapter.js +38 -0
- package/dist/wall/railing-wall-floorplan.d.ts +8 -0
- package/dist/wall/railing-wall-floorplan.d.ts.map +1 -0
- package/dist/wall/railing-wall-floorplan.js +27 -0
- package/dist/wall/railing-wall-geometry.d.ts +12 -0
- package/dist/wall/railing-wall-geometry.d.ts.map +1 -0
- package/dist/wall/railing-wall-geometry.js +51 -0
- package/dist/wall/railing-wall-guard.d.ts +81 -0
- package/dist/wall/railing-wall-guard.d.ts.map +1 -0
- package/dist/wall/railing-wall-guard.js +435 -0
- package/dist/wall/railing-wall-materials.d.ts +11 -0
- package/dist/wall/railing-wall-materials.d.ts.map +1 -0
- package/dist/wall/railing-wall-materials.js +31 -0
- package/dist/wall/railing-wall-panel-model.d.ts +30 -0
- package/dist/wall/railing-wall-panel-model.d.ts.map +1 -0
- package/dist/wall/railing-wall-panel-model.js +117 -0
- package/dist/wall/railing-wall-panel.d.ts +17 -0
- package/dist/wall/railing-wall-panel.d.ts.map +1 -0
- package/dist/wall/railing-wall-panel.js +42 -0
- package/dist/wall/rectangle-command.d.ts +79 -1
- package/dist/wall/rectangle-command.d.ts.map +1 -1
- package/dist/wall/rectangle-tool.d.ts.map +1 -1
- package/dist/wall/rectangle-tool.js +2 -0
- package/dist/wall/renderer.d.ts.map +1 -1
- package/dist/wall/renderer.js +3 -1
- package/dist/wall/skirting-floor-gaps.d.ts +8 -0
- package/dist/wall/skirting-floor-gaps.d.ts.map +1 -0
- package/dist/wall/skirting-floor-gaps.js +36 -0
- package/dist/wall/system.d.ts +0 -14
- package/dist/wall/system.d.ts.map +1 -1
- package/dist/wall/system.js +6 -1
- package/dist/wall/tool.d.ts +16 -0
- package/dist/wall/tool.d.ts.map +1 -1
- package/dist/wall/tool.js +160 -47
- package/dist/wall/treatments.d.ts +3 -0
- package/dist/wall/treatments.d.ts.map +1 -1
- package/dist/wall/treatments.js +30 -7
- package/dist/window/actions.d.ts +7 -0
- package/dist/window/actions.d.ts.map +1 -0
- package/dist/window/actions.js +29 -0
- package/dist/window/definition.d.ts.map +1 -1
- package/dist/window/definition.js +11 -2
- package/dist/window/floorplan-move.d.ts.map +1 -1
- package/dist/window/floorplan-move.js +5 -0
- package/dist/window/floorplan.d.ts +2 -0
- package/dist/window/floorplan.d.ts.map +1 -1
- package/dist/window/floorplan.js +58 -1
- package/dist/window/mechanism.d.ts.map +1 -1
- package/dist/window/mechanism.js +21 -1
- package/dist/window/move-tool.d.ts.map +1 -1
- package/dist/window/move-tool.js +10 -3
- package/dist/window/paint.d.ts +2 -7
- package/dist/window/paint.d.ts.map +1 -1
- package/dist/window/paint.js +31 -3
- package/dist/window/panel.d.ts.map +1 -1
- package/dist/window/panel.js +311 -69
- package/dist/window/placement.d.ts.map +1 -1
- package/dist/window/placement.js +5 -1
- package/dist/window/swing.d.ts +13 -0
- package/dist/window/swing.d.ts.map +1 -0
- package/dist/window/swing.js +16 -0
- package/dist/window/tool.d.ts.map +1 -1
- package/dist/window/tool.js +19 -14
- package/dist/zone/floorplan-affordances.d.ts +136 -0
- package/dist/zone/floorplan-affordances.d.ts.map +1 -1
- package/dist/zone/quantities-panel.d.ts.map +1 -1
- package/dist/zone/quantities-panel.js +34 -9
- package/dist/zone/renderer.d.ts.map +1 -1
- package/dist/zone/renderer.js +9 -5
- package/package.json +14 -14
- package/dist/site/generic-foundation-geometry.d.ts +0 -16
- package/dist/site/generic-foundation-geometry.d.ts.map +0 -1
- package/dist/site/generic-foundation-geometry.js +0 -75
- package/dist/site/generic-foundation.d.ts +0 -4
- package/dist/site/generic-foundation.d.ts.map +0 -1
- package/dist/site/generic-foundation.js +0 -91
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getWallCurveFrameAt, getWallCurveLength, isCurvedWall, } from '@pascal-app/core';
|
|
1
|
+
import { getDoorOpeningSize, getWallCurveFrameAt, getWallCurveLength, isCurvedWall, openingHostFacing, } from '@pascal-app/core';
|
|
2
2
|
import { buildOpeningCutoutShape, ensureRenderableGeometryAttributes } from '@pascal-app/viewer';
|
|
3
3
|
import { ExtrudeGeometry, Path, Shape, Vector2 } from 'three';
|
|
4
4
|
export function mapCurtainOpeningGeometryToWall(geometry, wall) {
|
|
@@ -27,6 +27,8 @@ export function mapCurtainOpeningGeometryToWall(geometry, wall) {
|
|
|
27
27
|
geometry.computeVertexNormals();
|
|
28
28
|
}
|
|
29
29
|
export function curtainOpeningProfile(opening, width) {
|
|
30
|
+
const size = getDoorOpeningSize(opening);
|
|
31
|
+
const centerX = opening.position[0] - size.leafOffsetX * openingHostFacing(opening);
|
|
30
32
|
const bottom = opening.position[1] - opening.height / 2;
|
|
31
33
|
if (Math.cos(opening.rotation[1]) < 0 && opening.openingRadiusMode === 'individual') {
|
|
32
34
|
if (opening.type === 'window') {
|
|
@@ -42,10 +44,10 @@ export function curtainOpeningProfile(opening, width) {
|
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
const points = buildOpeningCutoutShape(opening, {
|
|
45
|
-
left:
|
|
46
|
-
right:
|
|
47
|
+
left: centerX - size.width / 2,
|
|
48
|
+
right: centerX + size.width / 2,
|
|
47
49
|
bottom,
|
|
48
|
-
top: bottom +
|
|
50
|
+
top: bottom + size.height,
|
|
49
51
|
})
|
|
50
52
|
.getPoints(4)
|
|
51
53
|
.filter((point, index, all) => index === 0 || point.distanceToSquared(all[index - 1]) > 1e-14);
|
|
@@ -9,7 +9,7 @@ export type CurtainWallPiece = {
|
|
|
9
9
|
role: 'frame' | 'glass' | 'solid';
|
|
10
10
|
};
|
|
11
11
|
export declare function curtainPanelType(config: CurtainWallConfig, column: number, row: number, rowCount: number): CurtainPanelType;
|
|
12
|
-
export declare function buildCurtainWallLayout(length: number, height: number, depth: number, config: CurtainWallConfig, openings?: readonly (Pick<DoorNode, 'position' | 'width' | 'height' | 'openingShape'> & {
|
|
12
|
+
export declare function buildCurtainWallLayout(length: number, height: number, depth: number, config: CurtainWallConfig, openings?: readonly (Pick<DoorNode, 'position' | 'width' | 'height' | 'openingShape'> & Partial<Pick<DoorNode, 'rotation' | 'doorType' | 'sidelightLeft' | 'sidelightRight' | 'transomHeight'>> & {
|
|
13
13
|
type: 'door' | 'window';
|
|
14
14
|
})[], baseElevation?: number): CurtainWallPiece[];
|
|
15
15
|
//# sourceMappingURL=curtain-wall-layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curtain-wall-layout.d.ts","sourceRoot":"","sources":["../../src/wall/curtain-wall-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAEtB,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"curtain-wall-layout.d.ts","sourceRoot":"","sources":["../../src/wall/curtain-wall-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAEtB,KAAK,QAAQ,EAGd,MAAM,kBAAkB,CAAA;AAEzB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;CAClC,CAAA;AAED,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,iBAAiB,EACzB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACf,gBAAgB,CASlB;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,iBAAiB,EACzB,QAAQ,GAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,cAAc,CAAC,GAClF,OAAO,CACL,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,GAAG,eAAe,GAAG,gBAAgB,GAAG,eAAe,CAAC,CAC/F,GAAG;IACF,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAA;CACxB,CAAC,EAAO,EACX,aAAa,SAAI,GAChB,gBAAgB,EAAE,CAuMpB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { curtainGridPositions, } from '@pascal-app/core';
|
|
1
|
+
import { curtainGridPositions, getDoorOpeningSize, openingHostFacing, } from '@pascal-app/core';
|
|
2
2
|
export function curtainPanelType(config, column, row, rowCount) {
|
|
3
3
|
const override = config.panels.find((panel) => panel.column === column && panel.row === row);
|
|
4
4
|
if (override)
|
|
@@ -89,10 +89,12 @@ export function buildCurtainWallLayout(length, height, depth, config, openings =
|
|
|
89
89
|
for (const opening of openings) {
|
|
90
90
|
if (opening.openingShape !== 'rectangle')
|
|
91
91
|
continue;
|
|
92
|
-
const
|
|
93
|
-
const
|
|
92
|
+
const size = getDoorOpeningSize(opening);
|
|
93
|
+
const centerX = opening.position[0] - size.leafOffsetX * openingHostFacing(opening);
|
|
94
|
+
const left = centerX - size.width / 2;
|
|
95
|
+
const right = centerX + size.width / 2;
|
|
94
96
|
const bottom = opening.position[1] - opening.height / 2 - baseElevation;
|
|
95
|
-
const top = bottom +
|
|
97
|
+
const top = bottom + size.height;
|
|
96
98
|
if (right <= 0 || left >= length || top <= 0 || bottom >= height)
|
|
97
99
|
continue;
|
|
98
100
|
const outerLeft = Math.max(0, left - config.perimeterWidth);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curtain-wall-materials.d.ts","sourceRoot":"","sources":["../../src/wall/curtain-wall-materials.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,mBAAmB,EACnB,KAAK,aAAa,EAElB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"curtain-wall-materials.d.ts","sourceRoot":"","sources":["../../src/wall/curtain-wall-materials.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,mBAAmB,EACnB,KAAK,aAAa,EAElB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAA;AAK3B,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,aAAa,EACtB,SAAS,CAAC,EAAE,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,GACjD,oBAAoB,CA8CtB;AAED,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,QAAQ,EACd,OAAO,GAAE,aAA0B,EACnC,QAAQ,UAAO,EACf,WAAW,GAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAU,EAC/D,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,EAClD,UAAU,GAAE,SAAS,MAAM,EAAO,GACjC,aAAa,CAkBf"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getCurtainWallConfig, getMaterialPresetByRef, } from '@pascal-app/core';
|
|
2
2
|
import { getMaterialsForWall, resolveMaterialRef, } from '@pascal-app/viewer';
|
|
3
3
|
import { MeshLambertNodeMaterial, MeshStandardNodeMaterial } from 'three/webgpu';
|
|
4
|
+
import { createRailingWallMaterials } from './railing-wall-materials.js';
|
|
4
5
|
export function createCurtainWallMaterials(wall, shading, materials) {
|
|
5
6
|
const config = getCurtainWallConfig(wall);
|
|
6
7
|
return {
|
|
@@ -49,8 +50,12 @@ export function createCurtainWallMaterials(wall, shading, materials) {
|
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
52
|
export function getCurtainAwareWallMaterials(wall, shading = 'rendered', textures = true, colorPreset = 'clay', sceneTheme, materials, finishRefs = []) {
|
|
52
|
-
const override = textures
|
|
53
|
-
?
|
|
54
|
-
:
|
|
53
|
+
const override = !textures
|
|
54
|
+
? undefined
|
|
55
|
+
: wall.wallType === 'curtain'
|
|
56
|
+
? createCurtainWallMaterials(wall, shading, materials)
|
|
57
|
+
: wall.wallType === 'railing'
|
|
58
|
+
? createRailingWallMaterials(wall, shading, materials)
|
|
59
|
+
: undefined;
|
|
55
60
|
return getMaterialsForWall(wall, shading, textures, colorPreset, sceneTheme, materials, finishRefs, override);
|
|
56
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curtain-wall-panel.d.ts","sourceRoot":"","sources":["../../src/wall/curtain-wall-panel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"curtain-wall-panel.d.ts","sourceRoot":"","sources":["../../src/wall/curtain-wall-panel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,iBAAiB,EAQtB,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAA;AAczB,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAA;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAA;IAC5C,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAA;IAC7C,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAiOD,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAChC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,CAI/B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,EAAE,KAAK,+BAknBP"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { curtainGridPositions, getCurtainWallConfig, getEffectiveNode, getWallCurveLength, getWallThickness, } from '@pascal-app/core';
|
|
3
|
+
import { curtainGridPositions, formatFixed, getCurtainWallConfig, getEffectiveNode, getWallCurveLength, getWallThickness, usePascalI18n, } from '@pascal-app/core';
|
|
4
4
|
import { getLinearUnitLabel, linearControlValueToMeters, metersToLinearUnit, PanelSection, SegmentedControl, SliderControl, ToggleControl, } from '@pascal-app/editor';
|
|
5
5
|
import { useState } from 'react';
|
|
6
6
|
import { useCurtainPanelHighlight } from './curtain-panel-highlight.js';
|
|
@@ -20,28 +20,77 @@ function LengthControl({ label, value, min, max, unit, onChange, onCommit, onCan
|
|
|
20
20
|
: linearControlValueToMeters(next, unit, { minMeters: min, maxMeters: max })), precision: millimeters ? 1 : 3, step: millimeters ? 1 : 0.005, unit: millimeters ? 'mm' : getLinearUnitLabel(unit), value: display(value) }));
|
|
21
21
|
}
|
|
22
22
|
function GridSection({ length, vertical = false, onPreview, title, value, unit, onChange, onCommit, onCancel, }) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
{
|
|
30
|
-
|
|
23
|
+
const i18n = usePascalI18n();
|
|
24
|
+
return (_jsxs(PanelSection, { title: title, children: [_jsx(Choice, { label: i18n._({ id: 'node.wall.curtainWallPanel.layout', message: 'Layout' }), onChange: (layout) => onChange({ ...value, layout }), options: [
|
|
25
|
+
{
|
|
26
|
+
label: i18n._({ id: 'node.wall.curtainWallPanel.panelCount', message: 'Panel count' }),
|
|
27
|
+
value: 'count',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: i18n._({
|
|
31
|
+
id: 'node.wall.curtainWallPanel.maximumSpacing',
|
|
32
|
+
message: 'Maximum spacing',
|
|
33
|
+
}),
|
|
34
|
+
value: 'maximum-spacing',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: i18n._({
|
|
38
|
+
id: 'node.wall.curtainWallPanel.fixedSpacing',
|
|
39
|
+
message: 'Fixed spacing',
|
|
40
|
+
}),
|
|
41
|
+
value: 'fixed-spacing',
|
|
42
|
+
},
|
|
43
|
+
], value: value.layout }), value.layout === 'count' ? (_jsx(SliderControl, { onCommit: onCommit, onCancel: onCancel, restoreOnCommit: false, previewWhileTyping: true, label: i18n._({ id: 'node.wall.curtainWallPanel.panels', message: 'Panels' }), max: 32, min: 1, onChange: (count) => onPreview({ ...value, count: Math.round(count) }), precision: 0, step: 1, value: value.count })) : (_jsx(LengthControl, { onCommit: onCommit, onCancel: onCancel, label: i18n._({ id: 'node.wall.curtainWallPanel.spacing', message: 'Spacing' }), max: 100, min: 0.2, onChange: (spacing) => onPreview({ ...value, spacing }), unit: unit, value: value.spacing })), value.layout === 'fixed-spacing' && (_jsx(SegmentedControl, { onChange: (alignment) => onChange({ ...value, alignment }), options: [
|
|
44
|
+
{
|
|
45
|
+
label: vertical
|
|
46
|
+
? i18n._({ id: 'node.wall.curtainWallPanel.bottom', message: 'Bottom' })
|
|
47
|
+
: i18n._({ id: 'node.wall.curtainWallPanel.start', message: 'Start' }),
|
|
48
|
+
value: 'start',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: i18n._({ id: 'node.wall.curtainWallPanel.center', message: 'Center' }),
|
|
52
|
+
value: 'center',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: vertical
|
|
56
|
+
? i18n._({ id: 'node.wall.curtainWallPanel.top', message: 'Top' })
|
|
57
|
+
: i18n._({ id: 'node.wall.curtainWallPanel.end', message: 'End' }),
|
|
58
|
+
value: 'end',
|
|
59
|
+
},
|
|
31
60
|
], value: value.alignment })), _jsx("p", { className: "text-[11px] text-muted-foreground", children: (() => {
|
|
32
61
|
const positions = curtainGridPositions(length, value);
|
|
33
62
|
const spans = positions.slice(1).map((position, i) => position - positions[i]);
|
|
34
63
|
if (!spans.length)
|
|
35
|
-
return 'No panels';
|
|
64
|
+
return i18n._({ id: 'node.wall.curtain.noPanels', message: 'No panels' });
|
|
36
65
|
const min = metersToLinearUnit(Math.min(...spans), unit);
|
|
37
66
|
const max = metersToLinearUnit(Math.max(...spans), unit);
|
|
38
|
-
|
|
67
|
+
const spacing = `${formatFixed(min, 2, i18n.getLocale())}${max - min > 0.005 ? `–${formatFixed(max, 2, i18n.getLocale())}` : ''} ${getLinearUnitLabel(unit)}`;
|
|
68
|
+
return vertical
|
|
69
|
+
? i18n._({
|
|
70
|
+
id: 'node.wall.curtain.rowSpacing',
|
|
71
|
+
message: '{count, plural, one {{number} row} other {{number} rows}} · {spacing} grid spacing',
|
|
72
|
+
values: { count: spans.length, number: String(spans.length), spacing },
|
|
73
|
+
})
|
|
74
|
+
: i18n._({
|
|
75
|
+
id: 'node.wall.curtain.columnSpacing',
|
|
76
|
+
message: '{count, plural, one {{number} column} other {{number} columns}} · {spacing} grid spacing',
|
|
77
|
+
values: { count: spans.length, number: String(spans.length), spacing },
|
|
78
|
+
});
|
|
39
79
|
})() })] }));
|
|
40
80
|
}
|
|
41
81
|
const PANEL_OPTIONS = [
|
|
42
|
-
{
|
|
43
|
-
|
|
44
|
-
|
|
82
|
+
{
|
|
83
|
+
label: /* i18n */ { id: 'node.wall.curtainWallPanel.glass', message: 'Glass' },
|
|
84
|
+
value: 'glass',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: /* i18n */ { id: 'node.wall.curtainWallPanel.solid', message: 'Solid' },
|
|
88
|
+
value: 'solid',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: /* i18n */ { id: 'node.wall.curtainWallPanel.empty', message: 'Empty' },
|
|
92
|
+
value: 'empty',
|
|
93
|
+
},
|
|
45
94
|
];
|
|
46
95
|
export function getCurtainWallUpdate(node, patch) {
|
|
47
96
|
return {
|
|
@@ -49,6 +98,7 @@ export function getCurtainWallUpdate(node, patch) {
|
|
|
49
98
|
};
|
|
50
99
|
}
|
|
51
100
|
export function CurtainWallPanel({ node, height, unit, onUpdate, onPreview, onCommit, onCancel, }) {
|
|
101
|
+
const i18n = usePascalI18n();
|
|
52
102
|
const config = getCurtainWallConfig(node);
|
|
53
103
|
const update = (patch, preview = false) => {
|
|
54
104
|
;
|
|
@@ -81,28 +131,130 @@ export function CurtainWallPanel({ node, height, unit, onUpdate, onPreview, onCo
|
|
|
81
131
|
.some((_, c) => ys.slice(1).some((_, r) => curtainPanelType(config, c, r, rowCount) === 'glass'));
|
|
82
132
|
const paintedGlass = Boolean(node.slots?.['curtain-glass']);
|
|
83
133
|
const effectiveThickness = Math.min(config.glassThickness, getWallThickness(node) * 0.45);
|
|
84
|
-
return (_jsxs(_Fragment, { children: [_jsxs(PanelSection, { title:
|
|
85
|
-
{
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
134
|
+
return (_jsxs(_Fragment, { children: [_jsxs(PanelSection, { title: i18n._({ id: 'node.wall.curtainWallPanel.wallSystem', message: 'Wall system' }), children: [_jsx(Choice, { label: i18n._({ id: 'node.wall.curtainWallPanel.construction', message: 'Construction' }), onChange: (construction) => update({ construction }), options: [
|
|
135
|
+
{
|
|
136
|
+
label: i18n._({
|
|
137
|
+
id: 'node.wall.curtainWallPanel.stickBuilt',
|
|
138
|
+
message: 'Stick-built',
|
|
139
|
+
}),
|
|
140
|
+
value: 'stick',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: i18n._({ id: 'node.wall.curtainWallPanel.unitized', message: 'Unitized' }),
|
|
144
|
+
value: 'unitized',
|
|
145
|
+
},
|
|
146
|
+
], value: config.construction }), _jsx(Choice, { label: i18n._({ id: 'node.wall.curtainWallPanel.framing', message: 'Framing' }), onChange: (framing) => update({ framing }), options: [
|
|
147
|
+
{
|
|
148
|
+
label: i18n._({
|
|
149
|
+
id: 'node.wall.curtainWallPanel.fullyCapped',
|
|
150
|
+
message: 'Fully capped',
|
|
151
|
+
}),
|
|
152
|
+
value: 'capped',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: i18n._({
|
|
156
|
+
id: 'node.wall.curtainWallPanel.verticalCaps',
|
|
157
|
+
message: 'Vertical caps',
|
|
158
|
+
}),
|
|
159
|
+
value: 'vertical-caps',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
label: i18n._({
|
|
163
|
+
id: 'node.wall.curtainWallPanel.horizontalCaps',
|
|
164
|
+
message: 'Horizontal caps',
|
|
165
|
+
}),
|
|
166
|
+
value: 'horizontal-caps',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
label: i18n._({
|
|
170
|
+
id: 'node.wall.curtainWallPanel.structuralGlazing',
|
|
171
|
+
message: 'Structural glazing',
|
|
172
|
+
}),
|
|
173
|
+
value: 'structural-glazing',
|
|
174
|
+
},
|
|
92
175
|
], value: config.framing }), _jsx("p", { className: "text-[11px] text-muted-foreground", children: config.construction === 'unitized'
|
|
93
|
-
?
|
|
94
|
-
|
|
176
|
+
? i18n._({
|
|
177
|
+
id: 'node.wall.curtainWallPanel.separateFramedModulesWithJointsBetween',
|
|
178
|
+
message: 'Separate framed modules with joints between units.',
|
|
179
|
+
})
|
|
180
|
+
: i18n._({
|
|
181
|
+
id: 'node.wall.curtainWallPanel.continuousMullionsAndTransomsAssembledAlong',
|
|
182
|
+
message: 'Continuous mullions and transoms assembled along the wall.',
|
|
183
|
+
}) }), config.framing !== 'capped' && (_jsx("p", { className: "text-[11px] text-muted-foreground", children: i18n._({
|
|
184
|
+
id: 'node.wall.curtainWallPanel.uncappedMembersSitBehindTheGlazing',
|
|
185
|
+
message: 'Uncapped members sit behind the glazing.',
|
|
186
|
+
}) }))] }), _jsx(GridSection, { onChange: (columns) => update({ columns }), onPreview: (columns) => update({ columns }, true), onCommit: onCommit, onCancel: onCancel, title: i18n._({ id: 'node.wall.curtainWallPanel.columnLayout', message: 'Column layout' }), length: getWallCurveLength(node), unit: unit, value: config.columns }), _jsx(GridSection, { onChange: (rows) => update({ rows }), onPreview: (rows) => update({ rows }, true), onCommit: onCommit, onCancel: onCancel, title: i18n._({ id: 'node.wall.curtainWallPanel.rowLayout', message: 'Row layout' }), length: height, vertical: true, unit: unit, value: config.rows }), ((getWallCurveLength(node) / config.columns.spacing > 32 &&
|
|
95
187
|
config.columns.layout !== 'count') ||
|
|
96
|
-
(height / config.rows.spacing > 32 && config.rows.layout !== 'count')) && (_jsx("p", { className: "px-3 text-[11px] text-muted-foreground", children:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
188
|
+
(height / config.rows.spacing > 32 && config.rows.layout !== 'count')) && (_jsx("p", { className: "px-3 text-[11px] text-muted-foreground", children: i18n._({
|
|
189
|
+
id: 'node.wall.curtainWallPanel.gridLimitedTo32PanelsPer',
|
|
190
|
+
message: 'Grid limited to 32 panels per axis. Spacing expands to fit this wall.',
|
|
191
|
+
}) })), _jsxs(PanelSection, { title: i18n._({
|
|
192
|
+
id: 'node.wall.curtainWallPanel.frameDimensions',
|
|
193
|
+
message: 'Frame dimensions',
|
|
194
|
+
}), children: [_jsx(LengthControl, { profile: true, onCommit: onCommit, onCancel: onCancel, label: i18n._({
|
|
195
|
+
id: 'node.wall.curtainWallPanel.verticalFrameWidth',
|
|
196
|
+
message: 'Vertical frame width',
|
|
197
|
+
}), max: 0.3, min: 0.01, onChange: (mullionWidth) => update({ mullionWidth }, true), unit: unit, value: config.mullionWidth }), _jsx(LengthControl, { profile: true, onCommit: onCommit, onCancel: onCancel, label: i18n._({
|
|
198
|
+
id: 'node.wall.curtainWallPanel.horizontalFrameWidth',
|
|
199
|
+
message: 'Horizontal frame width',
|
|
200
|
+
}), max: 0.3, min: 0.01, onChange: (transomWidth) => update({ transomWidth }, true), unit: unit, value: config.transomWidth }), _jsx(LengthControl, { profile: true, onCommit: onCommit, onCancel: onCancel, label: i18n._({
|
|
201
|
+
id: 'node.wall.curtainWallPanel.borderOpeningFrame',
|
|
202
|
+
message: 'Border / opening frame',
|
|
203
|
+
}), max: 0.3, min: 0.01, onChange: (perimeterWidth) => update({ perimeterWidth }, true), unit: unit, value: config.perimeterWidth }), (config.construction === 'unitized' || config.framing !== 'capped') && (_jsx(LengthControl, { profile: true, onCommit: onCommit, onCancel: onCancel, label: config.construction === 'unitized'
|
|
204
|
+
? i18n._({
|
|
205
|
+
id: 'node.wall.curtainWallPanel.moduleJointWidth',
|
|
206
|
+
message: 'Module joint width',
|
|
207
|
+
})
|
|
208
|
+
: i18n._({ id: 'node.wall.curtainWallPanel.glazingGap', message: 'Glazing gap' }), max: 0.05, min: 0.002, onChange: (jointWidth) => update({ jointWidth }, true), unit: unit, value: config.jointWidth }))] }), _jsxs(PanelSection, { title: i18n._({ id: 'node.wall.curtainWallPanel.panelInfill', message: 'Panel infill' }), children: [_jsx(Choice, { label: i18n._({
|
|
209
|
+
id: 'node.wall.curtainWallPanel.defaultPanel',
|
|
210
|
+
message: 'Default panel',
|
|
211
|
+
}), onChange: (panelType) => update({ panelType }), options: PANEL_OPTIONS.map((option) => ({ ...option, label: i18n._(option.label) })), value: config.panelType }), _jsx(Choice, { label: i18n._({ id: 'node.wall.curtainWallPanel.opaqueBand', message: 'Opaque band' }), onChange: (spandrel) => update({ spandrel }), options: [
|
|
212
|
+
{
|
|
213
|
+
label: i18n._({ id: 'node.wall.curtainWallPanel.none', message: 'None' }),
|
|
214
|
+
value: 'none',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
label: i18n._({ id: 'node.wall.curtainWallPanel.bottomRow', message: 'Bottom row' }),
|
|
218
|
+
value: 'bottom',
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
label: i18n._({ id: 'node.wall.curtainWallPanel.topRow', message: 'Top row' }),
|
|
222
|
+
value: 'top',
|
|
223
|
+
},
|
|
224
|
+
], value: config.spandrel }), _jsx("p", { className: "text-[11px] text-muted-foreground", children: i18n._({
|
|
225
|
+
id: 'node.wall.curtainWallPanel.opaqueBandsReplaceAFullRow',
|
|
226
|
+
message: 'Opaque bands replace a full row with solid panels. Apply their finish with the paint tool.',
|
|
227
|
+
}) }), _jsx(LengthControl, { profile: true, onCommit: onCommit, onCancel: onCancel, label: i18n._({
|
|
228
|
+
id: 'node.wall.curtainWallPanel.panelThickness',
|
|
229
|
+
message: 'Panel thickness',
|
|
230
|
+
}), max: 0.08, min: 0.004, onChange: (glassThickness) => update({ glassThickness }, true), unit: unit, value: config.glassThickness }), effectiveThickness < config.glassThickness - 1e-6 && (_jsx("p", { className: "text-[11px] text-muted-foreground", children: i18n._({
|
|
231
|
+
id: 'node.wall.curtainWallPanel.effectiveThicknessLimited',
|
|
232
|
+
message: 'Effective thickness: {thickness}, limited by frame depth.',
|
|
233
|
+
values: {
|
|
234
|
+
thickness: unit === 'metric'
|
|
235
|
+
? `${formatFixed(effectiveThickness * 1000, 1, i18n.getLocale())} mm`
|
|
236
|
+
: `${formatFixed(metersToLinearUnit(effectiveThickness, unit), 3, i18n.getLocale())} ${getLinearUnitLabel(unit)}`,
|
|
237
|
+
},
|
|
238
|
+
}) }))] }), _jsxs(PanelSection, { title: i18n._({
|
|
239
|
+
id: 'node.wall.curtainWallPanel.editIndividualPanels',
|
|
240
|
+
message: 'Edit individual panels',
|
|
241
|
+
}), children: [_jsx(ToggleControl, { checked: panelEditing, label: i18n._({
|
|
242
|
+
id: 'node.wall.curtainWallPanel.enablePanelEditing',
|
|
243
|
+
message: 'Enable panel editing',
|
|
244
|
+
}), onChange: setPanelEditing }), panelEditing && (_jsxs(_Fragment, { children: [_jsx("p", { className: "text-[11px] text-muted-foreground", children: i18n._({
|
|
245
|
+
id: 'node.wall.curtainWallPanel.chooseACellOrEnterIts',
|
|
246
|
+
message: 'Choose a cell or enter its column and row. Use arrow keys to move between cells. Columns run from the wall start; rows count upward.',
|
|
247
|
+
}) }), _jsx("div", { className: "max-h-64 overflow-auto rounded border border-border", children: _jsx("svg", { viewBox: `0 0 ${diagramWidth} ${diagramHeight}`, style: { width: diagramWidth, height: diagramHeight }, className: "block", role: "group", "aria-label": i18n._({
|
|
248
|
+
id: 'node.wall.curtainWallPanel.curtainWallPanelSelection',
|
|
249
|
+
message: 'Curtain wall panel selection',
|
|
250
|
+
}), children: xs.slice(1).flatMap((_, c) => ys.slice(1).map((_, r) => {
|
|
103
251
|
const type = curtainPanelType(config, c, r, rowCount);
|
|
104
252
|
const selected = c === column && r === row;
|
|
105
|
-
return (_jsx("rect", { role: "button", tabIndex: selected ? 0 : -1, "aria-label":
|
|
253
|
+
return (_jsx("rect", { role: "button", tabIndex: selected ? 0 : -1, "aria-label": i18n._({
|
|
254
|
+
id: 'node.wall.curtain.cell',
|
|
255
|
+
message: 'Column {column}, row {row}: {type, select, glass {glass} solid {solid} other {empty}}',
|
|
256
|
+
values: { column: c + 1, row: r + 1, type },
|
|
257
|
+
}), "aria-pressed": selected, "data-cell": `${c}-${r}`, x: (c / columnCount) * diagramWidth, y: diagramHeight - ((r + 1) / rowCount) * diagramHeight, width: diagramWidth / columnCount, height: diagramHeight / rowCount, fill: type === 'glass'
|
|
106
258
|
? '#53788a'
|
|
107
259
|
: type === 'solid'
|
|
108
260
|
? '#64748b'
|
|
@@ -133,14 +285,60 @@ export function CurtainWallPanel({ node, height, unit, onUpdate, onPreview, onCo
|
|
|
133
285
|
setRow(r);
|
|
134
286
|
}
|
|
135
287
|
} }, `${c}-${r}`));
|
|
136
|
-
})) }) }), hiddenOverrides.length > 0 && (_jsxs("div", { className: "space-y-2 text-[11px] text-muted-foreground", children: [
|
|
288
|
+
})) }) }), hiddenOverrides.length > 0 && (_jsxs("div", { className: "space-y-2 text-[11px] text-muted-foreground", children: [_jsx("p", { children: i18n._({
|
|
289
|
+
id: 'node.wall.curtainWallPanel.hiddenCustomPanelCount',
|
|
290
|
+
message: '{length, plural, one {{number} custom panel is outside this grid. It returns if the grid expands.} other {{number} custom panels are outside this grid. They return if the grid expands.}}',
|
|
291
|
+
values: {
|
|
292
|
+
length: hiddenOverrides.length,
|
|
293
|
+
number: String(hiddenOverrides.length),
|
|
294
|
+
},
|
|
295
|
+
}) }), _jsx("button", { type: "button", className: "rounded border border-border px-2 py-1 text-xs", onClick: () => update({
|
|
137
296
|
panels: config.panels.filter((panel) => panel.column < columnCount && panel.row < rowCount),
|
|
138
|
-
}), children:
|
|
297
|
+
}), children: i18n._({
|
|
298
|
+
id: 'node.wall.curtainWallPanel.clearHiddenOverrides',
|
|
299
|
+
message: 'Clear hidden overrides',
|
|
300
|
+
}) })] })), _jsxs("p", { className: "text-[11px] text-muted-foreground", children: [i18n._({
|
|
301
|
+
id: 'node.wall.curtainWallPanel.columnRow',
|
|
302
|
+
message: 'Column {column}, row {row}',
|
|
303
|
+
values: { column: column + 1, row: row + 1 },
|
|
304
|
+
}), ' ', "\u00B7", ' ', overridden
|
|
305
|
+
? i18n._({
|
|
306
|
+
id: 'node.wall.curtainWallPanel.customInfill',
|
|
307
|
+
message: 'Custom infill',
|
|
308
|
+
})
|
|
309
|
+
: i18n._({
|
|
310
|
+
id: 'node.wall.curtainWallPanel.followingWallDefaults',
|
|
311
|
+
message: 'Following wall defaults',
|
|
312
|
+
})] }), _jsx(SliderControl, { label: i18n._({ id: 'node.wall.curtainWallPanel.column', message: 'Column' }), max: Math.max(1, columnCount), min: 1, onChange: (value) => setColumn(Math.round(value) - 1), precision: 0, step: 1, value: column + 1 }), _jsx(SliderControl, { label: i18n._({ id: 'node.wall.curtainWallPanel.row2', message: 'Row' }), max: Math.max(1, rowCount), min: 1, onChange: (value) => setRow(Math.round(value) - 1), precision: 0, step: 1, value: row + 1 }), _jsx(Choice, { label: i18n._({
|
|
313
|
+
id: 'node.wall.curtainWallPanel.panelInfill',
|
|
314
|
+
message: 'Panel infill',
|
|
315
|
+
}), onChange: changePanel, options: PANEL_OPTIONS.map((option) => ({ ...option, label: i18n._(option.label) })), value: selectedType }), _jsx("button", { className: "rounded border border-border px-2 py-1 text-xs disabled:cursor-default disabled:opacity-40", disabled: !overridden, onClick: () => changePanel(), type: "button", children: i18n._({
|
|
316
|
+
id: 'node.wall.curtainWallPanel.resetThisPanel',
|
|
317
|
+
message: 'Reset this panel',
|
|
318
|
+
}) }), _jsx("p", { className: "text-[11px] text-muted-foreground", children: i18n._({
|
|
319
|
+
id: 'node.wall.curtainWallPanel.useTheDoorOrWindowTool',
|
|
320
|
+
message: 'Use the Door or Window tool to add an opening through the wall.',
|
|
321
|
+
}) })] }))] }), hasGlass && (_jsxs(PanelSection, { title: i18n._({
|
|
322
|
+
id: 'node.wall.curtainWallPanel.glassAppearance',
|
|
323
|
+
message: 'Glass appearance',
|
|
324
|
+
}), children: [paintedGlass && (_jsxs("div", { className: "space-y-2 text-xs text-muted-foreground", children: [_jsx("p", { children: i18n._({
|
|
325
|
+
id: 'node.wall.curtainWallPanel.glassAppearanceIsControlledByThe',
|
|
326
|
+
message: 'Glass appearance is controlled by the paint tool.',
|
|
327
|
+
}) }), _jsx("button", { type: "button", className: "rounded border border-border px-2 py-1", onClick: () => {
|
|
139
328
|
onCommit();
|
|
140
329
|
const slots = { ...node.slots };
|
|
141
330
|
delete slots['curtain-glass'];
|
|
142
331
|
onUpdate({ slots });
|
|
143
|
-
}, children:
|
|
332
|
+
}, children: i18n._({
|
|
333
|
+
id: 'node.wall.curtainWallPanel.useGlassSettingsInstead',
|
|
334
|
+
message: 'Use glass settings instead',
|
|
335
|
+
}) })] })), !paintedGlass && (_jsxs("div", { className: "space-y-2", children: [_jsx(SliderControl, { onCommit: onCommit, onCancel: onCancel, restoreOnCommit: false, previewWhileTyping: true, label: i18n._({ id: 'node.wall.curtainWallPanel.opacity', message: 'Opacity' }), max: 100, min: 5, onChange: (value) => update({ glassOpacity: value / 100 }, true), precision: 0, step: 5, unit: "%", value: Math.round(config.glassOpacity * 100) }), _jsx(SliderControl, { onCommit: onCommit, onCancel: onCancel, restoreOnCommit: false, previewWhileTyping: true, label: i18n._({
|
|
336
|
+
id: 'node.wall.curtainWallPanel.surfaceRoughness',
|
|
337
|
+
message: 'Surface roughness',
|
|
338
|
+
}), max: 1, min: 0, onChange: (glassRoughness) => update({ glassRoughness }, true), precision: 2, step: 0.05, value: config.glassRoughness }), _jsxs("label", { className: "flex items-center justify-between text-xs text-muted-foreground", children: [i18n._({ id: 'node.wall.curtainWallPanel.glassTint', message: 'Glass tint' }), _jsx("input", { "aria-label": i18n._({
|
|
339
|
+
id: 'node.wall.curtainWallPanel.glassTint',
|
|
340
|
+
message: 'Glass tint',
|
|
341
|
+
}), className: "h-7 w-10 cursor-pointer rounded border border-border bg-transparent", onKeyDown: (event) => {
|
|
144
342
|
if (event.key === 'Escape') {
|
|
145
343
|
event.preventDefault();
|
|
146
344
|
onCancel();
|
|
@@ -160,8 +358,14 @@ export function CurtainWallPanel({ node, height, unit, onUpdate, onPreview, onCo
|
|
|
160
358
|
}, type: "color", value: config.glassColor })] }), tintEditing && (_jsxs("div", { className: "flex gap-2", children: [_jsx("button", { type: "button", className: "rounded border border-border px-2 py-1 text-xs", onClick: () => {
|
|
161
359
|
onCommit();
|
|
162
360
|
setTintEditing(false);
|
|
163
|
-
}, children:
|
|
361
|
+
}, children: i18n._({ id: 'node.wall.curtainWallPanel.applyTint', message: 'Apply tint' }) }), _jsx("button", { type: "button", className: "rounded border border-border px-2 py-1 text-xs", onClick: () => {
|
|
164
362
|
onCancel();
|
|
165
363
|
setTintEditing(false);
|
|
166
|
-
}, children:
|
|
364
|
+
}, children: i18n._({
|
|
365
|
+
id: 'node.wall.curtainWallPanel.cancelTint',
|
|
366
|
+
message: 'Cancel tint',
|
|
367
|
+
}) })] })), _jsx("p", { className: "text-[11px] text-muted-foreground", children: i18n._({
|
|
368
|
+
id: 'node.wall.curtainWallPanel.lowRoughnessIsSmoothHighRoughness',
|
|
369
|
+
message: 'Low roughness is smooth; high roughness gives a matte surface in rendered shading.',
|
|
370
|
+
}) })] }))] }))] }));
|
|
167
371
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curve-tool.d.ts","sourceRoot":"","sources":["../../src/wall/curve-tool.tsx"],"names":[],"mappings":"AAEA,OAAO,EAaL,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAA;AAazB;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"curve-tool.d.ts","sourceRoot":"","sources":["../../src/wall/curve-tool.tsx"],"names":[],"mappings":"AAEA,OAAO,EAaL,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAA;AAazB;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAqJtD,CAAA;eAEc,aAAa"}
|
package/dist/wall/curve-tool.js
CHANGED
|
@@ -60,9 +60,8 @@ export const CurveWallTool = ({ node }) => {
|
|
|
60
60
|
if (wasFinalized)
|
|
61
61
|
return;
|
|
62
62
|
const snapStep = getSegmentGridStep();
|
|
63
|
-
// Snap the cursor on the
|
|
64
|
-
//
|
|
65
|
-
// pull the curve handle off the visible grid lines.
|
|
63
|
+
// Snap the cursor on the building's own grid lattice, the one the
|
|
64
|
+
// wall tool drafts on (it turns with a turned building).
|
|
66
65
|
const [snappedLocalX, snappedLocalZ] = snapBuildingLocalToWorldGrid([event.localPosition[0], event.localPosition[2]], snapStep);
|
|
67
66
|
const localX = snappedLocalX;
|
|
68
67
|
const localZ = snappedLocalZ;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/wall/definition.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/wall/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,cAAc,EAGpB,MAAM,kBAAkB,CAAA;AAqCzB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AA8BnC,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,OAAO,QAAQ,CA8P1D,CAAA"}
|
package/dist/wall/definition.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_WALL_THICKNESS, getWallBaseElevationForNodes, getWallEffectiveHeightForNodes, wallSlots, } from '@pascal-app/core';
|
|
2
|
-
import { DRAFTING_SURFACE_EXTENSION_KEY, getWallDrawVariant, PANEL_MODEL_EXTENSION, useEditor, } from '@pascal-app/editor';
|
|
1
|
+
import { DEFAULT_WALL_THICKNESS, getWallBaseElevationForNodes, getWallEffectiveHeightForNodes, isRailingWall, wallSlots, } from '@pascal-app/core';
|
|
2
|
+
import { DRAFTING_SURFACE_EXTENSION_KEY, getWallDrawVariant, PANEL_MODEL_EXTENSION, selectedWallDimensions, useEditor, } from '@pascal-app/editor';
|
|
3
3
|
import { buildWallContextualDimensions } from './contextual-dimensions.js';
|
|
4
4
|
import { hasWallCurveBlockingChildren } from './curve-eligibility.js';
|
|
5
5
|
import { wallSeenFromOutside } from './exterior.js';
|
|
@@ -9,7 +9,7 @@ import { wallFloorplanMoveTarget } from './floorplan-move.js';
|
|
|
9
9
|
import { wallFloorplanSiblingOverrides } from './floorplan-overrides.js';
|
|
10
10
|
import { matchWallMeasurementFeature, resolveWallMeasurementFeature, wallMeasurementFeatures, } from './measurement.js';
|
|
11
11
|
import { wallPaint } from './paint.js';
|
|
12
|
-
import { wallReferenceModel, wallSettings } from './panel-model.js';
|
|
12
|
+
import { wallAssemblyMultiControls, wallReferenceModel, wallSettings, } from './panel-model.js';
|
|
13
13
|
import { wallParametrics } from './parametrics.js';
|
|
14
14
|
import { wallQuickMeasurement } from './quick-measurement.js';
|
|
15
15
|
import { WallNode } from './schema.js';
|
|
@@ -59,6 +59,7 @@ export const wallDefinition = {
|
|
|
59
59
|
value: reference.value,
|
|
60
60
|
onChange: (value) => reference.apply(value),
|
|
61
61
|
},
|
|
62
|
+
...wallAssemblyMultiControls(selection),
|
|
62
63
|
];
|
|
63
64
|
},
|
|
64
65
|
},
|
|
@@ -85,6 +86,8 @@ export const wallDefinition = {
|
|
|
85
86
|
tool: () => import('./floorplan-tool.js'),
|
|
86
87
|
reshapeLayers: { split: () => import('./split-floorplan-layer.js') },
|
|
87
88
|
contextualDimensions: buildWallContextualDimensions,
|
|
89
|
+
planHitSelectsNode: true,
|
|
90
|
+
selectionDimensions: ({ node, nodes, faces }) => selectedWallDimensions(nodes, node, faces),
|
|
88
91
|
actionMenu: {
|
|
89
92
|
actions: () => import('./actions.js'),
|
|
90
93
|
canCurve: ({ node, nodes }) => !hasWallCurveBlockingChildren(node.children.flatMap((childId) => {
|
|
@@ -109,13 +112,23 @@ export const wallDefinition = {
|
|
|
109
112
|
reveal: { phase: 'structure', style: 'rise' },
|
|
110
113
|
exterior: wallSeenFromOutside,
|
|
111
114
|
revealLayout: { line: (node) => (node.type === 'wall' ? [node.start, node.end] : null) },
|
|
112
|
-
revealOnEdit: [
|
|
115
|
+
revealOnEdit: [
|
|
116
|
+
'start',
|
|
117
|
+
'end',
|
|
118
|
+
'curveOffset',
|
|
119
|
+
'height',
|
|
120
|
+
'thickness',
|
|
121
|
+
'wallType',
|
|
122
|
+
'curtainWall',
|
|
123
|
+
'railing',
|
|
124
|
+
],
|
|
113
125
|
// Wall move is bespoke (endpoint drag, linked-wall corner cascade,
|
|
114
126
|
// ALT-detach). Omitting `movable` keeps the legacy MoveWallTool via
|
|
115
127
|
// capability-driven dispatch.
|
|
116
128
|
selectable: { hitVolume: 'bbox' },
|
|
117
129
|
// Front + back faces host items (paintings, shelves, switches).
|
|
118
130
|
surfaces: {
|
|
131
|
+
renderOpeningContent: (node) => !isRailingWall(node),
|
|
119
132
|
hosting: false,
|
|
120
133
|
top: {
|
|
121
134
|
height: (node, { nodes }) => {
|
|
@@ -214,6 +227,8 @@ export const wallDefinition = {
|
|
|
214
227
|
visible: whenWallVariant('polygon'),
|
|
215
228
|
},
|
|
216
229
|
{ key: 'Left click', label: 'Set wall start / end', visible: whenWallVariant('walls') },
|
|
230
|
+
// A started Polygon room holds square; Alt lets it go.
|
|
231
|
+
{ key: 'Alt', label: 'Free angle', visible: whenWallVariant('polygon') },
|
|
217
232
|
{ key: 'Esc', label: 'Cancel' },
|
|
218
233
|
],
|
|
219
234
|
// The split session (`split-session.ts`) is the wall's own reshape; the HUD
|
|
@@ -259,6 +274,6 @@ export const wallDefinition = {
|
|
|
259
274
|
paletteOrder: 10,
|
|
260
275
|
},
|
|
261
276
|
mcp: {
|
|
262
|
-
description: 'A wall defined by endpoints and optional curve sagitta. wallType selects standard or
|
|
277
|
+
description: 'A wall defined by endpoints and optional curve sagitta. wallType selects standard, curtain or railing. curtainWall configures construction, framing, grids, glazing, spandrels, and zero-based panel overrides. Thickness is frame depth for curtain walls. A railing is an open guard (railing: style, postSpacing, postSize, infillSize, infillGap, bottomClearance, cap) that closes rooms like a wall; its height is its own (36 in by default), its thickness its posts, and a door on it is a gap in the guard.',
|
|
263
278
|
},
|
|
264
279
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floorplan-affordances.d.ts","sourceRoot":"","sources":["../../src/wall/floorplan-affordances.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,mBAAmB,EAUxB,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAA;AAgGzB;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,QAAQ,CAgE7D,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,mBAAmB,CAAC,QAAQ,CAiCjE,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,mBAAmB,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"floorplan-affordances.d.ts","sourceRoot":"","sources":["../../src/wall/floorplan-affordances.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,mBAAmB,EAUxB,KAAK,QAAQ,EACd,MAAM,kBAAkB,CAAA;AAgGzB;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,QAAQ,CAgE7D,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,mBAAmB,CAAC,QAAQ,CAiCjE,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,mBAAmB,CAAC,QAAQ,CA+KpE,CAAA"}
|