@pascal-app/nodes 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -0
- package/dist/agent-operations/index.d.ts +12 -0
- package/dist/agent-operations/index.d.ts.map +1 -0
- package/dist/agent-operations/index.js +6 -0
- package/dist/agent-tools/index.d.ts +50 -0
- package/dist/agent-tools/index.d.ts.map +1 -0
- package/dist/agent-tools/index.js +21 -0
- package/dist/block/commands.d.ts +2 -2
- package/dist/block/contextual-help.js +1 -1
- package/dist/block/definition.d.ts +1 -1
- package/dist/block/definition.d.ts.map +1 -1
- package/dist/block/definition.js +30 -15
- package/dist/block/edit-session.d.ts +2 -2
- package/dist/block/edit-session.d.ts.map +1 -1
- package/dist/block/edit-session.js +1 -1
- package/dist/block/face-host.js +1 -1
- package/dist/block/floorplan.d.ts +11 -1
- package/dist/block/floorplan.d.ts.map +1 -1
- package/dist/block/floorplan.js +81 -13
- package/dist/block/geometry-snap.d.ts +2 -2
- package/dist/block/geometry-snap.js +2 -2
- package/dist/block/geometry.d.ts +2 -2
- package/dist/block/geometry.d.ts.map +1 -1
- package/dist/block/geometry.js +39 -24
- package/dist/block/gesture-wheel.d.ts.map +1 -1
- package/dist/block/hosted-edit.d.ts +1 -1
- package/dist/block/hosted-edit.d.ts.map +1 -1
- package/dist/block/hosted-edit.js +28 -3
- package/dist/block/interaction-sfx.d.ts +1 -1
- package/dist/block/last-operation.d.ts +1 -1
- package/dist/block/last-operation.js +2 -2
- package/dist/block/material-slots.d.ts +1 -3
- package/dist/block/material-slots.d.ts.map +1 -1
- package/dist/block/material-slots.js +1 -11
- package/dist/block/modal-face-operation.d.ts +2 -2
- package/dist/block/modal-face-operation.js +1 -1
- package/dist/block/paint.d.ts.map +1 -1
- package/dist/block/paint.js +5 -11
- package/dist/block/panel.d.ts.map +1 -1
- package/dist/block/panel.js +15 -10
- package/dist/block/parametrics.d.ts +1 -1
- package/dist/block/parametrics.js +1 -1
- package/dist/block/preview.js +1 -1
- package/dist/block/selection-geometry.d.ts +1 -1
- package/dist/block/selection-geometry.js +1 -1
- package/dist/block/selection.d.ts.map +1 -1
- package/dist/block/selection.js +20 -20
- package/dist/block/tool.d.ts.map +1 -1
- package/dist/block/tool.js +3 -3
- package/dist/block/use-block-face-operation.d.ts +4 -4
- package/dist/block/use-block-face-operation.js +6 -6
- package/dist/box-vent/definition.d.ts +1 -1
- package/dist/box-vent/definition.d.ts.map +1 -1
- package/dist/box-vent/definition.js +11 -13
- package/dist/box-vent/geometry.d.ts.map +1 -1
- package/dist/box-vent/geometry.js +2 -2
- package/dist/box-vent/index.d.ts +3 -3
- package/dist/box-vent/index.js +3 -3
- package/dist/box-vent/move-tool.js +4 -4
- package/dist/box-vent/paint.js +2 -2
- package/dist/box-vent/panel.d.ts.map +1 -1
- package/dist/box-vent/panel.js +7 -30
- package/dist/box-vent/parametrics.d.ts +1 -1
- package/dist/box-vent/parametrics.js +1 -1
- package/dist/box-vent/preview.d.ts +1 -1
- package/dist/box-vent/preview.d.ts.map +1 -1
- package/dist/box-vent/preview.js +2 -2
- package/dist/box-vent/renderer.d.ts.map +1 -1
- package/dist/box-vent/renderer.js +3 -3
- package/dist/box-vent/tool.d.ts.map +1 -1
- package/dist/box-vent/tool.js +7 -7
- package/dist/building/definition.d.ts +1 -1
- package/dist/building/definition.d.ts.map +1 -1
- package/dist/building/definition.js +5 -4
- package/dist/building/index.d.ts +1 -1
- package/dist/building/index.js +1 -1
- package/dist/building/move-tool.d.ts.map +1 -1
- package/dist/building/move-tool.js +2 -3
- package/dist/building/renderer.d.ts.map +1 -1
- package/dist/cabinet/__bench__/geometry.d.ts +2 -0
- package/dist/cabinet/__bench__/geometry.d.ts.map +1 -0
- package/dist/cabinet/__bench__/geometry.js +21 -0
- package/dist/cabinet/appliance-layout.d.ts +1 -1
- package/dist/cabinet/appliance-layout.d.ts.map +1 -1
- package/dist/cabinet/compartment-card.d.ts +1 -1
- package/dist/cabinet/compartment-card.js +12 -12
- package/dist/cabinet/continuous-placement.d.ts +1 -1
- package/dist/cabinet/continuous-placement.js +2 -2
- package/dist/cabinet/countertop-layout.d.ts +64 -53
- package/dist/cabinet/countertop-layout.d.ts.map +1 -1
- package/dist/cabinet/countertop-layout.js +3 -3
- package/dist/cabinet/definition.d.ts +1 -1
- package/dist/cabinet/definition.d.ts.map +1 -1
- package/dist/cabinet/definition.js +34 -30
- package/dist/cabinet/essential-controls.d.ts +7 -0
- package/dist/cabinet/essential-controls.d.ts.map +1 -0
- package/dist/cabinet/essential-controls.js +47 -0
- package/dist/cabinet/finish-operation.d.ts +9 -0
- package/dist/cabinet/finish-operation.d.ts.map +1 -0
- package/dist/cabinet/finish-operation.js +86 -0
- package/dist/cabinet/floorplan-move.js +3 -3
- package/dist/cabinet/floorplan.d.ts.map +1 -1
- package/dist/cabinet/floorplan.js +130 -33
- package/dist/cabinet/geometry/cooktop.d.ts +2 -2
- package/dist/cabinet/geometry/cooktop.d.ts.map +1 -1
- package/dist/cabinet/geometry/cooktop.js +55 -18
- package/dist/cabinet/geometry/dishwasher.d.ts +1 -1
- package/dist/cabinet/geometry/dishwasher.d.ts.map +1 -1
- package/dist/cabinet/geometry/dishwasher.js +5 -6
- package/dist/cabinet/geometry/fridge.d.ts +2 -2
- package/dist/cabinet/geometry/fridge.d.ts.map +1 -1
- package/dist/cabinet/geometry/fridge.js +49 -8
- package/dist/cabinet/geometry/fronts.d.ts +1 -1
- package/dist/cabinet/geometry/fronts.d.ts.map +1 -1
- package/dist/cabinet/geometry/fronts.js +22 -8
- package/dist/cabinet/geometry/hood.d.ts +2 -2
- package/dist/cabinet/geometry/hood.d.ts.map +1 -1
- package/dist/cabinet/geometry/hood.js +15 -3
- package/dist/cabinet/geometry/oven-microwave.d.ts +1 -1
- package/dist/cabinet/geometry/oven-microwave.d.ts.map +1 -1
- package/dist/cabinet/geometry/oven-microwave.js +46 -21
- package/dist/cabinet/geometry/pantry.d.ts +2 -2
- package/dist/cabinet/geometry/pantry.d.ts.map +1 -1
- package/dist/cabinet/geometry/pantry.js +11 -9
- package/dist/cabinet/geometry/run.d.ts.map +1 -1
- package/dist/cabinet/geometry/run.js +18 -8
- package/dist/cabinet/geometry/shared.d.ts +5 -4
- package/dist/cabinet/geometry/shared.d.ts.map +1 -1
- package/dist/cabinet/geometry/shared.js +78 -19
- package/dist/cabinet/geometry/sink.d.ts +2 -2
- package/dist/cabinet/geometry/sink.d.ts.map +1 -1
- package/dist/cabinet/geometry/sink.js +30 -12
- package/dist/cabinet/geometry.d.ts +1 -1
- package/dist/cabinet/geometry.d.ts.map +1 -1
- package/dist/cabinet/geometry.js +15 -11
- package/dist/cabinet/hosted-resize.d.ts +2 -2
- package/dist/cabinet/hosted-resize.d.ts.map +1 -1
- package/dist/cabinet/hosted-resize.js +3 -1
- package/dist/cabinet/index.d.ts +9 -5
- package/dist/cabinet/index.d.ts.map +1 -1
- package/dist/cabinet/index.js +9 -5
- package/dist/cabinet/insertion.d.ts.map +1 -1
- package/dist/cabinet/insertion.js +3 -1
- package/dist/cabinet/interaction.js +1 -1
- package/dist/cabinet/kitchen-catalog.d.ts +14 -0
- package/dist/cabinet/kitchen-catalog.d.ts.map +1 -0
- package/dist/cabinet/kitchen-catalog.js +62 -0
- package/dist/cabinet/kitchen-collection.d.ts +11 -0
- package/dist/cabinet/kitchen-collection.d.ts.map +1 -0
- package/dist/cabinet/kitchen-collection.js +19 -0
- package/dist/cabinet/kitchen-module-actions.d.ts +8 -0
- package/dist/cabinet/kitchen-module-actions.d.ts.map +1 -0
- package/dist/cabinet/kitchen-module-actions.js +117 -0
- package/dist/cabinet/kitchen-placement.d.ts +3 -0
- package/dist/cabinet/kitchen-placement.d.ts.map +1 -0
- package/dist/cabinet/kitchen-placement.js +16 -0
- package/dist/cabinet/move-frame.js +4 -4
- package/dist/cabinet/neighbor-placement.d.ts +335 -0
- package/dist/cabinet/neighbor-placement.d.ts.map +1 -0
- package/dist/cabinet/neighbor-placement.js +48 -0
- package/dist/cabinet/opening-clearance.d.ts +22 -0
- package/dist/cabinet/opening-clearance.d.ts.map +1 -0
- package/dist/cabinet/opening-clearance.js +158 -0
- package/dist/cabinet/paint.js +1 -1
- package/dist/cabinet/panel-visibility.js +2 -2
- package/dist/cabinet/panel.d.ts.map +1 -1
- package/dist/cabinet/panel.js +86 -77
- package/dist/cabinet/parametrics.js +3 -3
- package/dist/cabinet/placement-dimensions.js +2 -2
- package/dist/cabinet/placement-notice.d.ts +6 -0
- package/dist/cabinet/placement-notice.d.ts.map +1 -0
- package/dist/cabinet/placement-notice.js +34 -0
- package/dist/cabinet/placement-status.d.ts +2 -0
- package/dist/cabinet/placement-status.d.ts.map +1 -1
- package/dist/cabinet/placement-status.js +3 -1
- package/dist/cabinet/placement-type.d.ts.map +1 -1
- package/dist/cabinet/preset-width-debt.js +2 -2
- package/dist/cabinet/presets.d.ts +3 -1
- package/dist/cabinet/presets.d.ts.map +1 -1
- package/dist/cabinet/presets.js +27 -8
- package/dist/cabinet/quick-action-icons.js +1 -1
- package/dist/cabinet/quick-actions.js +7 -7
- package/dist/cabinet/resize-limits.d.ts.map +1 -1
- package/dist/cabinet/reveals.d.ts +16 -16
- package/dist/cabinet/reveals.d.ts.map +1 -1
- package/dist/cabinet/run-finishing.d.ts +168 -0
- package/dist/cabinet/run-finishing.d.ts.map +1 -0
- package/dist/cabinet/run-finishing.js +100 -0
- package/dist/cabinet/run-layout.d.ts.map +1 -1
- package/dist/cabinet/run-layout.js +28 -8
- package/dist/cabinet/run-ops.d.ts +61 -50
- package/dist/cabinet/run-ops.d.ts.map +1 -1
- package/dist/cabinet/run-ops.js +6 -6
- package/dist/cabinet/run-panel.d.ts +11 -0
- package/dist/cabinet/run-panel.d.ts.map +1 -1
- package/dist/cabinet/run-panel.js +43 -17
- package/dist/cabinet/scene-action.js +1 -1
- package/dist/cabinet/stack-transitions.d.ts +1 -1
- package/dist/cabinet/stack-transitions.js +2 -2
- package/dist/cabinet/stack.d.ts +60 -60
- package/dist/cabinet/stack.d.ts.map +1 -1
- package/dist/cabinet/stack.js +1 -1
- package/dist/cabinet/surfaces.js +3 -3
- package/dist/cabinet/system.d.ts.map +1 -1
- package/dist/cabinet/system.js +4 -4
- package/dist/cabinet/tool.d.ts +1 -2
- package/dist/cabinet/tool.d.ts.map +1 -1
- package/dist/cabinet/tool.js +228 -105
- package/dist/cabinet/validation.js +3 -3
- package/dist/cabinet/wall-snap.d.ts +1 -1
- package/dist/cabinet/wall-snap.d.ts.map +1 -1
- package/dist/cabinet/wall-snap.js +10 -10
- package/dist/ceiling/boundary-editor.d.ts.map +1 -1
- package/dist/ceiling/boundary-editor.js +5 -3
- package/dist/ceiling/definition.d.ts +5 -5
- package/dist/ceiling/definition.d.ts.map +1 -1
- package/dist/ceiling/definition.js +31 -29
- package/dist/ceiling/floorplan-affordances.d.ts +138 -58
- package/dist/ceiling/floorplan-affordances.d.ts.map +1 -1
- package/dist/ceiling/floorplan-affordances.js +1 -2
- package/dist/ceiling/floorplan-move.d.ts.map +1 -1
- package/dist/ceiling/floorplan-move.js +1 -2
- package/dist/ceiling/floorplan.d.ts +1 -1
- package/dist/ceiling/floorplan.d.ts.map +1 -1
- package/dist/ceiling/floorplan.js +2 -1
- package/dist/ceiling/height-bounds.d.ts +19 -0
- package/dist/ceiling/height-bounds.d.ts.map +1 -0
- package/dist/ceiling/height-bounds.js +24 -0
- package/dist/ceiling/hole-editor.d.ts.map +1 -1
- package/dist/ceiling/hole-editor.js +3 -4
- package/dist/ceiling/index.d.ts +2 -2
- package/dist/ceiling/index.js +2 -2
- package/dist/ceiling/materials.d.ts +8 -4
- package/dist/ceiling/materials.d.ts.map +1 -1
- package/dist/ceiling/materials.js +55 -21
- package/dist/ceiling/move-tool.d.ts.map +1 -1
- package/dist/ceiling/paint.d.ts +2 -8
- package/dist/ceiling/paint.d.ts.map +1 -1
- package/dist/ceiling/paint.js +112 -24
- package/dist/ceiling/panel.d.ts.map +1 -1
- package/dist/ceiling/panel.js +42 -25
- package/dist/ceiling/parametrics.d.ts +1 -1
- package/dist/ceiling/parametrics.js +1 -1
- package/dist/ceiling/renderer.d.ts.map +1 -1
- package/dist/ceiling/renderer.js +56 -21
- package/dist/ceiling/system.d.ts.map +1 -1
- package/dist/ceiling/tool.d.ts.map +1 -1
- package/dist/ceiling/tool.js +1 -1
- package/dist/chimney/definition.d.ts +1 -1
- package/dist/chimney/definition.d.ts.map +1 -1
- package/dist/chimney/definition.js +9 -8
- package/dist/chimney/floorplan.js +1 -1
- package/dist/chimney/holes.js +1 -1
- package/dist/chimney/index.d.ts +3 -3
- package/dist/chimney/index.js +3 -3
- package/dist/chimney/move-tool.d.ts.map +1 -1
- package/dist/chimney/move-tool.js +11 -5
- package/dist/chimney/paint.d.ts.map +1 -1
- package/dist/chimney/paint.js +3 -10
- package/dist/chimney/panel.js +4 -4
- package/dist/chimney/parametrics.d.ts +1 -1
- package/dist/chimney/parametrics.js +1 -1
- package/dist/chimney/presets.d.ts +1 -1
- package/dist/chimney/preview.d.ts.map +1 -1
- package/dist/chimney/preview.js +2 -2
- package/dist/chimney/renderer.d.ts.map +1 -1
- package/dist/chimney/renderer.js +4 -4
- package/dist/chimney/roof-trim.js +2 -2
- package/dist/chimney/tool.d.ts.map +1 -1
- package/dist/chimney/tool.js +6 -6
- package/dist/column/definition.d.ts +1 -1
- package/dist/column/definition.d.ts.map +1 -1
- package/dist/column/definition.js +39 -15
- package/dist/column/floorplan-affordances.d.ts.map +1 -1
- package/dist/column/floorplan-affordances.js +7 -2
- package/dist/column/floorplan-move.js +2 -2
- package/dist/column/floorplan.d.ts +1 -1
- package/dist/column/floorplan.d.ts.map +1 -1
- package/dist/column/floorplan.js +48 -3
- package/dist/column/hosted-resize.d.ts +134 -29
- package/dist/column/hosted-resize.d.ts.map +1 -1
- package/dist/column/hosted-resize.js +1 -1
- package/dist/column/index.d.ts +1 -1
- package/dist/column/index.js +1 -1
- package/dist/column/paint.js +1 -1
- package/dist/column/panel.d.ts.map +1 -1
- package/dist/column/panel.js +152 -149
- package/dist/column/parametrics.d.ts +1 -1
- package/dist/column/parametrics.js +2 -2
- package/dist/column/renderer.d.ts.map +1 -1
- package/dist/column/renderer.js +8 -6
- package/dist/column/surface.d.ts.map +1 -1
- package/dist/column/surface.js +8 -1
- package/dist/column/tool.d.ts.map +1 -1
- package/dist/column/tool.js +3 -3
- package/dist/construction-dimension/definition.d.ts +1 -1
- package/dist/construction-dimension/definition.js +6 -6
- package/dist/construction-dimension/floorplan-affordances.js +1 -1
- package/dist/construction-dimension/floorplan-tool.d.ts.map +1 -1
- package/dist/construction-dimension/floorplan-tool.js +1 -1
- package/dist/construction-dimension/floorplan.js +11 -7
- package/dist/construction-dimension/index.d.ts +3 -3
- package/dist/construction-dimension/index.js +3 -3
- package/dist/construction-dimension/panel.js +1 -1
- package/dist/construction-dimension/parametrics.js +1 -1
- package/dist/cupola/definition.d.ts +1 -1
- package/dist/cupola/definition.d.ts.map +1 -1
- package/dist/cupola/definition.js +11 -16
- package/dist/cupola/geometry.d.ts.map +1 -1
- package/dist/cupola/geometry.js +1 -1
- package/dist/cupola/index.d.ts +3 -3
- package/dist/cupola/index.js +3 -3
- package/dist/cupola/move-tool.js +4 -4
- package/dist/cupola/paint.js +2 -2
- package/dist/cupola/panel.d.ts.map +1 -1
- package/dist/cupola/panel.js +6 -24
- package/dist/cupola/parametrics.d.ts +1 -1
- package/dist/cupola/parametrics.js +1 -1
- package/dist/cupola/preview.d.ts +1 -1
- package/dist/cupola/preview.d.ts.map +1 -1
- package/dist/cupola/preview.js +2 -2
- package/dist/cupola/renderer.d.ts.map +1 -1
- package/dist/cupola/renderer.js +3 -3
- package/dist/cupola/tool.d.ts.map +1 -1
- package/dist/cupola/tool.js +7 -7
- package/dist/door/contextual-dimensions.js +1 -1
- package/dist/door/definition.d.ts +1 -1
- package/dist/door/definition.d.ts.map +1 -1
- package/dist/door/definition.js +38 -25
- package/dist/door/door-math.d.ts +6 -11
- package/dist/door/door-math.d.ts.map +1 -1
- package/dist/door/door-math.js +15 -16
- package/dist/door/floorplan-affordances.js +2 -2
- package/dist/door/floorplan-move.d.ts.map +1 -1
- package/dist/door/floorplan-move.js +7 -5
- package/dist/door/floorplan.d.ts.map +1 -1
- package/dist/door/floorplan.js +57 -23
- package/dist/door/index.d.ts +2 -2
- package/dist/door/index.js +2 -2
- package/dist/door/mechanism.d.ts +4 -0
- package/dist/door/mechanism.d.ts.map +1 -0
- package/dist/door/mechanism.js +24 -0
- package/dist/door/move-tool.d.ts.map +1 -1
- package/dist/door/move-tool.js +82 -58
- package/dist/door/paint.d.ts.map +1 -1
- package/dist/door/paint.js +4 -1
- package/dist/door/panel.d.ts.map +1 -1
- package/dist/door/panel.js +43 -268
- package/dist/door/parametrics.d.ts +1 -1
- package/dist/door/parametrics.js +1 -1
- package/dist/door/placement.d.ts +45 -0
- package/dist/door/placement.d.ts.map +1 -0
- package/dist/door/placement.js +51 -0
- package/dist/door/preview.d.ts +1 -1
- package/dist/door/preview.d.ts.map +1 -1
- package/dist/door/preview.js +3 -1
- package/dist/door/renderer.d.ts.map +1 -1
- package/dist/door/renderer.js +4 -3
- package/dist/door/system.d.ts.map +1 -1
- package/dist/door/system.js +1 -1
- package/dist/door/tool.d.ts.map +1 -1
- package/dist/door/tool.js +99 -28
- package/dist/dormer/csg-geometry.d.ts.map +1 -1
- package/dist/dormer/csg-geometry.js +3 -1
- package/dist/dormer/definition.d.ts +1 -1
- package/dist/dormer/definition.d.ts.map +1 -1
- package/dist/dormer/definition.js +10 -9
- package/dist/dormer/index.d.ts +4 -4
- package/dist/dormer/index.js +3 -3
- package/dist/dormer/move-tool.d.ts.map +1 -1
- package/dist/dormer/move-tool.js +3 -3
- package/dist/dormer/paint.d.ts.map +1 -1
- package/dist/dormer/paint.js +2 -5
- package/dist/dormer/panel-actions-section.js +1 -1
- package/dist/dormer/panel-windows-section.js +1 -1
- package/dist/dormer/panel.d.ts.map +1 -1
- package/dist/dormer/panel.js +12 -22
- package/dist/dormer/parametrics.d.ts +1 -1
- package/dist/dormer/parametrics.js +1 -1
- package/dist/dormer/placement-guides.js +3 -3
- package/dist/dormer/preview.d.ts +1 -1
- package/dist/dormer/preview.d.ts.map +1 -1
- package/dist/dormer/preview.js +2 -2
- package/dist/dormer/renderer.d.ts +1 -1
- package/dist/dormer/renderer.d.ts.map +1 -1
- package/dist/dormer/renderer.js +2 -2
- package/dist/dormer/tool.d.ts.map +1 -1
- package/dist/dormer/tool.js +6 -6
- package/dist/dormer/use-dormer-placement.js +3 -3
- package/dist/downspout/definition.d.ts +1 -1
- package/dist/downspout/definition.d.ts.map +1 -1
- package/dist/downspout/definition.js +11 -10
- package/dist/downspout/geometry.d.ts +1 -1
- package/dist/downspout/geometry.js +2 -2
- package/dist/downspout/index.d.ts +3 -3
- package/dist/downspout/index.js +3 -3
- package/dist/downspout/parametrics.d.ts +1 -1
- package/dist/downspout/parametrics.js +1 -1
- package/dist/downspout/preview.d.ts +2 -2
- package/dist/downspout/preview.d.ts.map +1 -1
- package/dist/downspout/preview.js +3 -3
- package/dist/downspout/renderer.d.ts.map +1 -1
- package/dist/downspout/renderer.js +5 -5
- package/dist/downspout/routing.d.ts +2 -2
- package/dist/downspout/routing.d.ts.map +1 -1
- package/dist/downspout/routing.js +5 -4
- package/dist/downspout/system.d.ts.map +1 -1
- package/dist/downspout/tool.d.ts.map +1 -1
- package/dist/downspout/tool.js +7 -7
- package/dist/duct-fitting/accessory-geometry.js +1 -1
- package/dist/duct-fitting/definition.d.ts +1 -1
- package/dist/duct-fitting/definition.d.ts.map +1 -1
- package/dist/duct-fitting/definition.js +12 -11
- package/dist/duct-fitting/floorplan.d.ts +1 -1
- package/dist/duct-fitting/floorplan.js +5 -5
- package/dist/duct-fitting/geometry.d.ts +1 -1
- package/dist/duct-fitting/geometry.d.ts.map +1 -1
- package/dist/duct-fitting/geometry.js +4 -4
- package/dist/duct-fitting/index.d.ts +4 -4
- package/dist/duct-fitting/index.js +4 -4
- package/dist/duct-fitting/inspector-editors.d.ts +1 -1
- package/dist/duct-fitting/move-tool.d.ts.map +1 -1
- package/dist/duct-fitting/move-tool.js +12 -6
- package/dist/duct-fitting/parametrics.d.ts +1 -1
- package/dist/duct-fitting/parametrics.js +3 -3
- package/dist/duct-fitting/ports.d.ts +1 -1
- package/dist/duct-fitting/selection.d.ts.map +1 -1
- package/dist/duct-fitting/selection.js +8 -9
- package/dist/duct-fitting/tool.d.ts +1 -1
- package/dist/duct-fitting/tool.d.ts.map +1 -1
- package/dist/duct-fitting/tool.js +14 -15
- package/dist/duct-segment/continuation.d.ts +3 -3
- package/dist/duct-segment/continuation.d.ts.map +1 -1
- package/dist/duct-segment/continuation.js +2 -2
- package/dist/duct-segment/definition.d.ts +1 -1
- package/dist/duct-segment/definition.d.ts.map +1 -1
- package/dist/duct-segment/definition.js +14 -14
- package/dist/duct-segment/floorplan.d.ts +1 -1
- package/dist/duct-segment/floorplan.js +3 -3
- package/dist/duct-segment/geometry.d.ts +1 -1
- package/dist/duct-segment/geometry.d.ts.map +1 -1
- package/dist/duct-segment/geometry.js +2 -2
- package/dist/duct-segment/index.d.ts +3 -3
- package/dist/duct-segment/index.js +3 -3
- package/dist/duct-segment/move-tool.d.ts.map +1 -1
- package/dist/duct-segment/move-tool.js +16 -9
- package/dist/duct-segment/parametrics.d.ts +1 -1
- package/dist/duct-segment/parametrics.js +5 -5
- package/dist/duct-segment/selection.d.ts.map +1 -1
- package/dist/duct-segment/selection.js +13 -12
- package/dist/duct-segment/tool.d.ts +1 -2
- package/dist/duct-segment/tool.d.ts.map +1 -1
- package/dist/duct-segment/tool.js +22 -18
- package/dist/duct-terminal/definition.d.ts +1 -1
- package/dist/duct-terminal/definition.js +6 -6
- package/dist/duct-terminal/floorplan.d.ts +1 -1
- package/dist/duct-terminal/floorplan.js +1 -1
- package/dist/duct-terminal/geometry.d.ts +1 -1
- package/dist/duct-terminal/geometry.js +2 -2
- package/dist/duct-terminal/index.d.ts +4 -4
- package/dist/duct-terminal/index.js +4 -4
- package/dist/duct-terminal/parametrics.d.ts +1 -1
- package/dist/duct-terminal/ports.d.ts +1 -1
- package/dist/duct-terminal/ports.js +1 -1
- package/dist/duct-terminal/tool.d.ts.map +1 -1
- package/dist/duct-terminal/tool.js +11 -12
- package/dist/elevator/definition.d.ts +1 -1
- package/dist/elevator/definition.d.ts.map +1 -1
- package/dist/elevator/definition.js +8 -9
- package/dist/elevator/floorplan-affordances.js +1 -1
- package/dist/elevator/index.d.ts +1 -1
- package/dist/elevator/index.js +1 -1
- package/dist/elevator/paint.js +1 -1
- package/dist/elevator/panel.d.ts.map +1 -1
- package/dist/elevator/panel.js +14 -36
- package/dist/elevator/parametrics.js +2 -2
- package/dist/elevator/renderer.d.ts.map +1 -1
- package/dist/elevator/renderer.js +4 -5
- package/dist/elevator/system.js +1 -1
- package/dist/eyebrow-vent/definition.d.ts +1 -1
- package/dist/eyebrow-vent/definition.d.ts.map +1 -1
- package/dist/eyebrow-vent/definition.js +11 -13
- package/dist/eyebrow-vent/geometry.d.ts.map +1 -1
- package/dist/eyebrow-vent/geometry.js +1 -1
- package/dist/eyebrow-vent/index.d.ts +3 -3
- package/dist/eyebrow-vent/index.js +3 -3
- package/dist/eyebrow-vent/move-tool.js +4 -4
- package/dist/eyebrow-vent/paint.d.ts.map +1 -1
- package/dist/eyebrow-vent/paint.js +5 -8
- package/dist/eyebrow-vent/panel.d.ts.map +1 -1
- package/dist/eyebrow-vent/panel.js +6 -24
- package/dist/eyebrow-vent/parametrics.d.ts +1 -1
- package/dist/eyebrow-vent/parametrics.js +1 -1
- package/dist/eyebrow-vent/preview.d.ts +1 -1
- package/dist/eyebrow-vent/preview.d.ts.map +1 -1
- package/dist/eyebrow-vent/preview.js +2 -2
- package/dist/eyebrow-vent/renderer.d.ts.map +1 -1
- package/dist/eyebrow-vent/renderer.js +3 -3
- package/dist/eyebrow-vent/tool.d.ts.map +1 -1
- package/dist/eyebrow-vent/tool.js +7 -7
- package/dist/fence/actions/move-endpoint.d.ts +1 -1
- package/dist/fence/actions/move-endpoint.d.ts.map +1 -1
- package/dist/fence/actions/move-endpoint.js +2 -1
- package/dist/fence/curve-tool.d.ts.map +1 -1
- package/dist/fence/definition.d.ts +3 -2
- package/dist/fence/definition.d.ts.map +1 -1
- package/dist/fence/definition.js +113 -43
- package/dist/fence/drafting.d.ts +42 -0
- package/dist/fence/drafting.d.ts.map +1 -0
- package/dist/fence/drafting.js +269 -0
- package/dist/fence/feature-tool.d.ts +4 -0
- package/dist/fence/feature-tool.d.ts.map +1 -0
- package/dist/fence/feature-tool.js +140 -0
- package/dist/fence/features.d.ts +2 -0
- package/dist/fence/features.d.ts.map +1 -0
- package/dist/fence/features.js +12 -0
- package/dist/fence/floorplan-affordances.d.ts.map +1 -1
- package/dist/fence/floorplan-affordances.js +2 -1
- package/dist/fence/floorplan.d.ts +2 -3
- package/dist/fence/floorplan.d.ts.map +1 -1
- package/dist/fence/floorplan.js +131 -71
- package/dist/fence/geometry-parts.d.ts +50 -0
- package/dist/fence/geometry-parts.d.ts.map +1 -0
- package/dist/fence/geometry-parts.js +1144 -0
- package/dist/fence/geometry.d.ts +2 -3
- package/dist/fence/geometry.d.ts.map +1 -1
- package/dist/fence/geometry.js +85 -8
- package/dist/fence/index.d.ts +3 -2
- package/dist/fence/index.d.ts.map +1 -1
- package/dist/fence/index.js +3 -2
- package/dist/fence/inspector-editors.d.ts +15 -0
- package/dist/fence/inspector-editors.d.ts.map +1 -1
- package/dist/fence/inspector-editors.js +128 -3
- package/dist/fence/lift.d.ts +3 -3
- package/dist/fence/lift.d.ts.map +1 -1
- package/dist/fence/lift.js +15 -3
- package/dist/fence/move-control-point-tool.d.ts.map +1 -1
- package/dist/fence/move-endpoint-tool.d.ts.map +1 -1
- package/dist/fence/move-endpoint-tool.js +4 -4
- package/dist/fence/move-tangent-tool.d.ts.map +1 -1
- package/dist/fence/move-tool.d.ts.map +1 -1
- package/dist/fence/move-tool.js +2 -1
- package/dist/fence/paint.js +1 -1
- package/dist/fence/panel-model.d.ts +4 -0
- package/dist/fence/panel-model.d.ts.map +1 -0
- package/dist/fence/panel-model.js +12 -0
- package/dist/fence/parametrics.d.ts +1 -13
- package/dist/fence/parametrics.d.ts.map +1 -1
- package/dist/fence/parametrics.js +185 -18
- package/dist/fence/system.d.ts.map +1 -1
- package/dist/fence/system.js +142 -32
- package/dist/fence/tool.d.ts.map +1 -1
- package/dist/fence/tool.js +339 -56
- package/dist/fence-feature/actions.d.ts +7 -0
- package/dist/fence-feature/actions.d.ts.map +1 -0
- package/dist/fence-feature/actions.js +26 -0
- package/dist/fence-feature/definition.d.ts +4 -0
- package/dist/fence-feature/definition.d.ts.map +1 -0
- package/dist/fence-feature/definition.js +116 -0
- package/dist/fence-feature/floorplan-affordances.d.ts +3 -0
- package/dist/fence-feature/floorplan-affordances.d.ts.map +1 -0
- package/dist/fence-feature/floorplan-affordances.js +37 -0
- package/dist/fence-feature/floorplan.d.ts +4 -0
- package/dist/fence-feature/floorplan.d.ts.map +1 -0
- package/dist/fence-feature/floorplan.js +120 -0
- package/dist/fence-feature/geometry.d.ts +5 -0
- package/dist/fence-feature/geometry.d.ts.map +1 -0
- package/dist/fence-feature/geometry.js +43 -0
- package/dist/fence-feature/handles.d.ts +5 -0
- package/dist/fence-feature/handles.d.ts.map +1 -0
- package/dist/fence-feature/handles.js +84 -0
- package/dist/fence-feature/inspector.d.ts +6 -0
- package/dist/fence-feature/inspector.d.ts.map +1 -0
- package/dist/fence-feature/inspector.js +214 -0
- package/dist/fence-feature/interaction.d.ts +3 -0
- package/dist/fence-feature/interaction.d.ts.map +1 -0
- package/dist/fence-feature/interaction.js +41 -0
- package/dist/fence-feature/move-session.d.ts +9 -0
- package/dist/fence-feature/move-session.d.ts.map +1 -0
- package/dist/fence-feature/move-session.js +48 -0
- package/dist/fence-feature/move-tool.d.ts +5 -0
- package/dist/fence-feature/move-tool.d.ts.map +1 -0
- package/dist/fence-feature/move-tool.js +58 -0
- package/dist/fence-feature/pick-target.d.ts +7 -0
- package/dist/fence-feature/pick-target.d.ts.map +1 -0
- package/dist/fence-feature/pick-target.js +52 -0
- package/dist/floor-opening/definition.d.ts +3 -0
- package/dist/floor-opening/definition.d.ts.map +1 -0
- package/dist/floor-opening/definition.js +41 -0
- package/dist/floor-opening/floorplan.d.ts +156 -0
- package/dist/floor-opening/floorplan.d.ts.map +1 -0
- package/dist/floor-opening/floorplan.js +63 -0
- package/dist/guide/definition.d.ts +1 -1
- package/dist/guide/definition.js +4 -4
- package/dist/guide/index.d.ts +1 -1
- package/dist/guide/index.js +1 -1
- package/dist/guide/renderer.d.ts.map +1 -1
- package/dist/guide/system.d.ts.map +1 -1
- package/dist/gutter/definition.d.ts +1 -1
- package/dist/gutter/definition.d.ts.map +1 -1
- package/dist/gutter/definition.js +12 -11
- package/dist/gutter/downspouts-panel.js +3 -3
- package/dist/gutter/eave-align.js +2 -2
- package/dist/gutter/eave-snap.d.ts.map +1 -1
- package/dist/gutter/eave-snap.js +2 -2
- package/dist/gutter/floorplan.d.ts.map +1 -1
- package/dist/gutter/floorplan.js +5 -4
- package/dist/gutter/geometry.d.ts +1 -1
- package/dist/gutter/geometry.js +3 -3
- package/dist/gutter/index.d.ts +3 -3
- package/dist/gutter/index.js +3 -3
- package/dist/gutter/move-tool.js +4 -4
- package/dist/gutter/outlet-lookup.d.ts +1 -1
- package/dist/gutter/outlet-lookup.js +1 -1
- package/dist/gutter/paint.js +1 -1
- package/dist/gutter/parametrics.d.ts +1 -1
- package/dist/gutter/parametrics.js +1 -1
- package/dist/gutter/preview.d.ts +1 -1
- package/dist/gutter/preview.d.ts.map +1 -1
- package/dist/gutter/preview.js +3 -3
- package/dist/gutter/renderer.d.ts.map +1 -1
- package/dist/gutter/renderer.js +6 -6
- package/dist/gutter/tool.d.ts.map +1 -1
- package/dist/gutter/tool.js +7 -7
- package/dist/hvac-equipment/definition.d.ts +1 -1
- package/dist/hvac-equipment/definition.js +6 -6
- package/dist/hvac-equipment/floorplan.d.ts +1 -1
- package/dist/hvac-equipment/floorplan.js +2 -2
- package/dist/hvac-equipment/geometry.d.ts +1 -1
- package/dist/hvac-equipment/geometry.js +2 -2
- package/dist/hvac-equipment/index.d.ts +4 -4
- package/dist/hvac-equipment/index.js +4 -4
- package/dist/hvac-equipment/parametrics.d.ts +1 -1
- package/dist/hvac-equipment/ports.d.ts +1 -1
- package/dist/hvac-equipment/ports.js +1 -1
- package/dist/hvac-equipment/tool.d.ts.map +1 -1
- package/dist/hvac-equipment/tool.js +7 -8
- package/dist/imported-mesh/definition.d.ts +1 -1
- package/dist/imported-mesh/definition.d.ts.map +1 -1
- package/dist/imported-mesh/definition.js +5 -3
- package/dist/imported-mesh/geometry.d.ts +1 -1
- package/dist/imported-mesh/geometry.d.ts.map +1 -1
- package/dist/imported-mesh/geometry.js +40 -12
- package/dist/imported-mesh/index.d.ts +3 -3
- package/dist/imported-mesh/index.js +3 -3
- package/dist/index.d.ts +65 -50
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +122 -100
- package/dist/item/authored-face-host.d.ts +10 -0
- package/dist/item/authored-face-host.d.ts.map +1 -0
- package/dist/item/authored-face-host.js +87 -0
- package/dist/item/authored-params.d.ts +15 -0
- package/dist/item/authored-params.d.ts.map +1 -0
- package/dist/item/authored-params.js +72 -0
- package/dist/item/definition.d.ts +3 -3
- package/dist/item/definition.d.ts.map +1 -1
- package/dist/item/definition.js +46 -15
- package/dist/item/floorplan-move.js +4 -4
- package/dist/item/floorplan.d.ts +1 -1
- package/dist/item/floorplan.d.ts.map +1 -1
- package/dist/item/floorplan.js +36 -6
- package/dist/item/index.d.ts +3 -2
- package/dist/item/index.d.ts.map +1 -1
- package/dist/item/index.js +3 -2
- package/dist/item/model-loader.d.ts +7 -0
- package/dist/item/model-loader.d.ts.map +1 -1
- package/dist/item/model-loader.js +104 -23
- package/dist/item/move-tool.d.ts.map +1 -1
- package/dist/item/move-tool.js +4 -4
- package/dist/item/paint.d.ts.map +1 -1
- package/dist/item/paint.js +5 -24
- package/dist/item/panel.d.ts +1 -3
- package/dist/item/panel.d.ts.map +1 -1
- package/dist/item/panel.js +23 -27
- package/dist/item/parametrics.d.ts +1 -1
- package/dist/item/parametrics.js +1 -1
- package/dist/item/placement-notice.d.ts +14 -0
- package/dist/item/placement-notice.d.ts.map +1 -0
- package/dist/item/placement-notice.js +38 -0
- package/dist/item/plan-symbols.d.ts +67 -0
- package/dist/item/plan-symbols.d.ts.map +1 -0
- package/dist/item/plan-symbols.js +407 -0
- package/dist/item/renderer.d.ts +10 -0
- package/dist/item/renderer.d.ts.map +1 -1
- package/dist/item/renderer.js +78 -48
- package/dist/item/script-param-defaults.d.ts +12 -0
- package/dist/item/script-param-defaults.d.ts.map +1 -0
- package/dist/item/script-param-defaults.js +34 -0
- package/dist/item/system.d.ts.map +1 -1
- package/dist/item/system.js +7 -2
- package/dist/item/tool.d.ts.map +1 -1
- package/dist/item/tool.js +3 -3
- package/dist/item/wall-object-observations.d.ts +6 -0
- package/dist/item/wall-object-observations.d.ts.map +1 -0
- package/dist/item/wall-object-observations.js +260 -0
- package/dist/lean-to-extension/assembly.d.ts +2 -2
- package/dist/lean-to-extension/assembly.js +8 -8
- package/dist/lean-to-extension/canopy-joint.d.ts +1 -1
- package/dist/lean-to-extension/canopy-joint.js +1 -1
- package/dist/lean-to-extension/corner-joint.js +4 -4
- package/dist/lean-to-extension/definition.d.ts +1 -1
- package/dist/lean-to-extension/definition.d.ts.map +1 -1
- package/dist/lean-to-extension/definition.js +18 -18
- package/dist/lean-to-extension/floorplan-affordances.js +4 -4
- package/dist/lean-to-extension/floorplan-move.js +4 -4
- package/dist/lean-to-extension/floorplan-tool.d.ts.map +1 -1
- package/dist/lean-to-extension/floorplan-tool.js +7 -7
- package/dist/lean-to-extension/floorplan.js +5 -5
- package/dist/lean-to-extension/geometry.d.ts.map +1 -1
- package/dist/lean-to-extension/geometry.js +5 -5
- package/dist/lean-to-extension/index.d.ts +7 -7
- package/dist/lean-to-extension/index.js +7 -7
- package/dist/lean-to-extension/layout.d.ts +1 -1
- package/dist/lean-to-extension/layout.d.ts.map +1 -1
- package/dist/lean-to-extension/layout.js +6 -7
- package/dist/lean-to-extension/managed-preview.js +4 -4
- package/dist/lean-to-extension/move-tool.d.ts.map +1 -1
- package/dist/lean-to-extension/move-tool.js +5 -5
- package/dist/lean-to-extension/paint.js +1 -1
- package/dist/lean-to-extension/parametrics.js +1 -1
- package/dist/lean-to-extension/placement-validation.d.ts.map +1 -1
- package/dist/lean-to-extension/placement-validation.js +9 -9
- package/dist/lean-to-extension/placement.d.ts +1 -1
- package/dist/lean-to-extension/placement.js +6 -6
- package/dist/lean-to-extension/plan-footprint.js +2 -2
- package/dist/lean-to-extension/preview-geometry.js +1 -1
- package/dist/lean-to-extension/preview.d.ts.map +1 -1
- package/dist/lean-to-extension/preview.js +1 -1
- package/dist/lean-to-extension/renderer.d.ts.map +1 -1
- package/dist/lean-to-extension/renderer.js +1 -1
- package/dist/lean-to-extension/roof-attachment.d.ts.map +1 -1
- package/dist/lean-to-extension/roof-attachment.js +4 -4
- package/dist/lean-to-extension/system.d.ts.map +1 -1
- package/dist/lean-to-extension/system.js +10 -10
- package/dist/lean-to-extension/tool.d.ts.map +1 -1
- package/dist/lean-to-extension/tool.js +16 -16
- package/dist/level/definition.d.ts +1 -1
- package/dist/level/definition.d.ts.map +1 -1
- package/dist/level/definition.js +5 -4
- package/dist/level/index.d.ts +1 -1
- package/dist/level/index.js +1 -1
- package/dist/level/renderer.d.ts.map +1 -1
- package/dist/level/system.d.ts.map +1 -1
- package/dist/lineset/definition.d.ts +1 -1
- package/dist/lineset/definition.js +8 -8
- package/dist/lineset/floorplan.d.ts +1 -1
- package/dist/lineset/floorplan.js +1 -1
- package/dist/lineset/geometry.d.ts +1 -1
- package/dist/lineset/geometry.js +1 -1
- package/dist/lineset/index.d.ts +3 -3
- package/dist/lineset/index.js +3 -3
- package/dist/lineset/move-tool.d.ts.map +1 -1
- package/dist/lineset/move-tool.js +10 -4
- package/dist/lineset/parametrics.d.ts +1 -1
- package/dist/lineset/selection.d.ts.map +1 -1
- package/dist/lineset/selection.js +1 -1
- package/dist/lineset/tool.d.ts.map +1 -1
- package/dist/lineset/tool.js +7 -8
- package/dist/liquid-line/definition.d.ts +1 -1
- package/dist/liquid-line/definition.js +8 -8
- package/dist/liquid-line/floorplan.d.ts +1 -1
- package/dist/liquid-line/floorplan.js +1 -1
- package/dist/liquid-line/geometry.d.ts +1 -1
- package/dist/liquid-line/geometry.js +1 -1
- package/dist/liquid-line/index.d.ts +4 -4
- package/dist/liquid-line/index.js +4 -4
- package/dist/liquid-line/move-tool.d.ts.map +1 -1
- package/dist/liquid-line/move-tool.js +9 -3
- package/dist/liquid-line/parametrics.d.ts +1 -1
- package/dist/liquid-line/selection.d.ts.map +1 -1
- package/dist/liquid-line/selection.js +1 -1
- package/dist/liquid-line/tool.d.ts.map +1 -1
- package/dist/liquid-line/tool.js +9 -10
- package/dist/measurement/definition.d.ts +1 -1
- package/dist/measurement/definition.js +7 -7
- package/dist/measurement/edit.d.ts +1 -1
- package/dist/measurement/floorplan-affordance.js +2 -2
- package/dist/measurement/floorplan.js +2 -2
- package/dist/measurement/index.d.ts +2 -2
- package/dist/measurement/index.js +2 -2
- package/dist/measurement/renderer.d.ts.map +1 -1
- package/dist/measurement/renderer.js +2 -2
- package/dist/measurement/selection.d.ts.map +1 -1
- package/dist/measurement/selection.js +4 -4
- package/dist/measurement/smart-surface.d.ts +1 -1
- package/dist/measurement/smart-tool.d.ts.map +1 -1
- package/dist/measurement/smart-tool.js +2 -2
- package/dist/measurement/surface-query.js +1 -1
- package/dist/measurement/tool-router.js +2 -2
- package/dist/measurement/tool.d.ts +1 -1
- package/dist/measurement/tool.d.ts.map +1 -1
- package/dist/measurement/tool.js +3 -3
- package/dist/pipe-fitting/definition.d.ts +1 -1
- package/dist/pipe-fitting/definition.js +11 -11
- package/dist/pipe-fitting/floorplan.d.ts +1 -1
- package/dist/pipe-fitting/floorplan.js +4 -4
- package/dist/pipe-fitting/geometry.d.ts +1 -1
- package/dist/pipe-fitting/geometry.js +4 -4
- package/dist/pipe-fitting/index.d.ts +4 -4
- package/dist/pipe-fitting/index.js +4 -4
- package/dist/pipe-fitting/inline-insertion.d.ts +1 -1
- package/dist/pipe-fitting/inline-insertion.d.ts.map +1 -1
- package/dist/pipe-fitting/inline-insertion.js +1 -1
- package/dist/pipe-fitting/move-tool.d.ts.map +1 -1
- package/dist/pipe-fitting/move-tool.js +11 -5
- package/dist/pipe-fitting/parametrics.d.ts +1 -1
- package/dist/pipe-fitting/parametrics.js +1 -1
- package/dist/pipe-fitting/ports.d.ts +1 -1
- package/dist/pipe-fitting/ports.js +1 -1
- package/dist/pipe-fitting/selection.d.ts.map +1 -1
- package/dist/pipe-fitting/selection.js +6 -7
- package/dist/pipe-fitting/tool.d.ts +2 -2
- package/dist/pipe-fitting/tool.d.ts.map +1 -1
- package/dist/pipe-fitting/tool.js +15 -16
- package/dist/pipe-segment/continuation.d.ts +4 -4
- package/dist/pipe-segment/continuation.d.ts.map +1 -1
- package/dist/pipe-segment/continuation.js +1 -1
- package/dist/pipe-segment/definition.d.ts +1 -1
- package/dist/pipe-segment/definition.js +11 -11
- package/dist/pipe-segment/floorplan.d.ts +1 -1
- package/dist/pipe-segment/floorplan.js +3 -3
- package/dist/pipe-segment/geometry.d.ts +1 -1
- package/dist/pipe-segment/geometry.js +2 -2
- package/dist/pipe-segment/index.d.ts +3 -3
- package/dist/pipe-segment/index.js +3 -3
- package/dist/pipe-segment/move-tool.d.ts.map +1 -1
- package/dist/pipe-segment/move-tool.js +11 -5
- package/dist/pipe-segment/parametrics.d.ts +1 -1
- package/dist/pipe-segment/parametrics.js +3 -3
- package/dist/pipe-segment/selection.d.ts.map +1 -1
- package/dist/pipe-segment/selection.js +10 -9
- package/dist/pipe-segment/tool.d.ts.map +1 -1
- package/dist/pipe-segment/tool.js +13 -14
- package/dist/pipe-trap/definition.d.ts +1 -1
- package/dist/pipe-trap/definition.js +6 -6
- package/dist/pipe-trap/floorplan.d.ts +1 -1
- package/dist/pipe-trap/floorplan.js +1 -1
- package/dist/pipe-trap/geometry.d.ts +1 -1
- package/dist/pipe-trap/geometry.js +2 -2
- package/dist/pipe-trap/index.d.ts +4 -4
- package/dist/pipe-trap/index.js +4 -4
- package/dist/pipe-trap/parametrics.d.ts +1 -1
- package/dist/pipe-trap/ports.d.ts +1 -1
- package/dist/pipe-trap/ports.js +1 -1
- package/dist/pipe-trap/tool.d.ts.map +1 -1
- package/dist/pipe-trap/tool.js +7 -8
- package/dist/procedural-item/animation.d.ts +8 -0
- package/dist/procedural-item/animation.d.ts.map +1 -0
- package/dist/procedural-item/animation.js +116 -0
- package/dist/procedural-item/definition.d.ts.map +1 -1
- package/dist/procedural-item/definition.js +81 -13
- package/dist/procedural-item/geometry.d.ts +5 -1
- package/dist/procedural-item/geometry.d.ts.map +1 -1
- package/dist/procedural-item/geometry.js +239 -15
- package/dist/procedural-item/index.d.ts +2 -2
- package/dist/procedural-item/index.js +2 -2
- package/dist/procedural-item/move-session.d.ts +1 -1
- package/dist/procedural-item/move-session.js +2 -2
- package/dist/procedural-item/move-tool.js +3 -3
- package/dist/procedural-item/renderer.d.ts.map +1 -1
- package/dist/procedural-item/renderer.js +273 -24
- package/dist/ridge-vent/definition.d.ts +1 -1
- package/dist/ridge-vent/definition.d.ts.map +1 -1
- package/dist/ridge-vent/definition.js +9 -8
- package/dist/ridge-vent/geometry.js +1 -1
- package/dist/ridge-vent/index.d.ts +3 -3
- package/dist/ridge-vent/index.js +3 -3
- package/dist/ridge-vent/move-tool.js +5 -5
- package/dist/ridge-vent/panel.d.ts.map +1 -1
- package/dist/ridge-vent/panel.js +6 -24
- package/dist/ridge-vent/parametrics.d.ts +1 -1
- package/dist/ridge-vent/parametrics.js +1 -1
- package/dist/ridge-vent/preview.d.ts +1 -1
- package/dist/ridge-vent/preview.d.ts.map +1 -1
- package/dist/ridge-vent/preview.js +2 -2
- package/dist/ridge-vent/renderer.d.ts.map +1 -1
- package/dist/ridge-vent/renderer.js +14 -12
- package/dist/ridge-vent/tool.d.ts.map +1 -1
- package/dist/ridge-vent/tool.js +8 -8
- package/dist/roof/barrel-panel.d.ts +5 -0
- package/dist/roof/barrel-panel.d.ts.map +1 -0
- package/dist/roof/barrel-panel.js +17 -0
- package/dist/roof/conical-roof.d.ts +5 -1
- package/dist/roof/conical-roof.d.ts.map +1 -1
- package/dist/roof/conical-roof.js +19 -15
- package/dist/roof/definition.d.ts +1 -1
- package/dist/roof/definition.d.ts.map +1 -1
- package/dist/roof/definition.js +22 -11
- package/dist/roof/floorplan.d.ts +8 -0
- package/dist/roof/floorplan.d.ts.map +1 -1
- package/dist/roof/floorplan.js +202 -19
- package/dist/roof/glazed-geometry.d.ts +5 -0
- package/dist/roof/glazed-geometry.d.ts.map +1 -0
- package/dist/roof/glazed-geometry.js +27 -0
- package/dist/roof/glazed-materials.d.ts +14 -0
- package/dist/roof/glazed-materials.d.ts.map +1 -0
- package/dist/roof/glazed-materials.js +42 -0
- package/dist/roof/glazing-controls.d.ts +33 -0
- package/dist/roof/glazing-controls.d.ts.map +1 -0
- package/dist/roof/glazing-controls.js +50 -0
- package/dist/roof/glazing-panel-editor.d.ts +6 -0
- package/dist/roof/glazing-panel-editor.d.ts.map +1 -0
- package/dist/roof/glazing-panel-editor.js +44 -0
- package/dist/roof/glazing-panel.d.ts +5 -0
- package/dist/roof/glazing-panel.d.ts.map +1 -0
- package/dist/roof/glazing-panel.js +41 -0
- package/dist/roof/glazing-preview.d.ts +10 -0
- package/dist/roof/glazing-preview.d.ts.map +1 -0
- package/dist/roof/glazing-preview.js +48 -0
- package/dist/roof/index.d.ts +3 -3
- package/dist/roof/index.js +3 -3
- package/dist/roof/panel-model.d.ts.map +1 -1
- package/dist/roof/panel-model.js +10 -6
- package/dist/roof/panel.d.ts.map +1 -1
- package/dist/roof/panel.js +43 -15
- package/dist/roof/parametrics.js +1 -1
- package/dist/roof/renderer.d.ts.map +1 -1
- package/dist/roof/renderer.js +40 -7
- package/dist/roof/roof-footprint-source.d.ts.map +1 -1
- package/dist/roof/roof-level-target.d.ts +75 -0
- package/dist/roof/roof-level-target.d.ts.map +1 -0
- package/dist/roof/roof-level-target.js +119 -0
- package/dist/roof/roof-placement-mode.d.ts +3 -2
- package/dist/roof/roof-placement-mode.d.ts.map +1 -1
- package/dist/roof/system.d.ts +1 -2
- package/dist/roof/system.d.ts.map +1 -1
- package/dist/roof/system.js +5 -1
- package/dist/roof/tool.d.ts +3 -3
- package/dist/roof/tool.d.ts.map +1 -1
- package/dist/roof/tool.js +80 -41
- package/dist/roof-segment/definition.d.ts +1 -1
- package/dist/roof-segment/definition.d.ts.map +1 -1
- package/dist/roof-segment/definition.js +31 -62
- package/dist/roof-segment/floorplan-affordances.d.ts.map +1 -1
- package/dist/roof-segment/floorplan-affordances.js +13 -34
- package/dist/roof-segment/floorplan.d.ts.map +1 -1
- package/dist/roof-segment/floorplan.js +1 -0
- package/dist/roof-segment/index.d.ts +1 -1
- package/dist/roof-segment/index.js +1 -1
- package/dist/roof-segment/measurement.js +1 -1
- package/dist/roof-segment/paint.d.ts +4 -0
- package/dist/roof-segment/paint.d.ts.map +1 -0
- package/dist/roof-segment/paint.js +92 -0
- package/dist/roof-segment/panel.d.ts.map +1 -1
- package/dist/roof-segment/panel.js +20 -30
- package/dist/roof-segment/parametrics.d.ts +1 -1
- package/dist/roof-segment/parametrics.d.ts.map +1 -1
- package/dist/roof-segment/parametrics.js +12 -1
- package/dist/roof-segment/renderer.d.ts +1 -1
- package/dist/roof-segment/renderer.d.ts.map +1 -1
- package/dist/roof-segment/renderer.js +81 -19
- package/dist/scan/definition.d.ts +1 -1
- package/dist/scan/definition.js +4 -4
- package/dist/scan/index.d.ts +1 -1
- package/dist/scan/index.js +1 -1
- package/dist/scan/renderer.d.ts.map +1 -1
- package/dist/scan/system.d.ts.map +1 -1
- package/dist/separator/definition.d.ts +3 -0
- package/dist/separator/definition.d.ts.map +1 -0
- package/dist/separator/definition.js +39 -0
- package/dist/separator/renderer.d.ts +5 -0
- package/dist/separator/renderer.d.ts.map +1 -0
- package/dist/separator/renderer.js +36 -0
- package/dist/shared/accessory-placement.d.ts +1 -1
- package/dist/shared/accessory-placement.d.ts.map +1 -1
- package/dist/shared/accessory-placement.js +3 -3
- package/dist/shared/accessory-snapping.d.ts +1 -1
- package/dist/shared/accessory-snapping.d.ts.map +1 -1
- package/dist/shared/accessory-snapping.js +1 -1
- package/dist/shared/auto-fitting.d.ts +1 -1
- package/dist/shared/auto-fitting.d.ts.map +1 -1
- package/dist/shared/auto-fitting.js +3 -3
- package/dist/shared/automatic-run-end-cap.d.ts +1 -1
- package/dist/shared/automatic-run-end-cap.d.ts.map +1 -1
- package/dist/shared/automatic-run-end-cap.js +4 -4
- package/dist/shared/block-face-host.d.ts +1 -1
- package/dist/shared/connection-feedback.d.ts +1 -2
- package/dist/shared/connection-feedback.d.ts.map +1 -1
- package/dist/shared/connection-feedback.js +1 -2
- package/dist/shared/construction-dimension-standards.d.ts +1 -1
- package/dist/shared/curtain-opening-limits.js +1 -1
- package/dist/shared/draft-axis-guides.js +1 -1
- package/dist/shared/duct-adapter.d.ts +2 -2
- package/dist/shared/duct-adapter.d.ts.map +1 -1
- package/dist/shared/duct-adapter.js +3 -3
- package/dist/shared/duct-body-paint.d.ts +0 -4
- package/dist/shared/duct-body-paint.d.ts.map +1 -1
- package/dist/shared/duct-body-paint.js +2 -6
- package/dist/shared/elbow-branch-continuation.d.ts +1 -1
- package/dist/shared/elbow-branch-continuation.d.ts.map +1 -1
- package/dist/shared/elbow-branch-continuation.js +2 -2
- package/dist/shared/finish-script-model.d.ts +12 -0
- package/dist/shared/finish-script-model.d.ts.map +1 -0
- package/dist/shared/finish-script-model.js +32 -0
- package/dist/shared/fitting-deletion-cleanup.js +2 -2
- package/dist/shared/fitting-endpoint-reaim.js +3 -3
- package/dist/shared/fitting-surface-support.d.ts.map +1 -1
- package/dist/shared/fitting-surface-support.js +2 -2
- package/dist/shared/fitting-tool-options.js +1 -1
- package/dist/shared/floor-placement.d.ts.map +1 -1
- package/dist/shared/floorplan-cursor.d.ts.map +1 -1
- package/dist/shared/hosted-resize.d.ts +2 -1
- package/dist/shared/hosted-resize.d.ts.map +1 -1
- package/dist/shared/hosted-resize.js +11 -3
- package/dist/shared/item-interaction-actions.d.ts +6 -0
- package/dist/shared/item-interaction-actions.d.ts.map +1 -0
- package/dist/shared/item-interaction-actions.js +27 -0
- package/dist/shared/item-interactions.d.ts +9 -0
- package/dist/shared/item-interactions.d.ts.map +1 -0
- package/dist/shared/item-interactions.js +74 -0
- package/dist/shared/item-light-placement.d.ts +2 -0
- package/dist/shared/item-light-placement.d.ts.map +1 -0
- package/dist/shared/item-light-placement.js +3 -0
- package/dist/shared/lean-to-post-omissions.d.ts +1 -1
- package/dist/shared/lean-to-post-omissions.js +1 -1
- package/dist/shared/mep-ghost.js +5 -5
- package/dist/shared/move-roof-tool.d.ts.map +1 -1
- package/dist/shared/move-roof-tool.js +129 -35
- package/dist/shared/node-batch/batchable.d.ts +12 -0
- package/dist/shared/node-batch/batchable.d.ts.map +1 -0
- package/dist/shared/node-batch/batchable.js +43 -0
- package/dist/shared/node-batch/candidates.d.ts +8 -6
- package/dist/shared/node-batch/candidates.d.ts.map +1 -1
- package/dist/shared/node-batch/candidates.js +44 -60
- package/dist/shared/node-batch/release.d.ts +8 -0
- package/dist/shared/node-batch/release.d.ts.map +1 -0
- package/dist/shared/node-batch/release.js +16 -0
- package/dist/shared/node-batch/store.d.ts +1 -1
- package/dist/shared/node-batch/store.d.ts.map +1 -1
- package/dist/shared/node-batch/store.js +1 -1
- package/dist/shared/node-batch/system.d.ts.map +1 -1
- package/dist/shared/node-batch/system.js +36 -16
- package/dist/shared/node-batch/types.d.ts +4 -1
- package/dist/shared/node-batch/types.d.ts.map +1 -1
- package/dist/shared/opening-documentation.d.ts +14 -2
- package/dist/shared/opening-documentation.d.ts.map +1 -1
- package/dist/shared/opening-documentation.js +246 -60
- package/dist/shared/opening-guides-runtime.d.ts.map +1 -1
- package/dist/shared/opening-guides-runtime.js +18 -15
- package/dist/shared/opening-move-wall-gate.d.ts.map +1 -1
- package/dist/shared/opening-placement-dimensions.d.ts.map +1 -1
- package/dist/shared/opening-placement-dimensions.js +5 -5
- package/dist/shared/opening-plane-offset.d.ts +23 -0
- package/dist/shared/opening-plane-offset.d.ts.map +1 -0
- package/dist/shared/opening-plane-offset.js +24 -0
- package/dist/shared/opening-property-preview-host.d.ts +1 -1
- package/dist/shared/opening-property-preview.d.ts.map +1 -1
- package/dist/shared/opening-property-preview.js +1 -1
- package/dist/shared/panel-fields.js +2 -2
- package/dist/shared/path-point-affordance.js +2 -2
- package/dist/shared/pipe-run-translation-offset.d.ts +2 -2
- package/dist/shared/pipe-run-translation-offset.d.ts.map +1 -1
- package/dist/shared/pipe-run-translation-offset.js +2 -2
- package/dist/shared/pipe-vertical-offset.d.ts +2 -2
- package/dist/shared/pipe-vertical-offset.d.ts.map +1 -1
- package/dist/shared/pipe-vertical-offset.js +2 -2
- package/dist/shared/polygon-centroid-move.d.ts.map +1 -1
- package/dist/shared/polygon-centroid-move.js +5 -2
- package/dist/shared/polygon-vertex-affordance.d.ts.map +1 -1
- package/dist/shared/polygon-vertex-affordance.js +19 -15
- package/dist/shared/port-systems.d.ts +9 -0
- package/dist/shared/port-systems.d.ts.map +1 -0
- package/dist/shared/port-systems.js +10 -0
- package/dist/shared/refrigerant-line-selection.d.ts.map +1 -1
- package/dist/shared/refrigerant-line-selection.js +3 -2
- package/dist/shared/relative-roof-drag.d.ts +1 -1
- package/dist/shared/relative-roof-drag.js +2 -2
- package/dist/shared/roof-segment-hit.d.ts.map +1 -1
- package/dist/shared/roof-segment-hit.js +7 -5
- package/dist/shared/roof-surface-placement-guides.d.ts +1 -1
- package/dist/shared/roof-surface-placement-guides.js +11 -11
- package/dist/shared/roof-surface.d.ts.map +1 -1
- package/dist/shared/roof-surface.js +25 -5
- package/dist/shared/run-hanger-controls.d.ts +1 -1
- package/dist/shared/run-hanger-controls.js +1 -1
- package/dist/shared/run-hanger-inspector.d.ts +1 -1
- package/dist/shared/run-hanger-inspector.js +3 -3
- package/dist/shared/run-hangers.d.ts.map +1 -1
- package/dist/shared/run-hangers.js +7 -6
- package/dist/shared/run-move-connectivity.d.ts.map +1 -1
- package/dist/shared/run-translation-offset.d.ts +3 -3
- package/dist/shared/run-translation-offset.d.ts.map +1 -1
- package/dist/shared/run-translation-offset.js +2 -2
- package/dist/shared/scripted-opening-handles.d.ts +18 -0
- package/dist/shared/scripted-opening-handles.d.ts.map +1 -0
- package/dist/shared/scripted-opening-handles.js +53 -0
- package/dist/shared/scripted-opening.d.ts +25 -0
- package/dist/shared/scripted-opening.d.ts.map +1 -0
- package/dist/shared/scripted-opening.js +72 -0
- package/dist/shared/slot-paint.d.ts +14 -2
- package/dist/shared/slot-paint.d.ts.map +1 -1
- package/dist/shared/slot-paint.js +29 -29
- package/dist/shared/surface-paint.d.ts.map +1 -1
- package/dist/shared/surface-paint.js +3 -6
- package/dist/shared/swap-preview-material.d.ts +13 -0
- package/dist/shared/swap-preview-material.d.ts.map +1 -0
- package/dist/shared/swap-preview-material.js +27 -0
- package/dist/shared/system-check-panel.js +1 -1
- package/dist/shared/system-checks.d.ts.map +1 -1
- package/dist/shared/system-checks.js +7 -5
- package/dist/shared/vertical-offset.d.ts +3 -3
- package/dist/shared/vertical-offset.d.ts.map +1 -1
- package/dist/shared/vertical-offset.js +3 -3
- package/dist/shared/wall-attach-target.d.ts +3 -10
- package/dist/shared/wall-attach-target.d.ts.map +1 -1
- package/dist/shared/wall-attach-target.js +3 -63
- package/dist/shared/wall-opening-ceiling.d.ts +5 -15
- package/dist/shared/wall-opening-ceiling.d.ts.map +1 -1
- package/dist/shared/wall-opening-ceiling.js +10 -18
- package/dist/shared/wall-run-move.d.ts +1 -1
- package/dist/shared/wall-run-move.d.ts.map +1 -1
- package/dist/shelf/definition.d.ts +1 -1
- package/dist/shelf/definition.d.ts.map +1 -1
- package/dist/shelf/definition.js +14 -12
- package/dist/shelf/dimensions.d.ts +1 -1
- package/dist/shelf/floorplan-affordances.js +1 -1
- package/dist/shelf/floorplan-move.js +1 -1
- package/dist/shelf/floorplan.d.ts +1 -1
- package/dist/shelf/floorplan.js +2 -2
- package/dist/shelf/geometry.d.ts +1 -1
- package/dist/shelf/geometry.d.ts.map +1 -1
- package/dist/shelf/geometry.js +2 -3
- package/dist/shelf/index.d.ts +3 -3
- package/dist/shelf/index.js +3 -3
- package/dist/shelf/paint.d.ts.map +1 -1
- package/dist/shelf/paint.js +4 -10
- package/dist/shelf/parametrics.d.ts +1 -1
- package/dist/shelf/preview.d.ts +1 -1
- package/dist/shelf/preview.d.ts.map +1 -1
- package/dist/shelf/preview.js +1 -1
- package/dist/shelf/tool.d.ts.map +1 -1
- package/dist/shelf/tool.js +3 -3
- package/dist/site/definition.d.ts +1 -1
- package/dist/site/definition.d.ts.map +1 -1
- package/dist/site/definition.js +5 -4
- package/dist/site/generic-foundation-geometry.d.ts +16 -0
- package/dist/site/generic-foundation-geometry.d.ts.map +1 -0
- package/dist/site/generic-foundation-geometry.js +75 -0
- package/dist/site/generic-foundation.d.ts +4 -0
- package/dist/site/generic-foundation.d.ts.map +1 -0
- package/dist/site/generic-foundation.js +91 -0
- package/dist/site/ground-hole.d.ts +92 -0
- package/dist/site/ground-hole.d.ts.map +1 -0
- package/dist/site/ground-hole.js +306 -0
- package/dist/site/ground-pit-geometry.d.ts +39 -0
- package/dist/site/ground-pit-geometry.d.ts.map +1 -0
- package/dist/site/ground-pit-geometry.js +213 -0
- package/dist/site/ground-pit.d.ts +45 -0
- package/dist/site/ground-pit.d.ts.map +1 -0
- package/dist/site/ground-pit.js +175 -0
- package/dist/site/ground-veil.d.ts +39 -0
- package/dist/site/ground-veil.d.ts.map +1 -0
- package/dist/site/ground-veil.js +86 -0
- package/dist/site/ground-window-system.d.ts +9 -0
- package/dist/site/ground-window-system.d.ts.map +1 -0
- package/dist/site/ground-window-system.js +108 -0
- package/dist/site/hole-noise.d.ts +11 -0
- package/dist/site/hole-noise.d.ts.map +1 -0
- package/dist/site/hole-noise.js +79 -0
- package/dist/site/index.d.ts +1 -1
- package/dist/site/index.js +1 -1
- package/dist/site/line-ribbon.d.ts +31 -0
- package/dist/site/line-ribbon.d.ts.map +1 -0
- package/dist/site/line-ribbon.js +117 -0
- package/dist/site/lot-mask.d.ts +20 -0
- package/dist/site/lot-mask.d.ts.map +1 -0
- package/dist/site/lot-mask.js +39 -0
- package/dist/site/panel.d.ts +10 -0
- package/dist/site/panel.d.ts.map +1 -0
- package/dist/site/panel.js +179 -0
- package/dist/site/parametrics.d.ts +7 -0
- package/dist/site/parametrics.d.ts.map +1 -1
- package/dist/site/parametrics.js +8 -0
- package/dist/site/recessed-slab-ground-holes.d.ts.map +1 -1
- package/dist/site/recessed-slab-ground-holes.js +5 -2
- package/dist/site/renderer.d.ts.map +1 -1
- package/dist/site/renderer.js +275 -40
- package/dist/site/terrain-geometry.d.ts +28 -1
- package/dist/site/terrain-geometry.d.ts.map +1 -1
- package/dist/site/terrain-geometry.js +78 -4
- package/dist/site/terrain-holes.d.ts +15 -0
- package/dist/site/terrain-holes.d.ts.map +1 -0
- package/dist/site/terrain-holes.js +74 -0
- package/dist/site/terrain-mesh.d.ts +10 -3
- package/dist/site/terrain-mesh.d.ts.map +1 -1
- package/dist/site/terrain-mesh.js +36 -9
- package/dist/site/terrain-renderer.d.ts +11 -2
- package/dist/site/terrain-renderer.d.ts.map +1 -1
- package/dist/site/terrain-renderer.js +23 -6
- package/dist/site/underground-edge.d.ts +26 -0
- package/dist/site/underground-edge.d.ts.map +1 -0
- package/dist/site/underground-edge.js +46 -0
- package/dist/skylight/definition.d.ts +1 -1
- package/dist/skylight/definition.d.ts.map +1 -1
- package/dist/skylight/definition.js +11 -10
- package/dist/skylight/geometry.d.ts +1 -1
- package/dist/skylight/geometry.js +1 -1
- package/dist/skylight/index.d.ts +4 -4
- package/dist/skylight/index.js +4 -4
- package/dist/skylight/move-tool.js +4 -4
- package/dist/skylight/panel.js +3 -3
- package/dist/skylight/parametrics.d.ts +1 -1
- package/dist/skylight/parametrics.js +1 -1
- package/dist/skylight/preview.d.ts +1 -1
- package/dist/skylight/preview.d.ts.map +1 -1
- package/dist/skylight/preview.js +2 -2
- package/dist/skylight/renderer.d.ts.map +1 -1
- package/dist/skylight/renderer.js +5 -5
- package/dist/skylight/system.d.ts.map +1 -1
- package/dist/skylight/tool.d.ts.map +1 -1
- package/dist/skylight/tool.js +7 -7
- package/dist/slab/boundary-editor.d.ts +1 -1
- package/dist/slab/boundary-editor.d.ts.map +1 -1
- package/dist/slab/boundary-editor.js +13 -13
- package/dist/slab/definition.d.ts +1 -1
- package/dist/slab/definition.d.ts.map +1 -1
- package/dist/slab/definition.js +44 -19
- package/dist/slab/dependency-tracker.d.ts.map +1 -1
- package/dist/slab/dependency-tracker.js +67 -7
- package/dist/slab/elevation-limit.d.ts.map +1 -1
- package/dist/slab/elevation-limit.js +2 -2
- package/dist/slab/floorplan-affordances.d.ts +232 -60
- package/dist/slab/floorplan-affordances.d.ts.map +1 -1
- package/dist/slab/floorplan-affordances.js +1 -2
- package/dist/slab/floorplan-move.d.ts.map +1 -1
- package/dist/slab/floorplan-move.js +4 -5
- package/dist/slab/floorplan.d.ts +7 -0
- package/dist/slab/floorplan.d.ts.map +1 -1
- package/dist/slab/floorplan.js +22 -5
- package/dist/slab/geometry.d.ts.map +1 -1
- package/dist/slab/geometry.js +187 -77
- package/dist/slab/hole-editor.d.ts.map +1 -1
- package/dist/slab/index.d.ts +2 -2
- package/dist/slab/index.js +2 -2
- package/dist/slab/move-tool.d.ts.map +1 -1
- package/dist/slab/move-tool.js +7 -6
- package/dist/slab/paint.d.ts +18 -5
- package/dist/slab/paint.d.ts.map +1 -1
- package/dist/slab/paint.js +461 -9
- package/dist/slab/panel.d.ts.map +1 -1
- package/dist/slab/panel.js +32 -13
- package/dist/slab/parametrics.d.ts +1 -1
- package/dist/slab/parametrics.js +1 -1
- package/dist/slab/placement-ownership.d.ts +2 -1
- package/dist/slab/placement-ownership.d.ts.map +1 -1
- package/dist/slab/placement-ownership.js +2 -2
- package/dist/slab/quick-measurement.js +1 -1
- package/dist/slab/surface-split.d.ts +24 -0
- package/dist/slab/surface-split.d.ts.map +1 -0
- package/dist/slab/surface-split.js +389 -0
- package/dist/slab/system.d.ts.map +1 -1
- package/dist/slab/system.js +1 -1
- package/dist/slab/tool.d.ts.map +1 -1
- package/dist/slab/tool.js +7 -5
- package/dist/solar-panel/definition.d.ts +1 -1
- package/dist/solar-panel/definition.d.ts.map +1 -1
- package/dist/solar-panel/definition.js +8 -7
- package/dist/solar-panel/index.d.ts +4 -4
- package/dist/solar-panel/index.js +4 -4
- package/dist/solar-panel/move-tool.js +3 -3
- package/dist/solar-panel/panel.d.ts.map +1 -1
- package/dist/solar-panel/panel.js +4 -4
- package/dist/solar-panel/parametrics.d.ts +1 -1
- package/dist/solar-panel/parametrics.js +1 -1
- package/dist/solar-panel/preview.d.ts +1 -1
- package/dist/solar-panel/preview.d.ts.map +1 -1
- package/dist/solar-panel/preview.js +2 -2
- package/dist/solar-panel/renderer.d.ts.map +1 -1
- package/dist/solar-panel/renderer.js +3 -3
- package/dist/solar-panel/tool.d.ts.map +1 -1
- package/dist/solar-panel/tool.js +7 -7
- package/dist/spawn/definition.d.ts +1 -1
- package/dist/spawn/definition.js +7 -7
- package/dist/spawn/floorplan-affordances.js +1 -1
- package/dist/spawn/floorplan.d.ts +1 -1
- package/dist/spawn/index.d.ts +2 -2
- package/dist/spawn/index.js +2 -2
- package/dist/spawn/panel.js +1 -1
- package/dist/spawn/parametrics.d.ts +1 -1
- package/dist/spawn/parametrics.js +1 -1
- package/dist/spawn/renderer.d.ts.map +1 -1
- package/dist/spawn/renderer.js +1 -1
- package/dist/spawn/tool.d.ts.map +1 -1
- package/dist/spawn/tool.js +2 -2
- package/dist/stair/baluster-geometry.d.ts +21 -0
- package/dist/stair/baluster-geometry.d.ts.map +1 -0
- package/dist/stair/baluster-geometry.js +74 -0
- package/dist/stair/baluster-guard.d.ts +50 -0
- package/dist/stair/baluster-guard.d.ts.map +1 -0
- package/dist/stair/baluster-guard.js +71 -0
- package/dist/stair/boards-guard.d.ts +37 -0
- package/dist/stair/boards-guard.d.ts.map +1 -0
- package/dist/stair/boards-guard.js +61 -0
- package/dist/stair/cable-guard.d.ts +39 -0
- package/dist/stair/cable-guard.d.ts.map +1 -0
- package/dist/stair/cable-guard.js +105 -0
- package/dist/stair/construction-controls.d.ts +15 -0
- package/dist/stair/construction-controls.d.ts.map +1 -0
- package/dist/stair/construction-controls.js +29 -0
- package/dist/stair/continuous-railings.d.ts +10 -0
- package/dist/stair/continuous-railings.d.ts.map +1 -0
- package/dist/stair/continuous-railings.js +159 -0
- package/dist/stair/definition.d.ts +1 -1
- package/dist/stair/definition.d.ts.map +1 -1
- package/dist/stair/definition.js +39 -46
- package/dist/stair/documentation.d.ts +1 -1
- package/dist/stair/documentation.d.ts.map +1 -1
- package/dist/stair/documentation.js +11 -18
- package/dist/stair/floorplan-affordances.d.ts.map +1 -1
- package/dist/stair/floorplan-affordances.js +10 -26
- package/dist/stair/floorplan-move.d.ts.map +1 -1
- package/dist/stair/floorplan-move.js +90 -10
- package/dist/stair/floorplan.d.ts +2 -24
- package/dist/stair/floorplan.d.ts.map +1 -1
- package/dist/stair/floorplan.js +123 -88
- package/dist/stair/glass-guard.d.ts +72 -0
- package/dist/stair/glass-guard.d.ts.map +1 -0
- package/dist/stair/glass-guard.js +167 -0
- package/dist/stair/guard-path.d.ts +119 -0
- package/dist/stair/guard-path.d.ts.map +1 -0
- package/dist/stair/guard-path.js +208 -0
- package/dist/stair/index.d.ts +1 -1
- package/dist/stair/index.js +1 -1
- package/dist/stair/materials.d.ts +11 -0
- package/dist/stair/materials.d.ts.map +1 -0
- package/dist/stair/materials.js +51 -0
- package/dist/stair/metal-guard.d.ts +38 -0
- package/dist/stair/metal-guard.d.ts.map +1 -0
- package/dist/stair/metal-guard.js +79 -0
- package/dist/stair/paint.d.ts +32 -0
- package/dist/stair/paint.d.ts.map +1 -1
- package/dist/stair/paint.js +75 -36
- package/dist/stair/panel.d.ts.map +1 -1
- package/dist/stair/panel.js +170 -19
- package/dist/stair/parametrics.d.ts +1 -1
- package/dist/stair/parametrics.d.ts.map +1 -1
- package/dist/stair/parametrics.js +33 -16
- package/dist/stair/plan-entry.d.ts +31 -0
- package/dist/stair/plan-entry.d.ts.map +1 -0
- package/dist/stair/plan-entry.js +325 -0
- package/dist/stair/post-and-rail-guard.d.ts +31 -0
- package/dist/stair/post-and-rail-guard.d.ts.map +1 -0
- package/dist/stair/post-and-rail-guard.js +63 -0
- package/dist/stair/railing-controls.d.ts +9 -0
- package/dist/stair/railing-controls.d.ts.map +1 -0
- package/dist/stair/railing-controls.js +49 -0
- package/dist/stair/renderer.d.ts.map +1 -1
- package/dist/stair/renderer.js +355 -262
- package/dist/stair/stair-click-guard.d.ts +43 -0
- package/dist/stair/stair-click-guard.d.ts.map +1 -0
- package/dist/stair/stair-click-guard.js +44 -0
- package/dist/stair/stair-type.d.ts.map +1 -1
- package/dist/stair/stair-type.js +1 -2
- package/dist/stair/surface-move-preview.d.ts +4 -0
- package/dist/stair/surface-move-preview.d.ts.map +1 -0
- package/dist/stair/surface-move-preview.js +53 -0
- package/dist/stair/surface-transition.d.ts +9 -0
- package/dist/stair/surface-transition.d.ts.map +1 -0
- package/dist/stair/surface-transition.js +61 -0
- package/dist/stair/system.d.ts.map +1 -1
- package/dist/stair/tool.d.ts +2 -0
- package/dist/stair/tool.d.ts.map +1 -0
- package/dist/stair/tool.js +580 -0
- package/dist/stair/use-stair-render-data.d.ts +319 -0
- package/dist/stair/use-stair-render-data.d.ts.map +1 -0
- package/dist/stair/use-stair-render-data.js +73 -0
- package/dist/stair-segment/definition.d.ts +1 -1
- package/dist/stair-segment/definition.d.ts.map +1 -1
- package/dist/stair-segment/definition.js +52 -14
- package/dist/stair-segment/index.d.ts +1 -1
- package/dist/stair-segment/index.js +1 -1
- package/dist/stair-segment/panel.d.ts.map +1 -1
- package/dist/stair-segment/panel.js +38 -44
- package/dist/stair-segment/parametrics.d.ts +1 -1
- package/dist/stair-segment/parametrics.d.ts.map +1 -1
- package/dist/stair-segment/parametrics.js +22 -9
- package/dist/stair-segment/renderer.d.ts.map +1 -1
- package/dist/stair-segment/renderer.js +17 -29
- package/dist/structural-grid/definition.d.ts +1 -1
- package/dist/structural-grid/definition.js +3 -3
- package/dist/structural-grid/floorplan-tool.d.ts.map +1 -1
- package/dist/structural-grid/index.d.ts +1 -1
- package/dist/structural-grid/index.js +1 -1
- package/dist/turbine-vent/definition.d.ts +1 -1
- package/dist/turbine-vent/definition.d.ts.map +1 -1
- package/dist/turbine-vent/definition.js +11 -13
- package/dist/turbine-vent/geometry.js +1 -1
- package/dist/turbine-vent/index.d.ts +3 -3
- package/dist/turbine-vent/index.js +3 -3
- package/dist/turbine-vent/move-tool.js +4 -4
- package/dist/turbine-vent/paint.d.ts.map +1 -1
- package/dist/turbine-vent/paint.js +3 -6
- package/dist/turbine-vent/panel.d.ts.map +1 -1
- package/dist/turbine-vent/panel.js +6 -24
- package/dist/turbine-vent/parametrics.d.ts +1 -1
- package/dist/turbine-vent/parametrics.js +1 -1
- package/dist/turbine-vent/preview.d.ts +1 -1
- package/dist/turbine-vent/preview.d.ts.map +1 -1
- package/dist/turbine-vent/preview.js +2 -2
- package/dist/turbine-vent/renderer.d.ts.map +1 -1
- package/dist/turbine-vent/renderer.js +3 -3
- package/dist/turbine-vent/tool.d.ts.map +1 -1
- package/dist/turbine-vent/tool.js +7 -7
- package/dist/unit/definition.d.ts +1 -1
- package/dist/unit/definition.js +2 -2
- package/dist/unit/index.d.ts +1 -1
- package/dist/unit/index.js +1 -1
- package/dist/unit/parametrics.js +1 -1
- package/dist/unit/unit-panel.d.ts.map +1 -1
- package/dist/unit/unit-panel.js +7 -2
- package/dist/wall/actions.d.ts.map +1 -1
- package/dist/wall/actions.js +9 -4
- package/dist/wall/construction-dimensions.d.ts +3 -3
- package/dist/wall/construction-dimensions.js +14 -11
- package/dist/wall/contextual-dimensions.js +4 -4
- package/dist/wall/curtain-opening-frame.d.ts.map +1 -1
- package/dist/wall/curtain-wall-adapter.js +2 -2
- package/dist/wall/curtain-wall-floorplan.js +2 -2
- package/dist/wall/curtain-wall-geometry.d.ts.map +1 -1
- package/dist/wall/curtain-wall-geometry.js +4 -4
- package/dist/wall/curtain-wall-layout.d.ts +1 -2
- package/dist/wall/curtain-wall-layout.d.ts.map +1 -1
- package/dist/wall/curtain-wall-layout.js +1 -23
- package/dist/wall/curtain-wall-materials.d.ts +1 -1
- package/dist/wall/curtain-wall-materials.d.ts.map +1 -1
- package/dist/wall/curtain-wall-materials.js +4 -3
- package/dist/wall/curtain-wall-panel.d.ts.map +1 -1
- package/dist/wall/curtain-wall-panel.js +4 -4
- package/dist/wall/curtain-wall-piece-geometry.d.ts +1 -1
- package/dist/wall/curve-tool.d.ts.map +1 -1
- package/dist/wall/curve-tool.js +4 -0
- package/dist/wall/definition.d.ts +1 -1
- package/dist/wall/definition.d.ts.map +1 -1
- package/dist/wall/definition.js +71 -42
- package/dist/wall/exterior.d.ts +6 -0
- package/dist/wall/exterior.d.ts.map +1 -0
- package/dist/wall/exterior.js +13 -0
- package/dist/wall/floorplan-move.d.ts +1 -1
- package/dist/wall/floorplan-move.d.ts.map +1 -1
- package/dist/wall/floorplan-move.js +21 -84
- package/dist/wall/floorplan-tool.d.ts.map +1 -1
- package/dist/wall/floorplan-tool.js +11 -12
- package/dist/wall/floorplan.d.ts +5 -3
- package/dist/wall/floorplan.d.ts.map +1 -1
- package/dist/wall/floorplan.js +188 -25
- package/dist/wall/index.d.ts +2 -2
- package/dist/wall/index.js +2 -2
- package/dist/wall/measurement.d.ts.map +1 -1
- package/dist/wall/measurement.js +6 -6
- package/dist/wall/move-endpoint-tool.d.ts.map +1 -1
- package/dist/wall/move-endpoint-tool.js +25 -13
- package/dist/wall/move-shared.d.ts.map +1 -1
- package/dist/wall/move-shared.js +12 -8
- package/dist/wall/move-tool.d.ts.map +1 -1
- package/dist/wall/move-tool.js +120 -151
- package/dist/wall/paint.d.ts +26 -15
- package/dist/wall/paint.d.ts.map +1 -1
- package/dist/wall/paint.js +303 -119
- package/dist/wall/panel-model.d.ts +18 -0
- package/dist/wall/panel-model.d.ts.map +1 -1
- package/dist/wall/panel-model.js +82 -24
- package/dist/wall/panel.d.ts.map +1 -1
- package/dist/wall/panel.js +262 -53
- package/dist/wall/parametrics.d.ts +1 -1
- package/dist/wall/parametrics.d.ts.map +1 -1
- package/dist/wall/parametrics.js +4 -1
- package/dist/wall/pointer-transparency.d.ts +1 -1
- package/dist/wall/pointer-transparency.d.ts.map +1 -1
- package/dist/wall/preview.d.ts.map +1 -1
- package/dist/wall/property-preview.d.ts.map +1 -1
- package/dist/wall/quick-measurement.js +1 -1
- package/dist/wall/rectangle-command.d.ts +329 -37
- package/dist/wall/rectangle-command.d.ts.map +1 -1
- package/dist/wall/rectangle-tool.d.ts.map +1 -1
- package/dist/wall/rectangle-tool.js +27 -9
- package/dist/wall/renderer.d.ts.map +1 -1
- package/dist/wall/renderer.js +31 -10
- package/dist/wall/selection-hit-owner.d.ts.map +1 -1
- package/dist/wall/split-floorplan-layer.d.ts.map +1 -1
- package/dist/wall/split-floorplan-layer.js +10 -10
- package/dist/wall/split-pointer.js +2 -2
- package/dist/wall/split-preview.d.ts +1 -1
- package/dist/wall/split-session.d.ts.map +1 -1
- package/dist/wall/split-session.js +9 -3
- package/dist/wall/split-store.d.ts +1 -1
- package/dist/wall/split-tool.js +3 -3
- package/dist/wall/system.d.ts.map +1 -1
- package/dist/wall/system.js +42 -10
- package/dist/wall/tool.d.ts.map +1 -1
- package/dist/wall/tool.js +114 -53
- package/dist/wall/treatment-level-data.d.ts +3 -2
- package/dist/wall/treatment-level-data.d.ts.map +1 -1
- package/dist/wall/treatment-level-data.js +17 -13
- package/dist/wall/treatments.d.ts +11 -11
- package/dist/wall/treatments.d.ts.map +1 -1
- package/dist/wall/treatments.js +77 -57
- package/dist/wall/wall-batch-system.d.ts +7 -0
- package/dist/wall/wall-batch-system.d.ts.map +1 -1
- package/dist/wall/wall-batch-system.js +81 -7
- package/dist/wall/wall-batch.d.ts +6 -0
- package/dist/wall/wall-batch.d.ts.map +1 -1
- package/dist/wall/wall-batch.js +7 -1
- package/dist/window/contextual-dimensions.js +1 -1
- package/dist/window/corner-cue.d.ts +9 -0
- package/dist/window/corner-cue.d.ts.map +1 -0
- package/dist/window/corner-cue.js +31 -0
- package/dist/window/corner-fuse.d.ts +14 -0
- package/dist/window/corner-fuse.d.ts.map +1 -0
- package/dist/window/corner-fuse.js +42 -0
- package/dist/window/definition.d.ts +1 -1
- package/dist/window/definition.d.ts.map +1 -1
- package/dist/window/definition.js +39 -26
- package/dist/window/floor-projection.js +1 -1
- package/dist/window/floorplan-affordances.js +2 -2
- package/dist/window/floorplan-move.d.ts.map +1 -1
- package/dist/window/floorplan-move.js +49 -13
- package/dist/window/floorplan.d.ts.map +1 -1
- package/dist/window/floorplan.js +214 -87
- package/dist/window/index.d.ts +2 -2
- package/dist/window/index.js +2 -2
- package/dist/window/mechanism.d.ts +4 -0
- package/dist/window/mechanism.d.ts.map +1 -0
- package/dist/window/mechanism.js +20 -0
- package/dist/window/move-tool.d.ts.map +1 -1
- package/dist/window/move-tool.js +165 -69
- package/dist/window/paint.d.ts.map +1 -1
- package/dist/window/paint.js +4 -1
- package/dist/window/panel.d.ts.map +1 -1
- package/dist/window/panel.js +134 -100
- package/dist/window/parametrics.d.ts +1 -1
- package/dist/window/parametrics.d.ts.map +1 -1
- package/dist/window/parametrics.js +7 -1
- package/dist/window/placement.d.ts +29 -0
- package/dist/window/placement.d.ts.map +1 -0
- package/dist/window/placement.js +92 -0
- package/dist/window/preview.d.ts +1 -1
- package/dist/window/preview.d.ts.map +1 -1
- package/dist/window/preview.js +3 -1
- package/dist/window/renderer.d.ts.map +1 -1
- package/dist/window/renderer.js +4 -3
- package/dist/window/system.d.ts.map +1 -1
- package/dist/window/system.js +1 -1
- package/dist/window/tool.d.ts.map +1 -1
- package/dist/window/tool.js +207 -50
- package/dist/window/window-math.d.ts +7 -15
- package/dist/window/window-math.d.ts.map +1 -1
- package/dist/window/window-math.js +15 -21
- package/dist/zone/contextual-dimensions.d.ts.map +1 -1
- package/dist/zone/contextual-dimensions.js +6 -28
- package/dist/zone/definition.d.ts +1 -1
- package/dist/zone/definition.d.ts.map +1 -1
- package/dist/zone/definition.js +17 -15
- package/dist/zone/floorplan-affordances.d.ts +613 -37
- package/dist/zone/floorplan-affordances.d.ts.map +1 -1
- package/dist/zone/floorplan-affordances.js +1 -1
- package/dist/zone/floorplan-move.js +1 -1
- package/dist/zone/floorplan.d.ts +1 -1
- package/dist/zone/floorplan.d.ts.map +1 -1
- package/dist/zone/floorplan.js +96 -56
- package/dist/zone/index.d.ts +1 -1
- package/dist/zone/index.js +1 -1
- package/dist/zone/parametrics.js +1 -1
- package/dist/zone/quantities-panel.d.ts.map +1 -1
- package/dist/zone/quantities-panel.js +6 -17
- package/dist/zone/quick-measurement.d.ts +2 -2
- package/dist/zone/quick-measurement.d.ts.map +1 -1
- package/dist/zone/quick-measurement.js +7 -6
- package/dist/zone/renderer.d.ts +1 -1
- package/dist/zone/renderer.d.ts.map +1 -1
- package/dist/zone/renderer.js +67 -147
- package/dist/zone/room-clear-dimensions.js +4 -4
- package/dist/zone/room-documentation.d.ts +1 -1
- package/dist/zone/room-documentation.d.ts.map +1 -1
- package/dist/zone/room-documentation.js +3 -7
- package/dist/zone/system.d.ts.map +1 -1
- package/package.json +28 -15
- package/dist/block/slots.d.ts +0 -4
- package/dist/block/slots.d.ts.map +0 -1
- package/dist/block/slots.js +0 -17
- package/dist/cabinet/slots.d.ts +0 -4
- package/dist/cabinet/slots.d.ts.map +0 -1
- package/dist/cabinet/slots.js +0 -24
- package/dist/ceiling/slots.d.ts +0 -6
- package/dist/ceiling/slots.d.ts.map +0 -1
- package/dist/ceiling/slots.js +0 -7
- package/dist/column/slots.d.ts +0 -9
- package/dist/column/slots.d.ts.map +0 -1
- package/dist/column/slots.js +0 -19
- package/dist/door/slots.d.ts +0 -9
- package/dist/door/slots.d.ts.map +0 -1
- package/dist/door/slots.js +0 -20
- package/dist/elevator/slots.d.ts +0 -8
- package/dist/elevator/slots.d.ts.map +0 -1
- package/dist/elevator/slots.js +0 -17
- package/dist/fence/slots.d.ts +0 -10
- package/dist/fence/slots.d.ts.map +0 -1
- package/dist/fence/slots.js +0 -23
- package/dist/item/__fixtures__/main-floorplan.d.ts +0 -26
- package/dist/item/__fixtures__/main-floorplan.d.ts.map +0 -1
- package/dist/item/__fixtures__/main-floorplan.js +0 -297
- package/dist/lean-to-extension/slots.d.ts +0 -5
- package/dist/lean-to-extension/slots.d.ts.map +0 -1
- package/dist/lean-to-extension/slots.js +0 -15
- package/dist/shared/connection-compatibility.d.ts +0 -8
- package/dist/shared/connection-compatibility.d.ts.map +0 -1
- package/dist/shared/connection-compatibility.js +0 -28
- package/dist/shared/distribution-run-contract.d.ts +0 -49
- package/dist/shared/distribution-run-contract.d.ts.map +0 -1
- package/dist/shared/distribution-run-contract.js +0 -30
- package/dist/shared/distribution-run-tool.d.ts +0 -117
- package/dist/shared/distribution-run-tool.d.ts.map +0 -1
- package/dist/shared/distribution-run-tool.js +0 -986
- package/dist/shared/draw-alignment.d.ts +0 -25
- package/dist/shared/draw-alignment.d.ts.map +0 -1
- package/dist/shared/draw-alignment.js +0 -30
- package/dist/shared/ports.d.ts +0 -92
- package/dist/shared/ports.d.ts.map +0 -1
- package/dist/shared/ports.js +0 -305
- package/dist/shared/run-cursor.d.ts +0 -22
- package/dist/shared/run-cursor.d.ts.map +0 -1
- package/dist/shared/run-cursor.js +0 -19
- package/dist/shared/run-direction-feedback.d.ts +0 -20
- package/dist/shared/run-direction-feedback.d.ts.map +0 -1
- package/dist/shared/run-direction-feedback.js +0 -139
- package/dist/shared/run-port-snap.d.ts +0 -11
- package/dist/shared/run-port-snap.d.ts.map +0 -1
- package/dist/shared/run-port-snap.js +0 -19
- package/dist/shared/run-screen-direction.d.ts +0 -5
- package/dist/shared/run-screen-direction.d.ts.map +0 -1
- package/dist/shared/run-screen-direction.js +0 -24
- package/dist/shelf/slots.d.ts +0 -9
- package/dist/shelf/slots.d.ts.map +0 -1
- package/dist/shelf/slots.js +0 -30
- package/dist/slab/slots.d.ts +0 -10
- package/dist/slab/slots.d.ts.map +0 -1
- package/dist/slab/slots.js +0 -20
- package/dist/stair/floor-stack.d.ts +0 -10
- package/dist/stair/floor-stack.d.ts.map +0 -1
- package/dist/stair/floor-stack.js +0 -115
- package/dist/stair/slots.d.ts +0 -7
- package/dist/stair/slots.d.ts.map +0 -1
- package/dist/stair/slots.js +0 -13
- package/dist/wall/drawing-mode.d.ts +0 -12
- package/dist/wall/drawing-mode.d.ts.map +0 -1
- package/dist/wall/drawing-mode.js +0 -38
- package/dist/wall/slots.d.ts +0 -10
- package/dist/wall/slots.d.ts.map +0 -1
- package/dist/wall/slots.js +0 -92
- package/dist/window/slots.d.ts +0 -5
- package/dist/window/slots.d.ts.map +0 -1
- package/dist/window/slots.js +0 -11
|
@@ -1,986 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { emitter, sceneRegistry, useScene } from '@pascal-app/core';
|
|
4
|
-
import { CursorSphere, clearPlacementSurface, DimensionPill, getGridEventScreenProjection, isAngleSnapActive, isGridSnapActive, isMagneticSnapActive, markToolCancelConsumed, publishPlacementSurface, triggerSFX, useEditor, useInteractionScope, } from '@pascal-app/editor';
|
|
5
|
-
import { Html } from '@react-three/drei';
|
|
6
|
-
import { useThree } from '@react-three/fiber';
|
|
7
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
8
|
-
import { createPortal } from 'react-dom';
|
|
9
|
-
import { Vector3 } from 'three';
|
|
10
|
-
import { clearDrawAlignment } from './draw-alignment';
|
|
11
|
-
import { resolveRunCursorPlane } from './run-cursor';
|
|
12
|
-
import { RunDirectionFeedback, run3DDirectionCandidates, runHorizontalDirectionCandidates, } from './run-direction-feedback';
|
|
13
|
-
import { findScreenPort } from './run-port-snap';
|
|
14
|
-
import { chooseScreenDirection, screenDirectionScore } from './run-screen-direction';
|
|
15
|
-
export function shouldLockRunWallSurface(target, connection) {
|
|
16
|
-
return target?.kind === 'wall' && !connection.port && !connection.body;
|
|
17
|
-
}
|
|
18
|
-
export function isSameRunWallSurface(target, hit) {
|
|
19
|
-
return (hit?.kind === 'wall' &&
|
|
20
|
-
hit.hostId === target.hostId &&
|
|
21
|
-
hit.face === 'side' &&
|
|
22
|
-
hit.side === target.side);
|
|
23
|
-
}
|
|
24
|
-
const UP = [0, 1, 0];
|
|
25
|
-
const X_AXIS = [1, 0, 0];
|
|
26
|
-
const Z_AXIS = [0, 0, 1];
|
|
27
|
-
function dotRun(a, b) {
|
|
28
|
-
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
29
|
-
}
|
|
30
|
-
function crossRun(a, b) {
|
|
31
|
-
return [
|
|
32
|
-
a[1] * b[2] - a[2] * b[1],
|
|
33
|
-
a[2] * b[0] - a[0] * b[2],
|
|
34
|
-
a[0] * b[1] - a[1] * b[0],
|
|
35
|
-
];
|
|
36
|
-
}
|
|
37
|
-
function normalizeRun(vector, fallback) {
|
|
38
|
-
const length = Math.hypot(vector[0], vector[1], vector[2]);
|
|
39
|
-
return length < 1e-9
|
|
40
|
-
? [...fallback]
|
|
41
|
-
: [vector[0] / length, vector[1] / length, vector[2] / length];
|
|
42
|
-
}
|
|
43
|
-
/** Build a stable 2D drawing frame for a floor, wall, ceiling, or sloped face. */
|
|
44
|
-
export function createRunSurfaceFrame(origin, surfaceNormal = UP) {
|
|
45
|
-
const normal = normalizeRun(surfaceNormal, UP);
|
|
46
|
-
// Prefer the building's vertical axis for walls and sloped surfaces. For a
|
|
47
|
-
// horizontal floor/ceiling this deliberately falls back to world X so the
|
|
48
|
-
// frame remains stable and matches the existing floor grid orientation.
|
|
49
|
-
const horizontal = Math.abs(dotRun(normal, UP)) > 0.98;
|
|
50
|
-
const tangent = horizontal
|
|
51
|
-
? [...X_AXIS]
|
|
52
|
-
: normalizeRun(crossRun(UP, normal), X_AXIS);
|
|
53
|
-
const bitangent = horizontal
|
|
54
|
-
? [...Z_AXIS]
|
|
55
|
-
: normalizeRun(crossRun(normal, tangent), Z_AXIS);
|
|
56
|
-
return {
|
|
57
|
-
origin: [origin[0], origin[1], origin[2]],
|
|
58
|
-
normal,
|
|
59
|
-
tangent,
|
|
60
|
-
bitangent,
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
export function projectRunPointToSurface(point, frame) {
|
|
64
|
-
const offset = [
|
|
65
|
-
point[0] - frame.origin[0],
|
|
66
|
-
point[1] - frame.origin[1],
|
|
67
|
-
point[2] - frame.origin[2],
|
|
68
|
-
];
|
|
69
|
-
const distance = dotRun(offset, frame.normal);
|
|
70
|
-
return [
|
|
71
|
-
point[0] - frame.normal[0] * distance,
|
|
72
|
-
point[1] - frame.normal[1] * distance,
|
|
73
|
-
point[2] - frame.normal[2] * distance,
|
|
74
|
-
];
|
|
75
|
-
}
|
|
76
|
-
export function snapRunPointToSurface(point, frame, step) {
|
|
77
|
-
const projected = projectRunPointToSurface(point, frame);
|
|
78
|
-
if (step <= 0)
|
|
79
|
-
return projected;
|
|
80
|
-
const offset = [
|
|
81
|
-
projected[0] - frame.origin[0],
|
|
82
|
-
projected[1] - frame.origin[1],
|
|
83
|
-
projected[2] - frame.origin[2],
|
|
84
|
-
];
|
|
85
|
-
const u = snapRunValue(dotRun(offset, frame.tangent), step);
|
|
86
|
-
const v = snapRunValue(dotRun(offset, frame.bitangent), step);
|
|
87
|
-
return [
|
|
88
|
-
frame.origin[0] + frame.tangent[0] * u + frame.bitangent[0] * v,
|
|
89
|
-
frame.origin[1] + frame.tangent[1] * u + frame.bitangent[1] * v,
|
|
90
|
-
frame.origin[2] + frame.tangent[2] * u + frame.bitangent[2] * v,
|
|
91
|
-
];
|
|
92
|
-
}
|
|
93
|
-
export function projectRunToSurfaceAngleLock(from, raw, frame, sourceDirection = null) {
|
|
94
|
-
const fromOffset = [
|
|
95
|
-
from[0] - frame.origin[0],
|
|
96
|
-
from[1] - frame.origin[1],
|
|
97
|
-
from[2] - frame.origin[2],
|
|
98
|
-
];
|
|
99
|
-
const rawOffset = [raw[0] - from[0], raw[1] - from[1], raw[2] - from[2]];
|
|
100
|
-
const rawU = dotRun(rawOffset, frame.tangent);
|
|
101
|
-
const rawV = dotRun(rawOffset, frame.bitangent);
|
|
102
|
-
const sourceU = sourceDirection ? dotRun(sourceDirection, frame.tangent) : 0;
|
|
103
|
-
const sourceV = sourceDirection ? dotRun(sourceDirection, frame.bitangent) : 0;
|
|
104
|
-
const sourceAngle = sourceDirection && Math.hypot(sourceU, sourceV) > 1e-6
|
|
105
|
-
? Math.atan2(sourceV, sourceU)
|
|
106
|
-
: Math.atan2(rawV, rawU);
|
|
107
|
-
const angle = Math.round(sourceAngle / ANGLE_STEP_RAD) * ANGLE_STEP_RAD;
|
|
108
|
-
const distance = Math.max(0, rawU * Math.cos(angle) + rawV * Math.sin(angle));
|
|
109
|
-
const u = dotRun(fromOffset, frame.tangent) + Math.cos(angle) * distance;
|
|
110
|
-
const v = dotRun(fromOffset, frame.bitangent) + Math.sin(angle) * distance;
|
|
111
|
-
return [
|
|
112
|
-
frame.origin[0] + frame.tangent[0] * u + frame.bitangent[0] * v,
|
|
113
|
-
frame.origin[1] + frame.tangent[1] * u + frame.bitangent[1] * v,
|
|
114
|
-
frame.origin[2] + frame.tangent[2] * u + frame.bitangent[2] * v,
|
|
115
|
-
];
|
|
116
|
-
}
|
|
117
|
-
const ANGLE_STEP_RAD = Math.PI / 4;
|
|
118
|
-
const ALT_PIXELS_PER_METER = 100;
|
|
119
|
-
export const RUN_PREVIEW_OPACITY = 0.55;
|
|
120
|
-
export const RUN_SNAP_CURSOR_COLOR = '#22c55e';
|
|
121
|
-
export function runSectionHalfSizeM(nominalInches) {
|
|
122
|
-
return (nominalInches * 0.0254) / 2;
|
|
123
|
-
}
|
|
124
|
-
export function snapRunValue(value, step) {
|
|
125
|
-
if (step <= 0)
|
|
126
|
-
return value;
|
|
127
|
-
return Math.round(value / step) * step;
|
|
128
|
-
}
|
|
129
|
-
export function runDistanceSquared(a, b) {
|
|
130
|
-
const dx = a[0] - b[0];
|
|
131
|
-
const dy = a[1] - b[1];
|
|
132
|
-
const dz = a[2] - b[2];
|
|
133
|
-
return dx * dx + dy * dy + dz * dz;
|
|
134
|
-
}
|
|
135
|
-
export function projectRunToAngleLock(from, raw, sourceDirection = null) {
|
|
136
|
-
const dx = raw[0] - from[0];
|
|
137
|
-
const dz = raw[2] - from[2];
|
|
138
|
-
const length = Math.hypot(dx, dz);
|
|
139
|
-
if (length < 1e-4)
|
|
140
|
-
return [...from];
|
|
141
|
-
if (!sourceDirection) {
|
|
142
|
-
const angle = Math.round(Math.atan2(dz, dx) / ANGLE_STEP_RAD) * ANGLE_STEP_RAD;
|
|
143
|
-
const distance = Math.max(0, dx * Math.cos(angle) + dz * Math.sin(angle));
|
|
144
|
-
return [from[0] + Math.cos(angle) * distance, from[1], from[2] + Math.sin(angle) * distance];
|
|
145
|
-
}
|
|
146
|
-
const candidates = runHorizontalDirectionCandidates(sourceDirection);
|
|
147
|
-
let winner = candidates[0];
|
|
148
|
-
let winningProjection = Number.NEGATIVE_INFINITY;
|
|
149
|
-
for (const candidate of candidates) {
|
|
150
|
-
const projection = dx * candidate[0] + dz * candidate[2];
|
|
151
|
-
if (projection > winningProjection) {
|
|
152
|
-
winner = candidate;
|
|
153
|
-
winningProjection = projection;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
const distance = Math.max(0, winningProjection);
|
|
157
|
-
return [from[0] + winner[0] * distance, from[1], from[2] + winner[2] * distance];
|
|
158
|
-
}
|
|
159
|
-
function dotRunVector(a, b) {
|
|
160
|
-
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
161
|
-
}
|
|
162
|
-
function normalizedRunVector(vector) {
|
|
163
|
-
const length = Math.hypot(vector[0], vector[1], vector[2]);
|
|
164
|
-
return length < 1e-9 ? null : [vector[0] / length, vector[1] / length, vector[2] / length];
|
|
165
|
-
}
|
|
166
|
-
export function snapRunLength(from, point, step) {
|
|
167
|
-
const delta = [point[0] - from[0], point[1] - from[1], point[2] - from[2]];
|
|
168
|
-
const length = Math.hypot(...delta);
|
|
169
|
-
if (step <= 0 || length < 1e-9)
|
|
170
|
-
return point;
|
|
171
|
-
const scale = snapRunValue(length, step) / length;
|
|
172
|
-
return [from[0] + delta[0] * scale, from[1] + delta[1] * scale, from[2] + delta[2] * scale];
|
|
173
|
-
}
|
|
174
|
-
export function projectRunToDirection(from, raw, direction) {
|
|
175
|
-
const distance = Math.max(0, dotRun([raw[0] - from[0], raw[1] - from[1], raw[2] - from[2]], direction));
|
|
176
|
-
return [
|
|
177
|
-
from[0] + direction[0] * distance,
|
|
178
|
-
from[1] + direction[1] * distance,
|
|
179
|
-
from[2] + direction[2] * distance,
|
|
180
|
-
];
|
|
181
|
-
}
|
|
182
|
-
export function projectRunToCameraDirection(from, ray, sourceDirection, minimumDistance, gridStep, candidates = run3DDirectionCandidates(sourceDirection), surfaceFrame, screen) {
|
|
183
|
-
const rayDirection = normalizedRunVector(ray.direction);
|
|
184
|
-
if (!rayDirection)
|
|
185
|
-
return null;
|
|
186
|
-
const fromRayOrigin = [
|
|
187
|
-
ray.origin[0] - from[0],
|
|
188
|
-
ray.origin[1] - from[1],
|
|
189
|
-
ray.origin[2] - from[2],
|
|
190
|
-
];
|
|
191
|
-
let winner = null;
|
|
192
|
-
let winningAim = Number.NEGATIVE_INFINITY;
|
|
193
|
-
const projectedCandidates = [];
|
|
194
|
-
const scores = [];
|
|
195
|
-
for (const direction of candidates) {
|
|
196
|
-
const parallel = dotRunVector(rayDirection, direction);
|
|
197
|
-
const denominator = 1 - parallel * parallel;
|
|
198
|
-
const projectedDistance = Math.abs(denominator) < 1e-9
|
|
199
|
-
? minimumDistance
|
|
200
|
-
: (dotRunVector(fromRayOrigin, direction) -
|
|
201
|
-
parallel * dotRunVector(fromRayOrigin, rayDirection)) /
|
|
202
|
-
denominator;
|
|
203
|
-
const distance = Math.max(minimumDistance, snapRunValue(Math.max(projectedDistance, minimumDistance), gridStep));
|
|
204
|
-
const point = [
|
|
205
|
-
from[0] + direction[0] * distance,
|
|
206
|
-
from[1] + direction[1] * distance,
|
|
207
|
-
from[2] + direction[2] * distance,
|
|
208
|
-
];
|
|
209
|
-
if (surfaceFrame &&
|
|
210
|
-
runDistanceSquared(point, projectRunPointToSurface(point, surfaceFrame)) > 1e-8) {
|
|
211
|
-
continue;
|
|
212
|
-
}
|
|
213
|
-
const aim = normalizedRunVector([
|
|
214
|
-
point[0] - ray.origin[0],
|
|
215
|
-
point[1] - ray.origin[1],
|
|
216
|
-
point[2] - ray.origin[2],
|
|
217
|
-
]);
|
|
218
|
-
if (!aim)
|
|
219
|
-
continue;
|
|
220
|
-
if (screen) {
|
|
221
|
-
const origin = screen.project(from);
|
|
222
|
-
const tip = screen.project(from.map((value, i) => value + direction[i]));
|
|
223
|
-
scores.push(origin && tip ? screenDirectionScore(origin, tip, screen.pointer) : Infinity);
|
|
224
|
-
projectedCandidates.push({ point, direction });
|
|
225
|
-
}
|
|
226
|
-
const aimDot = dotRunVector(rayDirection, aim);
|
|
227
|
-
if (aimDot > winningAim) {
|
|
228
|
-
winningAim = aimDot;
|
|
229
|
-
winner = { point, direction };
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
if (screen) {
|
|
233
|
-
const previous = projectedCandidates.findIndex((candidate) => screen.previous && dotRunVector(candidate.direction, screen.previous) > 0.9999);
|
|
234
|
-
return projectedCandidates[chooseScreenDirection(scores, previous)] ?? null;
|
|
235
|
-
}
|
|
236
|
-
return winner;
|
|
237
|
-
}
|
|
238
|
-
export function stepNominalRunSize(sizes, current, direction) {
|
|
239
|
-
let nearest = 0;
|
|
240
|
-
for (let index = 1; index < sizes.length; index++) {
|
|
241
|
-
if (Math.abs(sizes[index] - current) < Math.abs(sizes[nearest] - current))
|
|
242
|
-
nearest = index;
|
|
243
|
-
}
|
|
244
|
-
return sizes[Math.min(sizes.length - 1, Math.max(0, nearest + direction))] ?? current;
|
|
245
|
-
}
|
|
246
|
-
function wallSurfaceBounds(hostId) {
|
|
247
|
-
const wall = useScene.getState().nodes[hostId];
|
|
248
|
-
if (wall?.type !== 'wall') {
|
|
249
|
-
return { minU: 0, maxU: 0, minV: 0, maxV: 0 };
|
|
250
|
-
}
|
|
251
|
-
return {
|
|
252
|
-
minU: 0,
|
|
253
|
-
maxU: Math.hypot(wall.end[0] - wall.start[0], wall.end[1] - wall.start[1]),
|
|
254
|
-
minV: 0,
|
|
255
|
-
maxV: Math.max(0, wall.height ?? 0),
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
function stableWallFrame(frame, hostId, activeLevelId) {
|
|
259
|
-
const wall = useScene.getState().nodes[hostId];
|
|
260
|
-
if (wall?.type !== 'wall')
|
|
261
|
-
return frame;
|
|
262
|
-
const origin = new Vector3(wall.start[0], 0, wall.start[1]);
|
|
263
|
-
const ownerLevel = wall.parentId ? sceneRegistry.nodes.get(wall.parentId) : null;
|
|
264
|
-
const activeLevel = activeLevelId ? sceneRegistry.nodes.get(activeLevelId) : null;
|
|
265
|
-
if (ownerLevel)
|
|
266
|
-
ownerLevel.localToWorld(origin);
|
|
267
|
-
if (activeLevel)
|
|
268
|
-
activeLevel.worldToLocal(origin);
|
|
269
|
-
return {
|
|
270
|
-
...frame,
|
|
271
|
-
origin: projectRunPointToSurface(origin.toArray(), frame),
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
function publishRunSurface(target, point, activeLevelId) {
|
|
275
|
-
if (!target) {
|
|
276
|
-
clearPlacementSurface();
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
const building = activeLevelId ? sceneRegistry.nodes.get(activeLevelId) : null;
|
|
280
|
-
const worldPoint = new Vector3(...point);
|
|
281
|
-
const worldAnchor = new Vector3(...target.frame.origin);
|
|
282
|
-
const worldNormalPoint = new Vector3(target.frame.origin[0] + target.frame.normal[0], target.frame.origin[1] + target.frame.normal[1], target.frame.origin[2] + target.frame.normal[2]);
|
|
283
|
-
if (building) {
|
|
284
|
-
building.localToWorld(worldPoint);
|
|
285
|
-
building.localToWorld(worldAnchor);
|
|
286
|
-
building.localToWorld(worldNormalPoint);
|
|
287
|
-
}
|
|
288
|
-
const worldNormal = worldNormalPoint.sub(worldAnchor).normalize();
|
|
289
|
-
publishPlacementSurface(worldPoint, worldNormal, 'fixed-plane', worldAnchor);
|
|
290
|
-
}
|
|
291
|
-
function surfacePointFromEvent(event, activeLevelId) {
|
|
292
|
-
const source = event.surfaceLocalPosition ?? event.localPosition;
|
|
293
|
-
const point = [source[0], source[1], source[2]];
|
|
294
|
-
const frame = createRunSurfaceFrame(point, event.surfaceNormal ?? UP);
|
|
295
|
-
const planeDistance = dotRun(point, frame.normal);
|
|
296
|
-
frame.origin = frame.normal.map((value) => value * planeDistance);
|
|
297
|
-
const floorLevelId = event.surfaceHit?.levelId ?? activeLevelId;
|
|
298
|
-
const wallNode = event.surfaceHit?.hostId
|
|
299
|
-
? useScene.getState().nodes[event.surfaceHit.hostId]
|
|
300
|
-
: undefined;
|
|
301
|
-
// The selected level can legitimately remain on the ground floor while the
|
|
302
|
-
// cursor is over a wall on another storey. Resolve the wall's owning level
|
|
303
|
-
// from the hit node so the wall target cannot be downgraded to a floor target.
|
|
304
|
-
const wallLevelId = wallNode?.type === 'wall' ? wallNode.parentId : undefined;
|
|
305
|
-
const target = event.surfaceHit?.kind === 'wall' && event.surfaceHit.face === 'side' && wallLevelId
|
|
306
|
-
? {
|
|
307
|
-
kind: 'wall',
|
|
308
|
-
levelId: wallLevelId,
|
|
309
|
-
hostId: event.surfaceHit.hostId,
|
|
310
|
-
side: event.surfaceHit.side ?? 'front',
|
|
311
|
-
frame: stableWallFrame(frame, event.surfaceHit.hostId, activeLevelId),
|
|
312
|
-
bounds: wallSurfaceBounds(event.surfaceHit.hostId),
|
|
313
|
-
}
|
|
314
|
-
: floorLevelId
|
|
315
|
-
? {
|
|
316
|
-
kind: event.surfaceHit?.kind === 'ceiling' || frame.normal[1] < -0.98
|
|
317
|
-
? 'ceiling'
|
|
318
|
-
: Math.abs(frame.normal[1]) > 0.98
|
|
319
|
-
? 'floor'
|
|
320
|
-
: 'surface',
|
|
321
|
-
hostId: event.surfaceHit?.hostId,
|
|
322
|
-
levelId: floorLevelId,
|
|
323
|
-
frame,
|
|
324
|
-
}
|
|
325
|
-
: null;
|
|
326
|
-
return {
|
|
327
|
-
point,
|
|
328
|
-
frame: target?.frame ?? frame,
|
|
329
|
-
isHorizontal: event.surfaceNormal == null || Math.abs(frame.normal[1]) > 0.98,
|
|
330
|
-
target,
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
export function useDistributionRunTool(config) {
|
|
334
|
-
const { camera, gl } = useThree();
|
|
335
|
-
const initialStartRef = useRef(config.initialStart ? [...config.initialStart] : null);
|
|
336
|
-
const initialConnectionRef = useRef(config.initialConnection ?? { port: null, body: null });
|
|
337
|
-
const [start, setStart] = useState(initialStartRef.current);
|
|
338
|
-
const [cursor, setCursor] = useState(initialStartRef.current);
|
|
339
|
-
const [snapTarget, setSnapTarget] = useState(null);
|
|
340
|
-
const [snapScreen, setSnapScreen] = useState(null);
|
|
341
|
-
const [endConnection, setEndConnection] = useState({
|
|
342
|
-
port: null,
|
|
343
|
-
body: null,
|
|
344
|
-
});
|
|
345
|
-
const [altActive, setAltActive] = useState(false);
|
|
346
|
-
const [directionMode, setDirectionMode] = useState('free');
|
|
347
|
-
const [lengthInput, setLengthInput] = useState('');
|
|
348
|
-
const [validationMessage, setValidationMessage] = useState(null);
|
|
349
|
-
const configRef = useRef(config);
|
|
350
|
-
configRef.current = config;
|
|
351
|
-
const startRef = useRef(start);
|
|
352
|
-
startRef.current = start;
|
|
353
|
-
const startConnectionRef = useRef(initialConnectionRef.current);
|
|
354
|
-
const altAnchorRef = useRef(null);
|
|
355
|
-
const lastPointerRef = useRef(null);
|
|
356
|
-
const refreshCursorRef = useRef(() => { });
|
|
357
|
-
const lastClientYRef = useRef(null);
|
|
358
|
-
const lastResolvedRef = useRef(null);
|
|
359
|
-
const lockedWallTargetRef = useRef(null);
|
|
360
|
-
const forcedDirectionRef = useRef(null);
|
|
361
|
-
const hoveredDirectionRef = useRef(null);
|
|
362
|
-
const lengthInputRef = useRef('');
|
|
363
|
-
useEffect(() => {
|
|
364
|
-
if (!config.active)
|
|
365
|
-
return;
|
|
366
|
-
const toolName = config.toolName;
|
|
367
|
-
useInteractionScope.getState().begin({ kind: 'drafting', tool: toolName });
|
|
368
|
-
return () => {
|
|
369
|
-
useInteractionScope
|
|
370
|
-
.getState()
|
|
371
|
-
.endIf((scope) => scope.kind === 'drafting' && scope.tool === toolName);
|
|
372
|
-
clearPlacementSurface();
|
|
373
|
-
};
|
|
374
|
-
}, [config.active, config.toolName]);
|
|
375
|
-
const refreshCursor = useCallback(() => refreshCursorRef.current(), []);
|
|
376
|
-
const updateLengthInput = useCallback((value) => {
|
|
377
|
-
const normalized = value.replace(',', '.').replace(/[^0-9.]/g, '');
|
|
378
|
-
const firstDot = normalized.indexOf('.');
|
|
379
|
-
const cleaned = firstDot < 0
|
|
380
|
-
? normalized
|
|
381
|
-
: `${normalized.slice(0, firstDot + 1)}${normalized.slice(firstDot + 1).replace(/\./g, '')}`;
|
|
382
|
-
lengthInputRef.current = cleaned.slice(0, 12);
|
|
383
|
-
setLengthInput(lengthInputRef.current);
|
|
384
|
-
refreshCursorRef.current();
|
|
385
|
-
}, []);
|
|
386
|
-
useEffect(() => {
|
|
387
|
-
if (!config.active)
|
|
388
|
-
return;
|
|
389
|
-
const applyTypedLength = (resolved) => {
|
|
390
|
-
const currentStart = startRef.current;
|
|
391
|
-
const typed = Number.parseFloat(lengthInputRef.current);
|
|
392
|
-
if (!currentStart ||
|
|
393
|
-
!Number.isFinite(typed) ||
|
|
394
|
-
typed <= 0 ||
|
|
395
|
-
resolved.port ||
|
|
396
|
-
resolved.body) {
|
|
397
|
-
return resolved;
|
|
398
|
-
}
|
|
399
|
-
const direction = normalizedRunVector([
|
|
400
|
-
resolved.point[0] - currentStart[0],
|
|
401
|
-
resolved.point[1] - currentStart[1],
|
|
402
|
-
resolved.point[2] - currentStart[2],
|
|
403
|
-
]);
|
|
404
|
-
if (!direction)
|
|
405
|
-
return resolved;
|
|
406
|
-
return {
|
|
407
|
-
...resolved,
|
|
408
|
-
point: [
|
|
409
|
-
currentStart[0] + direction[0] * typed,
|
|
410
|
-
currentStart[1] + direction[1] * typed,
|
|
411
|
-
currentStart[2] + direction[2] * typed,
|
|
412
|
-
],
|
|
413
|
-
snapped: null,
|
|
414
|
-
directionMode: resolved.directionMode,
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
|
-
const resolvePoint = (event) => {
|
|
418
|
-
const adapter = configRef.current;
|
|
419
|
-
const hit = surfacePointFromEvent(event, adapter.levelId);
|
|
420
|
-
const currentStart = startRef.current;
|
|
421
|
-
const previous = lastResolvedRef.current;
|
|
422
|
-
const lockedWallTarget = currentStart ? lockedWallTargetRef.current : null;
|
|
423
|
-
const lockedWallHit = lockedWallTarget && isSameRunWallSurface(lockedWallTarget, event.surfaceHit);
|
|
424
|
-
const working = lockedWallTarget
|
|
425
|
-
? {
|
|
426
|
-
...lockedWallTarget.frame,
|
|
427
|
-
origin: lockedWallTarget.frame.origin.map((value, index) => value +
|
|
428
|
-
lockedWallTarget.frame.normal[index] *
|
|
429
|
-
(adapter.surfaceClearance?.(lockedWallTarget) ?? 0)),
|
|
430
|
-
}
|
|
431
|
-
: !event.surfaceHit && previous?.surfaceTarget?.kind === 'wall' && currentStart
|
|
432
|
-
? createRunSurfaceFrame(currentStart, UP)
|
|
433
|
-
: (previous?.frame ?? (currentStart ? createRunSurfaceFrame(currentStart) : null));
|
|
434
|
-
const hasSurface = !!event.surfaceHit || !working || !event.localRay;
|
|
435
|
-
const target = lockedWallTarget ?? (hasSurface ? hit.target : null);
|
|
436
|
-
const hitForCursor = lockedWallTarget
|
|
437
|
-
? lockedWallHit
|
|
438
|
-
? { point: hit.point, frame: lockedWallTarget.frame }
|
|
439
|
-
: null
|
|
440
|
-
: hasSurface
|
|
441
|
-
? { point: hit.point, frame: hit.frame }
|
|
442
|
-
: null;
|
|
443
|
-
const resolved = resolveRunCursorPlane({
|
|
444
|
-
hit: hitForCursor,
|
|
445
|
-
working,
|
|
446
|
-
ray: event.localRay,
|
|
447
|
-
fallback: previous?.point ?? currentStart ?? hit.point,
|
|
448
|
-
clearance: adapter.surfaceClearance?.(target) ?? 0,
|
|
449
|
-
});
|
|
450
|
-
const bypass = event.nativeEvent?.altKey === true;
|
|
451
|
-
const gridStep = !bypass && isGridSnapActive() ? useEditor.getState().gridSnapStep : 0;
|
|
452
|
-
const angleLocked = !bypass && (isAngleSnapActive() || isGridSnapActive());
|
|
453
|
-
let point = currentStart
|
|
454
|
-
? resolved.point
|
|
455
|
-
: snapRunPointToSurface(resolved.point, resolved.frame, gridStep);
|
|
456
|
-
const forcedDirection = forcedDirectionRef.current;
|
|
457
|
-
if (currentStart && forcedDirection) {
|
|
458
|
-
point = projectRunToDirection(currentStart, point, forcedDirection);
|
|
459
|
-
}
|
|
460
|
-
if (currentStart && angleLocked && !forcedDirection) {
|
|
461
|
-
const from = projectRunPointToSurface(currentStart, resolved.frame);
|
|
462
|
-
if (runDistanceSquared(from, currentStart) < 1e-6) {
|
|
463
|
-
point = projectRunToSurfaceAngleLock(currentStart, point, resolved.frame);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
if (currentStart && gridStep > 0) {
|
|
467
|
-
point = snapRunLength(currentStart, point, gridStep);
|
|
468
|
-
}
|
|
469
|
-
const sample = { frame: resolved.frame, surfaceTarget: target };
|
|
470
|
-
const native = (event.nativeEvent ?? {});
|
|
471
|
-
const screenProjection = getGridEventScreenProjection(event);
|
|
472
|
-
const pointer = screenProjection?.pointer ?? [native.clientX ?? NaN, native.clientY ?? NaN];
|
|
473
|
-
const rect = gl.domElement.getBoundingClientRect();
|
|
474
|
-
const level = adapter.levelId ? sceneRegistry.nodes.get(adapter.levelId) : null;
|
|
475
|
-
const origin = camera.getWorldPosition(new Vector3());
|
|
476
|
-
const projectConnection = (candidate) => {
|
|
477
|
-
if (screenProjection) {
|
|
478
|
-
const [a, b, c, d, e, f] = screenProjection.localToScreen;
|
|
479
|
-
return {
|
|
480
|
-
x: a * candidate[0] + c * candidate[2] + e,
|
|
481
|
-
y: b * candidate[0] + d * candidate[2] + f,
|
|
482
|
-
depth: 0,
|
|
483
|
-
};
|
|
484
|
-
}
|
|
485
|
-
const world = new Vector3(...candidate);
|
|
486
|
-
if (level)
|
|
487
|
-
level.localToWorld(world);
|
|
488
|
-
const projected = world.clone().project(camera);
|
|
489
|
-
if (projected.z < -1 || projected.z > 1)
|
|
490
|
-
return null;
|
|
491
|
-
if (event.surfaceHit &&
|
|
492
|
-
world.distanceTo(origin) > new Vector3(...event.position).distanceTo(origin) + 0.03)
|
|
493
|
-
return null;
|
|
494
|
-
return {
|
|
495
|
-
x: rect.left + ((projected.x + 1) * rect.width) / 2,
|
|
496
|
-
y: rect.top + ((1 - projected.y) * rect.height) / 2,
|
|
497
|
-
depth: world.distanceTo(origin),
|
|
498
|
-
};
|
|
499
|
-
};
|
|
500
|
-
const acceptsConnection = (candidate) => {
|
|
501
|
-
const screen = projectConnection(candidate);
|
|
502
|
-
return !!screen && Math.hypot(screen.x - pointer[0], screen.y - pointer[1]) <= 12;
|
|
503
|
-
};
|
|
504
|
-
const resolveConnection = (candidate) => {
|
|
505
|
-
if (bypass || !(isGridSnapActive() || isMagneticSnapActive() || isAngleSnapActive()))
|
|
506
|
-
return null;
|
|
507
|
-
const source = startConnectionRef.current.port;
|
|
508
|
-
const hit = findScreenPort(adapter.getPorts(), pointer, projectConnection, source);
|
|
509
|
-
if (hit) {
|
|
510
|
-
return {
|
|
511
|
-
frame: createRunSurfaceFrame([...hit.port.position]),
|
|
512
|
-
surfaceTarget: null,
|
|
513
|
-
point: [...hit.port.position],
|
|
514
|
-
snapped: [...hit.port.position],
|
|
515
|
-
snapScreen: hit.screen,
|
|
516
|
-
directionMode: 'snap',
|
|
517
|
-
port: hit.port,
|
|
518
|
-
body: null,
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
const body = adapter.findBody(candidate, target);
|
|
522
|
-
if (body && acceptsConnection(body.point) && body.nodeId !== source?.nodeId) {
|
|
523
|
-
return {
|
|
524
|
-
...sample,
|
|
525
|
-
point: body.point,
|
|
526
|
-
snapped: body.point,
|
|
527
|
-
directionMode: 'snap',
|
|
528
|
-
port: null,
|
|
529
|
-
body,
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
return null;
|
|
533
|
-
};
|
|
534
|
-
const connection = resolveConnection(resolved.point);
|
|
535
|
-
if (connection)
|
|
536
|
-
return connection;
|
|
537
|
-
// Rank displayed directions before a surface projection discards height.
|
|
538
|
-
if (currentStart && event.localRay && !bypass && (forcedDirection || angleLocked)) {
|
|
539
|
-
const source = startConnectionRef.current.port?.direction ?? null;
|
|
540
|
-
const candidates = forcedDirection
|
|
541
|
-
? [forcedDirection]
|
|
542
|
-
: source
|
|
543
|
-
? run3DDirectionCandidates(source)
|
|
544
|
-
: runHorizontalDirectionCandidates(null);
|
|
545
|
-
const directionHit = projectRunToCameraDirection(currentStart, event.localRay, source ?? X_AXIS, adapter.minimumSegmentLength ?? 0.05, gridStep, candidates, (target?.kind === 'wall' || target?.kind === 'ceiling') && !forcedDirection
|
|
546
|
-
? resolved.frame
|
|
547
|
-
: undefined, !forcedDirection && event.nativeEvent
|
|
548
|
-
? {
|
|
549
|
-
project: (candidate) => {
|
|
550
|
-
const level = adapter.levelId ? sceneRegistry.nodes.get(adapter.levelId) : null;
|
|
551
|
-
const world = new Vector3(...candidate);
|
|
552
|
-
if (level)
|
|
553
|
-
level.localToWorld(world);
|
|
554
|
-
world.project(camera);
|
|
555
|
-
if (world.z < -1 || world.z > 1)
|
|
556
|
-
return null;
|
|
557
|
-
const rect = gl.domElement.getBoundingClientRect();
|
|
558
|
-
return [
|
|
559
|
-
rect.left + ((world.x + 1) * rect.width) / 2,
|
|
560
|
-
rect.top + ((1 - world.y) * rect.height) / 2,
|
|
561
|
-
];
|
|
562
|
-
},
|
|
563
|
-
pointer: [event.nativeEvent.clientX, event.nativeEvent.clientY],
|
|
564
|
-
previous: hoveredDirectionRef.current,
|
|
565
|
-
}
|
|
566
|
-
: undefined);
|
|
567
|
-
if (directionHit) {
|
|
568
|
-
hoveredDirectionRef.current = directionHit.direction;
|
|
569
|
-
const directionConnection = resolveConnection(directionHit.point);
|
|
570
|
-
if (directionConnection)
|
|
571
|
-
return directionConnection;
|
|
572
|
-
return {
|
|
573
|
-
point: Math.abs(directionHit.direction[1]) < 1e-6 && target?.kind !== 'ceiling'
|
|
574
|
-
? (adapter.resolveFreeEnd?.(currentStart, directionHit.point, startConnectionRef.current) ?? directionHit.point)
|
|
575
|
-
: directionHit.point,
|
|
576
|
-
frame: event.surfaceHit && !forcedDirection
|
|
577
|
-
? resolved.frame
|
|
578
|
-
: createRunSurfaceFrame(currentStart),
|
|
579
|
-
surfaceTarget: forcedDirection ||
|
|
580
|
-
(Math.abs(directionHit.direction[1]) > 1e-6 && target?.kind === 'floor')
|
|
581
|
-
? null
|
|
582
|
-
: target,
|
|
583
|
-
snapped: null,
|
|
584
|
-
directionMode: 'angle',
|
|
585
|
-
port: null,
|
|
586
|
-
body: null,
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
if (currentStart && target?.kind !== 'ceiling' && Math.abs(resolved.frame.normal[1]) > 0.98) {
|
|
591
|
-
point = adapter.resolveFreeEnd?.(currentStart, point, startConnectionRef.current) ?? point;
|
|
592
|
-
}
|
|
593
|
-
return {
|
|
594
|
-
...sample,
|
|
595
|
-
point,
|
|
596
|
-
snapped: null,
|
|
597
|
-
directionMode: angleLocked ? 'angle' : 'free',
|
|
598
|
-
port: null,
|
|
599
|
-
body: null,
|
|
600
|
-
};
|
|
601
|
-
};
|
|
602
|
-
const resolveVerticalPoint = (clientY) => {
|
|
603
|
-
const anchor = altAnchorRef.current;
|
|
604
|
-
const currentStart = startRef.current;
|
|
605
|
-
if (!anchor || !currentStart)
|
|
606
|
-
return null;
|
|
607
|
-
const step = isGridSnapActive() ? useEditor.getState().gridSnapStep : 0;
|
|
608
|
-
const delta = snapRunValue((anchor.clientY - clientY) / ALT_PIXELS_PER_METER, step);
|
|
609
|
-
const y = anchor.baseY + delta;
|
|
610
|
-
return [currentStart[0], y, currentStart[2]];
|
|
611
|
-
};
|
|
612
|
-
const updateCursor = (resolved) => {
|
|
613
|
-
if (!resolved.frame && lastResolvedRef.current?.frame)
|
|
614
|
-
resolved = {
|
|
615
|
-
...resolved,
|
|
616
|
-
frame: { ...lastResolvedRef.current.frame, origin: resolved.point },
|
|
617
|
-
surfaceTarget: lockedWallTargetRef.current,
|
|
618
|
-
};
|
|
619
|
-
lastResolvedRef.current = resolved;
|
|
620
|
-
const currentStart = startRef.current;
|
|
621
|
-
const minimumLength = configRef.current.minimumSegmentLength ?? 0.05;
|
|
622
|
-
const length = currentStart
|
|
623
|
-
? Math.hypot(resolved.point[0] - currentStart[0], resolved.point[1] - currentStart[1], resolved.point[2] - currentStart[2])
|
|
624
|
-
: 0;
|
|
625
|
-
const typed = lengthInputRef.current;
|
|
626
|
-
setValidationMessage(currentStart &&
|
|
627
|
-
typed &&
|
|
628
|
-
(!Number.isFinite(Number.parseFloat(typed)) || Number.parseFloat(typed) <= 0)
|
|
629
|
-
? 'Enter a positive length'
|
|
630
|
-
: currentStart && length < minimumLength
|
|
631
|
-
? `Run must be at least ${minimumLength.toFixed(2)} m`
|
|
632
|
-
: null);
|
|
633
|
-
setCursor(resolved.point);
|
|
634
|
-
setSnapTarget(resolved.snapped);
|
|
635
|
-
setSnapScreen(resolved.snapScreen ?? null);
|
|
636
|
-
setEndConnection({
|
|
637
|
-
port: resolved.port,
|
|
638
|
-
body: resolved.port ? null : resolved.body,
|
|
639
|
-
});
|
|
640
|
-
setDirectionMode(resolved.directionMode);
|
|
641
|
-
if (resolved.frame)
|
|
642
|
-
publishRunSurface({
|
|
643
|
-
kind: 'surface',
|
|
644
|
-
levelId: configRef.current.levelId,
|
|
645
|
-
frame: resolved.frame,
|
|
646
|
-
}, resolved.point, configRef.current.levelId);
|
|
647
|
-
};
|
|
648
|
-
const commit = (end, connection) => {
|
|
649
|
-
const currentStart = startRef.current;
|
|
650
|
-
if (!currentStart)
|
|
651
|
-
return;
|
|
652
|
-
if (lengthInputRef.current && !(Number(lengthInputRef.current) > 0))
|
|
653
|
-
return;
|
|
654
|
-
const minimumLength = configRef.current.minimumSegmentLength ?? 0.05;
|
|
655
|
-
const length = Math.hypot(end[0] - currentStart[0], end[1] - currentStart[1], end[2] - currentStart[2]);
|
|
656
|
-
if (length < minimumLength) {
|
|
657
|
-
return;
|
|
658
|
-
}
|
|
659
|
-
const capturedTarget = lastResolvedRef.current?.surfaceTarget ?? null;
|
|
660
|
-
const clearance = configRef.current.surfaceClearance?.(capturedTarget) ?? 0;
|
|
661
|
-
const surfaceTarget = capturedTarget?.kind === 'wall' &&
|
|
662
|
-
[currentStart, end].some((point) => {
|
|
663
|
-
const projected = projectRunPointToSurface(point, capturedTarget.frame);
|
|
664
|
-
return Math.abs(Math.sqrt(runDistanceSquared(point, projected)) - clearance) > 1e-4;
|
|
665
|
-
})
|
|
666
|
-
? null
|
|
667
|
-
: capturedTarget;
|
|
668
|
-
const result = configRef.current.commit({
|
|
669
|
-
start: currentStart,
|
|
670
|
-
end,
|
|
671
|
-
startConnection: startConnectionRef.current,
|
|
672
|
-
endConnection: connection,
|
|
673
|
-
surfaceTarget,
|
|
674
|
-
});
|
|
675
|
-
if (!result) {
|
|
676
|
-
setValidationMessage('Fitting clearance is too small for this connection');
|
|
677
|
-
return;
|
|
678
|
-
}
|
|
679
|
-
const lockedWallTarget = lockedWallTargetRef.current;
|
|
680
|
-
if (lockedWallTarget) {
|
|
681
|
-
const offset = result.nextStart.map((value, index) => value - lockedWallTarget.frame.origin[index]);
|
|
682
|
-
const clearance = configRef.current.surfaceClearance?.(lockedWallTarget) ?? 0;
|
|
683
|
-
if (Math.abs(dotRun(offset, lockedWallTarget.frame.normal) - clearance) > 1e-4) {
|
|
684
|
-
lockedWallTargetRef.current = null;
|
|
685
|
-
lastResolvedRef.current = {
|
|
686
|
-
point: result.nextStart,
|
|
687
|
-
frame: createRunSurfaceFrame(result.nextStart),
|
|
688
|
-
surfaceTarget: null,
|
|
689
|
-
snapped: null,
|
|
690
|
-
directionMode: 'free',
|
|
691
|
-
port: null,
|
|
692
|
-
body: null,
|
|
693
|
-
};
|
|
694
|
-
clearPlacementSurface();
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
triggerSFX('sfx:item-place');
|
|
698
|
-
startRef.current = result.nextStart;
|
|
699
|
-
setStart(result.nextStart);
|
|
700
|
-
setSnapTarget(null);
|
|
701
|
-
setSnapScreen(null);
|
|
702
|
-
setEndConnection({ port: null, body: null });
|
|
703
|
-
lengthInputRef.current = '';
|
|
704
|
-
setLengthInput('');
|
|
705
|
-
setValidationMessage(null);
|
|
706
|
-
startConnectionRef.current = result.nextConnection;
|
|
707
|
-
forcedDirectionRef.current = null;
|
|
708
|
-
hoveredDirectionRef.current = null;
|
|
709
|
-
altAnchorRef.current = null;
|
|
710
|
-
setAltActive(false);
|
|
711
|
-
};
|
|
712
|
-
const onMove = (event) => {
|
|
713
|
-
lastPointerRef.current = event;
|
|
714
|
-
const clientY = event.nativeEvent?.clientY;
|
|
715
|
-
if (typeof clientY === 'number')
|
|
716
|
-
lastClientYRef.current = clientY;
|
|
717
|
-
if (altAnchorRef.current && typeof clientY === 'number') {
|
|
718
|
-
const point = resolveVerticalPoint(clientY);
|
|
719
|
-
if (point) {
|
|
720
|
-
clearDrawAlignment();
|
|
721
|
-
updateCursor({
|
|
722
|
-
point,
|
|
723
|
-
snapped: null,
|
|
724
|
-
port: null,
|
|
725
|
-
body: null,
|
|
726
|
-
directionMode: 'vertical',
|
|
727
|
-
});
|
|
728
|
-
return;
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
updateCursor(applyTypedLength(resolvePoint(event)));
|
|
732
|
-
};
|
|
733
|
-
const onClick = (event) => {
|
|
734
|
-
event.nativeEvent?.stopPropagation?.();
|
|
735
|
-
const currentStart = startRef.current;
|
|
736
|
-
if (altAnchorRef.current && currentStart) {
|
|
737
|
-
const clientY = event.nativeEvent?.clientY ?? lastClientYRef.current;
|
|
738
|
-
if (typeof clientY === 'number') {
|
|
739
|
-
const point = resolveVerticalPoint(clientY);
|
|
740
|
-
if (point && Math.abs(point[1] - currentStart[1]) >= 1e-4) {
|
|
741
|
-
commit(point, { port: null, body: null });
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
return;
|
|
745
|
-
}
|
|
746
|
-
const resolved = applyTypedLength(resolvePoint(event));
|
|
747
|
-
updateCursor(resolved);
|
|
748
|
-
if (!currentStart) {
|
|
749
|
-
const connection = {
|
|
750
|
-
port: resolved.port,
|
|
751
|
-
body: resolved.port ? null : resolved.body,
|
|
752
|
-
};
|
|
753
|
-
if (shouldLockRunWallSurface(resolved.surfaceTarget, connection)) {
|
|
754
|
-
lockedWallTargetRef.current = resolved.surfaceTarget;
|
|
755
|
-
}
|
|
756
|
-
triggerSFX('sfx:grid-snap');
|
|
757
|
-
startConnectionRef.current = connection;
|
|
758
|
-
configRef.current.inheritFromConnection?.(connection);
|
|
759
|
-
startRef.current = resolved.point;
|
|
760
|
-
setStart(resolved.point);
|
|
761
|
-
setCursor(resolved.point);
|
|
762
|
-
setSnapTarget(resolved.snapped);
|
|
763
|
-
setSnapScreen(resolved.snapScreen ?? null);
|
|
764
|
-
setEndConnection({ port: null, body: null });
|
|
765
|
-
return;
|
|
766
|
-
}
|
|
767
|
-
const typedResolved = applyTypedLength(resolved);
|
|
768
|
-
commit(typedResolved.point, {
|
|
769
|
-
port: resolved.port,
|
|
770
|
-
body: resolved.port ? null : resolved.body,
|
|
771
|
-
});
|
|
772
|
-
};
|
|
773
|
-
const onKeyDown = (event) => {
|
|
774
|
-
const target = event.target;
|
|
775
|
-
const tag = target?.tagName;
|
|
776
|
-
const isLengthField = target ? target.closest('[data-run-length-input]') !== null : false;
|
|
777
|
-
if ((tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || tag === 'BUTTON') &&
|
|
778
|
-
!isLengthField)
|
|
779
|
-
return;
|
|
780
|
-
if (event.key === 'Escape' && startRef.current) {
|
|
781
|
-
event.preventDefault();
|
|
782
|
-
event.stopImmediatePropagation();
|
|
783
|
-
onCancel();
|
|
784
|
-
useEditor.getState().armToolMode({ mode: 'select' });
|
|
785
|
-
return;
|
|
786
|
-
}
|
|
787
|
-
if (event.key === 'Alt') {
|
|
788
|
-
const currentStart = startRef.current;
|
|
789
|
-
if (!currentStart || lastClientYRef.current === null || altAnchorRef.current)
|
|
790
|
-
return;
|
|
791
|
-
event.preventDefault();
|
|
792
|
-
altAnchorRef.current = {
|
|
793
|
-
clientY: lastClientYRef.current,
|
|
794
|
-
baseY: currentStart[1],
|
|
795
|
-
};
|
|
796
|
-
setAltActive(true);
|
|
797
|
-
return;
|
|
798
|
-
}
|
|
799
|
-
if (event.key === 'Tab' &&
|
|
800
|
-
startRef.current &&
|
|
801
|
-
!event.altKey &&
|
|
802
|
-
!event.metaKey &&
|
|
803
|
-
!event.ctrlKey) {
|
|
804
|
-
event.preventDefault();
|
|
805
|
-
event.stopImmediatePropagation();
|
|
806
|
-
const source = startConnectionRef.current.port?.direction;
|
|
807
|
-
const candidates = source
|
|
808
|
-
? run3DDirectionCandidates(source)
|
|
809
|
-
: runHorizontalDirectionCandidates(null);
|
|
810
|
-
const current = forcedDirectionRef.current ?? hoveredDirectionRef.current;
|
|
811
|
-
const index = candidates.findIndex((direction) => current && dotRunVector(direction, current) > 0.9999);
|
|
812
|
-
forcedDirectionRef.current =
|
|
813
|
-
candidates[(index + (event.shiftKey ? candidates.length - 1 : 1)) % candidates.length];
|
|
814
|
-
refreshCursorRef.current();
|
|
815
|
-
return;
|
|
816
|
-
}
|
|
817
|
-
if (startRef.current && isLengthField && /^[0-9.,]$/.test(event.key)) {
|
|
818
|
-
event.stopImmediatePropagation();
|
|
819
|
-
return;
|
|
820
|
-
}
|
|
821
|
-
if (startRef.current && !isLengthField && /^[0-9.,]$/.test(event.key)) {
|
|
822
|
-
event.preventDefault();
|
|
823
|
-
event.stopImmediatePropagation();
|
|
824
|
-
updateLengthInput(`${lengthInputRef.current}${event.key}`);
|
|
825
|
-
return;
|
|
826
|
-
}
|
|
827
|
-
if (startRef.current && event.key === 'Enter') {
|
|
828
|
-
event.preventDefault();
|
|
829
|
-
event.stopImmediatePropagation();
|
|
830
|
-
const resolved = lastResolvedRef.current;
|
|
831
|
-
if (resolved) {
|
|
832
|
-
const typedResolved = applyTypedLength(resolved);
|
|
833
|
-
commit(typedResolved.point, {
|
|
834
|
-
port: typedResolved.port,
|
|
835
|
-
body: typedResolved.port ? null : typedResolved.body,
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
return;
|
|
839
|
-
}
|
|
840
|
-
configRef.current.onShortcut?.(event, startRef.current);
|
|
841
|
-
};
|
|
842
|
-
const onKeyUp = (event) => {
|
|
843
|
-
if (event.key !== 'Alt' || !altAnchorRef.current)
|
|
844
|
-
return;
|
|
845
|
-
event.preventDefault();
|
|
846
|
-
altAnchorRef.current = null;
|
|
847
|
-
setAltActive(false);
|
|
848
|
-
setDirectionMode('free');
|
|
849
|
-
};
|
|
850
|
-
const onCancel = () => {
|
|
851
|
-
lockedWallTargetRef.current = null;
|
|
852
|
-
clearDrawAlignment();
|
|
853
|
-
if (!startRef.current)
|
|
854
|
-
return;
|
|
855
|
-
markToolCancelConsumed();
|
|
856
|
-
startRef.current = null;
|
|
857
|
-
setStart(null);
|
|
858
|
-
setCursor(null);
|
|
859
|
-
setSnapTarget(null);
|
|
860
|
-
setSnapScreen(null);
|
|
861
|
-
setEndConnection({ port: null, body: null });
|
|
862
|
-
lengthInputRef.current = '';
|
|
863
|
-
setLengthInput('');
|
|
864
|
-
setValidationMessage(null);
|
|
865
|
-
startConnectionRef.current = { port: null, body: null };
|
|
866
|
-
forcedDirectionRef.current = null;
|
|
867
|
-
hoveredDirectionRef.current = null;
|
|
868
|
-
lastPointerRef.current = null;
|
|
869
|
-
clearPlacementSurface();
|
|
870
|
-
lastResolvedRef.current = null;
|
|
871
|
-
altAnchorRef.current = null;
|
|
872
|
-
setAltActive(false);
|
|
873
|
-
};
|
|
874
|
-
refreshCursorRef.current = () => {
|
|
875
|
-
if (lastPointerRef.current)
|
|
876
|
-
updateCursor(applyTypedLength(resolvePoint(lastPointerRef.current)));
|
|
877
|
-
else if (lastResolvedRef.current)
|
|
878
|
-
updateCursor(applyTypedLength(lastResolvedRef.current));
|
|
879
|
-
};
|
|
880
|
-
const unsubscribeSnapping = useEditor.subscribe((state, previous) => {
|
|
881
|
-
const modeChanged = state.snappingModeByContext !== previous.snappingModeByContext;
|
|
882
|
-
if (!modeChanged && state.gridSnapStep === previous.gridSnapStep)
|
|
883
|
-
return;
|
|
884
|
-
if (modeChanged) {
|
|
885
|
-
forcedDirectionRef.current = null;
|
|
886
|
-
hoveredDirectionRef.current = null;
|
|
887
|
-
}
|
|
888
|
-
refreshCursorRef.current();
|
|
889
|
-
});
|
|
890
|
-
emitter.on('grid:click', onClick);
|
|
891
|
-
emitter.on('grid:move', onMove);
|
|
892
|
-
emitter.on('tool:cancel', onCancel);
|
|
893
|
-
window.addEventListener('keydown', onKeyDown, true);
|
|
894
|
-
window.addEventListener('keyup', onKeyUp);
|
|
895
|
-
return () => {
|
|
896
|
-
unsubscribeSnapping();
|
|
897
|
-
emitter.off('grid:click', onClick);
|
|
898
|
-
emitter.off('grid:move', onMove);
|
|
899
|
-
emitter.off('tool:cancel', onCancel);
|
|
900
|
-
window.removeEventListener('keydown', onKeyDown, true);
|
|
901
|
-
window.removeEventListener('keyup', onKeyUp);
|
|
902
|
-
altAnchorRef.current = null;
|
|
903
|
-
lastPointerRef.current = null;
|
|
904
|
-
lockedWallTargetRef.current = null;
|
|
905
|
-
refreshCursorRef.current = () => { };
|
|
906
|
-
clearPlacementSurface();
|
|
907
|
-
clearDrawAlignment();
|
|
908
|
-
};
|
|
909
|
-
}, [camera, gl, config.active, updateLengthInput]);
|
|
910
|
-
return {
|
|
911
|
-
refreshCursor,
|
|
912
|
-
start,
|
|
913
|
-
cursor,
|
|
914
|
-
snapTarget,
|
|
915
|
-
snapScreen,
|
|
916
|
-
altActive,
|
|
917
|
-
directionMode,
|
|
918
|
-
lengthInput,
|
|
919
|
-
validationMessage,
|
|
920
|
-
onLengthInputChange: updateLengthInput,
|
|
921
|
-
onDirectionSelect: (direction) => {
|
|
922
|
-
forcedDirectionRef.current = direction;
|
|
923
|
-
setDirectionMode('angle');
|
|
924
|
-
refreshCursorRef.current();
|
|
925
|
-
},
|
|
926
|
-
startConnection: startConnectionRef.current,
|
|
927
|
-
endConnection,
|
|
928
|
-
surfaceTarget: lastResolvedRef.current?.surfaceTarget ?? null,
|
|
929
|
-
};
|
|
930
|
-
}
|
|
931
|
-
export function DistributionRunCursor({ cursor, start, snapTarget, snapScreen, altActive, unit, extraParts = [], cursorRef, directionMode, startDirection, lengthInput, validationMessage, onLengthInputChange, onDirectionSelect, }) {
|
|
932
|
-
const lengthFieldRef = useRef(null);
|
|
933
|
-
useEffect(() => {
|
|
934
|
-
if (start)
|
|
935
|
-
lengthFieldRef.current?.focus();
|
|
936
|
-
}, [start]);
|
|
937
|
-
if (!cursor)
|
|
938
|
-
return null;
|
|
939
|
-
const parts = [
|
|
940
|
-
...(start
|
|
941
|
-
? [
|
|
942
|
-
{
|
|
943
|
-
key: 'length',
|
|
944
|
-
prefix: 'L',
|
|
945
|
-
value: Math.hypot(cursor[0] - start[0], cursor[1] - start[1], cursor[2] - start[2]),
|
|
946
|
-
},
|
|
947
|
-
]
|
|
948
|
-
: []),
|
|
949
|
-
{
|
|
950
|
-
key: 'x',
|
|
951
|
-
prefix: 'X',
|
|
952
|
-
value: start ? cursor[0] - start[0] : cursor[0],
|
|
953
|
-
signed: !!start,
|
|
954
|
-
},
|
|
955
|
-
{
|
|
956
|
-
key: 'y',
|
|
957
|
-
prefix: 'Y',
|
|
958
|
-
value: start ? cursor[1] - start[1] : cursor[1],
|
|
959
|
-
signed: !!start,
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
key: 'z',
|
|
963
|
-
prefix: 'Z',
|
|
964
|
-
value: start ? cursor[2] - start[2] : cursor[2],
|
|
965
|
-
signed: !!start,
|
|
966
|
-
},
|
|
967
|
-
...extraParts,
|
|
968
|
-
];
|
|
969
|
-
const primary = start ? (altActive ? 'y' : 'length') : undefined;
|
|
970
|
-
const elevated = cursor[1] > 0.001;
|
|
971
|
-
const ground = [cursor[0], 0, cursor[2]];
|
|
972
|
-
return (_jsxs(_Fragment, { children: [snapScreen && (_jsx(Html, { style: { pointerEvents: 'none' }, children: createPortal(_jsx("div", { style: {
|
|
973
|
-
position: 'fixed',
|
|
974
|
-
left: snapScreen.x,
|
|
975
|
-
top: snapScreen.y,
|
|
976
|
-
pointerEvents: 'none',
|
|
977
|
-
zIndex: 110,
|
|
978
|
-
}, children: _jsx("div", { className: "absolute h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-emerald-500 bg-emerald-500/20 ring-2 ring-background" }) }), document.body) })), start && (_jsx(RunDirectionFeedback, { cursor: cursor, mode: directionMode, snapped: !!snapTarget, sourceDirection: startDirection ?? null, start: start, onDirectionSelect: onDirectionSelect })), _jsx(CursorSphere, { color: snapTarget ? RUN_SNAP_CURSOR_COLOR : undefined, dotAtTip: elevated || undefined, height: elevated ? cursor[1] : undefined, position: elevated ? ground : cursor, ref: cursorRef }), _jsx("group", { position: cursor, children: _jsx(Html, { center: true, position: [0, 1.45, 0], style: { pointerEvents: 'none', userSelect: 'none' }, zIndexRange: [100, 0], children: _jsxs("div", { className: "flex flex-col items-center gap-1", children: [_jsx(DimensionPill, { parts: parts, primary: primary, unit: unit }), start ? (_jsxs("label", { className: "rounded-full border border-border/60 bg-background/90 px-3 py-1 text-[11px] tabular-nums text-muted-foreground shadow-sm backdrop-blur", children: ["Length:", ' ', _jsx("input", { className: "w-20 bg-transparent text-center text-foreground outline-none", "data-run-length-input": true, inputMode: "decimal", onKeyDown: (event) => {
|
|
979
|
-
if (event.key === 'Backspace' ||
|
|
980
|
-
event.key === 'Delete' ||
|
|
981
|
-
event.key === 'ArrowLeft' ||
|
|
982
|
-
event.key === 'ArrowRight') {
|
|
983
|
-
event.stopPropagation();
|
|
984
|
-
}
|
|
985
|
-
}, onChange: (event) => onLengthInputChange?.(event.target.value), onPointerDown: (event) => event.stopPropagation(), placeholder: "type a length", ref: lengthFieldRef, style: { pointerEvents: 'auto' }, type: "text", value: lengthInput ?? '' }), ' ', "m", _jsx("span", { className: "ml-2", children: "Tab: direction" })] })) : null, validationMessage ? (_jsx("div", { className: "rounded-full border border-red-500/50 bg-red-500/10 px-3 py-1 text-[11px] text-red-700 shadow-sm backdrop-blur dark:text-red-300", children: validationMessage })) : null] }) }) })] }));
|
|
986
|
-
}
|