@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
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { Euler, Matrix4, Quaternion, Vector3 } from 'three';
|
|
2
|
+
import { getDuctFittingPorts } from '../duct-fitting/ports';
|
|
3
|
+
import { getPipeFittingPorts } from '../pipe-fitting/ports';
|
|
4
|
+
const MATE_TOLERANCE_SQ = 0.05 ** 2;
|
|
5
|
+
const DIRECTION_TOLERANCE = 1e-4;
|
|
6
|
+
function distanceSquared(a, b) {
|
|
7
|
+
const dx = a[0] - b[0];
|
|
8
|
+
const dy = a[1] - b[1];
|
|
9
|
+
const dz = a[2] - b[2];
|
|
10
|
+
return dx * dx + dy * dy + dz * dz;
|
|
11
|
+
}
|
|
12
|
+
function fittingPorts(fitting) {
|
|
13
|
+
return fitting.type === 'duct-fitting'
|
|
14
|
+
? getDuctFittingPorts(fitting)
|
|
15
|
+
: getPipeFittingPorts(fitting);
|
|
16
|
+
}
|
|
17
|
+
function fittingConnections(fitting, nodes) {
|
|
18
|
+
const runType = fitting.type === 'duct-fitting' ? 'duct-segment' : 'pipe-segment';
|
|
19
|
+
const connections = [];
|
|
20
|
+
for (const port of fittingPorts(fitting)) {
|
|
21
|
+
let match;
|
|
22
|
+
for (const node of Object.values(nodes)) {
|
|
23
|
+
if (node.type !== runType || node.system !== fitting.system)
|
|
24
|
+
continue;
|
|
25
|
+
const run = node;
|
|
26
|
+
const endIndices = [0, run.path.length - 1];
|
|
27
|
+
for (const endIndex of endIndices) {
|
|
28
|
+
const endpoint = run.path[endIndex];
|
|
29
|
+
if (endpoint && distanceSquared(endpoint, port.position) <= MATE_TOLERANCE_SQ) {
|
|
30
|
+
match = { portId: port.id, port, run, endIndex };
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
if (match)
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
if (match)
|
|
38
|
+
connections.push(match);
|
|
39
|
+
}
|
|
40
|
+
return connections;
|
|
41
|
+
}
|
|
42
|
+
function frame(primary, reference) {
|
|
43
|
+
const x = primary.clone().normalize();
|
|
44
|
+
const z = new Vector3().crossVectors(x, reference);
|
|
45
|
+
if (z.lengthSq() < 1e-10)
|
|
46
|
+
return null;
|
|
47
|
+
z.normalize();
|
|
48
|
+
const y = new Vector3().crossVectors(z, x);
|
|
49
|
+
return new Matrix4().makeBasis(x, y, z);
|
|
50
|
+
}
|
|
51
|
+
function rotationMapping(localPrimary, localReference, worldPrimary, worldReference) {
|
|
52
|
+
const localFrame = frame(localPrimary, localReference);
|
|
53
|
+
const worldFrame = frame(worldPrimary, worldReference);
|
|
54
|
+
if (!localFrame || !worldFrame)
|
|
55
|
+
return null;
|
|
56
|
+
const rotation = new Quaternion().setFromRotationMatrix(worldFrame.multiply(localFrame.transpose()));
|
|
57
|
+
const euler = new Euler().setFromQuaternion(rotation);
|
|
58
|
+
return [euler.x, euler.y, euler.z];
|
|
59
|
+
}
|
|
60
|
+
function direction(connection) {
|
|
61
|
+
return new Vector3(...connection.port.direction).normalize();
|
|
62
|
+
}
|
|
63
|
+
function ductProfile(fitting, portId) {
|
|
64
|
+
const secondary = portId === 'branch' || portId === 'branch2';
|
|
65
|
+
return secondary
|
|
66
|
+
? {
|
|
67
|
+
shape: fitting.shape2,
|
|
68
|
+
width: fitting.width2,
|
|
69
|
+
height: fitting.height2,
|
|
70
|
+
diameter: fitting.diameter2,
|
|
71
|
+
}
|
|
72
|
+
: {
|
|
73
|
+
shape: fitting.shape,
|
|
74
|
+
width: fitting.width,
|
|
75
|
+
height: fitting.height,
|
|
76
|
+
diameter: fitting.diameter,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function fittingPatchForTee(fitting, runConnection, branchConnection, rotation) {
|
|
80
|
+
if (fitting.type === 'duct-fitting') {
|
|
81
|
+
const run = ductProfile(fitting, runConnection.portId);
|
|
82
|
+
const branch = ductProfile(fitting, branchConnection.portId);
|
|
83
|
+
return {
|
|
84
|
+
name: 'Tee',
|
|
85
|
+
fittingType: 'tee',
|
|
86
|
+
rotation,
|
|
87
|
+
branchAngle: 90,
|
|
88
|
+
shape: run.shape,
|
|
89
|
+
width: run.width,
|
|
90
|
+
height: run.height,
|
|
91
|
+
diameter: run.diameter,
|
|
92
|
+
shape2: branch.shape,
|
|
93
|
+
width2: branch.width,
|
|
94
|
+
height2: branch.height,
|
|
95
|
+
diameter2: branch.diameter,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
const runDiameter = runConnection.portId === 'branch' || runConnection.portId === 'branch2'
|
|
99
|
+
? fitting.diameter2
|
|
100
|
+
: fitting.diameter;
|
|
101
|
+
const branchDiameter = branchConnection.portId === 'branch' || branchConnection.portId === 'branch2'
|
|
102
|
+
? fitting.diameter2
|
|
103
|
+
: fitting.diameter;
|
|
104
|
+
return {
|
|
105
|
+
name: 'Sanitary tee',
|
|
106
|
+
fittingType: 'sanitary-tee',
|
|
107
|
+
rotation,
|
|
108
|
+
diameter: runDiameter,
|
|
109
|
+
diameter2: branchDiameter,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function fittingPatchForElbow(fitting, connection, angle, rotation) {
|
|
113
|
+
if (fitting.type === 'duct-fitting') {
|
|
114
|
+
const profile = ductProfile(fitting, connection.portId);
|
|
115
|
+
return {
|
|
116
|
+
name: 'Elbow',
|
|
117
|
+
fittingType: 'elbow',
|
|
118
|
+
rotation,
|
|
119
|
+
angle,
|
|
120
|
+
shape: profile.shape,
|
|
121
|
+
width: profile.width,
|
|
122
|
+
height: profile.height,
|
|
123
|
+
diameter: profile.diameter,
|
|
124
|
+
diameter2: profile.diameter,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
const diameter = connection.portId === 'branch' || connection.portId === 'branch2'
|
|
128
|
+
? fitting.diameter2
|
|
129
|
+
: fitting.diameter;
|
|
130
|
+
return {
|
|
131
|
+
name: 'Elbow',
|
|
132
|
+
fittingType: 'elbow',
|
|
133
|
+
rotation,
|
|
134
|
+
angle,
|
|
135
|
+
diameter,
|
|
136
|
+
diameter2: diameter,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
function endpointUpdates(connections, targets) {
|
|
140
|
+
return connections.flatMap((connection) => {
|
|
141
|
+
const target = targets.get(connection);
|
|
142
|
+
if (!target)
|
|
143
|
+
return [];
|
|
144
|
+
const path = connection.run.path.map((point) => [...point]);
|
|
145
|
+
path[connection.endIndex] = [...target];
|
|
146
|
+
return [{ id: connection.run.id, data: { path } }];
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function removalPlan(fitting, remaining) {
|
|
150
|
+
const target = fitting.position;
|
|
151
|
+
const targets = new Map(remaining.map((connection) => [connection, target]));
|
|
152
|
+
return {
|
|
153
|
+
fittingId: fitting.id,
|
|
154
|
+
deleteFitting: true,
|
|
155
|
+
cascadeDeleteIds: [],
|
|
156
|
+
updates: endpointUpdates(remaining, targets),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function pathFromOuterEnd(connection) {
|
|
160
|
+
const path = connection.run.path.map((point) => [...point]);
|
|
161
|
+
return connection.endIndex === 0 ? path.reverse() : path;
|
|
162
|
+
}
|
|
163
|
+
function pathTowardOuterEnd(connection) {
|
|
164
|
+
const path = connection.run.path.map((point) => [...point]);
|
|
165
|
+
return connection.endIndex === 0 ? path : path.reverse();
|
|
166
|
+
}
|
|
167
|
+
function straightMergePlan(fitting, remaining) {
|
|
168
|
+
const [primary, secondary] = remaining;
|
|
169
|
+
const primarySide = pathFromOuterEnd(primary);
|
|
170
|
+
const secondarySide = pathTowardOuterEnd(secondary);
|
|
171
|
+
const path = [...primarySide.slice(0, -1), ...secondarySide.slice(1)];
|
|
172
|
+
return {
|
|
173
|
+
fittingId: fitting.id,
|
|
174
|
+
deleteFitting: true,
|
|
175
|
+
cascadeDeleteIds: [secondary.run.id],
|
|
176
|
+
updates: [{ id: primary.run.id, data: { path } }],
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
function teePlan(fitting, remaining) {
|
|
180
|
+
let pair = null;
|
|
181
|
+
for (let i = 0; i < remaining.length; i += 1) {
|
|
182
|
+
for (let j = i + 1; j < remaining.length; j += 1) {
|
|
183
|
+
if (direction(remaining[i]).dot(direction(remaining[j])) < -1 + DIRECTION_TOLERANCE) {
|
|
184
|
+
pair = [remaining[i], remaining[j]];
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (pair)
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
if (!pair)
|
|
192
|
+
return null;
|
|
193
|
+
const branch = remaining.find((connection) => !pair?.includes(connection));
|
|
194
|
+
if (!branch)
|
|
195
|
+
return null;
|
|
196
|
+
const rotation = rotationMapping(new Vector3(1, 0, 0), new Vector3(0, 0, 1), direction(pair[1]), direction(branch));
|
|
197
|
+
if (!rotation)
|
|
198
|
+
return null;
|
|
199
|
+
const patch = fittingPatchForTee(fitting, pair[0], branch, rotation);
|
|
200
|
+
const nextFitting = { ...fitting, ...patch };
|
|
201
|
+
const nextPorts = new Map(fittingPorts(nextFitting).map((port) => [port.id, port]));
|
|
202
|
+
const portAssignments = new Map([
|
|
203
|
+
[pair[0], 'inlet'],
|
|
204
|
+
[pair[1], 'outlet'],
|
|
205
|
+
[branch, 'branch'],
|
|
206
|
+
]);
|
|
207
|
+
const targets = new Map();
|
|
208
|
+
for (const connection of remaining) {
|
|
209
|
+
const port = nextPorts.get(portAssignments.get(connection) ?? '');
|
|
210
|
+
if (port)
|
|
211
|
+
targets.set(connection, port.position);
|
|
212
|
+
}
|
|
213
|
+
return {
|
|
214
|
+
fittingId: fitting.id,
|
|
215
|
+
deleteFitting: false,
|
|
216
|
+
cascadeDeleteIds: [],
|
|
217
|
+
updates: [
|
|
218
|
+
{ id: fitting.id, data: patch },
|
|
219
|
+
...endpointUpdates(remaining, targets),
|
|
220
|
+
],
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
function elbowPlan(fitting, remaining) {
|
|
224
|
+
const first = remaining[0];
|
|
225
|
+
const second = remaining[1];
|
|
226
|
+
if (!first || !second)
|
|
227
|
+
return null;
|
|
228
|
+
const separation = direction(first).angleTo(direction(second));
|
|
229
|
+
const angle = 180 - (separation * 180) / Math.PI;
|
|
230
|
+
if (angle < -DIRECTION_TOLERANCE || angle > 90 + DIRECTION_TOLERANCE)
|
|
231
|
+
return null;
|
|
232
|
+
if (angle <= DIRECTION_TOLERANCE)
|
|
233
|
+
return null;
|
|
234
|
+
const localOutlet = new Vector3(Math.cos((angle * Math.PI) / 180), 0, Math.sin((angle * Math.PI) / 180));
|
|
235
|
+
const rotation = rotationMapping(new Vector3(-1, 0, 0), localOutlet, direction(first), direction(second));
|
|
236
|
+
if (!rotation)
|
|
237
|
+
return null;
|
|
238
|
+
const patch = fittingPatchForElbow(fitting, first, Math.min(90, Math.max(0, angle)), rotation);
|
|
239
|
+
const nextFitting = { ...fitting, ...patch };
|
|
240
|
+
const nextPorts = new Map(fittingPorts(nextFitting).map((port) => [port.id, port]));
|
|
241
|
+
const inlet = nextPorts.get('inlet');
|
|
242
|
+
const outlet = nextPorts.get('outlet');
|
|
243
|
+
if (!inlet || !outlet)
|
|
244
|
+
return null;
|
|
245
|
+
const targets = new Map([
|
|
246
|
+
[first, inlet.position],
|
|
247
|
+
[second, outlet.position],
|
|
248
|
+
]);
|
|
249
|
+
return {
|
|
250
|
+
fittingId: fitting.id,
|
|
251
|
+
deleteFitting: false,
|
|
252
|
+
cascadeDeleteIds: [],
|
|
253
|
+
updates: [
|
|
254
|
+
{ id: fitting.id, data: patch },
|
|
255
|
+
...endpointUpdates(remaining, targets),
|
|
256
|
+
],
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
function planFittingAfterDeletion(fitting, nodes, topologyDeleteIds) {
|
|
260
|
+
const remaining = fittingConnections(fitting, nodes).filter((connection) => !topologyDeleteIds.has(connection.run.id));
|
|
261
|
+
if (remaining.length === 3)
|
|
262
|
+
return teePlan(fitting, remaining) ?? removalPlan(fitting, remaining);
|
|
263
|
+
if (remaining.length === 2) {
|
|
264
|
+
const dot = direction(remaining[0]).dot(direction(remaining[1]));
|
|
265
|
+
if (dot < -1 + DIRECTION_TOLERANCE) {
|
|
266
|
+
return straightMergePlan(fitting, [remaining[0], remaining[1]]);
|
|
267
|
+
}
|
|
268
|
+
return elbowPlan(fitting, remaining) ?? removalPlan(fitting, remaining);
|
|
269
|
+
}
|
|
270
|
+
return removalPlan(fitting, remaining);
|
|
271
|
+
}
|
|
272
|
+
export function fittingDeletionPlansForRun(run, nodes, topologyDeleteIds, ownerOnly) {
|
|
273
|
+
const fittingType = run.type === 'duct-segment' ? 'duct-fitting' : 'pipe-fitting';
|
|
274
|
+
const plans = [];
|
|
275
|
+
for (const node of Object.values(nodes)) {
|
|
276
|
+
if (node.type !== fittingType)
|
|
277
|
+
continue;
|
|
278
|
+
const fitting = node;
|
|
279
|
+
if (['end-cap', 'damper', 'access-panel', 'cleanout', 'coupling'].includes(fitting.fittingType))
|
|
280
|
+
continue;
|
|
281
|
+
const connections = fittingConnections(fitting, nodes);
|
|
282
|
+
if (!connections.some((connection) => connection.run.id === run.id))
|
|
283
|
+
continue;
|
|
284
|
+
if (ownerOnly) {
|
|
285
|
+
const deletedRunIds = connections
|
|
286
|
+
.map((connection) => connection.run.id)
|
|
287
|
+
.filter((id) => topologyDeleteIds.has(id))
|
|
288
|
+
.sort();
|
|
289
|
+
if (deletedRunIds[0] !== run.id)
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
const plan = planFittingAfterDeletion(fitting, nodes, topologyDeleteIds);
|
|
293
|
+
if (plan)
|
|
294
|
+
plans.push(plan);
|
|
295
|
+
}
|
|
296
|
+
return plans;
|
|
297
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DuctFittingNode, PipeFittingNode } from '@pascal-app/core';
|
|
2
|
+
type Point = [number, number, number];
|
|
3
|
+
export declare function createFittingSurfaceSupport(): (node: DuctFittingNode | PipeFittingNode, rotation: Point, position: Point, surfacePoint: Point, surfaceNormal?: Point) => Point;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=fitting-surface-support.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fitting-surface-support.d.ts","sourceRoot":"","sources":["../../src/shared/fitting-surface-support.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAKxE,KAAK,KAAK,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;AAErC,wBAAgB,2BAA2B,KAIvC,MAAM,eAAe,GAAG,eAAe,EACvC,UAAU,KAAK,EACf,UAAU,KAAK,EACf,cAAc,KAAK,EACnB,gBAAe,KAAiB,KAC/B,KAAK,CAkCT"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Mesh, Vector3 } from 'three';
|
|
2
|
+
import { buildDuctFittingGeometry } from '../duct-fitting/geometry';
|
|
3
|
+
import { buildPipeFittingGeometry } from '../pipe-fitting/geometry';
|
|
4
|
+
export function createFittingSurfaceSupport() {
|
|
5
|
+
let key = '';
|
|
6
|
+
let vertices = [];
|
|
7
|
+
return (node, rotation, position, surfacePoint, surfaceNormal = [0, 1, 0]) => {
|
|
8
|
+
const nextKey = JSON.stringify([node, rotation]);
|
|
9
|
+
if (key !== nextKey) {
|
|
10
|
+
const group = node.type === 'duct-fitting'
|
|
11
|
+
? buildDuctFittingGeometry({ ...node, rotation })
|
|
12
|
+
: buildPipeFittingGeometry({ ...node, rotation });
|
|
13
|
+
group.rotation.set(...rotation);
|
|
14
|
+
group.updateMatrixWorld(true);
|
|
15
|
+
vertices = [];
|
|
16
|
+
group.traverse((object) => {
|
|
17
|
+
if (!(object instanceof Mesh))
|
|
18
|
+
return;
|
|
19
|
+
const points = object.geometry.getAttribute('position');
|
|
20
|
+
for (let i = 0; i < points.count; i++) {
|
|
21
|
+
vertices.push(new Vector3().fromBufferAttribute(points, i).applyMatrix4(object.matrixWorld));
|
|
22
|
+
}
|
|
23
|
+
object.geometry.dispose();
|
|
24
|
+
});
|
|
25
|
+
key = nextKey;
|
|
26
|
+
}
|
|
27
|
+
const normal = new Vector3(...surfaceNormal).normalize();
|
|
28
|
+
if (normal.lengthSq() === 0)
|
|
29
|
+
normal.set(0, 1, 0);
|
|
30
|
+
let minimum = Infinity;
|
|
31
|
+
for (const vertex of vertices)
|
|
32
|
+
minimum = Math.min(minimum, vertex.dot(normal));
|
|
33
|
+
if (!Number.isFinite(minimum))
|
|
34
|
+
return position;
|
|
35
|
+
const result = new Vector3(...position);
|
|
36
|
+
const distance = result
|
|
37
|
+
.clone()
|
|
38
|
+
.sub(new Vector3(...surfacePoint))
|
|
39
|
+
.dot(normal);
|
|
40
|
+
return result.addScaledVector(normal, -distance - minimum + 0.001).toArray();
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fitting-tool-options.d.ts","sourceRoot":"","sources":["../../src/shared/fitting-tool-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAmFlD,eAAO,MAAM,sBAAsB,EAAE,UAAU,EA6G9C,CAAA;AACD,eAAO,MAAM,sBAAsB,EAAE,UAAU,EAyC9C,CAAA"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { useEditor } from '@pascal-app/editor';
|
|
2
|
+
import { reducerOutletDiameter } from './reducer-size';
|
|
3
|
+
const label = (value) => ({
|
|
4
|
+
rect: 'Rectangular',
|
|
5
|
+
pvc: 'PVC',
|
|
6
|
+
abs: 'ABS',
|
|
7
|
+
'access-panel': 'Access panel',
|
|
8
|
+
damper: 'Balancing damper',
|
|
9
|
+
})[value] ?? value.replaceAll('-', ' ').replace(/^./, (c) => c.toUpperCase());
|
|
10
|
+
function option(kind, key, title, choices, fallback, numeric = false, types) {
|
|
11
|
+
return {
|
|
12
|
+
id: key,
|
|
13
|
+
label: title,
|
|
14
|
+
choices: choices.map((value) => ({
|
|
15
|
+
value,
|
|
16
|
+
label: label(value),
|
|
17
|
+
...(key === 'fittingType' && value === 'reducer'
|
|
18
|
+
? { description: 'Connects matching profiles with different sizes.' }
|
|
19
|
+
: key === 'fittingType' && value === 'transition'
|
|
20
|
+
? {
|
|
21
|
+
description: 'Connects round, rectangular, or oval profiles. Choose the shape and size of each end.',
|
|
22
|
+
}
|
|
23
|
+
: {}),
|
|
24
|
+
})),
|
|
25
|
+
value: () => String(useEditor.getState().toolDefaults[kind]?.[key] ?? fallback),
|
|
26
|
+
subscribe: (callback) => useEditor.subscribe(callback),
|
|
27
|
+
set: (value) => {
|
|
28
|
+
const defaults = {
|
|
29
|
+
...useEditor.getState().toolDefaults[kind],
|
|
30
|
+
[key]: numeric ? Number(value) : value,
|
|
31
|
+
};
|
|
32
|
+
if (kind === 'duct-fitting' &&
|
|
33
|
+
key === 'fittingType' &&
|
|
34
|
+
['reducer', 'transition'].includes(value)) {
|
|
35
|
+
defaults.inletShape = value === 'reducer' ? 'round' : 'rect';
|
|
36
|
+
defaults.outletShape = 'round';
|
|
37
|
+
}
|
|
38
|
+
if (kind === 'duct-fitting' && defaults.fittingType === 'transition') {
|
|
39
|
+
const inlet = defaults.inletShape ?? 'rect';
|
|
40
|
+
const outlet = defaults.outletShape ?? 'round';
|
|
41
|
+
if (inlet === outlet) {
|
|
42
|
+
if (key === 'outletShape')
|
|
43
|
+
defaults.inletShape = outlet === 'round' ? 'rect' : 'round';
|
|
44
|
+
else
|
|
45
|
+
defaults.outletShape = inlet === 'round' ? 'rect' : 'round';
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (defaults.fittingType === 'reducer') {
|
|
49
|
+
const inlet = Number(defaults.diameter ?? (kind === 'duct-fitting' ? 12 : 2));
|
|
50
|
+
const outlet = Number(defaults.diameter2 ?? inlet);
|
|
51
|
+
defaults.diameter2 = reducerOutletDiameter(kind, inlet, outlet);
|
|
52
|
+
}
|
|
53
|
+
if (kind === 'duct-fitting' && key === 'shape')
|
|
54
|
+
defaults.shape2 = value;
|
|
55
|
+
useEditor.getState().setToolDefaults(kind, defaults);
|
|
56
|
+
},
|
|
57
|
+
...(types
|
|
58
|
+
? {
|
|
59
|
+
visible: {
|
|
60
|
+
subscribe: (callback) => useEditor.subscribe(callback),
|
|
61
|
+
value: () => types.includes(String(useEditor.getState().toolDefaults[kind]?.fittingType ?? 'elbow')),
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
: {}),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export const ductFittingToolOptions = [
|
|
68
|
+
option('duct-fitting', 'fittingType', 'Duct fittings & accessories', ['elbow', 'tee', 'cross', 'reducer', 'transition', 'end-cap', 'damper', 'access-panel'], 'elbow'),
|
|
69
|
+
option('duct-fitting', 'shape', 'Profile', ['round', 'rect', 'oval'], 'rect', false, [
|
|
70
|
+
'elbow',
|
|
71
|
+
'tee',
|
|
72
|
+
'cross',
|
|
73
|
+
'end-cap',
|
|
74
|
+
'damper',
|
|
75
|
+
]),
|
|
76
|
+
option('duct-fitting', 'inletShape', 'Inlet profile', ['round', 'rect', 'oval'], 'rect', false, [
|
|
77
|
+
'transition',
|
|
78
|
+
'reducer',
|
|
79
|
+
]),
|
|
80
|
+
option('duct-fitting', 'outletShape', 'Outlet profile', ['round', 'rect', 'oval'], 'round', false, ['transition', 'reducer']),
|
|
81
|
+
{
|
|
82
|
+
...option('duct-fitting', 'width2', 'Outlet width (in)', ['8', '10', '14', '20', '24'], '14', true, ['transition', 'reducer']),
|
|
83
|
+
id: 'outletWidth',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
...option('duct-fitting', 'height2', 'Outlet height (in)', ['4', '6', '8', '12', '16'], '8', true, ['transition', 'reducer']),
|
|
87
|
+
id: 'outletHeight',
|
|
88
|
+
},
|
|
89
|
+
option('duct-fitting', 'diameter', 'Diameter (in)', ['4', '6', '8', '10', '12'], '12', true),
|
|
90
|
+
option('duct-fitting', 'width', 'Width (in)', ['8', '10', '14', '20', '24'], '14', true),
|
|
91
|
+
option('duct-fitting', 'height', 'Height (in)', ['4', '6', '8', '12', '16'], '8', true),
|
|
92
|
+
option('duct-fitting', 'diameter2', 'Outlet diameter (in)', ['2', '4', '6', '8', '10', '12'], '12', true, ['reducer', 'transition']),
|
|
93
|
+
{
|
|
94
|
+
...option('duct-fitting', 'diameter2', 'Branch diameter (in)', ['2', '4', '6', '8', '10', '12'], '12', true, ['tee', 'cross']),
|
|
95
|
+
id: 'branchDiameter',
|
|
96
|
+
},
|
|
97
|
+
option('duct-fitting', 'shape2', 'Branch profile', ['round', 'rect', 'oval'], 'rect', false, [
|
|
98
|
+
'tee',
|
|
99
|
+
'cross',
|
|
100
|
+
]),
|
|
101
|
+
option('duct-fitting', 'width2', 'Branch width (in)', ['8', '10', '14', '20', '24'], '14', true, [
|
|
102
|
+
'tee',
|
|
103
|
+
'cross',
|
|
104
|
+
]),
|
|
105
|
+
option('duct-fitting', 'height2', 'Branch height (in)', ['4', '6', '8', '12', '16'], '8', true, [
|
|
106
|
+
'tee',
|
|
107
|
+
'cross',
|
|
108
|
+
]),
|
|
109
|
+
option('duct-fitting', 'damperAngle', 'Blade opening (°)', ['0', '45', '90'], '0', true, [
|
|
110
|
+
'damper',
|
|
111
|
+
]),
|
|
112
|
+
option('duct-fitting', 'panelWidth', 'Access door width (m)', ['0.15', '0.25', '0.4'], '0.25', true, ['access-panel']),
|
|
113
|
+
option('duct-fitting', 'panelHeight', 'Access door height (m)', ['0.1', '0.15', '0.25'], '0.15', true, ['access-panel']),
|
|
114
|
+
];
|
|
115
|
+
export const pipeFittingToolOptions = [
|
|
116
|
+
option('pipe-fitting', 'fittingType', 'Pipe fittings & accessories', ['elbow', 'wye', 'sanitary-tee', 'cross', 'end-cap', 'cleanout', 'reducer', 'coupling'], 'elbow'),
|
|
117
|
+
option('pipe-fitting', 'diameter', 'Diameter (in)', ['1.25', '1.5', '2', '3', '4', '6', '8'], '2', true),
|
|
118
|
+
option('pipe-fitting', 'diameter2', 'Outlet diameter (in)', ['1.25', '1.5', '2', '3', '4', '6', '8'], '2', true, ['reducer']),
|
|
119
|
+
{
|
|
120
|
+
...option('pipe-fitting', 'diameter2', 'Branch diameter (in)', ['1.25', '1.5', '2', '3', '4', '6', '8'], '2', true, ['wye', 'sanitary-tee', 'cross']),
|
|
121
|
+
id: 'branchDiameter',
|
|
122
|
+
},
|
|
123
|
+
option('pipe-fitting', 'cleanoutStyle', 'Cleanout style', ['end', 'inline'], 'end', false, [
|
|
124
|
+
'cleanout',
|
|
125
|
+
]),
|
|
126
|
+
option('pipe-fitting', 'pipeMaterial', 'Material', ['pvc', 'abs', 'cast-iron'], 'pvc'),
|
|
127
|
+
];
|
|
128
|
+
for (const entry of ductFittingToolOptions) {
|
|
129
|
+
if (!['diameter', 'width', 'height'].includes(entry.id))
|
|
130
|
+
continue;
|
|
131
|
+
entry.visible = {
|
|
132
|
+
subscribe: (callback) => useEditor.subscribe(callback),
|
|
133
|
+
value: () => {
|
|
134
|
+
const defaults = useEditor.getState().toolDefaults['duct-fitting'];
|
|
135
|
+
const type = defaults?.fittingType ?? 'elbow';
|
|
136
|
+
if (type === 'access-panel')
|
|
137
|
+
return false;
|
|
138
|
+
const round = ['reducer', 'transition'].includes(String(type))
|
|
139
|
+
? (defaults?.inletShape ?? (type === 'reducer' ? 'round' : 'rect')) === 'round'
|
|
140
|
+
: defaults?.shape === 'round';
|
|
141
|
+
return entry.id === 'diameter' ? round : !round;
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
for (const entry of ductFittingToolOptions) {
|
|
146
|
+
if (!['branchDiameter', 'shape2', 'width2', 'height2'].includes(entry.id))
|
|
147
|
+
continue;
|
|
148
|
+
entry.visible = {
|
|
149
|
+
subscribe: (callback) => useEditor.subscribe(callback),
|
|
150
|
+
value: () => {
|
|
151
|
+
const defaults = useEditor.getState().toolDefaults['duct-fitting'];
|
|
152
|
+
if (!['tee', 'cross'].includes(String(defaults?.fittingType)))
|
|
153
|
+
return false;
|
|
154
|
+
const roundRun = defaults?.shape === 'round';
|
|
155
|
+
const roundBranch = roundRun || defaults?.shape2 === 'round';
|
|
156
|
+
if (entry.id === 'shape2')
|
|
157
|
+
return !roundRun;
|
|
158
|
+
return entry.id === 'branchDiameter' ? roundBranch : !roundBranch;
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
for (const entry of ductFittingToolOptions) {
|
|
163
|
+
if (!['diameter2', 'outletWidth', 'outletHeight'].includes(entry.id))
|
|
164
|
+
continue;
|
|
165
|
+
entry.visible = {
|
|
166
|
+
subscribe: (callback) => useEditor.subscribe(callback),
|
|
167
|
+
value: () => {
|
|
168
|
+
const defaults = useEditor.getState().toolDefaults['duct-fitting'];
|
|
169
|
+
if (!['reducer', 'transition'].includes(String(defaults?.fittingType)))
|
|
170
|
+
return false;
|
|
171
|
+
const round = (defaults?.outletShape ?? 'round') === 'round';
|
|
172
|
+
return entry.id === 'diameter2' ? round : !round;
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type AnyNode, type GridEvent, type NodeEvent, resolveAlignment } from '@pascal-app/core';
|
|
2
2
|
export declare const FLOOR_PLACEMENT_ALIGNMENT_THRESHOLD_M = 0.08;
|
|
3
|
-
export declare const FLOOR_PLACEMENT_CLICK_TRIGGER_KINDS: readonly ["shelf", "item", "slab", "ceiling", "wall", "fence", "column", "roof", "roof-segment", "stair", "stair-segment"];
|
|
4
3
|
export type FloorPlacementClickTriggerEvent = GridEvent | NodeEvent<AnyNode>;
|
|
4
|
+
export declare function isForcePlacementEvent(event: FloorPlacementClickTriggerEvent): boolean;
|
|
5
5
|
type FloorPlacementAlignmentArgs = {
|
|
6
6
|
node: AnyNode;
|
|
7
7
|
rawX: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floor-placement.d.ts","sourceRoot":"","sources":["../../src/shared/floor-placement.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"floor-placement.d.ts","sourceRoot":"","sources":["../../src/shared/floor-placement.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EAEZ,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,gBAAgB,EAGjB,MAAM,kBAAkB,CAAA;AAGzB,eAAO,MAAM,qCAAqC,OAAO,CAAA;AAEzD,MAAM,MAAM,+BAA+B,GAAG,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,CAAA;AAE5E,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,+BAA+B,GAAG,OAAO,CAErF;AAED,KAAK,2BAA2B,GAAG;IACjC,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;IAChE,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAID,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,+BAA+B,EACtC,QAAQ,EAAE,MAAM,EAChB,UAAU,UAAQ,GACjB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAmB1B;AAED,wBAAgB,4BAA4B,CAAC,EAC3C,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,aAAoB,EACpB,kBAAyB,EACzB,UAAkB,EAClB,SAAa,GACd,EAAE,2BAA2B;cAoBD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;;EAGpD;AAgBD,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,+BAA+B,QAUpF;AAED,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,CAAC,KAAK,EAAE,+BAA+B,KAAK,IAAI,cAS1D;AAED,wBAAgB,mCAAmC,CACjD,aAAa,EAAE,CAAC,KAAK,EAAE,+BAA+B,KAAK,IAAI,cAShE"}
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import { emitter, movingFootprintAnchors, resolveAlignment, sceneRegistry, snapPointToGrid, } from '@pascal-app/core';
|
|
2
2
|
import { Vector3 } from 'three';
|
|
3
3
|
export const FLOOR_PLACEMENT_ALIGNMENT_THRESHOLD_M = 0.08;
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
'slab',
|
|
8
|
-
'ceiling',
|
|
9
|
-
'wall',
|
|
10
|
-
'fence',
|
|
11
|
-
'column',
|
|
12
|
-
'roof',
|
|
13
|
-
'roof-segment',
|
|
14
|
-
'stair',
|
|
15
|
-
'stair-segment',
|
|
16
|
-
];
|
|
4
|
+
export function isForcePlacementEvent(event) {
|
|
5
|
+
return event.nativeEvent?.altKey === true;
|
|
6
|
+
}
|
|
17
7
|
const worldVector = new Vector3();
|
|
18
8
|
export function getLevelLocalSnappedPosition(levelId, event, gridStep, bypassGrid = false) {
|
|
19
9
|
const levelObject = sceneRegistry.nodes.get(levelId);
|
|
@@ -26,11 +16,13 @@ export function getLevelLocalSnappedPosition(levelId, event, gridStep, bypassGri
|
|
|
26
16
|
}
|
|
27
17
|
worldVector.set(event.position[0], event.position[1], event.position[2]);
|
|
28
18
|
levelObject.updateWorldMatrix(true, false);
|
|
19
|
+
if (!bypassGrid) {
|
|
20
|
+
const [sx, sz] = snapPointToGrid([worldVector.x, worldVector.z], gridStep);
|
|
21
|
+
worldVector.x = sx;
|
|
22
|
+
worldVector.z = sz;
|
|
23
|
+
}
|
|
29
24
|
levelObject.worldToLocal(worldVector);
|
|
30
|
-
|
|
31
|
-
? [worldVector.x, worldVector.z]
|
|
32
|
-
: snapPointToGrid([worldVector.x, worldVector.z], gridStep);
|
|
33
|
-
return [sx, 0, sz];
|
|
25
|
+
return [worldVector.x, 0, worldVector.z];
|
|
34
26
|
}
|
|
35
27
|
export function resolveAlignedFloorPlacement({ node, rawX, rawZ, gridStep, candidates, showAlignment = true, applyAlignmentSnap = true, bypassGrid = false, rotationY = 0, }) {
|
|
36
28
|
const [sx, sz] = bypassGrid ? [rawX, rawZ] : snapPointToGrid([rawX, rawZ], gridStep);
|
|
@@ -81,29 +73,17 @@ export function stopPlacementCommitPropagation(event) {
|
|
|
81
73
|
}
|
|
82
74
|
export function subscribeFloorPlacementClicks(onClick) {
|
|
83
75
|
emitter.on('grid:click', onClick);
|
|
84
|
-
|
|
85
|
-
const key = `${kind}:click`;
|
|
86
|
-
emitter.on(key, onClick);
|
|
87
|
-
}
|
|
76
|
+
emitter.on('node:click', onClick);
|
|
88
77
|
return () => {
|
|
89
78
|
emitter.off('grid:click', onClick);
|
|
90
|
-
|
|
91
|
-
const key = `${kind}:click`;
|
|
92
|
-
emitter.off(key, onClick);
|
|
93
|
-
}
|
|
79
|
+
emitter.off('node:click', onClick);
|
|
94
80
|
};
|
|
95
81
|
}
|
|
96
82
|
export function subscribeFloorPlacementDoubleClicks(onDoubleClick) {
|
|
97
83
|
emitter.on('grid:double-click', onDoubleClick);
|
|
98
|
-
|
|
99
|
-
const key = `${kind}:double-click`;
|
|
100
|
-
emitter.on(key, onDoubleClick);
|
|
101
|
-
}
|
|
84
|
+
emitter.on('node:double-click', onDoubleClick);
|
|
102
85
|
return () => {
|
|
103
86
|
emitter.off('grid:double-click', onDoubleClick);
|
|
104
|
-
|
|
105
|
-
const key = `${kind}:double-click`;
|
|
106
|
-
emitter.off(key, onDoubleClick);
|
|
107
|
-
}
|
|
87
|
+
emitter.off('node:double-click', onDoubleClick);
|
|
108
88
|
};
|
|
109
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ghost-materials.d.ts","sourceRoot":"","sources":["../../src/shared/ghost-materials.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ghost-materials.d.ts","sourceRoot":"","sources":["../../src/shared/ghost-materials.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAkB,QAAQ,EAAa,MAAM,OAAO,CAAA;AAEhE,eAAO,MAAM,mBAAmB,WAAa,CAAA;AAC7C,eAAO,MAAM,iBAAiB,UAAa,CAAA;AAO3C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,QAAQ,EACd,IAAI,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GAC5C,MAAM,IAAI,CAuDZ"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import { markPureRaycast } from '@pascal-app/viewer';
|
|
2
3
|
export const INVALID_GHOST_COLOR = 0xef_44_44;
|
|
3
4
|
export const VALID_GHOST_COLOR = 0x22_c5_5e;
|
|
4
|
-
const NO_RAYCAST = (_raycaster, _intersects)
|
|
5
|
+
const NO_RAYCAST = markPureRaycast(function NO_RAYCAST(_raycaster, _intersects) { });
|
|
5
6
|
/**
|
|
6
7
|
* Apply ghost material treatment to a preview mesh tree.
|
|
7
8
|
*
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AnyNode, AnyNodeId, ColumnNode, LeanToExtensionNode } from '@pascal-app/core';
|
|
2
|
+
import type { LeanToPostSide } from '../lean-to-extension/assembly';
|
|
3
|
+
export declare function isLeanToPostOmitted(leanTo: LeanToExtensionNode, side: LeanToPostSide, index: number): boolean;
|
|
4
|
+
export declare function leanToPostOmissionPatchesOnDelete(column: ColumnNode, nodes: Record<AnyNodeId, AnyNode>): Array<{
|
|
5
|
+
id: AnyNodeId;
|
|
6
|
+
data: Partial<AnyNode>;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=lean-to-post-omissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lean-to-post-omissions.d.ts","sourceRoot":"","sources":["../../src/shared/lean-to-post-omissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAgBnE,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,MAAM,GACZ,OAAO,CAYT;AAED,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,GAChC,KAAK,CAAC;IAAE,EAAE,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC,CAmBlD"}
|