@pascal-app/nodes 1.0.0-beta.4 → 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/flame-index.d.ts +3 -0
- package/dist/cabinet/flame-index.d.ts.map +1 -0
- package/dist/cabinet/flame-index.js +13 -0
- 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/system.d.ts +2 -0
- package/dist/cabinet/system.d.ts.map +1 -1
- package/dist/cabinet/system.js +28 -8
- package/dist/cabinet/tool.d.ts.map +1 -1
- package/dist/cabinet/tool.js +616 -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.d.ts.map +1 -1
- package/dist/ceiling/panel.js +8 -2
- 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/placement-guides.d.ts.map +1 -1
- package/dist/dormer/placement-guides.js +5 -4
- 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/definition.d.ts.map +1 -1
- package/dist/elevator/definition.js +2 -0
- 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/curve-tool.d.ts.map +1 -1
- package/dist/fence/curve-tool.js +14 -9
- 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/move-control-point-tool.d.ts.map +1 -1
- package/dist/fence/move-control-point-tool.js +13 -8
- package/dist/fence/move-tangent-tool.d.ts.map +1 -1
- package/dist/fence/move-tangent-tool.js +13 -8
- package/dist/fence/parametrics.js +3 -3
- package/dist/fence/tool.d.ts.map +1 -1
- package/dist/fence/tool.js +55 -31
- 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/measurement/renderer.d.ts.map +1 -1
- package/dist/measurement/renderer.js +6 -5
- package/dist/measurement/surface-query.js +5 -5
- package/dist/measurement/tool.d.ts.map +1 -1
- package/dist/measurement/tool.js +7 -5
- 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/ridge-vent/renderer.d.ts.map +1 -1
- package/dist/ridge-vent/renderer.js +2 -2
- 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-ghost.d.ts.map +1 -1
- package/dist/shared/mep-ghost.js +19 -1
- 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.d.ts.map +1 -1
- 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 +3 -4
- package/dist/wall/curve-tool.d.ts.map +1 -1
- package/dist/wall/curve-tool.js +24 -23
- 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 +62 -27
- 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 +5 -0
- package/dist/wall/system.d.ts.map +1 -1
- package/dist/wall/system.js +71 -26
- package/dist/wall/tool.d.ts.map +1 -1
- package/dist/wall/tool.js +29 -27
- 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 +55 -0
- package/dist/wall/wall-batch-system.d.ts.map +1 -0
- package/dist/wall/wall-batch-system.js +486 -0
- package/dist/wall/wall-batch.d.ts +66 -0
- package/dist/wall/wall-batch.d.ts.map +1 -0
- package/dist/wall/wall-batch.js +169 -0
- 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/dist/zone/quantities-panel.d.ts.map +1 -1
- package/dist/zone/quantities-panel.js +4 -3
- 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
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
import { type AnyNode, type AnyNodeId, PipeFittingNode } from '@pascal-app/core';
|
|
2
|
+
import { Quaternion } from 'three';
|
|
3
|
+
import { type ScenePort } from '../shared/ports';
|
|
4
|
+
import { type PipeInlineInsertionPlan } from './inline-insertion';
|
|
5
|
+
type Placement = {
|
|
6
|
+
position: [number, number, number];
|
|
7
|
+
rotation: [number, number, number];
|
|
8
|
+
snapPort: ScenePort | null;
|
|
9
|
+
insertion: PipeInlineInsertionPlan | null;
|
|
10
|
+
node: PipeFittingNode;
|
|
11
|
+
valid: boolean;
|
|
12
|
+
};
|
|
13
|
+
type PlacementContext = {
|
|
14
|
+
levelId: AnyNodeId | null;
|
|
15
|
+
nodes: Readonly<Record<AnyNodeId, AnyNode>>;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Resolve where the fitting would land for a cursor at `raw`:
|
|
19
|
+
* - Near an existing DWV port → mate: orientation aligns the inlet
|
|
20
|
+
* onto the port (plus the user's manual R/T rotation, pivoting
|
|
21
|
+
* around the inlet collar so it stays on the port while the body
|
|
22
|
+
* sweeps).
|
|
23
|
+
* - Otherwise → grid-snapped free placement on the floor, manual
|
|
24
|
+
* rotation only.
|
|
25
|
+
*/
|
|
26
|
+
export declare function resolvePlacement(raw: [number, number, number], previewNode: PipeFittingNode, gridStep: number, manualQuat: Quaternion, surfaceHit: boolean, surfaceNormal?: [number, number, number], support?: (node: import("@pascal-app/core").DuctFittingNode | PipeFittingNode, rotation: [number, number, number], position: [number, number, number], surfacePoint: [number, number, number], surfaceNormal?: [number, number, number]) => [number, number, number], context?: PlacementContext): Placement;
|
|
1
27
|
/**
|
|
2
28
|
* Click-place tool for DWV pipe fittings (elbow / wye / sanitary tee) —
|
|
3
29
|
* the plumbing sibling of the duct-fitting tool.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/pipe-fitting/tool.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/pipe-fitting/tool.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,SAAS,EAGd,eAAe,EAEhB,MAAM,kBAAkB,CAAA;AAazB,OAAO,EAAoD,UAAU,EAAW,MAAM,OAAO,CAAA;AAkB7F,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,iBAAiB,CAAA;AAGxB,OAAO,EAEL,KAAK,uBAAuB,EAE7B,MAAM,oBAAoB,CAAA;AAK3B,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,SAAS,EAAE,uBAAuB,GAAG,IAAI,CAAA;IACzC,IAAI,EAAE,eAAe,CAAA;IACrB,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,SAAS,GAAG,IAAI,CAAA;IACzB,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAA;CAC5C,CAAA;AAED;;;;;;;;GAQG;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,EACvC,OAAO,GAAE,gBAA+C,GACvD,SAAS,CAkGX;AAED;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,eAAe,0CAoPpB,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
|
-
import { emitter, PipeFittingNode,
|
|
4
|
-
import { CursorSphere, EDITOR_LAYER, isGridSnapActive, triggerSFX, useEditor, } from '@pascal-app/editor';
|
|
5
|
-
import { useViewer } from '@pascal-app/viewer';
|
|
3
|
+
import { emitter, PipeFittingNode, PipeSegmentNode, } from '@pascal-app/core';
|
|
4
|
+
import { CursorSphere, EDITOR_LAYER, isGridSnapActive, isMagneticSnapActive, triggerSFX, useEditor, useInteractionScope, useRegistryToolContext, } from '@pascal-app/editor';
|
|
6
5
|
import { Html } from '@react-three/drei';
|
|
7
6
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
8
|
-
import { Euler, Quaternion, Vector3 } from 'three';
|
|
7
|
+
import { Euler, Mesh, MeshStandardMaterial, Quaternion, Vector3 } from 'three';
|
|
8
|
+
import { accessoryCursor } from '../shared/accessory-cursor';
|
|
9
|
+
import { inheritFittingProfile } from '../shared/accessory-placement';
|
|
10
|
+
import { findAccessoryPort, snapAccessoryPoint, subscribeAccessorySnapping, } from '../shared/accessory-snapping';
|
|
11
|
+
import { ConnectionFeedback } from '../shared/connection-feedback';
|
|
12
|
+
import { alignDrawPoint, clearDrawAlignment } from '../shared/draw-alignment';
|
|
9
13
|
import { AXIS_VECTORS, cycleRotationAxis, getRotationAxis, ROTATE_STEP_RAD, } from '../shared/fitting-rotation';
|
|
14
|
+
import { createFittingSurfaceSupport } from '../shared/fitting-surface-support';
|
|
10
15
|
import { LevelOffsetGroup } from '../shared/level-offset-group';
|
|
11
|
-
import { collectScenePorts, DWV_PORT_SYSTEMS,
|
|
16
|
+
import { collectScenePorts, DWV_PORT_SYSTEMS, findNearestRunBody3D, findNearestRunBodyXZ, } from '../shared/ports';
|
|
12
17
|
import { pipeFittingDefinition } from './definition';
|
|
13
18
|
import { buildPipeFittingGeometry } from './geometry';
|
|
19
|
+
import { isInlinePipeFitting, planPipeInlineInsertion, } from './inline-insertion';
|
|
14
20
|
import { localPipeFittingPorts } from './ports';
|
|
15
|
-
/** Snap radius (meters, XZ) for mating onto an existing DWV 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 DWV port → mate: orientation aligns the inlet
|
|
@@ -29,16 +28,21 @@ function snap(value, step) {
|
|
|
29
28
|
* - Otherwise → grid-snapped free placement on the floor, manual
|
|
30
29
|
* rotation only.
|
|
31
30
|
*/
|
|
32
|
-
function resolvePlacement(raw, previewNode, gridStep, manualQuat) {
|
|
33
|
-
const
|
|
31
|
+
export function resolvePlacement(raw, previewNode, gridStep, manualQuat, surfaceHit, surfaceNormal, support = createFittingSurfaceSupport(), context = { levelId: null, nodes: {} }) {
|
|
32
|
+
const { levelId, nodes } = context;
|
|
33
|
+
const port = levelId
|
|
34
|
+
? findAccessoryPort(raw, collectScenePorts({ systems: DWV_PORT_SYSTEMS, levelId }, nodes), isGridSnapActive() || isMagneticSnapActive(), surfaceHit)
|
|
35
|
+
: null;
|
|
34
36
|
if (port) {
|
|
37
|
+
clearDrawAlignment();
|
|
38
|
+
const fittedNode = inheritFittingProfile(previewNode, port, nodes);
|
|
35
39
|
const direction = new Vector3(...port.direction).normalize();
|
|
36
40
|
// Local +X must map onto the port's outward direction so the inlet
|
|
37
41
|
// (local -X) faces back into the run it's joining. Manual rotation
|
|
38
42
|
// composes in the world frame on top of the mate orientation.
|
|
39
43
|
const mate = new Quaternion().setFromUnitVectors(new Vector3(1, 0, 0), direction);
|
|
40
44
|
const final = manualQuat.clone().multiply(mate);
|
|
41
|
-
const inlet = localPipeFittingPorts(
|
|
45
|
+
const inlet = localPipeFittingPorts(fittedNode)[0];
|
|
42
46
|
const inletWorldOffset = inlet.position.clone().applyQuaternion(final);
|
|
43
47
|
const position = new Vector3(...port.position).sub(inletWorldOffset);
|
|
44
48
|
const euler = new Euler().setFromQuaternion(final);
|
|
@@ -46,13 +50,74 @@ function resolvePlacement(raw, previewNode, gridStep, manualQuat) {
|
|
|
46
50
|
position: [position.x, position.y, position.z],
|
|
47
51
|
rotation: [euler.x, euler.y, euler.z],
|
|
48
52
|
snapPort: port,
|
|
53
|
+
insertion: null,
|
|
54
|
+
node: fittedNode,
|
|
55
|
+
valid: true,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
const snappingEnabled = isGridSnapActive() || isMagneticSnapActive();
|
|
59
|
+
if (levelId && snappingEnabled && isInlinePipeFitting(previewNode)) {
|
|
60
|
+
const filter = {
|
|
61
|
+
kinds: ['pipe-segment'],
|
|
62
|
+
levelId,
|
|
49
63
|
};
|
|
64
|
+
const hit = surfaceHit
|
|
65
|
+
? findNearestRunBody3D(raw, 0.5, filter, undefined, nodes)
|
|
66
|
+
: findNearestRunBodyXZ(raw, 0.5, filter, nodes);
|
|
67
|
+
const run = hit ? nodes[hit.nodeId] : null;
|
|
68
|
+
if (hit && run?.type === 'pipe-segment') {
|
|
69
|
+
const insertion = planPipeInlineInsertion(run, hit, previewNode);
|
|
70
|
+
const axis = new Vector3(...run.path[hit.segmentIndex + 1])
|
|
71
|
+
.sub(new Vector3(...run.path[hit.segmentIndex]))
|
|
72
|
+
.normalize();
|
|
73
|
+
const target = {
|
|
74
|
+
id: 'body',
|
|
75
|
+
nodeId: run.id,
|
|
76
|
+
position: hit.point,
|
|
77
|
+
direction: [axis.x, axis.y, axis.z],
|
|
78
|
+
diameter: run.diameter,
|
|
79
|
+
system: run.system,
|
|
80
|
+
};
|
|
81
|
+
if (insertion) {
|
|
82
|
+
clearDrawAlignment();
|
|
83
|
+
return {
|
|
84
|
+
position: insertion.fitting.position,
|
|
85
|
+
rotation: insertion.fitting.rotation,
|
|
86
|
+
snapPort: target,
|
|
87
|
+
insertion,
|
|
88
|
+
node: insertion.fitting,
|
|
89
|
+
valid: true,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
const orientation = new Euler().setFromQuaternion(new Quaternion().setFromUnitVectors(new Vector3(1, 0, 0), axis));
|
|
93
|
+
return {
|
|
94
|
+
position: hit.point,
|
|
95
|
+
rotation: [orientation.x, orientation.y, orientation.z],
|
|
96
|
+
snapPort: target,
|
|
97
|
+
insertion: null,
|
|
98
|
+
node: PipeFittingNode.parse({
|
|
99
|
+
...previewNode,
|
|
100
|
+
diameter: run.diameter,
|
|
101
|
+
pipeMaterial: run.pipeMaterial,
|
|
102
|
+
system: run.system,
|
|
103
|
+
}),
|
|
104
|
+
valid: false,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
50
107
|
}
|
|
51
108
|
const euler = new Euler().setFromQuaternion(manualQuat);
|
|
109
|
+
const rotation = [euler.x, euler.y, euler.z];
|
|
110
|
+
const snapped = alignDrawPoint(snapAccessoryPoint(raw, gridStep, surfaceNormal), {
|
|
111
|
+
applySnap: !surfaceHit && isMagneticSnapActive(),
|
|
112
|
+
bypass: surfaceHit || !isMagneticSnapActive(),
|
|
113
|
+
});
|
|
52
114
|
return {
|
|
53
|
-
position:
|
|
54
|
-
rotation
|
|
115
|
+
position: support(previewNode, rotation, snapped, raw, surfaceNormal),
|
|
116
|
+
rotation,
|
|
55
117
|
snapPort: null,
|
|
118
|
+
insertion: null,
|
|
119
|
+
node: previewNode,
|
|
120
|
+
valid: true,
|
|
56
121
|
};
|
|
57
122
|
}
|
|
58
123
|
/**
|
|
@@ -72,56 +137,129 @@ function resolvePlacement(raw, previewNode, gridStep, manualQuat) {
|
|
|
72
137
|
* node happens to be selected.
|
|
73
138
|
*/
|
|
74
139
|
const PipeFittingTool = () => {
|
|
75
|
-
const activeLevelId =
|
|
140
|
+
const { activeLevelId, sceneApi, selectNode } = useRegistryToolContext();
|
|
76
141
|
const [placement, setPlacement] = useState(null);
|
|
142
|
+
const toolDefaults = useEditor((s) => s.toolDefaults['pipe-fitting']);
|
|
77
143
|
const axis = useEditor((s) => s.rotationAxis);
|
|
78
144
|
// Accumulated manual rotation from R/T presses. Ref (not state) so the
|
|
79
145
|
// emitter callbacks always read the latest without re-subscribing; a
|
|
80
146
|
// placement recompute is triggered explicitly after each change.
|
|
147
|
+
const support = useMemo(createFittingSurfaceSupport, []);
|
|
81
148
|
const manualQuatRef = useRef(new Quaternion());
|
|
82
149
|
// Last raw cursor position so a key press can recompute the placement
|
|
83
150
|
// without waiting for the next mouse move.
|
|
151
|
+
const surfaceNormalRef = useRef(undefined);
|
|
152
|
+
const surfaceHitRef = useRef(false);
|
|
84
153
|
const lastRawRef = useRef(null);
|
|
85
154
|
// Ghost matches exactly what a click creates (the kind's defaults).
|
|
86
|
-
const previewNode = useMemo(() => PipeFittingNode.parse({ ...pipeFittingDefinition.defaults(),
|
|
155
|
+
const previewNode = useMemo(() => PipeFittingNode.parse({ ...pipeFittingDefinition.defaults(), ...toolDefaults }), [toolDefaults]);
|
|
156
|
+
const displayNode = placement?.node ?? previewNode;
|
|
87
157
|
const ghost = useMemo(() => {
|
|
88
|
-
const group = buildPipeFittingGeometry(
|
|
158
|
+
const group = buildPipeFittingGeometry({
|
|
159
|
+
...displayNode,
|
|
160
|
+
rotation: placement?.rotation ?? displayNode.rotation,
|
|
161
|
+
});
|
|
89
162
|
group.traverse((child) => {
|
|
90
163
|
// Overlay layer keeps the placement ghost out of the ink / SSGI
|
|
91
164
|
// buffers and the thumbnail export, like every other tool preview.
|
|
92
165
|
child.layers.set(EDITOR_LAYER);
|
|
93
|
-
|
|
94
|
-
if (
|
|
95
|
-
|
|
96
|
-
|
|
166
|
+
child.raycast = () => { };
|
|
167
|
+
if (child instanceof Mesh) {
|
|
168
|
+
const clone = (material) => {
|
|
169
|
+
const copy = material.clone();
|
|
170
|
+
if (placement?.valid === false && copy instanceof MeshStandardMaterial) {
|
|
171
|
+
copy.color.set('#dc2626');
|
|
172
|
+
}
|
|
173
|
+
copy.transparent = true;
|
|
174
|
+
copy.opacity = PREVIEW_OPACITY;
|
|
175
|
+
return copy;
|
|
176
|
+
};
|
|
177
|
+
child.material = Array.isArray(child.material)
|
|
178
|
+
? child.material.map(clone)
|
|
179
|
+
: clone(child.material);
|
|
97
180
|
}
|
|
98
181
|
});
|
|
99
182
|
return group;
|
|
100
|
-
}, [
|
|
183
|
+
}, [displayNode, placement?.rotation, placement?.valid]);
|
|
184
|
+
useEffect(() => () => {
|
|
185
|
+
ghost.traverse((object) => {
|
|
186
|
+
if (!(object instanceof Mesh))
|
|
187
|
+
return;
|
|
188
|
+
object.geometry.dispose();
|
|
189
|
+
for (const material of Array.isArray(object.material) ? object.material : [object.material])
|
|
190
|
+
material.dispose();
|
|
191
|
+
});
|
|
192
|
+
}, [ghost]);
|
|
101
193
|
useEffect(() => {
|
|
102
194
|
if (!activeLevelId)
|
|
103
195
|
return;
|
|
196
|
+
const draft = PipeFittingNode.parse({ ...previewNode, parentId: activeLevelId });
|
|
197
|
+
useInteractionScope.getState().begin({
|
|
198
|
+
kind: 'placing',
|
|
199
|
+
node: draft,
|
|
200
|
+
nodeId: draft.id,
|
|
201
|
+
nodeType: draft.type,
|
|
202
|
+
view: '3d',
|
|
203
|
+
pressDrag: false,
|
|
204
|
+
driver: 'registry-tool',
|
|
205
|
+
});
|
|
104
206
|
const recompute = () => {
|
|
105
207
|
const raw = lastRawRef.current;
|
|
106
208
|
if (!raw)
|
|
107
209
|
return;
|
|
108
|
-
|
|
210
|
+
const next = resolvePlacement(raw, previewNode, isGridSnapActive() ? useEditor.getState().gridSnapStep : 0, manualQuatRef.current, surfaceHitRef.current, surfaceNormalRef.current, support, { levelId: activeLevelId, nodes: sceneApi.nodes() });
|
|
211
|
+
setPlacement((previous) => ({
|
|
212
|
+
...next,
|
|
213
|
+
node: previous && JSON.stringify(previous.node) === JSON.stringify(next.node)
|
|
214
|
+
? previous.node
|
|
215
|
+
: next.node,
|
|
216
|
+
rotation: previous?.rotation.every((v, i) => v === next.rotation[i])
|
|
217
|
+
? previous.rotation
|
|
218
|
+
: next.rotation,
|
|
219
|
+
}));
|
|
109
220
|
};
|
|
110
221
|
const onMove = (event) => {
|
|
111
|
-
|
|
222
|
+
const cursor = accessoryCursor(event, activeLevelId);
|
|
223
|
+
surfaceNormalRef.current = cursor.normal;
|
|
224
|
+
surfaceHitRef.current = cursor.surface;
|
|
225
|
+
lastRawRef.current = cursor.point;
|
|
112
226
|
recompute();
|
|
113
227
|
};
|
|
114
228
|
const onClick = (event) => {
|
|
115
|
-
|
|
116
|
-
|
|
229
|
+
const cursor = accessoryCursor(event, activeLevelId);
|
|
230
|
+
surfaceNormalRef.current = cursor.normal;
|
|
231
|
+
surfaceHitRef.current = cursor.surface;
|
|
232
|
+
lastRawRef.current = cursor.point;
|
|
233
|
+
const resolved = resolvePlacement(lastRawRef.current, previewNode, isGridSnapActive() ? useEditor.getState().gridSnapStep : 0, manualQuatRef.current, surfaceHitRef.current, surfaceNormalRef.current, support, { levelId: activeLevelId, nodes: sceneApi.nodes() });
|
|
234
|
+
if (!resolved.valid)
|
|
235
|
+
return;
|
|
117
236
|
const fitting = PipeFittingNode.parse({
|
|
118
|
-
...
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
237
|
+
...resolved.node,
|
|
238
|
+
id: undefined,
|
|
239
|
+
name: resolved.node.fittingType.replaceAll('-', ' ').replace(/^./, (c) => c.toUpperCase()),
|
|
240
|
+
position: resolved.position,
|
|
241
|
+
rotation: resolved.rotation,
|
|
122
242
|
});
|
|
123
|
-
|
|
124
|
-
|
|
243
|
+
if (resolved.insertion) {
|
|
244
|
+
const parentId = resolved.insertion.runTail.parentId ?? activeLevelId;
|
|
245
|
+
const runTail = PipeSegmentNode.parse({
|
|
246
|
+
...resolved.insertion.runTail,
|
|
247
|
+
id: undefined,
|
|
248
|
+
});
|
|
249
|
+
if (!sceneApi.applyChanges)
|
|
250
|
+
throw new Error('Registry SceneApi must support atomic changes');
|
|
251
|
+
sceneApi.applyChanges({
|
|
252
|
+
update: [resolved.insertion.runUpdate],
|
|
253
|
+
create: [
|
|
254
|
+
{ node: fitting, parentId },
|
|
255
|
+
{ node: runTail, parentId },
|
|
256
|
+
],
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
sceneApi.upsert(fitting, activeLevelId);
|
|
261
|
+
}
|
|
262
|
+
selectNode(fitting.id);
|
|
125
263
|
triggerSFX('sfx:item-place');
|
|
126
264
|
};
|
|
127
265
|
const onKeyDown = (e) => {
|
|
@@ -146,17 +284,24 @@ const PipeFittingTool = () => {
|
|
|
146
284
|
cycleRotationAxis();
|
|
147
285
|
}
|
|
148
286
|
};
|
|
287
|
+
recompute();
|
|
288
|
+
const unsubscribeSnapping = subscribeAccessorySnapping(recompute);
|
|
149
289
|
emitter.on('grid:move', onMove);
|
|
150
290
|
emitter.on('grid:click', onClick);
|
|
151
291
|
window.addEventListener('keydown', onKeyDown, true);
|
|
152
292
|
return () => {
|
|
293
|
+
useInteractionScope
|
|
294
|
+
.getState()
|
|
295
|
+
.endIf((scope) => scope.kind === 'placing' && scope.nodeId === draft.id);
|
|
296
|
+
unsubscribeSnapping();
|
|
297
|
+
clearDrawAlignment();
|
|
153
298
|
emitter.off('grid:move', onMove);
|
|
154
299
|
emitter.off('grid:click', onClick);
|
|
155
300
|
window.removeEventListener('keydown', onKeyDown, true);
|
|
156
301
|
};
|
|
157
|
-
}, [activeLevelId, previewNode]);
|
|
302
|
+
}, [activeLevelId, previewNode, sceneApi, selectNode, support]);
|
|
158
303
|
if (!activeLevelId || !placement)
|
|
159
304
|
return null;
|
|
160
|
-
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 })] }))] }));
|
|
305
|
+
return (_jsxs(LevelOffsetGroup, { children: [_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: [_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 })] }))] }));
|
|
161
306
|
};
|
|
162
307
|
export default PipeFittingTool;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type AnyNode, type AnyNodeId, type FloorplanAffordance } from '@pascal-app/core';
|
|
2
|
+
import type { PipeFittingNode } from '../pipe-fitting/schema';
|
|
3
|
+
import { type RunContinuationHandlePlan } from '../shared/elbow-branch-continuation';
|
|
4
|
+
import type { RunBodyHit, ScenePort } from '../shared/ports';
|
|
5
|
+
import type { PipeSegmentNode } from './schema';
|
|
6
|
+
export type PipeEndpoint = 'start' | 'end';
|
|
7
|
+
export type PipeContinuationSeed = {
|
|
8
|
+
pipe: PipeSegmentNode;
|
|
9
|
+
port: ScenePort | null;
|
|
10
|
+
body: RunBodyHit | null;
|
|
11
|
+
promotedFitting?: PipeFittingNode;
|
|
12
|
+
};
|
|
13
|
+
export declare function pipeEndpointPort(pipe: PipeSegmentNode, endpoint: PipeEndpoint): ScenePort | null;
|
|
14
|
+
export declare function pipeContinuationHandlePoint(pipe: PipeSegmentNode, endpoint: PipeEndpoint, gap?: number): [number, number, number] | null;
|
|
15
|
+
export declare function pipeContinuationHandlePlan(pipe: PipeSegmentNode, endpoint: PipeEndpoint, nodes: Readonly<Record<string, AnyNode>>, gap?: number): RunContinuationHandlePlan | null;
|
|
16
|
+
export declare function resolvePipeContinuationSeed(defaults: unknown, nodes: Record<string, AnyNode>): PipeContinuationSeed | null;
|
|
17
|
+
export declare function activatePipeBranch(pipe: PipeSegmentNode, segmentIndex: number, point: [number, number, number]): void;
|
|
18
|
+
export declare function activatePipeContinuation(pipe: PipeSegmentNode, endpoint: PipeEndpoint, fittingId?: AnyNodeId): void;
|
|
19
|
+
export declare const pipeContinuationAffordance: FloorplanAffordance<PipeSegmentNode>;
|
|
20
|
+
export declare const pipeBranchAffordance: FloorplanAffordance<PipeSegmentNode>;
|
|
21
|
+
export declare function currentPipeContinuationSeed(): PipeContinuationSeed | null;
|
|
22
|
+
//# sourceMappingURL=continuation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continuation.d.ts","sourceRoot":"","sources":["../../src/pipe-segment/continuation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,mBAAmB,EAAY,MAAM,kBAAkB,CAAA;AAGnG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAIL,KAAK,yBAAyB,EAE/B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC5D,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,CAQN;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,eAAe,EACrB,QAAQ,EAAE,YAAY,EACtB,SAAS,CAAC,EAAE,SAAS,GACpB,IAAI,CAQN;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"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { useScene } from '@pascal-app/core';
|
|
2
|
+
import { useEditor } from '@pascal-app/editor';
|
|
3
|
+
import { useViewer } from '@pascal-app/viewer';
|
|
4
|
+
import { findMatedScenePorts, planPipeElbowBranchPromotion, planPipeTeeCrossPromotion, resolvePipeContinuationHandle, } from '../shared/elbow-branch-continuation';
|
|
5
|
+
export function pipeEndpointPort(pipe, endpoint) {
|
|
6
|
+
if (pipe.path.length < 2)
|
|
7
|
+
return null;
|
|
8
|
+
const index = endpoint === 'start' ? 0 : pipe.path.length - 1;
|
|
9
|
+
const neighborIndex = endpoint === 'start' ? 1 : pipe.path.length - 2;
|
|
10
|
+
const position = pipe.path[index];
|
|
11
|
+
const neighbor = pipe.path[neighborIndex];
|
|
12
|
+
const dx = position[0] - neighbor[0];
|
|
13
|
+
const dy = position[1] - neighbor[1];
|
|
14
|
+
const dz = position[2] - neighbor[2];
|
|
15
|
+
const length = Math.hypot(dx, dy, dz);
|
|
16
|
+
return {
|
|
17
|
+
id: endpoint,
|
|
18
|
+
nodeId: pipe.id,
|
|
19
|
+
position,
|
|
20
|
+
direction: length < 1e-9 ? [1, 0, 0] : [dx / length, dy / length, dz / length],
|
|
21
|
+
diameter: pipe.diameter,
|
|
22
|
+
system: pipe.system,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export function pipeContinuationHandlePoint(pipe, endpoint, gap = 0.28) {
|
|
26
|
+
const port = pipeEndpointPort(pipe, endpoint);
|
|
27
|
+
if (!port)
|
|
28
|
+
return null;
|
|
29
|
+
return [
|
|
30
|
+
port.position[0] + port.direction[0] * gap,
|
|
31
|
+
port.position[1] + port.direction[1] * gap,
|
|
32
|
+
port.position[2] + port.direction[2] * gap,
|
|
33
|
+
];
|
|
34
|
+
}
|
|
35
|
+
export function pipeContinuationHandlePlan(pipe, endpoint, nodes, gap = 0.28) {
|
|
36
|
+
const port = pipeEndpointPort(pipe, endpoint);
|
|
37
|
+
return port ? resolvePipeContinuationHandle(port, nodes, gap) : null;
|
|
38
|
+
}
|
|
39
|
+
export function resolvePipeContinuationSeed(defaults, nodes) {
|
|
40
|
+
const continuation = defaults?.continuation;
|
|
41
|
+
const endpoint = continuation?.endpoint;
|
|
42
|
+
const nodeId = continuation?.nodeId;
|
|
43
|
+
if (endpoint === 'branch' && typeof nodeId === 'string') {
|
|
44
|
+
const node = nodes[nodeId];
|
|
45
|
+
const segmentIndex = continuation?.segmentIndex;
|
|
46
|
+
const point = continuation?.point;
|
|
47
|
+
if (node?.type === 'pipe-segment' &&
|
|
48
|
+
typeof segmentIndex === 'number' &&
|
|
49
|
+
Array.isArray(point) &&
|
|
50
|
+
point.length === 3) {
|
|
51
|
+
return {
|
|
52
|
+
pipe: node,
|
|
53
|
+
port: null,
|
|
54
|
+
body: { nodeId: node.id, segmentIndex, point: point },
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if ((endpoint !== 'start' && endpoint !== 'end') ||
|
|
59
|
+
typeof nodeId !== 'string' ||
|
|
60
|
+
nodeId.length === 0)
|
|
61
|
+
return null;
|
|
62
|
+
const node = nodes[nodeId];
|
|
63
|
+
if (node?.type !== 'pipe-segment')
|
|
64
|
+
return null;
|
|
65
|
+
const port = pipeEndpointPort(node, endpoint);
|
|
66
|
+
if (!port)
|
|
67
|
+
return null;
|
|
68
|
+
if (typeof continuation?.fittingId !== 'string')
|
|
69
|
+
return { pipe: node, port, body: null };
|
|
70
|
+
const fitting = nodes[continuation.fittingId];
|
|
71
|
+
if (fitting?.type !== 'pipe-fitting')
|
|
72
|
+
return null;
|
|
73
|
+
const fittingPort = findMatedScenePorts(port, nodes).find((mate) => mate.nodeId === fitting.id);
|
|
74
|
+
if (!fittingPort)
|
|
75
|
+
return null;
|
|
76
|
+
if (fitting.fittingType === 'end-cap')
|
|
77
|
+
return { pipe: node, port, body: null };
|
|
78
|
+
const promotion = fitting.fittingType === 'elbow'
|
|
79
|
+
? planPipeElbowBranchPromotion(fitting, fittingPort.id)
|
|
80
|
+
: planPipeTeeCrossPromotion(fitting);
|
|
81
|
+
return promotion
|
|
82
|
+
? {
|
|
83
|
+
pipe: node,
|
|
84
|
+
port: promotion.continuationPort,
|
|
85
|
+
body: null,
|
|
86
|
+
promotedFitting: promotion.fitting,
|
|
87
|
+
}
|
|
88
|
+
: null;
|
|
89
|
+
}
|
|
90
|
+
export function activatePipeBranch(pipe, segmentIndex, point) {
|
|
91
|
+
if (!pipe.path[segmentIndex] || !pipe.path[segmentIndex + 1])
|
|
92
|
+
return;
|
|
93
|
+
const editor = useEditor.getState();
|
|
94
|
+
editor.setToolDefaults('pipe-segment', {
|
|
95
|
+
continuation: { nodeId: pipe.id, endpoint: 'branch', segmentIndex, point },
|
|
96
|
+
});
|
|
97
|
+
useViewer.getState().setSelection({ selectedIds: [] });
|
|
98
|
+
editor.setTool('pipe-segment');
|
|
99
|
+
}
|
|
100
|
+
export function activatePipeContinuation(pipe, endpoint, fittingId) {
|
|
101
|
+
if (!pipeEndpointPort(pipe, endpoint))
|
|
102
|
+
return;
|
|
103
|
+
const editor = useEditor.getState();
|
|
104
|
+
editor.setToolDefaults('pipe-segment', {
|
|
105
|
+
continuation: { nodeId: pipe.id, endpoint, ...(fittingId ? { fittingId } : {}) },
|
|
106
|
+
});
|
|
107
|
+
useViewer.getState().setSelection({ selectedIds: [] });
|
|
108
|
+
editor.setTool('pipe-segment');
|
|
109
|
+
}
|
|
110
|
+
export const pipeContinuationAffordance = {
|
|
111
|
+
start({ node, payload }) {
|
|
112
|
+
const data = payload;
|
|
113
|
+
const endpoint = data?.endpoint;
|
|
114
|
+
const fittingId = typeof data?.fittingId === 'string' ? data.fittingId : undefined;
|
|
115
|
+
return {
|
|
116
|
+
affectedIds: [],
|
|
117
|
+
apply() { },
|
|
118
|
+
canCommit: () => endpoint === 'start' || endpoint === 'end',
|
|
119
|
+
commit() {
|
|
120
|
+
if (endpoint === 'start' || endpoint === 'end') {
|
|
121
|
+
activatePipeContinuation(node, endpoint, fittingId);
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
export const pipeBranchAffordance = {
|
|
128
|
+
start({ node, payload }) {
|
|
129
|
+
const data = payload;
|
|
130
|
+
const segmentIndex = data?.segmentIndex;
|
|
131
|
+
const point = data?.point;
|
|
132
|
+
return {
|
|
133
|
+
affectedIds: [],
|
|
134
|
+
apply() { },
|
|
135
|
+
canCommit: () => typeof segmentIndex === 'number' && Array.isArray(point) && point.length === 3,
|
|
136
|
+
commit() {
|
|
137
|
+
if (typeof segmentIndex === 'number' && Array.isArray(point) && point.length === 3) {
|
|
138
|
+
activatePipeBranch(node, segmentIndex, point);
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
export function currentPipeContinuationSeed() {
|
|
145
|
+
return resolvePipeContinuationSeed(useEditor.getState().toolDefaults['pipe-segment'], useScene.getState().nodes);
|
|
146
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/pipe-segment/definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/pipe-segment/definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAOtD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,OAAO,eAAe,CAgIxE,CAAA"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { createPathPointMoveAffordance } from '../shared/path-point-affordance';
|
|
2
|
+
import { createRunHangerToolHint } from '../shared/run-hanger-mode';
|
|
3
|
+
import { pipeBranchAffordance, pipeContinuationAffordance } from './continuation';
|
|
2
4
|
import { buildPipeSegmentFloorplan } from './floorplan';
|
|
3
5
|
import { buildPipeSegmentGeometry } from './geometry';
|
|
4
6
|
import { pipeSegmentParametrics } from './parametrics';
|
|
@@ -15,10 +17,11 @@ import { PipeSegmentNode } from './schema';
|
|
|
15
17
|
*/
|
|
16
18
|
export const pipeSegmentDefinition = {
|
|
17
19
|
kind: 'pipe-segment',
|
|
18
|
-
schemaVersion:
|
|
20
|
+
schemaVersion: 2,
|
|
19
21
|
schema: PipeSegmentNode,
|
|
20
22
|
category: 'utility',
|
|
21
23
|
distributionRole: 'run',
|
|
24
|
+
drafting: { surfaceQuery: true, cancelOnHistoryJump: true },
|
|
22
25
|
// Directional run: like a wall, drafting sets a direction, so it takes the
|
|
23
26
|
// structural snapping context (grid / lines / angles / off) with a 45° angle
|
|
24
27
|
// lock available as a cyclable mode.
|
|
@@ -28,9 +31,13 @@ export const pipeSegmentDefinition = {
|
|
|
28
31
|
parentId: null,
|
|
29
32
|
visible: true,
|
|
30
33
|
metadata: {},
|
|
34
|
+
autoHangers: false,
|
|
35
|
+
hangerStyle: 'single',
|
|
36
|
+
hangerSpacing: 1.5,
|
|
37
|
+
hangerMaxReach: 2,
|
|
31
38
|
path: [
|
|
32
|
-
[0, 0, 0],
|
|
33
|
-
[3,
|
|
39
|
+
[0, 0.0254, 0],
|
|
40
|
+
[3, 0.0254, 0],
|
|
34
41
|
],
|
|
35
42
|
diameter: 2,
|
|
36
43
|
pipeMaterial: 'pvc',
|
|
@@ -42,8 +49,13 @@ export const pipeSegmentDefinition = {
|
|
|
42
49
|
deletable: true,
|
|
43
50
|
},
|
|
44
51
|
parametrics: pipeSegmentParametrics,
|
|
52
|
+
system: {
|
|
53
|
+
module: async () => ({
|
|
54
|
+
default: (await import('../shared/run-hanger-system')).PipeHangerSystem,
|
|
55
|
+
}),
|
|
56
|
+
},
|
|
57
|
+
floorplanDependsOnSiblings: true,
|
|
45
58
|
geometry: buildPipeSegmentGeometry,
|
|
46
|
-
geometryKey: (n) => JSON.stringify([n.path, n.diameter, n.pipeMaterial, n.system]),
|
|
47
59
|
// Open run ends as typed ports — system 'waste'/'vent' keeps the DWV
|
|
48
60
|
// network invisible to duct / refrigerant tools and vice versa.
|
|
49
61
|
ports: (n) => {
|
|
@@ -81,6 +93,8 @@ export const pipeSegmentDefinition = {
|
|
|
81
93
|
// `endpoint-handle` per path vertex; this drags the matching point.
|
|
82
94
|
floorplanAffordances: {
|
|
83
95
|
'move-path-point': createPathPointMoveAffordance('pipe-segment'),
|
|
96
|
+
'continue-run': pipeContinuationAffordance,
|
|
97
|
+
'branch-run': pipeBranchAffordance,
|
|
84
98
|
},
|
|
85
99
|
// Selection-time path-point handles (drag to edit a committed run).
|
|
86
100
|
// Editor-only UI (reads gridSnapStep, renders DimensionPill), so it
|
|
@@ -97,15 +111,17 @@ export const pipeSegmentDefinition = {
|
|
|
97
111
|
tool: () => import('./tool'),
|
|
98
112
|
toolHints: [
|
|
99
113
|
{ key: 'Click', label: 'Start run' },
|
|
100
|
-
{ key: 'Click again', label: 'Place
|
|
114
|
+
{ key: 'Click again', label: 'Place and continue' },
|
|
101
115
|
{ key: 'Q', label: 'Waste / vent' },
|
|
116
|
+
{ key: 'S', label: 'Slope / level' },
|
|
117
|
+
createRunHangerToolHint('pipe-segment'),
|
|
102
118
|
{ key: '[ / ]', label: 'Pipe size down / up' },
|
|
103
119
|
{ key: 'Alt + drag', label: 'Vertical stack ↕, click to place' },
|
|
104
|
-
{ key: 'Esc', label: '
|
|
120
|
+
{ key: 'Esc', label: 'Exit drawing' },
|
|
105
121
|
],
|
|
106
122
|
presentation: {
|
|
107
123
|
label: 'DWV Pipe',
|
|
108
|
-
description: 'Drain / waste / vent pipe run —
|
|
124
|
+
description: 'Drain / waste / vent pipe run — draw level or toggle a ¼″ per foot fall with S.',
|
|
109
125
|
icon: { kind: 'url', src: '/icons/dwv-pipes.webp' },
|
|
110
126
|
paletteSection: 'structure',
|
|
111
127
|
paletteOrder: 95,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floorplan.d.ts","sourceRoot":"","sources":["../../src/pipe-segment/floorplan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAkB,eAAe,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"floorplan.d.ts","sourceRoot":"","sources":["../../src/pipe-segment/floorplan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAkB,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAI1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAK/C;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,eAAe,EACrB,GAAG,EAAE,eAAe,GACnB,iBAAiB,GAAG,IAAI,CA6H1B"}
|