@pascal-app/nodes 1.0.0-beta.5 → 1.0.0
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/LICENSE +21 -0
- package/dist/block/commands.d.ts +68 -0
- package/dist/block/commands.d.ts.map +1 -0
- package/dist/block/commands.js +1144 -0
- package/dist/block/contextual-help.d.ts +3 -0
- package/dist/block/contextual-help.d.ts.map +1 -0
- package/dist/block/contextual-help.js +38 -0
- package/dist/block/definition.d.ts +8 -0
- package/dist/block/definition.d.ts.map +1 -0
- package/dist/block/definition.js +126 -0
- package/dist/block/edit-session.d.ts +16 -0
- package/dist/block/edit-session.d.ts.map +1 -0
- package/dist/block/edit-session.js +32 -0
- package/dist/block/face-host.d.ts +3 -0
- package/dist/block/face-host.d.ts.map +1 -0
- package/dist/block/face-host.js +178 -0
- package/dist/block/floorplan.d.ts +3 -0
- package/dist/block/floorplan.d.ts.map +1 -0
- package/dist/block/floorplan.js +43 -0
- package/dist/block/geometry-snap.d.ts +18 -0
- package/dist/block/geometry-snap.d.ts.map +1 -0
- package/dist/block/geometry-snap.js +137 -0
- package/dist/block/geometry.d.ts +11 -0
- package/dist/block/geometry.d.ts.map +1 -0
- package/dist/block/geometry.js +146 -0
- package/dist/block/gesture-wheel.d.ts +8 -0
- package/dist/block/gesture-wheel.d.ts.map +1 -0
- package/dist/block/gesture-wheel.js +7 -0
- package/dist/block/interaction-sfx.d.ts +3 -0
- package/dist/block/interaction-sfx.d.ts.map +1 -0
- package/dist/block/interaction-sfx.js +16 -0
- package/dist/block/last-operation.d.ts +48 -0
- package/dist/block/last-operation.d.ts.map +1 -0
- package/dist/block/last-operation.js +120 -0
- package/dist/block/loop-cut-interaction.d.ts +5 -0
- package/dist/block/loop-cut-interaction.d.ts.map +1 -0
- package/dist/block/loop-cut-interaction.js +13 -0
- package/dist/block/material-slots.d.ts +61 -0
- package/dist/block/material-slots.d.ts.map +1 -0
- package/dist/block/material-slots.js +131 -0
- package/dist/block/modal-face-operation.d.ts +13 -0
- package/dist/block/modal-face-operation.d.ts.map +1 -0
- package/dist/block/modal-face-operation.js +40 -0
- package/dist/block/modal-session.d.ts +15 -0
- package/dist/block/modal-session.d.ts.map +1 -0
- package/dist/block/modal-session.js +40 -0
- package/dist/block/modal-transform.d.ts +30 -0
- package/dist/block/modal-transform.d.ts.map +1 -0
- package/dist/block/modal-transform.js +144 -0
- package/dist/block/paint.d.ts +3 -0
- package/dist/block/paint.d.ts.map +1 -0
- package/dist/block/paint.js +136 -0
- package/dist/block/panel.d.ts +2 -0
- package/dist/block/panel.d.ts.map +1 -0
- package/dist/block/panel.js +234 -0
- package/dist/block/parametrics.d.ts +4 -0
- package/dist/block/parametrics.d.ts.map +1 -0
- package/dist/block/parametrics.js +9 -0
- package/dist/block/preview.d.ts +6 -0
- package/dist/block/preview.d.ts.map +1 -0
- package/dist/block/preview.js +46 -0
- package/dist/block/rotation-drag.d.ts +5 -0
- package/dist/block/rotation-drag.d.ts.map +1 -0
- package/dist/block/rotation-drag.js +18 -0
- package/dist/block/schema.d.ts +2 -0
- package/dist/block/schema.d.ts.map +1 -0
- package/dist/block/schema.js +1 -0
- package/dist/block/selection-geometry.d.ts +9 -0
- package/dist/block/selection-geometry.d.ts.map +1 -0
- package/dist/block/selection-geometry.js +31 -0
- package/dist/block/selection-model.d.ts +17 -0
- package/dist/block/selection-model.d.ts.map +1 -0
- package/dist/block/selection-model.js +84 -0
- package/dist/block/selection.d.ts +4 -0
- package/dist/block/selection.d.ts.map +1 -0
- package/dist/block/selection.js +2570 -0
- package/dist/block/slots.d.ts +4 -0
- package/dist/block/slots.d.ts.map +1 -0
- package/dist/block/slots.js +17 -0
- package/dist/block/tool.d.ts +3 -0
- package/dist/block/tool.d.ts.map +1 -0
- package/dist/block/tool.js +174 -0
- package/dist/block/toolbar-state.d.ts +46 -0
- package/dist/block/toolbar-state.d.ts.map +1 -0
- package/dist/block/toolbar-state.js +67 -0
- package/dist/block/use-block-face-operation.d.ts +39 -0
- package/dist/block/use-block-face-operation.d.ts.map +1 -0
- package/dist/block/use-block-face-operation.js +218 -0
- package/dist/box-vent/definition.d.ts.map +1 -1
- package/dist/box-vent/definition.js +8 -5
- package/dist/box-vent/geometry.d.ts +4 -0
- package/dist/box-vent/geometry.d.ts.map +1 -1
- package/dist/box-vent/geometry.js +76 -44
- package/dist/box-vent/paint.d.ts +4 -0
- package/dist/box-vent/paint.d.ts.map +1 -0
- package/dist/box-vent/paint.js +40 -0
- package/dist/box-vent/panel.js +1 -1
- package/dist/box-vent/parametrics.js +3 -3
- package/dist/box-vent/renderer.d.ts.map +1 -1
- package/dist/box-vent/renderer.js +29 -10
- package/dist/cabinet/compartment-card.d.ts.map +1 -1
- package/dist/cabinet/compartment-card.js +11 -3
- package/dist/cabinet/continuous-placement.d.ts +3 -0
- package/dist/cabinet/continuous-placement.d.ts.map +1 -1
- package/dist/cabinet/continuous-placement.js +6 -0
- package/dist/cabinet/definition.d.ts.map +1 -1
- package/dist/cabinet/definition.js +400 -54
- package/dist/cabinet/floorplan-move.d.ts.map +1 -1
- package/dist/cabinet/floorplan-move.js +91 -22
- package/dist/cabinet/geometry/fridge.d.ts.map +1 -1
- package/dist/cabinet/geometry/fridge.js +25 -1
- package/dist/cabinet/geometry/fronts.d.ts +4 -0
- package/dist/cabinet/geometry/fronts.d.ts.map +1 -1
- package/dist/cabinet/geometry/fronts.js +1 -1
- package/dist/cabinet/geometry/run.d.ts.map +1 -1
- package/dist/cabinet/geometry/run.js +19 -1
- package/dist/cabinet/geometry.d.ts.map +1 -1
- package/dist/cabinet/geometry.js +63 -1
- package/dist/cabinet/index.d.ts +1 -0
- package/dist/cabinet/index.d.ts.map +1 -1
- package/dist/cabinet/index.js +1 -0
- package/dist/cabinet/insertion.d.ts +19 -0
- package/dist/cabinet/insertion.d.ts.map +1 -0
- package/dist/cabinet/insertion.js +49 -0
- package/dist/cabinet/move-frame.d.ts.map +1 -1
- package/dist/cabinet/move-frame.js +68 -2
- package/dist/cabinet/panel-context.d.ts +7 -0
- package/dist/cabinet/panel-context.d.ts.map +1 -0
- package/dist/cabinet/panel-context.js +16 -0
- package/dist/cabinet/panel-visibility.d.ts +9 -0
- package/dist/cabinet/panel-visibility.d.ts.map +1 -0
- package/dist/cabinet/panel-visibility.js +26 -0
- package/dist/cabinet/panel.d.ts.map +1 -1
- package/dist/cabinet/panel.js +221 -37
- package/dist/cabinet/placement-dimensions.d.ts +42 -0
- package/dist/cabinet/placement-dimensions.d.ts.map +1 -0
- package/dist/cabinet/placement-dimensions.js +227 -0
- package/dist/cabinet/placement-snap.d.ts +21 -1
- package/dist/cabinet/placement-snap.d.ts.map +1 -1
- package/dist/cabinet/placement-snap.js +48 -6
- package/dist/cabinet/preset-width-debt.d.ts +7 -0
- package/dist/cabinet/preset-width-debt.d.ts.map +1 -0
- package/dist/cabinet/preset-width-debt.js +45 -0
- package/dist/cabinet/presets.d.ts.map +1 -1
- package/dist/cabinet/presets.js +14 -13
- package/dist/cabinet/profiles.d.ts +14 -0
- package/dist/cabinet/profiles.d.ts.map +1 -0
- package/dist/cabinet/profiles.js +30 -0
- package/dist/cabinet/quick-actions.d.ts.map +1 -1
- package/dist/cabinet/quick-actions.js +8 -24
- package/dist/cabinet/reveals.d.ts +37 -0
- package/dist/cabinet/reveals.d.ts.map +1 -0
- package/dist/cabinet/reveals.js +13 -0
- package/dist/cabinet/run-layout.d.ts +90 -4
- package/dist/cabinet/run-layout.d.ts.map +1 -1
- package/dist/cabinet/run-layout.js +408 -23
- package/dist/cabinet/run-ops.d.ts +202 -10
- package/dist/cabinet/run-ops.d.ts.map +1 -1
- package/dist/cabinet/run-ops.js +520 -33
- package/dist/cabinet/run-panel.d.ts +6 -2
- package/dist/cabinet/run-panel.d.ts.map +1 -1
- package/dist/cabinet/run-panel.js +285 -108
- package/dist/cabinet/stack-transitions.d.ts.map +1 -1
- package/dist/cabinet/stack-transitions.js +35 -24
- package/dist/cabinet/stack.d.ts +169 -1
- package/dist/cabinet/stack.d.ts.map +1 -1
- package/dist/cabinet/stack.js +57 -18
- package/dist/cabinet/tool.d.ts.map +1 -1
- package/dist/cabinet/tool.js +615 -91
- package/dist/cabinet/validation.d.ts +27 -0
- package/dist/cabinet/validation.d.ts.map +1 -0
- package/dist/cabinet/validation.js +56 -0
- package/dist/cabinet/wall-height-presets.d.ts +12 -0
- package/dist/cabinet/wall-height-presets.d.ts.map +1 -0
- package/dist/cabinet/wall-height-presets.js +15 -0
- package/dist/cabinet/wall-snap.d.ts +27 -3
- package/dist/cabinet/wall-snap.d.ts.map +1 -1
- package/dist/cabinet/wall-snap.js +278 -62
- package/dist/cabinet/widths.d.ts +10 -0
- package/dist/cabinet/widths.d.ts.map +1 -0
- package/dist/cabinet/widths.js +13 -0
- package/dist/ceiling/definition.d.ts.map +1 -1
- package/dist/ceiling/definition.js +7 -1
- package/dist/ceiling/floorplan-affordances.d.ts +8 -8
- package/dist/ceiling/materials.d.ts.map +1 -1
- package/dist/ceiling/materials.js +0 -1
- package/dist/ceiling/panel.js +1 -1
- package/dist/ceiling/parametrics.js +1 -1
- package/dist/chimney/definition.js +1 -1
- package/dist/chimney/panel.js +1 -1
- package/dist/chimney/parametrics.js +3 -3
- package/dist/column/definition.d.ts.map +1 -1
- package/dist/column/definition.js +22 -4
- package/dist/column/panel.d.ts.map +1 -1
- package/dist/column/panel.js +37 -7
- package/dist/column/parametrics.d.ts.map +1 -1
- package/dist/column/parametrics.js +5 -3
- package/dist/column/tool.d.ts.map +1 -1
- package/dist/column/tool.js +50 -14
- package/dist/cupola/definition.d.ts.map +1 -1
- package/dist/cupola/definition.js +15 -6
- package/dist/cupola/geometry.d.ts +6 -0
- package/dist/cupola/geometry.d.ts.map +1 -1
- package/dist/cupola/geometry.js +60 -13
- package/dist/cupola/paint.d.ts +4 -0
- package/dist/cupola/paint.d.ts.map +1 -0
- package/dist/cupola/paint.js +39 -0
- package/dist/cupola/panel.js +1 -1
- package/dist/cupola/parametrics.js +3 -3
- package/dist/cupola/renderer.d.ts.map +1 -1
- package/dist/cupola/renderer.js +27 -8
- package/dist/door/floorplan-move.d.ts.map +1 -1
- package/dist/door/floorplan-move.js +1 -1
- package/dist/door/move-tool.d.ts.map +1 -1
- package/dist/door/move-tool.js +86 -32
- package/dist/door/panel.d.ts.map +1 -1
- package/dist/door/panel.js +1 -1
- package/dist/door/parametrics.js +2 -2
- package/dist/door/tool.d.ts.map +1 -1
- package/dist/door/tool.js +16 -4
- package/dist/dormer/csg-geometry.d.ts +6 -42
- package/dist/dormer/csg-geometry.d.ts.map +1 -1
- package/dist/dormer/csg-geometry.js +38 -209
- package/dist/dormer/definition.d.ts +4 -12
- package/dist/dormer/definition.d.ts.map +1 -1
- package/dist/dormer/definition.js +18 -193
- package/dist/dormer/floorplan.d.ts +3 -3
- package/dist/dormer/floorplan.d.ts.map +1 -1
- package/dist/dormer/floorplan.js +6 -17
- package/dist/dormer/geometry.d.ts +5 -24
- package/dist/dormer/geometry.d.ts.map +1 -1
- package/dist/dormer/geometry.js +64 -41
- package/dist/dormer/index.d.ts +1 -1
- package/dist/dormer/index.d.ts.map +1 -1
- package/dist/dormer/index.js +1 -1
- package/dist/dormer/move-tool.d.ts.map +1 -1
- package/dist/dormer/move-tool.js +31 -3
- package/dist/dormer/panel-windows-section.d.ts +9 -0
- package/dist/dormer/panel-windows-section.d.ts.map +1 -0
- package/dist/dormer/panel-windows-section.js +7 -0
- package/dist/dormer/panel.d.ts.map +1 -1
- package/dist/dormer/panel.js +100 -18
- package/dist/dormer/parametrics.d.ts.map +1 -1
- package/dist/dormer/parametrics.js +8 -77
- package/dist/dormer/preview.d.ts.map +1 -1
- package/dist/dormer/preview.js +9 -1
- package/dist/dormer/renderer.d.ts.map +1 -1
- package/dist/dormer/renderer.js +24 -26
- package/dist/dormer/tool.d.ts.map +1 -1
- package/dist/dormer/tool.js +3 -1
- package/dist/dormer/window-layout.d.ts +15 -0
- package/dist/dormer/window-layout.d.ts.map +1 -0
- package/dist/dormer/window-layout.js +59 -0
- package/dist/downspout/definition.d.ts.map +1 -1
- package/dist/downspout/definition.js +17 -4
- package/dist/downspout/geometry.d.ts.map +1 -1
- package/dist/downspout/geometry.js +10 -0
- package/dist/downspout/inspector-editors.d.ts.map +1 -1
- package/dist/downspout/inspector-editors.js +9 -1
- package/dist/downspout/parametrics.d.ts.map +1 -1
- package/dist/downspout/parametrics.js +2 -1
- package/dist/downspout/renderer.d.ts.map +1 -1
- package/dist/downspout/renderer.js +19 -3
- package/dist/downspout/system.d.ts +7 -0
- package/dist/downspout/system.d.ts.map +1 -0
- package/dist/downspout/system.js +114 -0
- package/dist/duct-fitting/accessory-geometry.d.ts +4 -0
- package/dist/duct-fitting/accessory-geometry.d.ts.map +1 -0
- package/dist/duct-fitting/accessory-geometry.js +47 -0
- package/dist/duct-fitting/definition.d.ts.map +1 -1
- package/dist/duct-fitting/definition.js +11 -1
- package/dist/duct-fitting/floorplan.d.ts.map +1 -1
- package/dist/duct-fitting/floorplan.js +8 -0
- package/dist/duct-fitting/geometry.d.ts.map +1 -1
- package/dist/duct-fitting/geometry.js +52 -38
- package/dist/duct-fitting/parametrics.d.ts.map +1 -1
- package/dist/duct-fitting/parametrics.js +78 -15
- package/dist/duct-fitting/ports.d.ts +1 -0
- package/dist/duct-fitting/ports.d.ts.map +1 -1
- package/dist/duct-fitting/ports.js +46 -0
- package/dist/duct-fitting/tool.d.ts +19 -0
- package/dist/duct-fitting/tool.d.ts.map +1 -1
- package/dist/duct-fitting/tool.js +126 -34
- package/dist/duct-segment/continuation.d.ts +21 -0
- package/dist/duct-segment/continuation.d.ts.map +1 -0
- package/dist/duct-segment/continuation.js +167 -0
- package/dist/duct-segment/definition.d.ts.map +1 -1
- package/dist/duct-segment/definition.js +19 -18
- package/dist/duct-segment/floorplan.d.ts.map +1 -1
- package/dist/duct-segment/floorplan.js +43 -0
- package/dist/duct-segment/geometry.d.ts.map +1 -1
- package/dist/duct-segment/geometry.js +3 -0
- package/dist/duct-segment/move-tool.d.ts.map +1 -1
- package/dist/duct-segment/move-tool.js +33 -6
- package/dist/duct-segment/parametrics.d.ts.map +1 -1
- package/dist/duct-segment/parametrics.js +45 -1
- package/dist/duct-segment/selection.d.ts +3 -4
- package/dist/duct-segment/selection.d.ts.map +1 -1
- package/dist/duct-segment/selection.js +186 -158
- package/dist/duct-segment/tool.d.ts +37 -0
- package/dist/duct-segment/tool.d.ts.map +1 -1
- package/dist/duct-segment/tool.js +305 -678
- package/dist/duct-terminal/parametrics.js +2 -2
- package/dist/duct-terminal/tool.d.ts.map +1 -1
- package/dist/duct-terminal/tool.js +37 -7
- package/dist/elevator/panel.d.ts.map +1 -1
- package/dist/elevator/panel.js +7 -7
- package/dist/elevator/system.d.ts.map +1 -1
- package/dist/elevator/system.js +10 -1
- package/dist/eyebrow-vent/definition.d.ts.map +1 -1
- package/dist/eyebrow-vent/definition.js +8 -5
- package/dist/eyebrow-vent/geometry.d.ts +4 -0
- package/dist/eyebrow-vent/geometry.d.ts.map +1 -1
- package/dist/eyebrow-vent/geometry.js +60 -15
- package/dist/eyebrow-vent/paint.d.ts +4 -0
- package/dist/eyebrow-vent/paint.d.ts.map +1 -0
- package/dist/eyebrow-vent/paint.js +33 -0
- package/dist/eyebrow-vent/panel.js +1 -1
- package/dist/eyebrow-vent/parametrics.js +3 -3
- package/dist/eyebrow-vent/renderer.d.ts.map +1 -1
- package/dist/eyebrow-vent/renderer.js +27 -8
- package/dist/fence/definition.d.ts.map +1 -1
- package/dist/fence/definition.js +2 -1
- package/dist/fence/floorplan-affordances.d.ts +1 -0
- package/dist/fence/floorplan-affordances.d.ts.map +1 -1
- package/dist/fence/floorplan-affordances.js +30 -1
- package/dist/fence/floorplan.d.ts.map +1 -1
- package/dist/fence/floorplan.js +14 -0
- package/dist/fence/parametrics.js +3 -3
- package/dist/fence/tool.d.ts.map +1 -1
- package/dist/fence/tool.js +47 -20
- package/dist/gutter/corner-mitre.d.ts.map +1 -1
- package/dist/gutter/corner-mitre.js +47 -7
- package/dist/gutter/definition.d.ts.map +1 -1
- package/dist/gutter/definition.js +23 -13
- package/dist/gutter/eave-align.d.ts.map +1 -1
- package/dist/gutter/eave-align.js +10 -0
- package/dist/gutter/eave-snap.d.ts +1 -1
- package/dist/gutter/eave-snap.d.ts.map +1 -1
- package/dist/gutter/eave-snap.js +10 -23
- package/dist/gutter/geometry.d.ts.map +1 -1
- package/dist/gutter/geometry.js +126 -8
- package/dist/gutter/outlet-lookup.d.ts.map +1 -1
- package/dist/gutter/outlet-lookup.js +22 -1
- package/dist/gutter/paint.d.ts +3 -0
- package/dist/gutter/paint.d.ts.map +1 -0
- package/dist/gutter/paint.js +6 -0
- package/dist/gutter/parametrics.d.ts.map +1 -1
- package/dist/gutter/parametrics.js +4 -1
- package/dist/gutter/renderer.d.ts.map +1 -1
- package/dist/gutter/renderer.js +63 -7
- package/dist/gutter/trim-clip.d.ts +3 -0
- package/dist/gutter/trim-clip.d.ts.map +1 -0
- package/dist/gutter/trim-clip.js +5 -0
- package/dist/hvac-equipment/parametrics.js +3 -3
- package/dist/hvac-equipment/tool.d.ts.map +1 -1
- package/dist/hvac-equipment/tool.js +12 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -2
- package/dist/item/definition.d.ts.map +1 -1
- package/dist/item/definition.js +10 -2
- package/dist/item/floorplan-move.d.ts.map +1 -1
- package/dist/item/floorplan-move.js +20 -1
- package/dist/item/floorplan.d.ts.map +1 -1
- package/dist/item/floorplan.js +22 -1
- package/dist/item/move-tool.d.ts +28 -1
- package/dist/item/move-tool.d.ts.map +1 -1
- package/dist/item/move-tool.js +14 -2
- package/dist/item/renderer.d.ts.map +1 -1
- package/dist/item/renderer.js +16 -6
- package/dist/item/system.d.ts +5 -0
- package/dist/item/system.d.ts.map +1 -1
- package/dist/item/system.js +7 -1
- package/dist/lean-to-extension/arc.d.ts +14 -0
- package/dist/lean-to-extension/arc.d.ts.map +1 -0
- package/dist/lean-to-extension/arc.js +56 -0
- package/dist/lean-to-extension/assembly.d.ts +61 -0
- package/dist/lean-to-extension/assembly.d.ts.map +1 -0
- package/dist/lean-to-extension/assembly.js +761 -0
- package/dist/lean-to-extension/canopy-joint.d.ts +35 -0
- package/dist/lean-to-extension/canopy-joint.d.ts.map +1 -0
- package/dist/lean-to-extension/canopy-joint.js +234 -0
- package/dist/lean-to-extension/conical-host.d.ts +15 -0
- package/dist/lean-to-extension/conical-host.d.ts.map +1 -0
- package/dist/lean-to-extension/conical-host.js +113 -0
- package/dist/lean-to-extension/corner-joint.d.ts +29 -0
- package/dist/lean-to-extension/corner-joint.d.ts.map +1 -0
- package/dist/lean-to-extension/corner-joint.js +1202 -0
- package/dist/lean-to-extension/definition.d.ts +4 -0
- package/dist/lean-to-extension/definition.d.ts.map +1 -0
- package/dist/lean-to-extension/definition.js +433 -0
- package/dist/lean-to-extension/floorplan-affordances.d.ts +4 -0
- package/dist/lean-to-extension/floorplan-affordances.d.ts.map +1 -0
- package/dist/lean-to-extension/floorplan-affordances.js +144 -0
- package/dist/lean-to-extension/floorplan-move.d.ts +3 -0
- package/dist/lean-to-extension/floorplan-move.d.ts.map +1 -0
- package/dist/lean-to-extension/floorplan-move.js +157 -0
- package/dist/lean-to-extension/floorplan-tool.d.ts +4 -0
- package/dist/lean-to-extension/floorplan-tool.d.ts.map +1 -0
- package/dist/lean-to-extension/floorplan-tool.js +385 -0
- package/dist/lean-to-extension/floorplan.d.ts +3 -0
- package/dist/lean-to-extension/floorplan.d.ts.map +1 -0
- package/dist/lean-to-extension/floorplan.js +373 -0
- package/dist/lean-to-extension/geometry.d.ts +7 -0
- package/dist/lean-to-extension/geometry.d.ts.map +1 -0
- package/dist/lean-to-extension/geometry.js +662 -0
- package/dist/lean-to-extension/index.d.ts +8 -0
- package/dist/lean-to-extension/index.d.ts.map +1 -0
- package/dist/lean-to-extension/index.js +7 -0
- package/dist/lean-to-extension/layout.d.ts +108 -0
- package/dist/lean-to-extension/layout.d.ts.map +1 -0
- package/dist/lean-to-extension/layout.js +477 -0
- package/dist/lean-to-extension/managed-preview.d.ts +3 -0
- package/dist/lean-to-extension/managed-preview.d.ts.map +1 -0
- package/dist/lean-to-extension/managed-preview.js +93 -0
- package/dist/lean-to-extension/move-tool.d.ts +8 -0
- package/dist/lean-to-extension/move-tool.d.ts.map +1 -0
- package/dist/lean-to-extension/move-tool.js +202 -0
- package/dist/lean-to-extension/paint.d.ts +2 -0
- package/dist/lean-to-extension/paint.d.ts.map +1 -0
- package/dist/lean-to-extension/paint.js +16 -0
- package/dist/lean-to-extension/parametrics.d.ts +4 -0
- package/dist/lean-to-extension/parametrics.d.ts.map +1 -0
- package/dist/lean-to-extension/parametrics.js +570 -0
- package/dist/lean-to-extension/placement-scope.d.ts +3 -0
- package/dist/lean-to-extension/placement-scope.d.ts.map +1 -0
- package/dist/lean-to-extension/placement-scope.js +4 -0
- package/dist/lean-to-extension/placement-validation.d.ts +4 -0
- package/dist/lean-to-extension/placement-validation.d.ts.map +1 -0
- package/dist/lean-to-extension/placement-validation.js +324 -0
- package/dist/lean-to-extension/placement.d.ts +59 -0
- package/dist/lean-to-extension/placement.d.ts.map +1 -0
- package/dist/lean-to-extension/placement.js +331 -0
- package/dist/lean-to-extension/plan-footprint.d.ts +10 -0
- package/dist/lean-to-extension/plan-footprint.d.ts.map +1 -0
- package/dist/lean-to-extension/plan-footprint.js +27 -0
- package/dist/lean-to-extension/preview-geometry.d.ts +7 -0
- package/dist/lean-to-extension/preview-geometry.d.ts.map +1 -0
- package/dist/lean-to-extension/preview-geometry.js +40 -0
- package/dist/lean-to-extension/preview.d.ts +7 -0
- package/dist/lean-to-extension/preview.d.ts.map +1 -0
- package/dist/lean-to-extension/preview.js +20 -0
- package/dist/lean-to-extension/renderer.d.ts +6 -0
- package/dist/lean-to-extension/renderer.d.ts.map +1 -0
- package/dist/lean-to-extension/renderer.js +34 -0
- package/dist/lean-to-extension/roof-attachment.d.ts +28 -0
- package/dist/lean-to-extension/roof-attachment.d.ts.map +1 -0
- package/dist/lean-to-extension/roof-attachment.js +376 -0
- package/dist/lean-to-extension/schema.d.ts +2 -0
- package/dist/lean-to-extension/schema.d.ts.map +1 -0
- package/dist/lean-to-extension/schema.js +1 -0
- package/dist/lean-to-extension/slots.d.ts +5 -0
- package/dist/lean-to-extension/slots.d.ts.map +1 -0
- package/dist/lean-to-extension/slots.js +15 -0
- package/dist/lean-to-extension/system.d.ts +7 -0
- package/dist/lean-to-extension/system.d.ts.map +1 -0
- package/dist/lean-to-extension/system.js +726 -0
- package/dist/lean-to-extension/tool.d.ts +3 -0
- package/dist/lean-to-extension/tool.d.ts.map +1 -0
- package/dist/lean-to-extension/tool.js +580 -0
- package/dist/lean-to-extension/wall-target.d.ts +10 -0
- package/dist/lean-to-extension/wall-target.d.ts.map +1 -0
- package/dist/lean-to-extension/wall-target.js +29 -0
- package/dist/lineset/definition.d.ts.map +1 -1
- package/dist/lineset/definition.js +1 -0
- package/dist/liquid-line/definition.d.ts.map +1 -1
- package/dist/liquid-line/definition.js +1 -0
- package/dist/pipe-fitting/definition.d.ts.map +1 -1
- package/dist/pipe-fitting/definition.js +16 -2
- package/dist/pipe-fitting/floorplan.d.ts.map +1 -1
- package/dist/pipe-fitting/floorplan.js +4 -0
- package/dist/pipe-fitting/geometry.d.ts +3 -5
- package/dist/pipe-fitting/geometry.d.ts.map +1 -1
- package/dist/pipe-fitting/geometry.js +154 -21
- package/dist/pipe-fitting/inline-insertion.d.ts +13 -0
- package/dist/pipe-fitting/inline-insertion.d.ts.map +1 -0
- package/dist/pipe-fitting/inline-insertion.js +96 -0
- package/dist/pipe-fitting/parametrics.d.ts.map +1 -1
- package/dist/pipe-fitting/parametrics.js +17 -3
- package/dist/pipe-fitting/ports.d.ts.map +1 -1
- package/dist/pipe-fitting/ports.js +8 -1
- package/dist/pipe-fitting/tool.d.ts +26 -0
- package/dist/pipe-fitting/tool.d.ts.map +1 -1
- package/dist/pipe-fitting/tool.js +182 -37
- package/dist/pipe-segment/continuation.d.ts +22 -0
- package/dist/pipe-segment/continuation.d.ts.map +1 -0
- package/dist/pipe-segment/continuation.js +146 -0
- package/dist/pipe-segment/definition.d.ts.map +1 -1
- package/dist/pipe-segment/definition.js +23 -7
- package/dist/pipe-segment/floorplan.d.ts.map +1 -1
- package/dist/pipe-segment/floorplan.js +42 -0
- package/dist/pipe-segment/geometry.d.ts +2 -1
- package/dist/pipe-segment/geometry.d.ts.map +1 -1
- package/dist/pipe-segment/geometry.js +4 -1
- package/dist/pipe-segment/move-tool.d.ts.map +1 -1
- package/dist/pipe-segment/move-tool.js +25 -5
- package/dist/pipe-segment/parametrics.d.ts.map +1 -1
- package/dist/pipe-segment/parametrics.js +45 -0
- package/dist/pipe-segment/selection.d.ts +3 -4
- package/dist/pipe-segment/selection.d.ts.map +1 -1
- package/dist/pipe-segment/selection.js +169 -105
- package/dist/pipe-segment/slope.d.ts +5 -0
- package/dist/pipe-segment/slope.d.ts.map +1 -0
- package/dist/pipe-segment/slope.js +10 -0
- package/dist/pipe-segment/tool.d.ts.map +1 -1
- package/dist/pipe-segment/tool.js +325 -545
- package/dist/pipe-trap/tool.d.ts.map +1 -1
- package/dist/pipe-trap/tool.js +15 -2
- package/dist/ridge-vent/definition.js +1 -1
- package/dist/ridge-vent/panel.d.ts.map +1 -1
- package/dist/ridge-vent/panel.js +2 -2
- package/dist/ridge-vent/parametrics.js +1 -1
- package/dist/roof/conical-roof-placement.d.ts +36 -0
- package/dist/roof/conical-roof-placement.d.ts.map +1 -0
- package/dist/roof/conical-roof-placement.js +134 -0
- package/dist/roof/conical-roof.d.ts +3 -0
- package/dist/roof/conical-roof.d.ts.map +1 -0
- package/dist/roof/conical-roof.js +53 -0
- package/dist/roof/definition.d.ts +3 -10
- package/dist/roof/definition.d.ts.map +1 -1
- package/dist/roof/definition.js +83 -13
- package/dist/roof/floorplan.d.ts +3 -10
- package/dist/roof/floorplan.d.ts.map +1 -1
- package/dist/roof/floorplan.js +139 -165
- package/dist/roof/index.d.ts +1 -0
- package/dist/roof/index.d.ts.map +1 -1
- package/dist/roof/index.js +1 -0
- package/dist/roof/panel.d.ts.map +1 -1
- package/dist/roof/panel.js +22 -23
- package/dist/roof/renderer.d.ts.map +1 -1
- package/dist/roof/roof-footprint-source.d.ts +16 -0
- package/dist/roof/roof-footprint-source.d.ts.map +1 -0
- package/dist/roof/roof-footprint-source.js +14 -0
- package/dist/roof/roof-footprint.d.ts +25 -0
- package/dist/roof/roof-footprint.d.ts.map +1 -0
- package/dist/roof/roof-footprint.js +94 -0
- package/dist/roof/roof-placement-mode.d.ts +18 -0
- package/dist/roof/roof-placement-mode.d.ts.map +1 -0
- package/dist/roof/roof-placement-mode.js +24 -0
- package/dist/roof/tool.d.ts +10 -0
- package/dist/roof/tool.d.ts.map +1 -0
- package/dist/roof/tool.js +922 -0
- package/dist/roof-segment/definition.d.ts.map +1 -1
- package/dist/roof-segment/definition.js +52 -8
- package/dist/roof-segment/floorplan-affordances.d.ts +5 -6
- package/dist/roof-segment/floorplan-affordances.d.ts.map +1 -1
- package/dist/roof-segment/floorplan-affordances.js +64 -18
- package/dist/roof-segment/floorplan.d.ts +3 -2
- package/dist/roof-segment/floorplan.d.ts.map +1 -1
- package/dist/roof-segment/floorplan.js +95 -46
- package/dist/roof-segment/panel.d.ts.map +1 -1
- package/dist/roof-segment/panel.js +122 -27
- package/dist/scan/definition.d.ts +2 -3
- package/dist/scan/definition.d.ts.map +1 -1
- package/dist/scan/definition.js +9 -7
- package/dist/scan/parametrics.d.ts.map +1 -1
- package/dist/scan/parametrics.js +13 -1
- package/dist/scan/renderer.d.ts.map +1 -1
- package/dist/scan/renderer.js +8 -2
- package/dist/shared/accessory-cursor.d.ts +7 -0
- package/dist/shared/accessory-cursor.d.ts.map +1 -0
- package/dist/shared/accessory-cursor.js +83 -0
- package/dist/shared/accessory-floorplan.d.ts +4 -0
- package/dist/shared/accessory-floorplan.d.ts.map +1 -0
- package/dist/shared/accessory-floorplan.js +51 -0
- package/dist/shared/accessory-geometry.d.ts +7 -0
- package/dist/shared/accessory-geometry.d.ts.map +1 -0
- package/dist/shared/accessory-geometry.js +79 -0
- package/dist/shared/accessory-placement.d.ts +10 -0
- package/dist/shared/accessory-placement.d.ts.map +1 -0
- package/dist/shared/accessory-placement.js +126 -0
- package/dist/shared/accessory-snapping.d.ts +5 -0
- package/dist/shared/accessory-snapping.d.ts.map +1 -0
- package/dist/shared/accessory-snapping.js +40 -0
- package/dist/shared/automatic-run-end-cap.d.ts +11 -0
- package/dist/shared/automatic-run-end-cap.d.ts.map +1 -0
- package/dist/shared/automatic-run-end-cap.js +159 -0
- package/dist/shared/block-face-host.d.ts +15 -0
- package/dist/shared/block-face-host.d.ts.map +1 -0
- package/dist/shared/block-face-host.js +36 -0
- package/dist/shared/connection-compatibility.d.ts +8 -0
- package/dist/shared/connection-compatibility.d.ts.map +1 -0
- package/dist/shared/connection-compatibility.js +28 -0
- package/dist/shared/connection-feedback.d.ts +10 -0
- package/dist/shared/connection-feedback.d.ts.map +1 -0
- package/dist/shared/connection-feedback.js +17 -0
- package/dist/shared/distribution-run-contract.d.ts +49 -0
- package/dist/shared/distribution-run-contract.d.ts.map +1 -0
- package/dist/shared/distribution-run-contract.js +30 -0
- package/dist/shared/distribution-run-tool.d.ts +107 -0
- package/dist/shared/distribution-run-tool.d.ts.map +1 -0
- package/dist/shared/distribution-run-tool.js +941 -0
- package/dist/shared/dormer-wall-opening-placement.d.ts +21 -0
- package/dist/shared/dormer-wall-opening-placement.d.ts.map +1 -0
- package/dist/shared/dormer-wall-opening-placement.js +101 -0
- package/dist/shared/duct-adapter.d.ts +10 -0
- package/dist/shared/duct-adapter.d.ts.map +1 -0
- package/dist/shared/duct-adapter.js +43 -0
- package/dist/shared/elbow-branch-continuation.d.ts +20 -0
- package/dist/shared/elbow-branch-continuation.d.ts.map +1 -0
- package/dist/shared/elbow-branch-continuation.js +200 -0
- package/dist/shared/fitting-clearance.d.ts +5 -0
- package/dist/shared/fitting-clearance.d.ts.map +1 -0
- package/dist/shared/fitting-clearance.js +11 -0
- package/dist/shared/fitting-deletion-cleanup.d.ts +14 -0
- package/dist/shared/fitting-deletion-cleanup.d.ts.map +1 -0
- package/dist/shared/fitting-deletion-cleanup.js +297 -0
- package/dist/shared/fitting-surface-support.d.ts +5 -0
- package/dist/shared/fitting-surface-support.d.ts.map +1 -0
- package/dist/shared/fitting-surface-support.js +42 -0
- package/dist/shared/fitting-tool-options.d.ts +4 -0
- package/dist/shared/fitting-tool-options.d.ts.map +1 -0
- package/dist/shared/fitting-tool-options.js +175 -0
- package/dist/shared/floor-placement.d.ts +1 -1
- package/dist/shared/floor-placement.d.ts.map +1 -1
- package/dist/shared/floor-placement.js +13 -33
- package/dist/shared/ghost-materials.d.ts.map +1 -1
- package/dist/shared/ghost-materials.js +2 -1
- package/dist/shared/lean-to-post-omissions.d.ts +8 -0
- package/dist/shared/lean-to-post-omissions.d.ts.map +1 -0
- package/dist/shared/lean-to-post-omissions.js +51 -0
- package/dist/shared/mep-fitting-actions.d.ts +5 -0
- package/dist/shared/mep-fitting-actions.d.ts.map +1 -0
- package/dist/shared/mep-fitting-actions.js +16 -0
- package/dist/shared/mep-presets.d.ts +11 -0
- package/dist/shared/mep-presets.d.ts.map +1 -0
- package/dist/shared/mep-presets.js +34 -0
- package/dist/shared/node-batch/candidates.d.ts +29 -0
- package/dist/shared/node-batch/candidates.d.ts.map +1 -0
- package/dist/shared/node-batch/candidates.js +260 -0
- package/dist/shared/node-batch/store.d.ts +26 -0
- package/dist/shared/node-batch/store.d.ts.map +1 -0
- package/dist/shared/node-batch/store.js +319 -0
- package/dist/shared/node-batch/system.d.ts +8 -0
- package/dist/shared/node-batch/system.d.ts.map +1 -0
- package/dist/shared/node-batch/system.js +569 -0
- package/dist/shared/node-batch/types.d.ts +99 -0
- package/dist/shared/node-batch/types.d.ts.map +1 -0
- package/dist/shared/node-batch/types.js +4 -0
- package/dist/shared/opening-move-history.d.ts +47 -0
- package/dist/shared/opening-move-history.d.ts.map +1 -0
- package/dist/shared/opening-move-history.js +18 -0
- package/dist/shared/opening-move-wall-gate.d.ts +55 -0
- package/dist/shared/opening-move-wall-gate.d.ts.map +1 -0
- package/dist/shared/opening-move-wall-gate.js +44 -0
- package/dist/shared/path-point-affordance.d.ts +2 -2
- package/dist/shared/path-point-affordance.d.ts.map +1 -1
- package/dist/shared/path-point-affordance.js +30 -6
- package/dist/shared/placeholder-geometry.d.ts.map +1 -1
- package/dist/shared/placeholder-geometry.js +4 -0
- package/dist/shared/ports.d.ts +20 -3
- package/dist/shared/ports.d.ts.map +1 -1
- package/dist/shared/ports.js +148 -7
- package/dist/shared/primitive-uv.d.ts +17 -0
- package/dist/shared/primitive-uv.d.ts.map +1 -0
- package/dist/shared/primitive-uv.js +107 -0
- package/dist/shared/reducer-size.d.ts +2 -0
- package/dist/shared/reducer-size.d.ts.map +1 -0
- package/dist/shared/reducer-size.js +12 -0
- package/dist/shared/ridge-snap.js +1 -1
- package/dist/shared/roof-surface.d.ts.map +1 -1
- package/dist/shared/roof-surface.js +17 -2
- package/dist/shared/run-cursor.d.ts +22 -0
- package/dist/shared/run-cursor.d.ts.map +1 -0
- package/dist/shared/run-cursor.js +19 -0
- package/dist/shared/run-direction-feedback.d.ts +20 -0
- package/dist/shared/run-direction-feedback.d.ts.map +1 -0
- package/dist/shared/run-direction-feedback.js +139 -0
- package/dist/shared/run-hanger-controls.d.ts +7 -0
- package/dist/shared/run-hanger-controls.d.ts.map +1 -0
- package/dist/shared/run-hanger-controls.js +44 -0
- package/dist/shared/run-hanger-inspector.d.ts +5 -0
- package/dist/shared/run-hanger-inspector.d.ts.map +1 -0
- package/dist/shared/run-hanger-inspector.js +43 -0
- package/dist/shared/run-hanger-mode.d.ts +11 -0
- package/dist/shared/run-hanger-mode.d.ts.map +1 -0
- package/dist/shared/run-hanger-mode.js +32 -0
- package/dist/shared/run-hanger-system.d.ts +3 -0
- package/dist/shared/run-hanger-system.d.ts.map +1 -0
- package/dist/shared/run-hanger-system.js +39 -0
- package/dist/shared/run-hangers.d.ts +25 -0
- package/dist/shared/run-hangers.d.ts.map +1 -0
- package/dist/shared/run-hangers.js +261 -0
- package/dist/shared/run-port-snap.d.ts +11 -0
- package/dist/shared/run-port-snap.d.ts.map +1 -0
- package/dist/shared/run-port-snap.js +19 -0
- package/dist/shared/run-screen-direction.d.ts +5 -0
- package/dist/shared/run-screen-direction.d.ts.map +1 -0
- package/dist/shared/run-screen-direction.js +24 -0
- package/dist/shared/selection-handles.d.ts +4 -0
- package/dist/shared/selection-handles.d.ts.map +1 -1
- package/dist/shared/selection-handles.js +10 -0
- package/dist/shared/slot-paint.d.ts +8 -1
- package/dist/shared/slot-paint.d.ts.map +1 -1
- package/dist/shared/slot-paint.js +120 -27
- package/dist/shared/surface-paint.d.ts +1 -2
- package/dist/shared/surface-paint.d.ts.map +1 -1
- package/dist/shared/surface-paint.js +9 -20
- package/dist/shared/system-check-panel.d.ts +6 -0
- package/dist/shared/system-check-panel.d.ts.map +1 -0
- package/dist/shared/system-check-panel.js +62 -0
- package/dist/shared/system-checks.d.ts +9 -0
- package/dist/shared/system-checks.d.ts.map +1 -0
- package/dist/shared/system-checks.js +131 -0
- package/dist/shared/wall-attach-target.d.ts +14 -2
- package/dist/shared/wall-attach-target.d.ts.map +1 -1
- package/dist/shared/wall-attach-target.js +108 -4
- package/dist/shared/wall-opening-clearance.d.ts +19 -0
- package/dist/shared/wall-opening-clearance.d.ts.map +1 -0
- package/dist/shared/wall-opening-clearance.js +28 -0
- package/dist/shared/wall-run-move.d.ts +17 -0
- package/dist/shared/wall-run-move.d.ts.map +1 -0
- package/dist/shared/wall-run-move.js +56 -0
- package/dist/shelf/parametrics.js +4 -4
- package/dist/site/renderer.d.ts.map +1 -1
- package/dist/site/renderer.js +40 -28
- package/dist/site/terrain-geometry.d.ts +1 -1
- package/dist/site/terrain-geometry.d.ts.map +1 -1
- package/dist/site/terrain-geometry.js +35 -9
- package/dist/site/terrain-mesh.d.ts +5 -0
- package/dist/site/terrain-mesh.d.ts.map +1 -1
- package/dist/site/terrain-mesh.js +63 -34
- package/dist/skylight/definition.js +1 -1
- package/dist/skylight/panel.js +1 -1
- package/dist/skylight/parametrics.js +2 -2
- package/dist/slab/definition.d.ts.map +1 -1
- package/dist/slab/definition.js +6 -1
- package/dist/slab/dependency-tracker.d.ts +3 -0
- package/dist/slab/dependency-tracker.d.ts.map +1 -0
- package/dist/slab/dependency-tracker.js +104 -0
- package/dist/slab/floorplan-affordances.d.ts +8 -8
- package/dist/slab/geometry.d.ts.map +1 -1
- package/dist/slab/geometry.js +16 -2
- package/dist/slab/panel.js +1 -1
- package/dist/slab/parametrics.js +1 -1
- package/dist/slab/system.d.ts.map +1 -1
- package/dist/slab/system.js +8 -64
- package/dist/solar-panel/definition.js +1 -1
- package/dist/solar-panel/panel.js +1 -1
- package/dist/solar-panel/parametrics.js +2 -2
- package/dist/stair/panel.d.ts.map +1 -1
- package/dist/stair/panel.js +18 -13
- package/dist/stair/stair-type.d.ts +18 -0
- package/dist/stair/stair-type.d.ts.map +1 -0
- package/dist/stair/stair-type.js +25 -0
- package/dist/stair-segment/panel.d.ts.map +1 -1
- package/dist/stair-segment/panel.js +44 -5
- package/dist/turbine-vent/definition.d.ts.map +1 -1
- package/dist/turbine-vent/definition.js +8 -5
- package/dist/turbine-vent/geometry.d.ts.map +1 -1
- package/dist/turbine-vent/geometry.js +48 -18
- package/dist/turbine-vent/paint.d.ts +4 -0
- package/dist/turbine-vent/paint.d.ts.map +1 -0
- package/dist/turbine-vent/paint.js +35 -0
- package/dist/turbine-vent/panel.js +1 -1
- package/dist/turbine-vent/parametrics.js +2 -2
- package/dist/turbine-vent/renderer.d.ts.map +1 -1
- package/dist/turbine-vent/renderer.js +31 -9
- package/dist/wall/curve-eligibility.d.ts +3 -0
- package/dist/wall/curve-eligibility.d.ts.map +1 -0
- package/dist/wall/curve-eligibility.js +10 -0
- package/dist/wall/curve-tool.d.ts.map +1 -1
- package/dist/wall/curve-tool.js +8 -11
- package/dist/wall/definition.d.ts +1 -1
- package/dist/wall/definition.d.ts.map +1 -1
- package/dist/wall/definition.js +36 -13
- package/dist/wall/floorplan-affordances.d.ts +1 -0
- package/dist/wall/floorplan-affordances.d.ts.map +1 -1
- package/dist/wall/floorplan-affordances.js +46 -7
- package/dist/wall/floorplan-move.d.ts +3 -4
- package/dist/wall/floorplan-move.d.ts.map +1 -1
- package/dist/wall/floorplan-move.js +122 -9
- package/dist/wall/floorplan.d.ts.map +1 -1
- package/dist/wall/floorplan.js +19 -23
- package/dist/wall/move-shared.d.ts.map +1 -1
- package/dist/wall/move-shared.js +10 -7
- package/dist/wall/paint.d.ts.map +1 -1
- package/dist/wall/paint.js +2 -0
- package/dist/wall/panel.d.ts.map +1 -1
- package/dist/wall/panel.js +10 -17
- package/dist/wall/parametrics.js +2 -2
- package/dist/wall/pointer-transparency.d.ts +128 -0
- package/dist/wall/pointer-transparency.d.ts.map +1 -0
- package/dist/wall/pointer-transparency.js +147 -0
- package/dist/wall/renderer.d.ts.map +1 -1
- package/dist/wall/renderer.js +65 -8
- package/dist/wall/selection-hit-owner.d.ts +53 -0
- package/dist/wall/selection-hit-owner.d.ts.map +1 -0
- package/dist/wall/selection-hit-owner.js +79 -0
- package/dist/wall/system.d.ts +2 -0
- package/dist/wall/system.d.ts.map +1 -1
- package/dist/wall/system.js +66 -25
- package/dist/wall/tool.d.ts.map +1 -1
- package/dist/wall/tool.js +5 -0
- package/dist/wall/treatment-level-data.d.ts +6 -1
- package/dist/wall/treatment-level-data.d.ts.map +1 -1
- package/dist/wall/treatment-level-data.js +82 -5
- package/dist/wall/treatments.d.ts +1 -0
- package/dist/wall/treatments.d.ts.map +1 -1
- package/dist/wall/treatments.js +5 -0
- package/dist/wall/wall-batch-system.d.ts +38 -6
- package/dist/wall/wall-batch-system.d.ts.map +1 -1
- package/dist/wall/wall-batch-system.js +122 -25
- package/dist/wall/wall-batch.js +2 -2
- package/dist/window/definition.d.ts +2 -1
- package/dist/window/definition.d.ts.map +1 -1
- package/dist/window/definition.js +51 -24
- package/dist/window/floorplan-move.d.ts.map +1 -1
- package/dist/window/floorplan-move.js +1 -1
- package/dist/window/move-tool.d.ts +7 -5
- package/dist/window/move-tool.d.ts.map +1 -1
- package/dist/window/move-tool.js +344 -58
- package/dist/window/panel.d.ts.map +1 -1
- package/dist/window/panel.js +2 -0
- package/dist/window/parametrics.js +2 -2
- package/dist/window/renderer.d.ts.map +1 -1
- package/dist/window/renderer.js +5 -7
- package/dist/window/tool.d.ts.map +1 -1
- package/dist/window/tool.js +227 -13
- package/dist/zone/floorplan-affordances.d.ts +12 -12
- package/package.json +11 -9
- package/dist/dormer/panel-window-section.d.ts +0 -14
- package/dist/dormer/panel-window-section.d.ts.map +0 -1
- package/dist/dormer/panel-window-section.js +0 -59
- package/dist/dormer/window-assembly.d.ts +0 -22
- package/dist/dormer/window-assembly.d.ts.map +0 -1
- package/dist/dormer/window-assembly.js +0 -111
- package/dist/dormer/window-frame.d.ts +0 -24
- package/dist/dormer/window-frame.d.ts.map +0 -1
- package/dist/dormer/window-frame.js +0 -100
|
@@ -2,7 +2,7 @@ import { useScene, } from '@pascal-app/core';
|
|
|
2
2
|
import { Vector3 } from 'three';
|
|
3
3
|
import { autoOffsetInvalidationUpdates, readAutoOffsetTag, withAutoOffsetTag, } from '../shared/auto-offset-tag';
|
|
4
4
|
import { DuctFittingSizeSwapEditor } from './inspector-editors';
|
|
5
|
-
import { getDuctFittingPorts } from './ports';
|
|
5
|
+
import { adapterShape, getDuctFittingPorts } from './ports';
|
|
6
6
|
/** Schema bounds for `diameter` / `diameter2`. */
|
|
7
7
|
const clampDiameter = (d) => Math.min(48, Math.max(2, d));
|
|
8
8
|
const equivalentDiameterIn = (widthIn, heightIn) => 2 * Math.sqrt((widthIn * heightIn) / Math.PI);
|
|
@@ -81,6 +81,10 @@ export const ductFittingParametrics = {
|
|
|
81
81
|
// this the legs keep the stale round size.
|
|
82
82
|
derive: (next, patch) => {
|
|
83
83
|
const out = {};
|
|
84
|
+
if (next.fittingType === 'transition') {
|
|
85
|
+
out.inletShape = adapterShape(next);
|
|
86
|
+
out.outletShape = adapterShape(next, true);
|
|
87
|
+
}
|
|
84
88
|
if ('shape' in patch && next.fittingType !== 'reducer') {
|
|
85
89
|
// `next` still carries the pre-edit diameters, so its ports sit
|
|
86
90
|
// where the mated ducts end — size off the actual neighbours.
|
|
@@ -111,13 +115,15 @@ export const ductFittingParametrics = {
|
|
|
111
115
|
// Non-round legs write their area-equivalent round size back into the
|
|
112
116
|
// diameters (leg lengths + advertised ports). A transition's inlet is
|
|
113
117
|
// always the rect end regardless of `shape`.
|
|
114
|
-
const
|
|
115
|
-
|
|
118
|
+
const adapter = ['transition', 'reducer'].includes(next.fittingType);
|
|
119
|
+
const runShape = adapter ? adapterShape(next) : next.shape;
|
|
120
|
+
if (runShape !== 'round') {
|
|
116
121
|
const equivalent = runShape === 'oval' ? ovalEquivalentDiameterIn : equivalentDiameterIn;
|
|
117
122
|
out.diameter = clampDiameter(equivalent(out.width ?? next.width, out.height ?? next.height));
|
|
118
123
|
}
|
|
119
|
-
const shape2 = out.shape2 ?? next.shape2;
|
|
120
|
-
if ((next.fittingType === 'tee' || next.fittingType === 'cross') &&
|
|
124
|
+
const shape2 = adapter ? adapterShape(next, true) : (out.shape2 ?? next.shape2);
|
|
125
|
+
if ((adapter || next.fittingType === 'tee' || next.fittingType === 'cross') &&
|
|
126
|
+
shape2 !== 'round') {
|
|
121
127
|
const equivalent2 = shape2 === 'oval' ? ovalEquivalentDiameterIn : equivalentDiameterIn;
|
|
122
128
|
out.diameter2 = clampDiameter(equivalent2(out.width2 ?? next.width2, out.height2 ?? next.height2));
|
|
123
129
|
}
|
|
@@ -198,8 +204,16 @@ export const ductFittingParametrics = {
|
|
|
198
204
|
{
|
|
199
205
|
key: 'fittingType',
|
|
200
206
|
kind: 'enum',
|
|
201
|
-
options: [
|
|
202
|
-
|
|
207
|
+
options: [
|
|
208
|
+
'elbow',
|
|
209
|
+
'tee',
|
|
210
|
+
'cross',
|
|
211
|
+
'reducer',
|
|
212
|
+
'transition',
|
|
213
|
+
'end-cap',
|
|
214
|
+
'damper',
|
|
215
|
+
'access-panel',
|
|
216
|
+
],
|
|
203
217
|
},
|
|
204
218
|
{
|
|
205
219
|
key: 'angle',
|
|
@@ -210,6 +224,33 @@ export const ductFittingParametrics = {
|
|
|
210
224
|
step: 15,
|
|
211
225
|
visibleIf: (n) => n.fittingType === 'elbow',
|
|
212
226
|
},
|
|
227
|
+
{
|
|
228
|
+
key: 'damperAngle',
|
|
229
|
+
kind: 'number',
|
|
230
|
+
unit: '°',
|
|
231
|
+
min: 0,
|
|
232
|
+
max: 90,
|
|
233
|
+
step: 5,
|
|
234
|
+
visibleIf: (n) => n.fittingType === 'damper',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
key: 'panelWidth',
|
|
238
|
+
kind: 'number',
|
|
239
|
+
unit: 'm',
|
|
240
|
+
min: 0.1,
|
|
241
|
+
max: 1.2,
|
|
242
|
+
step: 0.05,
|
|
243
|
+
visibleIf: (n) => n.fittingType === 'access-panel',
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
key: 'panelHeight',
|
|
247
|
+
kind: 'number',
|
|
248
|
+
unit: 'm',
|
|
249
|
+
min: 0.1,
|
|
250
|
+
max: 1.2,
|
|
251
|
+
step: 0.05,
|
|
252
|
+
visibleIf: (n) => n.fittingType === 'access-panel',
|
|
253
|
+
},
|
|
213
254
|
{
|
|
214
255
|
key: 'branchAngle',
|
|
215
256
|
kind: 'number',
|
|
@@ -230,6 +271,18 @@ export const ductFittingParametrics = {
|
|
|
230
271
|
{
|
|
231
272
|
label: 'Connections',
|
|
232
273
|
fields: [
|
|
274
|
+
{
|
|
275
|
+
key: 'inletShape',
|
|
276
|
+
kind: 'enum',
|
|
277
|
+
options: ['round', 'rect', 'oval'],
|
|
278
|
+
visibleIf: (n) => ['reducer', 'transition'].includes(n.fittingType),
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
key: 'outletShape',
|
|
282
|
+
kind: 'enum',
|
|
283
|
+
options: ['round', 'rect', 'oval'],
|
|
284
|
+
visibleIf: (n) => ['reducer', 'transition'].includes(n.fittingType),
|
|
285
|
+
},
|
|
233
286
|
{
|
|
234
287
|
key: 'shape',
|
|
235
288
|
kind: 'enum',
|
|
@@ -248,7 +301,8 @@ export const ductFittingParametrics = {
|
|
|
248
301
|
step: 1,
|
|
249
302
|
// Hidden when the run legs are rect / oval (transition's inlet
|
|
250
303
|
// always is) — `diameter` is then derived as the area equivalent.
|
|
251
|
-
visibleIf: (n) =>
|
|
304
|
+
visibleIf: (n) => (['reducer', 'transition'].includes(n.fittingType) ? adapterShape(n) : n.shape) ===
|
|
305
|
+
'round',
|
|
252
306
|
},
|
|
253
307
|
{
|
|
254
308
|
key: 'width',
|
|
@@ -257,7 +311,8 @@ export const ductFittingParametrics = {
|
|
|
257
311
|
min: 4,
|
|
258
312
|
max: 60,
|
|
259
313
|
step: 1,
|
|
260
|
-
visibleIf: (n) =>
|
|
314
|
+
visibleIf: (n) => (['reducer', 'transition'].includes(n.fittingType) ? adapterShape(n) : n.shape) !==
|
|
315
|
+
'round',
|
|
261
316
|
},
|
|
262
317
|
{
|
|
263
318
|
key: 'height',
|
|
@@ -266,13 +321,15 @@ export const ductFittingParametrics = {
|
|
|
266
321
|
min: 3,
|
|
267
322
|
max: 40,
|
|
268
323
|
step: 1,
|
|
269
|
-
visibleIf: (n) =>
|
|
324
|
+
visibleIf: (n) => (['reducer', 'transition'].includes(n.fittingType) ? adapterShape(n) : n.shape) !==
|
|
325
|
+
'round',
|
|
270
326
|
},
|
|
271
327
|
{
|
|
272
328
|
key: 'swapWidthHeight',
|
|
273
329
|
kind: 'custom',
|
|
274
330
|
component: DuctFittingSizeSwapEditor,
|
|
275
|
-
visibleIf: (n) =>
|
|
331
|
+
visibleIf: (n) => (['reducer', 'transition'].includes(n.fittingType) ? adapterShape(n) : n.shape) !==
|
|
332
|
+
'round',
|
|
276
333
|
},
|
|
277
334
|
{
|
|
278
335
|
key: 'shape2',
|
|
@@ -288,9 +345,11 @@ export const ductFittingParametrics = {
|
|
|
288
345
|
min: 4,
|
|
289
346
|
max: 24,
|
|
290
347
|
step: 1,
|
|
291
|
-
visibleIf: (n) =>
|
|
348
|
+
visibleIf: (n) => ['tee', 'cross', 'reducer', 'transition'].includes(n.fittingType) &&
|
|
292
349
|
(n.fittingType !== 'tee' || n.shape2 === 'round') &&
|
|
293
|
-
(n.fittingType !== 'cross' || n.shape2 === 'round')
|
|
350
|
+
(n.fittingType !== 'cross' || n.shape2 === 'round') &&
|
|
351
|
+
(!['reducer', 'transition'].includes(n.fittingType) ||
|
|
352
|
+
adapterShape(n, true) === 'round'),
|
|
294
353
|
},
|
|
295
354
|
{
|
|
296
355
|
key: 'width2',
|
|
@@ -299,7 +358,9 @@ export const ductFittingParametrics = {
|
|
|
299
358
|
min: 4,
|
|
300
359
|
max: 60,
|
|
301
360
|
step: 1,
|
|
302
|
-
visibleIf: (n) =>
|
|
361
|
+
visibleIf: (n) => ['reducer', 'transition'].includes(n.fittingType)
|
|
362
|
+
? adapterShape(n, true) !== 'round'
|
|
363
|
+
: (n.fittingType === 'tee' || n.fittingType === 'cross') && n.shape2 !== 'round',
|
|
303
364
|
},
|
|
304
365
|
{
|
|
305
366
|
key: 'height2',
|
|
@@ -308,7 +369,9 @@ export const ductFittingParametrics = {
|
|
|
308
369
|
min: 3,
|
|
309
370
|
max: 40,
|
|
310
371
|
step: 1,
|
|
311
|
-
visibleIf: (n) =>
|
|
372
|
+
visibleIf: (n) => ['reducer', 'transition'].includes(n.fittingType)
|
|
373
|
+
? adapterShape(n, true) !== 'round'
|
|
374
|
+
: (n.fittingType === 'tee' || n.fittingType === 'cross') && n.shape2 !== 'round',
|
|
312
375
|
},
|
|
313
376
|
{
|
|
314
377
|
key: 'ductMaterial',
|
|
@@ -26,6 +26,7 @@ type LocalPort = {
|
|
|
26
26
|
* 135° → upstream lateral); reducer -X → +X.
|
|
27
27
|
*/
|
|
28
28
|
export declare function localFittingPorts(node: DuctFittingNode): LocalPort[];
|
|
29
|
+
export declare function adapterShape(node: DuctFittingNode, outlet?: boolean): 'round' | 'rect' | 'oval';
|
|
29
30
|
/** `def.ports` — local ports transformed into level-local space. */
|
|
30
31
|
export declare function getDuctFittingPorts(node: DuctFittingNode): NodePort[];
|
|
31
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["../../src/duct-fitting/ports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAS,OAAO,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED,KAAK,SAAS,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAA;AAExF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,GAAG,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["../../src/duct-fitting/ports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAS,OAAO,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAI/C;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED,KAAK,SAAS,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAA;AAExF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,GAAG,SAAS,EAAE,CAyHpE;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,UAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAO7F;AAED,oEAAoE;AACpE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAAG,QAAQ,EAAE,CAgCrE"}
|
|
@@ -22,6 +22,28 @@ export function fittingLegLength(diameterInches) {
|
|
|
22
22
|
* 135° → upstream lateral); reducer -X → +X.
|
|
23
23
|
*/
|
|
24
24
|
export function localFittingPorts(node) {
|
|
25
|
+
if (node.fittingType === 'access-panel')
|
|
26
|
+
return [];
|
|
27
|
+
if (['end-cap', 'damper', 'coupling'].includes(node.fittingType)) {
|
|
28
|
+
const half = node.fittingType === 'end-cap' ? 0.025 : 0.1;
|
|
29
|
+
const inlet = {
|
|
30
|
+
id: 'inlet',
|
|
31
|
+
position: new Vector3(-half, 0, 0),
|
|
32
|
+
direction: new Vector3(-1, 0, 0),
|
|
33
|
+
diameter: node.diameter,
|
|
34
|
+
};
|
|
35
|
+
return node.fittingType === 'end-cap'
|
|
36
|
+
? [inlet]
|
|
37
|
+
: [
|
|
38
|
+
inlet,
|
|
39
|
+
{
|
|
40
|
+
id: 'outlet',
|
|
41
|
+
position: new Vector3(half, 0, 0),
|
|
42
|
+
direction: new Vector3(1, 0, 0),
|
|
43
|
+
diameter: node.diameter,
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
}
|
|
25
47
|
const main = fittingLegLength(node.diameter);
|
|
26
48
|
if (node.fittingType === 'elbow') {
|
|
27
49
|
const theta = (node.angle * Math.PI) / 180;
|
|
@@ -122,6 +144,15 @@ export function localFittingPorts(node) {
|
|
|
122
144
|
},
|
|
123
145
|
];
|
|
124
146
|
}
|
|
147
|
+
export function adapterShape(node, outlet = false) {
|
|
148
|
+
const inlet = node.inletShape ?? (node.fittingType === 'transition' ? 'rect' : 'round');
|
|
149
|
+
if (!outlet)
|
|
150
|
+
return inlet;
|
|
151
|
+
const target = node.outletShape ?? 'round';
|
|
152
|
+
if (node.fittingType === 'transition' && target === inlet)
|
|
153
|
+
return inlet === 'round' ? 'rect' : 'round';
|
|
154
|
+
return target;
|
|
155
|
+
}
|
|
125
156
|
/** `def.ports` — local ports transformed into level-local space. */
|
|
126
157
|
export function getDuctFittingPorts(node) {
|
|
127
158
|
const euler = new Euler(node.rotation[0], node.rotation[1], node.rotation[2]);
|
|
@@ -134,6 +165,21 @@ export function getDuctFittingPorts(node) {
|
|
|
134
165
|
position: [position.x, position.y, position.z],
|
|
135
166
|
direction: [direction.x, direction.y, direction.z],
|
|
136
167
|
diameter: port.diameter,
|
|
168
|
+
shape: node.fittingType === 'reducer' || node.fittingType === 'transition'
|
|
169
|
+
? adapterShape(node, port.id === 'outlet')
|
|
170
|
+
: node.shape === 'round'
|
|
171
|
+
? 'round'
|
|
172
|
+
: port.id.startsWith('branch')
|
|
173
|
+
? node.shape2
|
|
174
|
+
: node.shape,
|
|
175
|
+
width: port.id.startsWith('branch') ||
|
|
176
|
+
(port.id === 'outlet' && ['reducer', 'transition'].includes(node.fittingType))
|
|
177
|
+
? node.width2
|
|
178
|
+
: node.width,
|
|
179
|
+
height: port.id.startsWith('branch') ||
|
|
180
|
+
(port.id === 'outlet' && ['reducer', 'transition'].includes(node.fittingType))
|
|
181
|
+
? node.height2
|
|
182
|
+
: node.height,
|
|
137
183
|
system: node.system,
|
|
138
184
|
};
|
|
139
185
|
});
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
import { DuctFittingNode } from '@pascal-app/core';
|
|
2
|
+
import { Quaternion } from 'three';
|
|
3
|
+
import { type ScenePort } from '../shared/ports';
|
|
4
|
+
type Placement = {
|
|
5
|
+
position: [number, number, number];
|
|
6
|
+
rotation: [number, number, number];
|
|
7
|
+
snapPort: ScenePort | null;
|
|
8
|
+
node: DuctFittingNode;
|
|
9
|
+
valid: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Resolve where the fitting would land for a cursor at `raw`:
|
|
13
|
+
* - Near an existing port → mate: orientation aligns the inlet onto
|
|
14
|
+
* the port (plus the user's manual R/T rotation, pivoting around
|
|
15
|
+
* the inlet collar so it stays on the port while the body sweeps).
|
|
16
|
+
* - Otherwise → grid-snapped free placement on the floor, manual
|
|
17
|
+
* rotation only.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolvePlacement(raw: [number, number, number], previewNode: DuctFittingNode, gridStep: number, manualQuat: Quaternion, surfaceHit: boolean, surfaceNormal?: [number, number, number], support?: (node: DuctFittingNode | import("@pascal-app/core").PipeFittingNode, rotation: [number, number, number], position: [number, number, number], surfacePoint: [number, number, number], surfaceNormal?: [number, number, number]) => [number, number, number]): Placement;
|
|
1
20
|
/**
|
|
2
21
|
* Click-place tool for duct fittings (elbow / tee / reducer).
|
|
3
22
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/duct-fitting/tool.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/duct-fitting/tool.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAqC,MAAM,kBAAkB,CAAA;AAarF,OAAO,EAA8B,UAAU,EAAW,MAAM,OAAO,CAAA;AAsBvE,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAOtF,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAA;IAC1B,IAAI,EAAE,eAAe,CAAA;IACrB,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAC7B,WAAW,EAAE,eAAe,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,OAAO,EACnB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxC,OAAO,6PAAgC,GACtC,SAAS,CAsEX;AAED;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,eAAe,0CAsOpB,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { DuctFittingNode, emitter, useScene } from '@pascal-app/core';
|
|
4
|
-
import { CursorSphere, EDITOR_LAYER, isGridSnapActive, triggerSFX, useEditor, } from '@pascal-app/editor';
|
|
4
|
+
import { CursorSphere, EDITOR_LAYER, isGridSnapActive, isMagneticSnapActive, triggerSFX, useEditor, useInteractionScope, } from '@pascal-app/editor';
|
|
5
5
|
import { useViewer } from '@pascal-app/viewer';
|
|
6
6
|
import { Html } from '@react-three/drei';
|
|
7
7
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
8
|
-
import { Euler, Quaternion, Vector3 } from 'three';
|
|
8
|
+
import { Euler, Mesh, Quaternion, Vector3 } from 'three';
|
|
9
|
+
import { accessoryCursor } from '../shared/accessory-cursor';
|
|
10
|
+
import { accessoryMateQuaternion, inheritFittingProfile, placeAccessPanel, } from '../shared/accessory-placement';
|
|
11
|
+
import { findAccessoryPort, snapAccessoryPoint, subscribeAccessorySnapping, } from '../shared/accessory-snapping';
|
|
12
|
+
import { ConnectionFeedback } from '../shared/connection-feedback';
|
|
13
|
+
import { alignDrawPoint, clearDrawAlignment } from '../shared/draw-alignment';
|
|
9
14
|
import { AXIS_VECTORS, cycleRotationAxis, getRotationAxis, ROTATE_STEP_RAD, } from '../shared/fitting-rotation';
|
|
15
|
+
import { createFittingSurfaceSupport } from '../shared/fitting-surface-support';
|
|
10
16
|
import { LevelOffsetGroup } from '../shared/level-offset-group';
|
|
11
|
-
import { collectScenePorts, DUCT_PORT_SYSTEMS
|
|
17
|
+
import { collectScenePorts, DUCT_PORT_SYSTEMS } from '../shared/ports';
|
|
12
18
|
import { ductFittingDefinition } from './definition';
|
|
13
19
|
import { buildDuctFittingGeometry } from './geometry';
|
|
14
20
|
import { localFittingPorts } from './ports';
|
|
15
|
-
/** Snap radius (meters, XZ) for mating onto an existing port. */
|
|
16
|
-
const PORT_SNAP_RADIUS_M = 0.5;
|
|
17
21
|
const PREVIEW_OPACITY = 0.55;
|
|
18
|
-
function snap(value, step) {
|
|
19
|
-
if (step <= 0)
|
|
20
|
-
return value;
|
|
21
|
-
return Math.round(value / step) * step;
|
|
22
|
-
}
|
|
23
22
|
/**
|
|
24
23
|
* Resolve where the fitting would land for a cursor at `raw`:
|
|
25
24
|
* - Near an existing port → mate: orientation aligns the inlet onto
|
|
@@ -28,16 +27,41 @@ function snap(value, step) {
|
|
|
28
27
|
* - Otherwise → grid-snapped free placement on the floor, manual
|
|
29
28
|
* rotation only.
|
|
30
29
|
*/
|
|
31
|
-
function resolvePlacement(raw, previewNode, gridStep, manualQuat) {
|
|
32
|
-
const
|
|
30
|
+
export function resolvePlacement(raw, previewNode, gridStep, manualQuat, surfaceHit, surfaceNormal, support = createFittingSurfaceSupport()) {
|
|
31
|
+
const levelId = useViewer.getState().selection.levelId;
|
|
32
|
+
if (previewNode.fittingType === 'access-panel') {
|
|
33
|
+
const enabled = isGridSnapActive() || isMagneticSnapActive();
|
|
34
|
+
const mounted = enabled
|
|
35
|
+
? placeAccessPanel(raw, previewNode, useScene.getState().nodes, levelId, surfaceHit, gridStep)
|
|
36
|
+
: null;
|
|
37
|
+
const normal = new Vector3(...(surfaceNormal ?? [0, 1, 0])).normalize();
|
|
38
|
+
const orientation = manualQuat
|
|
39
|
+
.clone()
|
|
40
|
+
.multiply(new Quaternion().setFromUnitVectors(new Vector3(0, 0, 1), normal));
|
|
41
|
+
const euler = new Euler().setFromQuaternion(orientation);
|
|
42
|
+
const rotation = [euler.x, euler.y, euler.z];
|
|
43
|
+
return {
|
|
44
|
+
...(mounted ?? {
|
|
45
|
+
position: support(previewNode, rotation, snapAccessoryPoint(raw, gridStep, surfaceNormal), raw, surfaceNormal),
|
|
46
|
+
rotation,
|
|
47
|
+
}),
|
|
48
|
+
snapPort: null,
|
|
49
|
+
node: previewNode,
|
|
50
|
+
valid: true,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
const port = levelId
|
|
54
|
+
? findAccessoryPort(raw, collectScenePorts({ systems: DUCT_PORT_SYSTEMS, levelId }), isGridSnapActive() || isMagneticSnapActive(), surfaceHit)
|
|
55
|
+
: null;
|
|
33
56
|
if (port) {
|
|
34
|
-
|
|
57
|
+
clearDrawAlignment();
|
|
58
|
+
const fittedNode = inheritFittingProfile(previewNode, port, useScene.getState().nodes);
|
|
35
59
|
// Local +X must map onto the port's outward direction so the inlet
|
|
36
60
|
// (local -X) faces back into the run it's joining. Manual rotation
|
|
37
61
|
// composes in the world frame on top of the mate orientation.
|
|
38
|
-
const mate =
|
|
62
|
+
const mate = accessoryMateQuaternion(fittedNode, port, useScene.getState().nodes);
|
|
39
63
|
const final = manualQuat.clone().multiply(mate);
|
|
40
|
-
const inlet = localFittingPorts(
|
|
64
|
+
const inlet = localFittingPorts(fittedNode)[0];
|
|
41
65
|
const inletWorldOffset = inlet.position.clone().applyQuaternion(final);
|
|
42
66
|
const position = new Vector3(...port.position).sub(inletWorldOffset);
|
|
43
67
|
const euler = new Euler().setFromQuaternion(final);
|
|
@@ -45,13 +69,22 @@ function resolvePlacement(raw, previewNode, gridStep, manualQuat) {
|
|
|
45
69
|
position: [position.x, position.y, position.z],
|
|
46
70
|
rotation: [euler.x, euler.y, euler.z],
|
|
47
71
|
snapPort: port,
|
|
72
|
+
node: fittedNode,
|
|
73
|
+
valid: true,
|
|
48
74
|
};
|
|
49
75
|
}
|
|
50
76
|
const euler = new Euler().setFromQuaternion(manualQuat);
|
|
77
|
+
const rotation = [euler.x, euler.y, euler.z];
|
|
78
|
+
const snapped = alignDrawPoint(snapAccessoryPoint(raw, gridStep, surfaceNormal), {
|
|
79
|
+
applySnap: !surfaceHit && isMagneticSnapActive(),
|
|
80
|
+
bypass: surfaceHit || !isMagneticSnapActive(),
|
|
81
|
+
});
|
|
51
82
|
return {
|
|
52
|
-
position:
|
|
53
|
-
rotation
|
|
83
|
+
position: support(previewNode, rotation, snapped, raw, surfaceNormal),
|
|
84
|
+
rotation,
|
|
54
85
|
snapPort: null,
|
|
86
|
+
node: previewNode,
|
|
87
|
+
valid: true,
|
|
55
88
|
};
|
|
56
89
|
}
|
|
57
90
|
/**
|
|
@@ -72,51 +105,103 @@ function resolvePlacement(raw, previewNode, gridStep, manualQuat) {
|
|
|
72
105
|
const DuctFittingTool = () => {
|
|
73
106
|
const activeLevelId = useViewer((s) => s.selection.levelId);
|
|
74
107
|
const [placement, setPlacement] = useState(null);
|
|
108
|
+
const toolDefaults = useEditor((s) => s.toolDefaults['duct-fitting']);
|
|
75
109
|
const axis = useEditor((s) => s.rotationAxis);
|
|
76
110
|
// Accumulated manual rotation from R/T presses. Ref (not state) so the
|
|
77
111
|
// emitter callbacks always read the latest without re-subscribing; a
|
|
78
112
|
// placement recompute is triggered explicitly after each change.
|
|
113
|
+
const support = useMemo(createFittingSurfaceSupport, []);
|
|
79
114
|
const manualQuatRef = useRef(new Quaternion());
|
|
80
115
|
// Last raw cursor position so a key press can recompute the placement
|
|
81
116
|
// without waiting for the next mouse move.
|
|
117
|
+
const surfaceNormalRef = useRef(undefined);
|
|
118
|
+
const surfaceHitRef = useRef(false);
|
|
82
119
|
const lastRawRef = useRef(null);
|
|
83
120
|
// Ghost matches exactly what a click creates (the kind's defaults).
|
|
84
|
-
const previewNode = useMemo(() => DuctFittingNode.parse({ ...ductFittingDefinition.defaults(),
|
|
121
|
+
const previewNode = useMemo(() => DuctFittingNode.parse({ ...ductFittingDefinition.defaults(), ...toolDefaults }), [toolDefaults]);
|
|
122
|
+
const displayNode = placement?.node ?? previewNode;
|
|
85
123
|
const ghost = useMemo(() => {
|
|
86
|
-
const group = buildDuctFittingGeometry(
|
|
124
|
+
const group = buildDuctFittingGeometry({
|
|
125
|
+
...displayNode,
|
|
126
|
+
rotation: placement?.rotation ?? displayNode.rotation,
|
|
127
|
+
});
|
|
87
128
|
group.traverse((child) => {
|
|
88
129
|
// Overlay layer keeps the placement ghost out of the ink / SSGI
|
|
89
130
|
// buffers and the thumbnail export, like every other tool preview.
|
|
90
131
|
child.layers.set(EDITOR_LAYER);
|
|
91
|
-
|
|
92
|
-
if (
|
|
93
|
-
|
|
94
|
-
|
|
132
|
+
child.raycast = () => { };
|
|
133
|
+
if (child instanceof Mesh) {
|
|
134
|
+
const clone = (material) => {
|
|
135
|
+
const copy = material.clone();
|
|
136
|
+
copy.transparent = true;
|
|
137
|
+
copy.opacity = PREVIEW_OPACITY;
|
|
138
|
+
return copy;
|
|
139
|
+
};
|
|
140
|
+
child.material = Array.isArray(child.material)
|
|
141
|
+
? child.material.map(clone)
|
|
142
|
+
: clone(child.material);
|
|
95
143
|
}
|
|
96
144
|
});
|
|
97
145
|
return group;
|
|
98
|
-
}, [
|
|
146
|
+
}, [displayNode, placement?.rotation]);
|
|
147
|
+
useEffect(() => () => {
|
|
148
|
+
ghost.traverse((object) => {
|
|
149
|
+
if (!(object instanceof Mesh))
|
|
150
|
+
return;
|
|
151
|
+
object.geometry.dispose();
|
|
152
|
+
for (const material of Array.isArray(object.material) ? object.material : [object.material])
|
|
153
|
+
material.dispose();
|
|
154
|
+
});
|
|
155
|
+
}, [ghost]);
|
|
99
156
|
useEffect(() => {
|
|
100
157
|
if (!activeLevelId)
|
|
101
158
|
return;
|
|
159
|
+
const draft = DuctFittingNode.parse({ ...previewNode, parentId: activeLevelId });
|
|
160
|
+
useInteractionScope.getState().begin({
|
|
161
|
+
kind: 'placing',
|
|
162
|
+
node: draft,
|
|
163
|
+
nodeId: draft.id,
|
|
164
|
+
nodeType: draft.type,
|
|
165
|
+
view: '3d',
|
|
166
|
+
pressDrag: false,
|
|
167
|
+
driver: 'registry-tool',
|
|
168
|
+
});
|
|
102
169
|
const recompute = () => {
|
|
103
170
|
const raw = lastRawRef.current;
|
|
104
171
|
if (!raw)
|
|
105
172
|
return;
|
|
106
|
-
|
|
173
|
+
const next = resolvePlacement(raw, previewNode, isGridSnapActive() ? useEditor.getState().gridSnapStep : 0, manualQuatRef.current, surfaceHitRef.current, surfaceNormalRef.current, support);
|
|
174
|
+
setPlacement((previous) => ({
|
|
175
|
+
...next,
|
|
176
|
+
node: previous && JSON.stringify(previous.node) === JSON.stringify(next.node)
|
|
177
|
+
? previous.node
|
|
178
|
+
: next.node,
|
|
179
|
+
rotation: previous?.rotation.every((v, i) => v === next.rotation[i])
|
|
180
|
+
? previous.rotation
|
|
181
|
+
: next.rotation,
|
|
182
|
+
}));
|
|
107
183
|
};
|
|
108
184
|
const onMove = (event) => {
|
|
109
|
-
|
|
185
|
+
const cursor = accessoryCursor(event, activeLevelId);
|
|
186
|
+
surfaceNormalRef.current = cursor.normal;
|
|
187
|
+
surfaceHitRef.current = cursor.surface;
|
|
188
|
+
lastRawRef.current = cursor.point;
|
|
110
189
|
recompute();
|
|
111
190
|
};
|
|
112
191
|
const onClick = (event) => {
|
|
113
|
-
|
|
114
|
-
|
|
192
|
+
const cursor = accessoryCursor(event, activeLevelId);
|
|
193
|
+
surfaceNormalRef.current = cursor.normal;
|
|
194
|
+
surfaceHitRef.current = cursor.surface;
|
|
195
|
+
lastRawRef.current = cursor.point;
|
|
196
|
+
const resolved = resolvePlacement(lastRawRef.current, previewNode, isGridSnapActive() ? useEditor.getState().gridSnapStep : 0, manualQuatRef.current, surfaceHitRef.current, surfaceNormalRef.current, support);
|
|
197
|
+
if (!resolved.valid)
|
|
198
|
+
return;
|
|
115
199
|
const fitting = DuctFittingNode.parse({
|
|
116
|
-
...
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
200
|
+
...resolved.node,
|
|
201
|
+
id: undefined,
|
|
202
|
+
name: resolved.node.fittingType.replaceAll('-', ' ').replace(/^./, (c) => c.toUpperCase()),
|
|
203
|
+
position: resolved.position,
|
|
204
|
+
rotation: resolved.rotation,
|
|
120
205
|
});
|
|
121
206
|
useScene.getState().createNode(fitting, activeLevelId);
|
|
122
207
|
useViewer.getState().setSelection({ selectedIds: [fitting.id] });
|
|
@@ -144,17 +229,24 @@ const DuctFittingTool = () => {
|
|
|
144
229
|
cycleRotationAxis();
|
|
145
230
|
}
|
|
146
231
|
};
|
|
232
|
+
recompute();
|
|
233
|
+
const unsubscribeSnapping = subscribeAccessorySnapping(recompute);
|
|
147
234
|
emitter.on('grid:move', onMove);
|
|
148
235
|
emitter.on('grid:click', onClick);
|
|
149
236
|
window.addEventListener('keydown', onKeyDown, true);
|
|
150
237
|
return () => {
|
|
238
|
+
useInteractionScope
|
|
239
|
+
.getState()
|
|
240
|
+
.endIf((scope) => scope.kind === 'placing' && scope.nodeId === draft.id);
|
|
241
|
+
unsubscribeSnapping();
|
|
242
|
+
clearDrawAlignment();
|
|
151
243
|
emitter.off('grid:move', onMove);
|
|
152
244
|
emitter.off('grid:click', onClick);
|
|
153
245
|
window.removeEventListener('keydown', onKeyDown, true);
|
|
154
246
|
};
|
|
155
|
-
}, [activeLevelId, previewNode]);
|
|
247
|
+
}, [activeLevelId, previewNode, support]);
|
|
156
248
|
if (!activeLevelId || !placement)
|
|
157
249
|
return null;
|
|
158
|
-
return (_jsxs(LevelOffsetGroup, { children: [_jsx(CursorSphere, { position: placement.position }), _jsx("group", { position: placement.position, rotation: placement.rotation, children: _jsx("primitive", { object: ghost }) }), _jsx(Html, { center: true, position: [placement.position[0], placement.position[1] + 1.45, placement.position[2]], style: { pointerEvents: 'none', userSelect: 'none' }, zIndexRange: [100, 0], children: _jsxs("div", { className: "flex items-center gap-2 whitespace-nowrap rounded-full border border-border/60 bg-background/90 px-4 py-1.5 text-xs tabular-nums shadow-sm backdrop-blur", children: [_jsxs("span", { className: "font-medium text-foreground", children: ["Axis ", axis.toUpperCase()] }), _jsx("span", { "aria-hidden": true, className: "text-muted-foreground", children: "\u00B7" }), _jsx("span", { className: "text-muted-foreground", children: "R/T rotate" }), _jsx("span", { "aria-hidden": true, className: "text-muted-foreground", children: "\u00B7" }), _jsx("span", { className: "text-muted-foreground", children: "\u2325 axis" })] }) }), placement.snapPort && (_jsxs("mesh", { layers: EDITOR_LAYER, position: placement.snapPort.position, children: [_jsx("sphereGeometry", { args: [0.18, 24, 16] }), _jsx("meshBasicMaterial", { color: "#818cf8", depthTest: false, opacity: 0.35, transparent: true })] }))] }));
|
|
250
|
+
return (_jsxs(LevelOffsetGroup, { children: [previewNode.fittingType !== 'access-panel' && (_jsx(ConnectionFeedback, { point: placement.position, target: placement.snapPort, levelId: activeLevelId, profile: displayNode })), _jsx(CursorSphere, { position: placement.position }), _jsx("group", { position: placement.position, rotation: placement.rotation, children: _jsx("primitive", { object: ghost }) }), _jsx(Html, { center: true, position: [placement.position[0], placement.position[1] + 1.45, placement.position[2]], style: { pointerEvents: 'none', userSelect: 'none' }, zIndexRange: [100, 0], children: _jsxs("div", { className: "flex items-center gap-2 whitespace-nowrap rounded-full border border-border/60 bg-background/90 px-4 py-1.5 text-xs tabular-nums shadow-sm backdrop-blur", children: [previewNode.fittingType === 'access-panel' && (_jsx("span", { children: placement.valid ? 'Place access door' : 'Hover a duct face that fits the door' })), _jsxs("span", { className: "font-medium text-foreground", children: ["Axis ", axis.toUpperCase()] }), _jsx("span", { "aria-hidden": true, className: "text-muted-foreground", children: "\u00B7" }), _jsx("span", { className: "text-muted-foreground", children: "R/T rotate" }), _jsx("span", { "aria-hidden": true, className: "text-muted-foreground", children: "\u00B7" }), _jsx("span", { className: "text-muted-foreground", children: "\u2325 axis" })] }) }), placement.snapPort && (_jsxs("mesh", { layers: EDITOR_LAYER, position: placement.snapPort.position, children: [_jsx("sphereGeometry", { args: [0.18, 24, 16] }), _jsx("meshBasicMaterial", { color: "#818cf8", depthTest: false, opacity: 0.35, transparent: true })] }))] }));
|
|
159
251
|
};
|
|
160
252
|
export default DuctFittingTool;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type AnyNode, type AnyNodeId, type DuctFittingNode, type FloorplanAffordance } from '@pascal-app/core';
|
|
2
|
+
import { type RunContinuationHandlePlan } from '../shared/elbow-branch-continuation';
|
|
3
|
+
import type { RunBodyHit, ScenePort } from '../shared/ports';
|
|
4
|
+
import type { DuctSegmentNode } from './schema';
|
|
5
|
+
export type DuctEndpoint = 'start' | 'end';
|
|
6
|
+
export type DuctContinuationSeed = {
|
|
7
|
+
duct: DuctSegmentNode;
|
|
8
|
+
port: ScenePort | null;
|
|
9
|
+
body: RunBodyHit | null;
|
|
10
|
+
promotedFitting?: DuctFittingNode;
|
|
11
|
+
};
|
|
12
|
+
export declare function ductEndpointPort(duct: DuctSegmentNode, endpoint: DuctEndpoint): ScenePort | null;
|
|
13
|
+
export declare function ductContinuationHandlePoint(duct: DuctSegmentNode, endpoint: DuctEndpoint, gap?: number): [number, number, number] | null;
|
|
14
|
+
export declare function ductContinuationHandlePlan(duct: DuctSegmentNode, endpoint: DuctEndpoint, nodes: Readonly<Record<string, AnyNode>>, gap?: number): RunContinuationHandlePlan | null;
|
|
15
|
+
export declare function resolveDuctContinuationSeed(defaults: unknown, nodes: Record<string, AnyNode>): DuctContinuationSeed | null;
|
|
16
|
+
export declare function activateDuctBranch(duct: DuctSegmentNode, segmentIndex: number, point: [number, number, number]): void;
|
|
17
|
+
export declare function activateDuctContinuation(duct: DuctSegmentNode, endpoint: DuctEndpoint, fittingId?: AnyNodeId): void;
|
|
18
|
+
export declare const ductContinuationAffordance: FloorplanAffordance<DuctSegmentNode>;
|
|
19
|
+
export declare const ductBranchAffordance: FloorplanAffordance<DuctSegmentNode>;
|
|
20
|
+
export declare function currentDuctContinuationSeed(): DuctContinuationSeed | null;
|
|
21
|
+
//# sourceMappingURL=continuation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuation.d.ts","sourceRoot":"","sources":["../../src/duct-segment/continuation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAEzB,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAIL,KAAK,yBAAyB,EAE/B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE/C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,CAAA;AAE1C,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,eAAe,CAAA;IACrB,IAAI,EAAE,SAAS,GAAG,IAAI,CAAA;IACtB,IAAI,EAAE,UAAU,GAAG,IAAI,CAAA;IACvB,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC,CAAA;AAYD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,GAAG,SAAS,GAAG,IAAI,CAkBhG;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,YAAY,EACtB,GAAG,SAAO,GACT,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAQjC;AAED,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,GAAG,SAAO,GACT,yBAAyB,GAAG,IAAI,CAGlC;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,oBAAoB,GAAG,IAAI,CAiD7B;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,eAAe,EACrB,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAC9B,IAAI,CAmBN;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,YAAY,EACtB,SAAS,CAAC,EAAE,SAAS,GACpB,IAAI,CAiBN;AAED,eAAO,MAAM,0BAA0B,EAAE,mBAAmB,CAAC,eAAe,CAiB3E,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,mBAAmB,CAAC,eAAe,CAiBrE,CAAA;AAED,wBAAgB,2BAA2B,IAAI,oBAAoB,GAAG,IAAI,CAKzE"}
|