@pascal-app/nodes 1.0.1 → 1.0.4
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/dist/block/definition.d.ts.map +1 -1
- package/dist/block/definition.js +22 -4
- package/dist/block/face-host.d.ts.map +1 -1
- package/dist/block/face-host.js +19 -2
- 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.d.ts +2 -2
- package/dist/block/geometry.d.ts.map +1 -1
- package/dist/block/geometry.js +39 -24
- package/dist/block/hosted-edit.d.ts +13 -0
- package/dist/block/hosted-edit.d.ts.map +1 -0
- package/dist/block/hosted-edit.js +230 -0
- package/dist/block/last-operation.d.ts +1 -1
- package/dist/block/last-operation.d.ts.map +1 -1
- package/dist/block/last-operation.js +6 -4
- 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-session.d.ts +2 -1
- package/dist/block/modal-session.d.ts.map +1 -1
- package/dist/block/modal-session.js +2 -2
- package/dist/block/paint.d.ts.map +1 -1
- package/dist/block/paint.js +4 -10
- package/dist/block/panel.d.ts.map +1 -1
- package/dist/block/panel.js +8 -3
- package/dist/block/selection.d.ts.map +1 -1
- package/dist/block/selection.js +83 -25
- package/dist/block/surface.d.ts +4 -0
- package/dist/block/surface.d.ts.map +1 -0
- package/dist/block/surface.js +54 -0
- package/dist/block/use-block-face-operation.d.ts +2 -2
- package/dist/block/use-block-face-operation.d.ts.map +1 -1
- package/dist/block/use-block-face-operation.js +25 -11
- package/dist/box-vent/definition.d.ts.map +1 -1
- package/dist/box-vent/definition.js +3 -5
- package/dist/box-vent/panel.d.ts.map +1 -1
- package/dist/box-vent/panel.js +5 -28
- package/dist/building/renderer.d.ts.map +1 -1
- package/dist/building/renderer.js +1 -1
- package/dist/cabinet/countertop-layout.d.ts +13 -2
- package/dist/cabinet/countertop-layout.d.ts.map +1 -1
- package/dist/cabinet/definition.d.ts.map +1 -1
- package/dist/cabinet/definition.js +4 -3
- package/dist/cabinet/floorplan.d.ts.map +1 -1
- package/dist/cabinet/floorplan.js +125 -28
- package/dist/cabinet/geometry/shared.d.ts +1 -2
- package/dist/cabinet/geometry/shared.d.ts.map +1 -1
- package/dist/cabinet/geometry/shared.js +1 -2
- package/dist/cabinet/hosted-resize.d.ts +3 -6
- package/dist/cabinet/hosted-resize.d.ts.map +1 -1
- package/dist/cabinet/hosted-resize.js +9 -153
- package/dist/cabinet/placement-snap.d.ts.map +1 -1
- package/dist/cabinet/placement-snap.js +4 -2
- package/dist/cabinet/run-layout.d.ts.map +1 -1
- package/dist/cabinet/run-layout.js +8 -5
- package/dist/cabinet/run-ops.d.ts +13 -2
- package/dist/cabinet/run-ops.d.ts.map +1 -1
- package/dist/cabinet/surfaces.d.ts +1 -0
- package/dist/cabinet/surfaces.d.ts.map +1 -1
- package/dist/cabinet/surfaces.js +13 -1
- package/dist/cabinet/tool.d.ts.map +1 -1
- package/dist/cabinet/tool.js +30 -28
- package/dist/cabinet/wall-snap.d.ts.map +1 -1
- package/dist/cabinet/wall-snap.js +8 -8
- package/dist/ceiling/boundary-editor.d.ts.map +1 -1
- package/dist/ceiling/boundary-editor.js +5 -3
- package/dist/ceiling/definition.d.ts +4 -4
- package/dist/ceiling/definition.d.ts.map +1 -1
- package/dist/ceiling/definition.js +20 -15
- package/dist/ceiling/floorplan-affordances.d.ts +84 -4
- package/dist/ceiling/floorplan-affordances.d.ts.map +1 -1
- package/dist/ceiling/floorplan-affordances.js +0 -1
- package/dist/ceiling/floorplan-move.d.ts.map +1 -1
- package/dist/ceiling/floorplan-move.js +0 -1
- 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/materials.d.ts +1 -1
- package/dist/ceiling/materials.d.ts.map +1 -1
- package/dist/ceiling/materials.js +10 -3
- package/dist/ceiling/paint.d.ts +2 -8
- package/dist/ceiling/paint.d.ts.map +1 -1
- package/dist/ceiling/paint.js +121 -24
- package/dist/ceiling/panel.d.ts.map +1 -1
- package/dist/ceiling/panel.js +40 -23
- package/dist/ceiling/renderer.d.ts.map +1 -1
- package/dist/ceiling/renderer.js +43 -6
- package/dist/chimney/definition.d.ts.map +1 -1
- package/dist/chimney/definition.js +1 -0
- package/dist/chimney/move-tool.d.ts.map +1 -1
- package/dist/chimney/move-tool.js +8 -2
- package/dist/chimney/paint.d.ts.map +1 -1
- package/dist/chimney/paint.js +3 -10
- package/dist/column/definition.d.ts.map +1 -1
- package/dist/column/definition.js +34 -5
- package/dist/column/floorplan-affordances.d.ts.map +1 -1
- package/dist/column/floorplan-affordances.js +11 -1
- package/dist/column/floorplan.d.ts +1 -1
- package/dist/column/floorplan.d.ts.map +1 -1
- package/dist/column/floorplan.js +69 -12
- package/dist/column/hosted-resize.d.ts +215 -0
- package/dist/column/hosted-resize.d.ts.map +1 -0
- package/dist/column/hosted-resize.js +9 -0
- package/dist/column/panel.d.ts.map +1 -1
- package/dist/column/panel.js +153 -149
- package/dist/column/renderer.d.ts.map +1 -1
- package/dist/column/renderer.js +29 -105
- package/dist/column/shape.d.ts +22 -0
- package/dist/column/shape.d.ts.map +1 -0
- package/dist/column/shape.js +120 -0
- package/dist/column/surface.d.ts +4 -0
- package/dist/column/surface.d.ts.map +1 -0
- package/dist/column/surface.js +73 -0
- package/dist/construction-dimension/floorplan.js +7 -3
- package/dist/cupola/definition.d.ts.map +1 -1
- package/dist/cupola/definition.js +3 -8
- package/dist/cupola/panel.d.ts.map +1 -1
- package/dist/cupola/panel.js +5 -23
- package/dist/door/definition.d.ts.map +1 -1
- package/dist/door/definition.js +52 -4
- 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 +13 -17
- package/dist/door/floorplan-affordances.d.ts.map +1 -1
- package/dist/door/floorplan-affordances.js +8 -12
- package/dist/door/floorplan-move.d.ts.map +1 -1
- package/dist/door/floorplan-move.js +3 -1
- package/dist/door/floorplan.d.ts.map +1 -1
- package/dist/door/floorplan.js +55 -21
- 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 +75 -52
- package/dist/door/paint.d.ts.map +1 -1
- package/dist/door/paint.js +3 -0
- package/dist/door/panel.d.ts.map +1 -1
- package/dist/door/panel.js +54 -308
- 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.map +1 -1
- package/dist/door/preview.js +2 -0
- package/dist/door/renderer.d.ts.map +1 -1
- package/dist/door/renderer.js +3 -2
- package/dist/door/tool.d.ts.map +1 -1
- package/dist/door/tool.js +112 -23
- package/dist/dormer/csg-geometry.d.ts.map +1 -1
- package/dist/dormer/csg-geometry.js +2 -0
- package/dist/dormer/definition.d.ts.map +1 -1
- package/dist/dormer/definition.js +1 -0
- package/dist/dormer/paint.d.ts.map +1 -1
- package/dist/dormer/paint.js +2 -5
- package/dist/dormer/panel.d.ts.map +1 -1
- package/dist/dormer/panel.js +4 -14
- package/dist/downspout/definition.d.ts.map +1 -1
- package/dist/downspout/definition.js +3 -2
- package/dist/duct-fitting/definition.d.ts.map +1 -1
- package/dist/duct-fitting/definition.js +2 -1
- package/dist/duct-fitting/geometry.d.ts.map +1 -1
- package/dist/duct-fitting/geometry.js +1 -1
- package/dist/duct-fitting/move-tool.d.ts.map +1 -1
- package/dist/duct-fitting/move-tool.js +8 -2
- package/dist/duct-segment/definition.d.ts.map +1 -1
- package/dist/duct-segment/definition.js +2 -2
- package/dist/duct-segment/geometry.d.ts.map +1 -1
- package/dist/duct-segment/geometry.js +1 -1
- package/dist/duct-segment/move-tool.d.ts.map +1 -1
- package/dist/duct-segment/move-tool.js +8 -2
- package/dist/duct-segment/tool.d.ts.map +1 -1
- package/dist/duct-segment/tool.js +11 -0
- package/dist/duct-terminal/tool.d.ts.map +1 -1
- package/dist/duct-terminal/tool.js +77 -8
- package/dist/elevator/definition.d.ts.map +1 -1
- package/dist/elevator/definition.js +3 -2
- package/dist/elevator/panel.d.ts.map +1 -1
- package/dist/elevator/panel.js +5 -27
- package/dist/elevator/parametrics.d.ts.map +1 -1
- package/dist/elevator/parametrics.js +98 -1
- package/dist/elevator/renderer.d.ts.map +1 -1
- package/dist/elevator/renderer.js +3 -4
- package/dist/eyebrow-vent/definition.d.ts.map +1 -1
- package/dist/eyebrow-vent/definition.js +3 -5
- package/dist/eyebrow-vent/paint.d.ts.map +1 -1
- package/dist/eyebrow-vent/paint.js +3 -6
- package/dist/eyebrow-vent/panel.d.ts.map +1 -1
- package/dist/eyebrow-vent/panel.js +5 -23
- 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/definition.d.ts +2 -1
- package/dist/fence/definition.d.ts.map +1 -1
- package/dist/fence/definition.js +84 -28
- package/dist/fence/drafting.d.ts +36 -0
- package/dist/fence/drafting.d.ts.map +1 -0
- package/dist/fence/drafting.js +210 -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 +84 -7
- package/dist/fence/index.d.ts +1 -0
- package/dist/fence/index.d.ts.map +1 -1
- package/dist/fence/index.js +1 -0
- 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.map +1 -1
- package/dist/fence/lift.js +5 -2
- package/dist/fence/move-tool.js +2 -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 +0 -12
- 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 +141 -31
- package/dist/fence/tool.d.ts.map +1 -1
- package/dist/fence/tool.js +257 -48
- 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 +112 -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.map +1 -1
- package/dist/guide/definition.js +1 -0
- package/dist/gutter/definition.d.ts.map +1 -1
- package/dist/gutter/definition.js +3 -2
- package/dist/hvac-equipment/tool.d.ts.map +1 -1
- package/dist/hvac-equipment/tool.js +8 -2
- package/dist/imported-mesh/definition.d.ts.map +1 -1
- package/dist/imported-mesh/definition.js +2 -0
- 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/index.d.ts +13 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -2
- 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 +2 -2
- package/dist/item/definition.d.ts.map +1 -1
- package/dist/item/definition.js +35 -4
- package/dist/item/floorplan-move.d.ts.map +1 -1
- package/dist/item/floorplan-move.js +209 -130
- package/dist/item/floorplan.d.ts +22 -0
- package/dist/item/floorplan.d.ts.map +1 -1
- package/dist/item/floorplan.js +95 -6
- package/dist/item/index.d.ts +1 -0
- package/dist/item/index.d.ts.map +1 -1
- package/dist/item/index.js +1 -0
- package/dist/item/model-loader.d.ts +2 -0
- package/dist/item/model-loader.d.ts.map +1 -1
- package/dist/item/model-loader.js +55 -23
- package/dist/item/move-tool.d.ts +1 -1
- package/dist/item/move-tool.d.ts.map +1 -1
- package/dist/item/move-tool.js +19 -11
- 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 +20 -24
- 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 +72 -40
- 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/lean-to-extension/definition.d.ts.map +1 -1
- package/dist/lean-to-extension/definition.js +1 -2
- package/dist/lean-to-extension/geometry.d.ts.map +1 -1
- package/dist/lean-to-extension/geometry.js +1 -1
- package/dist/lean-to-extension/layout.d.ts.map +1 -1
- package/dist/lean-to-extension/layout.js +2 -3
- package/dist/lean-to-extension/placement-validation.d.ts.map +1 -1
- package/dist/lean-to-extension/placement-validation.js +5 -5
- package/dist/lean-to-extension/tool.d.ts.map +1 -1
- package/dist/lean-to-extension/tool.js +5 -5
- package/dist/level/renderer.js +1 -1
- package/dist/lineset/move-tool.d.ts.map +1 -1
- package/dist/lineset/move-tool.js +8 -2
- package/dist/lineset/tool.d.ts.map +1 -1
- package/dist/lineset/tool.js +1 -0
- package/dist/liquid-line/move-tool.d.ts.map +1 -1
- package/dist/liquid-line/move-tool.js +8 -2
- package/dist/liquid-line/tool.d.ts.map +1 -1
- package/dist/liquid-line/tool.js +5 -1
- package/dist/measurement/definition.d.ts.map +1 -1
- package/dist/measurement/definition.js +2 -1
- package/dist/pipe-fitting/move-tool.d.ts.map +1 -1
- package/dist/pipe-fitting/move-tool.js +8 -2
- package/dist/pipe-segment/move-tool.d.ts.map +1 -1
- package/dist/pipe-segment/move-tool.js +8 -2
- package/dist/pipe-segment/tool.d.ts.map +1 -1
- package/dist/pipe-segment/tool.js +14 -3
- 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 +77 -8
- 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/renderer.d.ts.map +1 -1
- package/dist/procedural-item/renderer.js +272 -23
- package/dist/ridge-vent/definition.d.ts.map +1 -1
- package/dist/ridge-vent/definition.js +1 -0
- package/dist/ridge-vent/panel.d.ts.map +1 -1
- package/dist/ridge-vent/panel.js +5 -23
- package/dist/ridge-vent/renderer.d.ts.map +1 -1
- package/dist/ridge-vent/renderer.js +9 -8
- package/dist/roof/definition.d.ts.map +1 -1
- package/dist/roof/definition.js +8 -2
- package/dist/roof/floorplan.d.ts +8 -0
- package/dist/roof/floorplan.d.ts.map +1 -1
- package/dist/roof/floorplan.js +194 -18
- package/dist/roof/panel-model.d.ts +4 -0
- package/dist/roof/panel-model.d.ts.map +1 -0
- package/dist/roof/panel-model.js +155 -0
- package/dist/roof/panel.d.ts.map +1 -1
- package/dist/roof/panel.js +5 -13
- package/dist/roof/parametrics.d.ts.map +1 -1
- package/dist/roof/parametrics.js +16 -1
- package/dist/roof/renderer.d.ts.map +1 -1
- package/dist/roof/renderer.js +5 -2
- package/dist/roof-segment/definition.d.ts.map +1 -1
- package/dist/roof-segment/definition.js +1 -0
- package/dist/roof-segment/panel.d.ts.map +1 -1
- package/dist/roof-segment/panel.js +5 -24
- package/dist/roof-segment/parametrics.d.ts.map +1 -1
- package/dist/roof-segment/parametrics.js +176 -1
- package/dist/roof-segment/renderer.d.ts.map +1 -1
- package/dist/roof-segment/renderer.js +17 -8
- package/dist/scan/definition.d.ts.map +1 -1
- package/dist/scan/definition.js +1 -0
- 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/commit-opening-move.d.ts +4 -0
- package/dist/shared/commit-opening-move.d.ts.map +1 -0
- package/dist/shared/commit-opening-move.js +9 -0
- package/dist/shared/curtain-opening-limits.d.ts +14 -0
- package/dist/shared/curtain-opening-limits.d.ts.map +1 -0
- package/dist/shared/curtain-opening-limits.js +53 -0
- package/dist/shared/draft-axis-guides.d.ts +0 -6
- package/dist/shared/draft-axis-guides.d.ts.map +1 -1
- package/dist/shared/draft-axis-guides.js +1 -8
- 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 +1 -5
- package/dist/shared/hosted-resize.d.ts +12 -0
- package/dist/shared/hosted-resize.d.ts.map +1 -0
- package/dist/shared/hosted-resize.js +166 -0
- 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/move-roof-tool.js +2 -1
- 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 +41 -0
- package/dist/shared/node-batch/candidates.d.ts +7 -5
- package/dist/shared/node-batch/candidates.d.ts.map +1 -1
- package/dist/shared/node-batch/candidates.js +43 -59
- 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/system.d.ts.map +1 -1
- package/dist/shared/node-batch/system.js +17 -12
- 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 +13 -1
- package/dist/shared/opening-documentation.d.ts.map +1 -1
- package/dist/shared/opening-documentation.js +245 -59
- package/dist/shared/opening-grid-follow.d.ts +8 -0
- package/dist/shared/opening-grid-follow.d.ts.map +1 -0
- package/dist/shared/opening-grid-follow.js +12 -0
- package/dist/shared/opening-guides-runtime.d.ts.map +1 -1
- package/dist/shared/opening-guides-runtime.js +17 -14
- package/dist/shared/opening-placement-dimensions.d.ts.map +1 -1
- package/dist/shared/opening-placement-dimensions.js +3 -3
- 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 +3 -0
- package/dist/shared/opening-property-preview-host.d.ts.map +1 -0
- package/dist/shared/opening-property-preview-host.js +21 -0
- package/dist/shared/opening-property-preview.d.ts +19 -0
- package/dist/shared/opening-property-preview.d.ts.map +1 -0
- package/dist/shared/opening-property-preview.js +99 -0
- package/dist/shared/polygon-centroid-move.d.ts.map +1 -1
- package/dist/shared/polygon-centroid-move.js +4 -1
- package/dist/shared/polygon-vertex-affordance.d.ts.map +1 -1
- package/dist/shared/polygon-vertex-affordance.js +19 -15
- package/dist/shared/resting-surface-plan.d.ts +2 -1
- package/dist/shared/resting-surface-plan.d.ts.map +1 -1
- package/dist/shared/resting-surface-plan.js +29 -4
- package/dist/shared/run-hangers.d.ts.map +1 -1
- package/dist/shared/run-hangers.js +5 -4
- 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-counterparts.d.ts +12 -0
- package/dist/shared/surface-counterparts.d.ts.map +1 -0
- package/dist/shared/surface-counterparts.js +27 -0
- package/dist/shared/surface-paint.d.ts.map +1 -1
- package/dist/shared/surface-paint.js +2 -5
- package/dist/shared/swap-preview-material.d.ts +11 -0
- package/dist/shared/swap-preview-material.d.ts.map +1 -0
- package/dist/shared/swap-preview-material.js +16 -0
- package/dist/shared/system-checks.d.ts.map +1 -1
- package/dist/shared/system-checks.js +5 -3
- package/dist/shared/wall-attach-target.d.ts +4 -10
- package/dist/shared/wall-attach-target.d.ts.map +1 -1
- package/dist/shared/wall-attach-target.js +6 -63
- package/dist/shared/wall-event-from-grid.d.ts +5 -0
- package/dist/shared/wall-event-from-grid.d.ts.map +1 -0
- package/dist/shared/wall-event-from-grid.js +36 -0
- 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/shelf/definition.d.ts.map +1 -1
- package/dist/shelf/definition.js +4 -2
- package/dist/shelf/floorplan.d.ts.map +1 -1
- package/dist/shelf/floorplan.js +9 -2
- package/dist/shelf/geometry.d.ts.map +1 -1
- package/dist/shelf/geometry.js +1 -2
- package/dist/shelf/paint.d.ts.map +1 -1
- package/dist/shelf/paint.js +4 -10
- 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 +18 -0
- package/dist/site/lot-mask.d.ts.map +1 -0
- package/dist/site/lot-mask.js +35 -0
- package/dist/site/panel.d.ts +10 -0
- package/dist/site/panel.d.ts.map +1 -0
- package/dist/site/panel.js +155 -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 +158 -20
- package/dist/site/setbacks.d.ts +33 -0
- package/dist/site/setbacks.d.ts.map +1 -0
- package/dist/site/setbacks.js +204 -0
- 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 +9 -2
- 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 +9 -2
- package/dist/site/terrain-renderer.d.ts.map +1 -1
- package/dist/site/terrain-renderer.js +14 -4
- package/dist/skylight/definition.d.ts.map +1 -1
- package/dist/skylight/definition.js +1 -0
- 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.map +1 -1
- package/dist/slab/definition.js +23 -3
- 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 +176 -4
- package/dist/slab/floorplan-affordances.d.ts.map +1 -1
- package/dist/slab/floorplan-affordances.js +0 -1
- package/dist/slab/floorplan-move.d.ts.map +1 -1
- package/dist/slab/floorplan-move.js +3 -4
- 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 +186 -76
- 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 +458 -9
- package/dist/slab/panel.d.ts.map +1 -1
- package/dist/slab/panel.js +28 -9
- 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/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/tool.d.ts.map +1 -1
- package/dist/slab/tool.js +3 -3
- package/dist/solar-panel/definition.d.ts.map +1 -1
- package/dist/solar-panel/definition.js +1 -0
- package/dist/spawn/definition.d.ts.map +1 -1
- package/dist/spawn/definition.js +1 -0
- 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.map +1 -1
- package/dist/stair/definition.js +18 -37
- package/dist/stair/documentation.d.ts +1 -1
- package/dist/stair/documentation.d.ts.map +1 -1
- package/dist/stair/documentation.js +10 -17
- package/dist/stair/floorplan-affordances.d.ts.map +1 -1
- package/dist/stair/floorplan-affordances.js +9 -25
- package/dist/stair/floorplan.d.ts +1 -23
- package/dist/stair/floorplan.d.ts.map +1 -1
- package/dist/stair/floorplan.js +102 -86
- 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/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 +154 -17
- package/dist/stair/parametrics.d.ts +1 -1
- package/dist/stair/parametrics.d.ts.map +1 -1
- package/dist/stair/parametrics.js +181 -1
- 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 +259 -259
- package/dist/stair/use-stair-render-data.d.ts +317 -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.map +1 -1
- package/dist/stair-segment/definition.js +52 -10
- package/dist/stair-segment/panel.d.ts.map +1 -1
- package/dist/stair-segment/panel.js +36 -42
- 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 +94 -1
- package/dist/stair-segment/renderer.d.ts.map +1 -1
- package/dist/stair-segment/renderer.js +16 -28
- package/dist/turbine-vent/definition.d.ts.map +1 -1
- package/dist/turbine-vent/definition.js +3 -5
- package/dist/turbine-vent/paint.d.ts.map +1 -1
- package/dist/turbine-vent/paint.js +2 -5
- package/dist/turbine-vent/panel.d.ts.map +1 -1
- package/dist/turbine-vent/panel.js +5 -23
- package/dist/unit/unit-panel.d.ts.map +1 -1
- package/dist/unit/unit-panel.js +6 -1
- package/dist/wall/actions.d.ts +3 -0
- package/dist/wall/actions.d.ts.map +1 -0
- package/dist/wall/actions.js +61 -0
- package/dist/wall/construction-dimensions.js +8 -5
- package/dist/wall/contextual-dimensions.js +4 -4
- package/dist/wall/curtain-opening-frame.d.ts +14 -0
- package/dist/wall/curtain-opening-frame.d.ts.map +1 -0
- package/dist/wall/curtain-opening-frame.js +111 -0
- package/dist/wall/curtain-panel-highlight.d.ts +3 -0
- package/dist/wall/curtain-panel-highlight.d.ts.map +1 -0
- package/dist/wall/curtain-panel-highlight.js +113 -0
- package/dist/wall/curtain-wall-adapter.d.ts +3 -0
- package/dist/wall/curtain-wall-adapter.d.ts.map +1 -0
- package/dist/wall/curtain-wall-adapter.js +55 -0
- package/dist/wall/curtain-wall-floorplan.d.ts +3 -0
- package/dist/wall/curtain-wall-floorplan.d.ts.map +1 -0
- package/dist/wall/curtain-wall-floorplan.js +91 -0
- package/dist/wall/curtain-wall-geometry.d.ts +4 -0
- package/dist/wall/curtain-wall-geometry.d.ts.map +1 -0
- package/dist/wall/curtain-wall-geometry.js +226 -0
- package/dist/wall/curtain-wall-layout.d.ts +16 -0
- package/dist/wall/curtain-wall-layout.d.ts.map +1 -0
- package/dist/wall/curtain-wall-layout.js +176 -0
- package/dist/wall/curtain-wall-materials.d.ts +5 -0
- package/dist/wall/curtain-wall-materials.d.ts.map +1 -0
- package/dist/wall/curtain-wall-materials.js +55 -0
- package/dist/wall/curtain-wall-panel.d.ts +14 -0
- package/dist/wall/curtain-wall-panel.d.ts.map +1 -0
- package/dist/wall/curtain-wall-panel.js +167 -0
- package/dist/wall/curtain-wall-piece-geometry.d.ts +5 -0
- package/dist/wall/curtain-wall-piece-geometry.d.ts.map +1 -0
- package/dist/wall/curtain-wall-piece-geometry.js +220 -0
- package/dist/wall/curtain-wall-shadow.d.ts +4 -0
- package/dist/wall/curtain-wall-shadow.d.ts.map +1 -0
- package/dist/wall/curtain-wall-shadow.js +15 -0
- package/dist/wall/curve-tool.d.ts.map +1 -1
- package/dist/wall/curve-tool.js +4 -0
- package/dist/wall/definition.d.ts +0 -15
- package/dist/wall/definition.d.ts.map +1 -1
- package/dist/wall/definition.js +92 -7
- 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 +20 -83
- package/dist/wall/floorplan-tool.d.ts +4 -0
- package/dist/wall/floorplan-tool.d.ts.map +1 -0
- package/dist/wall/floorplan-tool.js +106 -0
- package/dist/wall/floorplan.d.ts +3 -1
- package/dist/wall/floorplan.d.ts.map +1 -1
- package/dist/wall/floorplan.js +189 -22
- package/dist/wall/length-patch.d.ts +3 -0
- package/dist/wall/length-patch.d.ts.map +1 -0
- package/dist/wall/length-patch.js +14 -0
- package/dist/wall/measurement.d.ts.map +1 -1
- package/dist/wall/measurement.js +5 -5
- package/dist/wall/move-endpoint-tool.d.ts.map +1 -1
- package/dist/wall/move-endpoint-tool.js +20 -7
- package/dist/wall/move-shared.d.ts.map +1 -1
- package/dist/wall/move-shared.js +11 -7
- package/dist/wall/move-tool.d.ts.map +1 -1
- package/dist/wall/move-tool.js +140 -148
- package/dist/wall/paint.d.ts +26 -15
- package/dist/wall/paint.d.ts.map +1 -1
- package/dist/wall/paint.js +339 -115
- package/dist/wall/panel-model.d.ts +22 -0
- package/dist/wall/panel-model.d.ts.map +1 -0
- package/dist/wall/panel-model.js +175 -0
- package/dist/wall/panel.d.ts.map +1 -1
- package/dist/wall/panel.js +233 -61
- package/dist/wall/parametrics.d.ts.map +1 -1
- package/dist/wall/parametrics.js +3 -0
- package/dist/wall/property-preview.d.ts +7 -0
- package/dist/wall/property-preview.d.ts.map +1 -0
- package/dist/wall/property-preview.js +31 -0
- package/dist/wall/rectangle-command.d.ts +248 -0
- package/dist/wall/rectangle-command.d.ts.map +1 -0
- package/dist/wall/rectangle-command.js +22 -0
- package/dist/wall/rectangle-tool.d.ts +2 -0
- package/dist/wall/rectangle-tool.d.ts.map +1 -0
- package/dist/wall/rectangle-tool.js +165 -0
- package/dist/wall/renderer.d.ts.map +1 -1
- package/dist/wall/renderer.js +9 -4
- package/dist/wall/split-floorplan-layer.d.ts +4 -0
- package/dist/wall/split-floorplan-layer.d.ts.map +1 -0
- package/dist/wall/split-floorplan-layer.js +71 -0
- package/dist/wall/split-pointer.d.ts +3 -0
- package/dist/wall/split-pointer.d.ts.map +1 -0
- package/dist/wall/split-pointer.js +95 -0
- package/dist/wall/split-preview.d.ts +55 -0
- package/dist/wall/split-preview.d.ts.map +1 -0
- package/dist/wall/split-preview.js +106 -0
- package/dist/wall/split-session.d.ts +16 -0
- package/dist/wall/split-session.d.ts.map +1 -0
- package/dist/wall/split-session.js +144 -0
- package/dist/wall/split-store.d.ts +16 -0
- package/dist/wall/split-store.d.ts.map +1 -0
- package/dist/wall/split-store.js +6 -0
- package/dist/wall/split-tool.d.ts +10 -0
- package/dist/wall/split-tool.d.ts.map +1 -0
- package/dist/wall/split-tool.js +95 -0
- package/dist/wall/system.d.ts.map +1 -1
- package/dist/wall/system.js +39 -5
- package/dist/wall/tool.d.ts.map +1 -1
- package/dist/wall/tool.js +114 -50
- 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 +10 -10
- package/dist/wall/treatments.d.ts.map +1 -1
- package/dist/wall/treatments.js +67 -54
- 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 +38 -3
- 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/definition.d.ts.map +1 -1
- package/dist/window/definition.js +60 -5
- package/dist/window/floorplan-affordances.d.ts.map +1 -1
- package/dist/window/floorplan-affordances.js +8 -10
- package/dist/window/floorplan-move.d.ts.map +1 -1
- package/dist/window/floorplan-move.js +3 -1
- package/dist/window/floorplan.d.ts.map +1 -1
- package/dist/window/floorplan.js +145 -60
- 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 +83 -54
- package/dist/window/paint.d.ts.map +1 -1
- package/dist/window/paint.js +3 -0
- package/dist/window/panel.d.ts.map +1 -1
- package/dist/window/panel.js +50 -144
- package/dist/window/placement.d.ts +23 -0
- package/dist/window/placement.d.ts.map +1 -0
- package/dist/window/placement.js +66 -0
- package/dist/window/preview.d.ts.map +1 -1
- package/dist/window/preview.js +2 -0
- package/dist/window/renderer.d.ts.map +1 -1
- package/dist/window/renderer.js +3 -2
- package/dist/window/tool.d.ts.map +1 -1
- package/dist/window/tool.js +130 -26
- package/dist/window/window-math.d.ts +6 -14
- package/dist/window/window-math.d.ts.map +1 -1
- package/dist/window/window-math.js +13 -22
- package/dist/zone/contextual-dimensions.d.ts.map +1 -1
- package/dist/zone/contextual-dimensions.js +6 -28
- package/dist/zone/definition.d.ts.map +1 -1
- package/dist/zone/definition.js +4 -3
- package/dist/zone/floorplan-affordances.d.ts +200 -0
- package/dist/zone/floorplan-affordances.d.ts.map +1 -1
- package/dist/zone/floorplan.d.ts +1 -1
- package/dist/zone/floorplan.d.ts.map +1 -1
- package/dist/zone/floorplan.js +93 -53
- package/dist/zone/quantities-panel.d.ts.map +1 -1
- package/dist/zone/quantities-panel.js +6 -33
- 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 +6 -5
- package/dist/zone/renderer.d.ts +1 -1
- package/dist/zone/renderer.d.ts.map +1 -1
- package/dist/zone/renderer.js +58 -146
- package/dist/zone/room-clear-dimensions.js +3 -3
- package/dist/zone/room-documentation.d.ts.map +1 -1
- package/dist/zone/room-documentation.js +2 -6
- package/package.json +12 -12
- 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/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/opening-documentation-fields.d.ts +0 -16
- package/dist/shared/opening-documentation-fields.d.ts.map +0 -1
- package/dist/shared/opening-documentation-fields.js +0 -54
- 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/slots.d.ts +0 -10
- package/dist/wall/slots.d.ts.map +0 -1
- package/dist/wall/slots.js +0 -84
- 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,103 +1,19 @@
|
|
|
1
|
-
import { collectAlignmentAnchors, createSceneApi, getBlockFaceFrame,
|
|
2
|
-
import { boundsOf, boxCorners, frame, transformPoint } from '@pascal-app/core/procedural-items';
|
|
3
|
-
import { applyFloorplanAlignment, isGridSnapActive, isMagneticSnapActive, useEditor, } from '@pascal-app/editor';
|
|
1
|
+
import { cascadeDirty, clearFaceHostItemFields, collectAlignmentAnchors, collectDescendants, createSceneApi, getBlockFaceFrame, getScaledDimensions, getSurfaceProvider, movingFootprintAnchors, nodeRegistry, resolveSupportSlabPatch, resolveSurfacePlacement, surfaceRegionContainsPoint, useLiveNodeOverrides, useScene, } from '@pascal-app/core';
|
|
2
|
+
import { boundsOf, boxCorners, composeFrames, frame, transformPoint, } from '@pascal-app/core/procedural-items';
|
|
3
|
+
import { applyFloorplanAlignment, isGridSnapActive, isMagneticSnapActive, surfaceAttachmentId, surfaceFramePose, updateSurfaceNode, useEditor, useInteractionScope, } from '@pascal-app/editor';
|
|
4
4
|
import { createFloorplanCursorResolver } from '../shared/floorplan-cursor';
|
|
5
5
|
import { restingNodePlanFrame } from '../shared/resting-surface-plan';
|
|
6
6
|
import { findClosestWallInPlan, snapLocalXToNeighbors } from '../shared/wall-attach-target';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
return
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const cached = cache.get(item.id);
|
|
14
|
-
if (cached)
|
|
15
|
-
return cached;
|
|
16
|
-
const localRotation = item.rotation[1] ?? 0;
|
|
17
|
-
let result = {
|
|
18
|
-
point: [item.position[0], item.position[2]],
|
|
19
|
-
rotation: localRotation,
|
|
7
|
+
import { resolveItemTransform } from './floorplan';
|
|
8
|
+
function resolveItemPlanTransform(item, nodes) {
|
|
9
|
+
const pose = resolveItemTransform(item, { resolve: (id) => nodes[id] });
|
|
10
|
+
return {
|
|
11
|
+
point: pose ? [pose.x, pose.y] : [item.position[0], item.position[2]],
|
|
12
|
+
rotation: pose?.rotation ?? item.rotation[1],
|
|
20
13
|
};
|
|
21
|
-
const parent = item.parentId ? nodes[item.parentId] : null;
|
|
22
|
-
if (parent?.type === 'wall') {
|
|
23
|
-
const wallRotation = -Math.atan2(parent.end[1] - parent.start[1], parent.end[0] - parent.start[0]);
|
|
24
|
-
const wallLocalZ = item.asset.attachTo === 'wall-side'
|
|
25
|
-
? ((parent.thickness ?? 0.1) / 2) * (item.side === 'front' ? 1 : -1)
|
|
26
|
-
: item.position[2];
|
|
27
|
-
const [offsetX, offsetZ] = rotateVec(item.position[0], wallLocalZ, wallRotation);
|
|
28
|
-
result = {
|
|
29
|
-
point: [parent.start[0] + offsetX, parent.start[1] + offsetZ],
|
|
30
|
-
rotation: wallRotation + localRotation,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
else if (parent?.type === 'cabinet' ||
|
|
34
|
-
parent?.type === 'cabinet-module' ||
|
|
35
|
-
parent?.type === 'procedural-item') {
|
|
36
|
-
const f = restingNodePlanFrame(item, (id) => nodes[id]);
|
|
37
|
-
result = {
|
|
38
|
-
point: [f.position[0], f.position[2]],
|
|
39
|
-
rotation: Math.atan2(f.axes[2][0], f.axes[2][2]),
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
else if (parent?.type === 'shelf') {
|
|
43
|
-
const shelf = parent;
|
|
44
|
-
const [offsetX, offsetZ] = rotateVec(item.position[0], item.position[2], shelf.rotation[1] ?? 0);
|
|
45
|
-
result = {
|
|
46
|
-
point: [shelf.position[0] + offsetX, shelf.position[2] + offsetZ],
|
|
47
|
-
rotation: (shelf.rotation[1] ?? 0) + localRotation,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
else if (parent?.type === 'item') {
|
|
51
|
-
const parentTransform = resolveItemPlanTransform(parent, nodes, cache);
|
|
52
|
-
const [offsetX, offsetZ] = rotateVec(item.position[0], item.position[2], parentTransform.rotation);
|
|
53
|
-
result = {
|
|
54
|
-
point: [parentTransform.point[0] + offsetX, parentTransform.point[1] + offsetZ],
|
|
55
|
-
rotation: parentTransform.rotation + localRotation,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
else if (parent?.type === 'roof-segment') {
|
|
59
|
-
// Roof-hosted wall item: FACE-LOCAL position mapped through the face
|
|
60
|
-
// frame, then composed through the segment's and roof's yaw +
|
|
61
|
-
// position into level-local plan coords — without this the drag seed
|
|
62
|
-
// jumps off the roof at move start.
|
|
63
|
-
const segment = parent;
|
|
64
|
-
const roof = segment.parentId
|
|
65
|
-
? nodes[segment.parentId]
|
|
66
|
-
: undefined;
|
|
67
|
-
if (roof?.type === 'roof' && item.roofFace) {
|
|
68
|
-
const frame = getRoofWallFaceFrame(segment, item.roofFace);
|
|
69
|
-
const segLocal = roofFacePointToSegment(segment, item.roofFace, item.position);
|
|
70
|
-
const [sx, sz] = rotateVec(segLocal[0], segLocal[2], segment.rotation ?? 0);
|
|
71
|
-
const [rx, rz] = rotateVec(sx + segment.position[0], sz + segment.position[2], roof.rotation ?? 0);
|
|
72
|
-
result = {
|
|
73
|
-
point: [rx + roof.position[0], rz + roof.position[2]],
|
|
74
|
-
rotation: (roof.rotation ?? 0) + (segment.rotation ?? 0) + frame.yaw + localRotation,
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
else if (parent?.type === 'block' && item.blockFaceId) {
|
|
79
|
-
const frame = getBlockFaceFrame(parent.topology, item.blockFaceId);
|
|
80
|
-
if (frame) {
|
|
81
|
-
const localX = frame.origin[0] +
|
|
82
|
-
frame.xAxis[0] * item.position[0] +
|
|
83
|
-
frame.yAxis[0] * item.position[1] +
|
|
84
|
-
frame.normal[0] * item.position[2];
|
|
85
|
-
const localZ = frame.origin[2] +
|
|
86
|
-
frame.xAxis[2] * item.position[0] +
|
|
87
|
-
frame.yAxis[2] * item.position[1] +
|
|
88
|
-
frame.normal[2] * item.position[2];
|
|
89
|
-
const [offsetX, offsetZ] = rotateVec(localX, localZ, parent.rotation ?? 0);
|
|
90
|
-
result = {
|
|
91
|
-
point: [parent.position[0] + offsetX, parent.position[2] + offsetZ],
|
|
92
|
-
rotation: (parent.rotation ?? 0) - Math.atan2(frame.xAxis[2], frame.xAxis[0]) + localRotation,
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
cache.set(item.id, result);
|
|
97
|
-
return result;
|
|
98
14
|
}
|
|
99
|
-
function resolveItemPlanPoint(item, nodes
|
|
100
|
-
return resolveItemPlanTransform(item, nodes
|
|
15
|
+
function resolveItemPlanPoint(item, nodes) {
|
|
16
|
+
return resolveItemPlanTransform(item, nodes).point;
|
|
101
17
|
}
|
|
102
18
|
function createPlanarMovePointResolver(originalPlanPoint, node) {
|
|
103
19
|
const resolveCursor = createFloorplanCursorResolver({
|
|
@@ -211,49 +127,185 @@ function buildWallItemSession(node, startLevelId) {
|
|
|
211
127
|
* bookkeeping and the item drops out of the level→children DFS the
|
|
212
128
|
* floor-plan layer walks → the polygon stops rendering mid-drag.
|
|
213
129
|
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
* in `use-placement-coordinator.tsx`). Snap to the 0.5m grid unless the
|
|
217
|
-
* user holds Shift.
|
|
130
|
+
* A host exit converts the pose to the level frame, matching the 3D
|
|
131
|
+
* `detachItemSurfaceToFloor`; inherited support lift stays out of stored Y.
|
|
218
132
|
*/
|
|
219
133
|
function buildFloorItemSession(node, startLevelId, nodes) {
|
|
220
|
-
const
|
|
221
|
-
const
|
|
134
|
+
const host = node.parentId ? nodes[node.parentId] : undefined;
|
|
135
|
+
const hosted = host && host.type !== 'level';
|
|
136
|
+
const surfaceId = surfaceAttachmentId(node);
|
|
137
|
+
const hostPose = surfaceFramePose(node.parentId, surfaceId, node, false);
|
|
138
|
+
const planTransform = resolveItemPlanTransform(node, nodes);
|
|
139
|
+
const levelFrame = hosted ? restingNodePlanFrame(node, (id) => nodes[id]) : null;
|
|
140
|
+
const rotationY = levelFrame
|
|
141
|
+
? Math.atan2(levelFrame.axes[2][0], levelFrame.axes[2][2])
|
|
142
|
+
: planTransform.rotation;
|
|
143
|
+
const levelRotation = [...node.rotation];
|
|
144
|
+
if (hosted) {
|
|
145
|
+
if (node.type === 'procedural-item') {
|
|
146
|
+
// Generated footprints use the query frame; catalog footprints keep their legacy plan mapping.
|
|
147
|
+
planTransform.point = [levelFrame.position[0], levelFrame.position[2]];
|
|
148
|
+
const hostFrame = restingNodePlanFrame(host, (id) => nodes[id]);
|
|
149
|
+
const headingPose = surfaceFramePose(node.parentId, surfaceId, { position: node.position, rotation: [0, node.rotation[1], 0] }, false);
|
|
150
|
+
levelRotation[1] =
|
|
151
|
+
headingPose.rotation[1] + Math.atan2(hostFrame.axes[2][0], hostFrame.axes[2][2]);
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
levelRotation.splice(0, 3, hostPose.rotation[0], rotationY, hostPose.rotation[2]);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if (host?.type === 'block' && node.blockFaceId)
|
|
158
|
+
levelRotation.splice(0, 3, 0, rotationY, 0);
|
|
159
|
+
const resolvePlanPoint = createPlanarMovePointResolver(planTransform.point, node);
|
|
222
160
|
// Alignment candidates gathered once — scene is stable during the drag.
|
|
223
161
|
const candidates = collectAlignmentAnchors(nodes, node.id);
|
|
162
|
+
const scene = createSceneApi(useScene);
|
|
163
|
+
const bounds = nodeRegistry.get(node.type)?.capabilities.dragBounds?.(node, nodes);
|
|
164
|
+
const dimensions = bounds?.size ?? getScaledDimensions(node);
|
|
165
|
+
const localBounds = bounds?.center
|
|
166
|
+
? {
|
|
167
|
+
min: bounds.center.map((v, i) => v - dimensions[i] / 2),
|
|
168
|
+
max: bounds.center.map((v, i) => v + dimensions[i] / 2),
|
|
169
|
+
}
|
|
170
|
+
: {
|
|
171
|
+
min: [-dimensions[0] / 2, 0, -dimensions[2] / 2],
|
|
172
|
+
max: [dimensions[0] / 2, dimensions[1], dimensions[2] / 2],
|
|
173
|
+
};
|
|
174
|
+
const originalBounds = boundsOf(boxCorners(localBounds.min, localBounds.max).map((p) => transformPoint(frame(hostPose.position, hostPose.rotation), p)));
|
|
175
|
+
const originalPlacement = hosted
|
|
176
|
+
? resolveSurfacePlacement({
|
|
177
|
+
host,
|
|
178
|
+
childKind: node.type,
|
|
179
|
+
childId: node.id,
|
|
180
|
+
childFootprint: {
|
|
181
|
+
size: dimensions,
|
|
182
|
+
rotationY: hostPose.rotation[1],
|
|
183
|
+
rotation: hostPose.rotation,
|
|
184
|
+
localBounds,
|
|
185
|
+
},
|
|
186
|
+
hit: {
|
|
187
|
+
point: [
|
|
188
|
+
(originalBounds.min[0] + originalBounds.max[0]) / 2,
|
|
189
|
+
originalBounds.min[1],
|
|
190
|
+
(originalBounds.min[2] + originalBounds.max[2]) / 2,
|
|
191
|
+
],
|
|
192
|
+
normalWorldY: 1,
|
|
193
|
+
},
|
|
194
|
+
origin: hostPose.position,
|
|
195
|
+
scene,
|
|
196
|
+
})
|
|
197
|
+
: null;
|
|
198
|
+
const retainedSurfaceId = hosted && originalPlacement
|
|
199
|
+
? getSurfaceProvider(host)
|
|
200
|
+
.surfaces?.(host, { scene })
|
|
201
|
+
.find((s) => s.id === (surfaceId ?? originalPlacement.surfaceId))?.id
|
|
202
|
+
: undefined;
|
|
203
|
+
const markMoved = () => {
|
|
204
|
+
for (const id of new Set([
|
|
205
|
+
...cascadeDirty(node.id, { scene }),
|
|
206
|
+
...collectDescendants(node.id, { scene }),
|
|
207
|
+
]))
|
|
208
|
+
useScene.getState().markDirty(id);
|
|
209
|
+
};
|
|
224
210
|
let lastPatch = null;
|
|
225
|
-
|
|
211
|
+
let lastInput = null;
|
|
212
|
+
let commitBlocked = false;
|
|
213
|
+
let lastHostedPatch = {
|
|
214
|
+
parentId: node.parentId,
|
|
215
|
+
position: [...node.position],
|
|
216
|
+
rotation: [...node.rotation],
|
|
217
|
+
supportSlabId: undefined,
|
|
218
|
+
};
|
|
219
|
+
const session = {
|
|
226
220
|
affectedIds: [node.id],
|
|
227
|
-
apply(
|
|
221
|
+
apply(input) {
|
|
222
|
+
lastInput = input;
|
|
223
|
+
commitBlocked = false;
|
|
224
|
+
const { planPoint } = input;
|
|
228
225
|
const gridSnapped = resolvePlanPoint(planPoint);
|
|
229
226
|
// Figma-style alignment layered on the grid snap, mode-driven (matching 3D):
|
|
230
227
|
// guides are DISPLAYED in every snapping mode; the magnetic pull onto them
|
|
231
228
|
// is applied only in "lines" mode (`applySnap`).
|
|
232
229
|
const { point: snapped } = applyFloorplanAlignment(gridSnapped, movingFootprintAnchors(node, gridSnapped[0], gridSnapped[1], rotationY), candidates, { applySnap: isMagneticSnapActive() });
|
|
233
|
-
const
|
|
234
|
-
if (
|
|
230
|
+
const liveHost = host && useScene.getState().nodes[host.id];
|
|
231
|
+
if (liveHost?.type === 'block' && node.blockFaceId) {
|
|
232
|
+
const face = getBlockFaceFrame(liveHost.topology, node.blockFaceId);
|
|
233
|
+
if (face && face.normal[1] > 0.99) {
|
|
234
|
+
const hostFrame = restingNodePlanFrame(liveHost, (id) => useScene.getState().nodes[id]);
|
|
235
|
+
const surface = composeFrames(hostFrame, {
|
|
236
|
+
position: face.origin,
|
|
237
|
+
axes: [face.xAxis, face.yAxis, face.normal],
|
|
238
|
+
});
|
|
239
|
+
const delta = [snapped[0] - surface.position[0], 0, snapped[1] - surface.position[2]];
|
|
240
|
+
const uv = surface.axes
|
|
241
|
+
.slice(0, 2)
|
|
242
|
+
.map((axis) => axis.reduce((sum, v, i) => sum + v * delta[i], 0));
|
|
243
|
+
const vertices = new Map(liveHost.topology.vertices.map((v) => [v.id, v.position]));
|
|
244
|
+
const polygon = liveHost.topology.faces
|
|
245
|
+
.find((f) => f.id === node.blockFaceId)
|
|
246
|
+
.vertexIds.map((id) => {
|
|
247
|
+
const v = vertices.get(id);
|
|
248
|
+
const delta = v.map((value, i) => value - face.origin[i]);
|
|
249
|
+
return [face.xAxis, face.yAxis].map((axis) => axis.reduce((sum, value, i) => sum + value * delta[i], 0));
|
|
250
|
+
});
|
|
251
|
+
if (surfaceRegionContainsPoint({ kind: 'polygon', points: polygon }, uv)) {
|
|
252
|
+
lastPatch = {
|
|
253
|
+
parentId: liveHost.id,
|
|
254
|
+
position: [uv[0], uv[1], node.position[2]],
|
|
255
|
+
rotation: [...node.rotation],
|
|
256
|
+
supportSlabId: undefined,
|
|
257
|
+
};
|
|
258
|
+
useLiveNodeOverrides.getState().set(node.id, lastPatch);
|
|
259
|
+
markMoved();
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
if (hosted && liveHost && (liveHost.type !== 'block' || !node.blockFaceId)) {
|
|
265
|
+
const host = liveHost;
|
|
266
|
+
const retainedSurface = getSurfaceProvider(host)
|
|
267
|
+
.surfaces?.(host, { scene })
|
|
268
|
+
.find((s) => s.id === retainedSurfaceId);
|
|
235
269
|
const hostFrame = restingNodePlanFrame(host, (id) => useScene.getState().nodes[id]);
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
const bounds = nodeRegistry.get(node.type)?.capabilities.dragBounds?.(node, nodes);
|
|
244
|
-
const dimensions = bounds?.size ?? getScaledDimensions(node);
|
|
245
|
-
const center = bounds?.center;
|
|
246
|
-
const localBounds = center
|
|
247
|
-
? {
|
|
248
|
-
min: center.map((v, i) => v - dimensions[i] / 2),
|
|
249
|
-
max: center.map((v, i) => v + dimensions[i] / 2),
|
|
270
|
+
if (host.type === 'item') {
|
|
271
|
+
const plan = resolveItemTransform(host, {
|
|
272
|
+
resolve: (id) => useScene.getState().nodes[id],
|
|
273
|
+
});
|
|
274
|
+
if (plan) {
|
|
275
|
+
hostFrame.position[0] = plan.x;
|
|
276
|
+
hostFrame.position[2] = plan.y;
|
|
250
277
|
}
|
|
251
|
-
|
|
252
|
-
const
|
|
278
|
+
}
|
|
279
|
+
const surfaceFrame = composeFrames(hostFrame, frame(retainedSurface ? [...retainedSurface.position] : [0, hostPose.position[1], 0], retainedSurface ? [...(retainedSurface.rotation ?? [0, 0, 0])] : [0, 0, 0]));
|
|
280
|
+
const normal = surfaceFrame.axes[1];
|
|
281
|
+
const localRotation = originalPlacement?.surfaceLocal?.rotation ?? hostPose.rotation;
|
|
282
|
+
const bottomOffset = retainedSurface
|
|
283
|
+
? -Math.min(...boxCorners(localBounds.min, localBounds.max).map((p) => transformPoint(frame([0, 0, 0], [...localRotation]), p)[1]))
|
|
284
|
+
: 0;
|
|
285
|
+
const y = surfaceFrame.position[1] +
|
|
286
|
+
(bottomOffset -
|
|
287
|
+
normal[0] * (snapped[0] - surfaceFrame.position[0]) -
|
|
288
|
+
normal[2] * (snapped[1] - surfaceFrame.position[2])) /
|
|
289
|
+
normal[1];
|
|
290
|
+
const delta = [
|
|
291
|
+
snapped[0] - hostFrame.position[0],
|
|
292
|
+
y - hostFrame.position[1],
|
|
293
|
+
snapped[1] - hostFrame.position[2],
|
|
294
|
+
];
|
|
295
|
+
const local = hostFrame.axes.map((axis) => axis.reduce((sum, v, i) => sum + v * delta[i], 0));
|
|
296
|
+
const projected = boundsOf(boxCorners(localBounds?.min ?? [-dimensions[0] / 2, 0, -dimensions[2] / 2], localBounds?.max ?? [dimensions[0] / 2, dimensions[1], dimensions[2] / 2]).map((p) => transformPoint(frame(local, hostPose.rotation), p)));
|
|
297
|
+
let occupied = false;
|
|
253
298
|
const pose = resolveSurfacePlacement({
|
|
254
299
|
host,
|
|
300
|
+
surface: retainedSurface,
|
|
255
301
|
childKind: node.type,
|
|
256
|
-
|
|
302
|
+
childId: node.id,
|
|
303
|
+
childFootprint: {
|
|
304
|
+
size: dimensions,
|
|
305
|
+
rotationY: hostPose.rotation[1],
|
|
306
|
+
rotation: hostPose.rotation,
|
|
307
|
+
localBounds,
|
|
308
|
+
},
|
|
257
309
|
hit: {
|
|
258
310
|
point: [
|
|
259
311
|
(projected.min[0] + projected.max[0]) / 2,
|
|
@@ -264,36 +316,63 @@ function buildFloorItemSession(node, startLevelId, nodes) {
|
|
|
264
316
|
},
|
|
265
317
|
origin: local,
|
|
266
318
|
scene: createSceneApi(useScene),
|
|
319
|
+
onReject: (reason) => {
|
|
320
|
+
occupied = reason === 'surface-occupied';
|
|
321
|
+
},
|
|
267
322
|
});
|
|
268
|
-
if (
|
|
269
|
-
|
|
323
|
+
if (occupied) {
|
|
324
|
+
commitBlocked = useInteractionScope.getState().ownedSubtree?.creation.rootId === node.id;
|
|
325
|
+
lastPatch = lastHostedPatch;
|
|
326
|
+
useLiveNodeOverrides.getState().set(node.id, lastPatch);
|
|
327
|
+
markMoved();
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
if (pose &&
|
|
331
|
+
(pose.childFrame === 'surface-local' ? pose.surfaceId === surfaceId : surfaceId === null)) {
|
|
332
|
+
const stored = pose.childFrame === 'surface-local' ? pose.surfaceLocal : pose;
|
|
333
|
+
lastPatch = {
|
|
334
|
+
parentId: host.id,
|
|
335
|
+
position: [...stored.position],
|
|
336
|
+
rotation: [...node.rotation],
|
|
337
|
+
supportSlabId: undefined,
|
|
338
|
+
};
|
|
339
|
+
lastHostedPatch = lastPatch;
|
|
270
340
|
useLiveNodeOverrides.getState().set(node.id, lastPatch);
|
|
271
|
-
|
|
341
|
+
markMoved();
|
|
272
342
|
return;
|
|
273
343
|
}
|
|
274
344
|
}
|
|
275
|
-
const
|
|
276
|
-
|
|
345
|
+
const nextPosition = [
|
|
346
|
+
snapped[0],
|
|
347
|
+
hosted ? 0 : node.position[1],
|
|
348
|
+
snapped[1],
|
|
349
|
+
];
|
|
277
350
|
lastPatch = {
|
|
351
|
+
...(node.blockFaceId ? clearFaceHostItemFields(host) : {}),
|
|
278
352
|
position: nextPosition,
|
|
353
|
+
rotation: levelRotation,
|
|
279
354
|
// Keep parent as the level we resolved at session-start. If
|
|
280
355
|
// somehow it's null (e.g. orphaned item), fall back to the
|
|
281
356
|
// existing parent so we don't write `null` and detach.
|
|
282
357
|
parentId: startLevelId ?? node.parentId,
|
|
283
358
|
};
|
|
359
|
+
Object.assign(lastPatch, resolveSupportSlabPatch({ ...node, ...lastPatch }, nodes));
|
|
284
360
|
useLiveNodeOverrides.getState().set(node.id, lastPatch);
|
|
285
|
-
|
|
361
|
+
markMoved();
|
|
286
362
|
},
|
|
287
363
|
canCommit() {
|
|
288
|
-
return lastPatch !== null;
|
|
364
|
+
return lastPatch !== null && !commitBlocked;
|
|
289
365
|
},
|
|
290
366
|
commit() {
|
|
367
|
+
if (lastInput)
|
|
368
|
+
session.apply(lastInput);
|
|
291
369
|
if (!lastPatch)
|
|
292
370
|
return;
|
|
371
|
+
updateSurfaceNode(node.id, lastPatch);
|
|
293
372
|
useLiveNodeOverrides.getState().clear(node.id);
|
|
294
|
-
useScene.getState().updateNodes([{ id: node.id, data: lastPatch }]);
|
|
295
373
|
},
|
|
296
374
|
};
|
|
375
|
+
return session;
|
|
297
376
|
}
|
|
298
377
|
/**
|
|
299
378
|
* Ceiling items reparent to whichever ceiling polygon contains the
|
package/dist/item/floorplan.d.ts
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import { type FloorplanGeometry, type GeometryContext, type ItemNode } from '@pascal-app/core';
|
|
2
|
+
/**
|
|
3
|
+
* Stage C floor-plan builder for item.
|
|
4
|
+
*
|
|
5
|
+
* Items can be parented to a wall, ceiling, slab, or another item.
|
|
6
|
+
* Position is in the parent's local frame, so we walk the parent chain
|
|
7
|
+
* via `ctx.resolve` to compute the world-space (level-local) transform.
|
|
8
|
+
*
|
|
9
|
+
* Mirrors `getItemFloorplanTransform` from editor/lib/floorplan/items.ts
|
|
10
|
+
* but uses the registry's resolve callback instead of a node map. Logic
|
|
11
|
+
* is identical so visual output matches the legacy.
|
|
12
|
+
*
|
|
13
|
+
* Returns a rotated rectangle of width × depth at the resolved position.
|
|
14
|
+
* Phase 5 follow-up may render `asset.floorPlanUrl` as a custom image
|
|
15
|
+
* overlay when present.
|
|
16
|
+
*/
|
|
17
|
+
type Transform = {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
rotation: number;
|
|
21
|
+
};
|
|
22
|
+
export declare function resolveItemTransform(item: ItemNode, ctx: GeometryContext, cache?: Map<`roof_${string}` | `rseg_${string}` | `site_${string}` | `building_${string}` | `level_${string}` | `elevator_${string}` | `unit_${string}` | `zone_${string}` | `block_${string}` | `ceiling_${string}` | `item_${string}` | `procedural-item_${string}` | `column_${string}` | `construction-dimension_${string}` | `wall_${string}` | `slab_${string}` | `separator_${string}` | `floor-opening_${string}` | `fence_${string}` | `structural-grid_${string}` | `imesh_${string}` | `stair_${string}` | `scan_${string}` | `guide_${string}` | `measurement_${string}` | `spawn_${string}` | `shelf_${string}` | `duct-segment_${string}` | `duct-fitting_${string}` | `duct-terminal_${string}` | `hvac-equipment_${string}` | `lineset_${string}` | `liquid-line_${string}` | `pipe-segment_${string}` | `pipe-fitting_${string}` | `pipe-trap_${string}` | `leanto_${string}` | `door_${string}` | `window_${string}` | `fence-gate_${string}` | `fence-opening_${string}` | `cabinet_${string}` | `cabinet-module_${string}` | `sseg_${string}` | `bvent_${string}` | `rvent_${string}` | `tvent_${string}` | `cupola_${string}` | `eyebrow-vent_${string}` | `gutter_${string}` | `chimney_${string}` | `solarpanel_${string}` | `skylight_${string}` | `dormer_${string}` | `downspout_${string}`, Transform | null>): Transform | null;
|
|
2
23
|
export declare function buildItemContextualDimensions(node: ItemNode, ctx: GeometryContext): FloorplanGeometry | null;
|
|
3
24
|
export declare function buildItemFloorplan(node: ItemNode, ctx: GeometryContext): FloorplanGeometry | null;
|
|
25
|
+
export {};
|
|
4
26
|
//# sourceMappingURL=floorplan.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floorplan.d.ts","sourceRoot":"","sources":["../../src/item/floorplan.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,iBAAiB,EAEtB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"floorplan.d.ts","sourceRoot":"","sources":["../../src/item/floorplan.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,iBAAiB,EAEtB,KAAK,eAAe,EAOpB,KAAK,QAAQ,EAKd,MAAM,kBAAkB,CAAA;AASzB;;;;;;;;;;;;;;GAcG;AACH,KAAK,SAAS,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAA;AA2D3D,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,QAAQ,EACd,GAAG,EAAE,eAAe,EACpB,KAAK,mwCAAyC,GAC7C,SAAS,GAAG,IAAI,CAyKlB;AAED,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,QAAQ,EACd,GAAG,EAAE,eAAe,GACnB,iBAAiB,GAAG,IAAI,CA+C1B;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,eAAe,GAAG,iBAAiB,GAAG,IAAI,CA+HjG"}
|
package/dist/item/floorplan.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { getBlockFaceFrame, getRoofWallFaceFrame, getScaledDimensions, roofFacePointToSegment, useLiveTransforms, } from '@pascal-app/core';
|
|
2
|
-
import { formatLinearMeasurement, readFloorplanMetricNotationOverride } from '@pascal-app/editor';
|
|
1
|
+
import { getBlockFaceFrame, getEffectiveNode, getRoofWallFaceFrame, getScaledDimensions, getWallBodyCenterOffset, getWallLocalFaceZ, roofFacePointToSegment, scriptImages, useLiveTransforms, } from '@pascal-app/core';
|
|
2
|
+
import { formatLinearMeasurement, readFloorplanContext, readFloorplanMetricNotationOverride, } from '@pascal-app/editor';
|
|
3
3
|
import { restingNodePlanFrame } from '../shared/resting-surface-plan';
|
|
4
|
+
import { buildPlanItemSymbol, classifyPlanItem, PLAN_SYMBOL_METADATA_KEY } from './plan-symbols';
|
|
4
5
|
// Plan-space rotation convention used by the legacy `rotatePlanVector`
|
|
5
6
|
// in `editor/src/lib/floorplan/geometry.ts`. This is a CLOCKWISE rotation
|
|
6
7
|
// — the registry-side equivalent of the canonical floor-plan transform
|
|
@@ -13,10 +14,57 @@ function rotateVec(x, y, angle) {
|
|
|
13
14
|
const s = Math.sin(angle);
|
|
14
15
|
return [x * c + y * s, -x * s + y * c];
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
+
function needsFullAncestorFrame(item, ctx) {
|
|
18
|
+
let id = item.parentId;
|
|
19
|
+
const visited = new Set([item.id]);
|
|
20
|
+
while (id && !visited.has(id)) {
|
|
21
|
+
visited.add(id);
|
|
22
|
+
const parent = ctx.resolve(id);
|
|
23
|
+
if (!parent || parent.type === 'level')
|
|
24
|
+
break;
|
|
25
|
+
if (![
|
|
26
|
+
'wall',
|
|
27
|
+
'ceiling',
|
|
28
|
+
'roof',
|
|
29
|
+
'roof-segment',
|
|
30
|
+
'item',
|
|
31
|
+
'shelf',
|
|
32
|
+
'cabinet',
|
|
33
|
+
'cabinet-module',
|
|
34
|
+
'procedural-item',
|
|
35
|
+
'block',
|
|
36
|
+
'slab',
|
|
37
|
+
].includes(parent.type)) {
|
|
38
|
+
const effective = getEffectiveNode(parent);
|
|
39
|
+
const live = useLiveTransforms.getState().get(parent.id);
|
|
40
|
+
const position = live?.position ?? effective.position;
|
|
41
|
+
const rotation = effective.rotation;
|
|
42
|
+
// Main's level-local fallback already handles identity plugins directly on a level.
|
|
43
|
+
if (parent.type === 'column' ||
|
|
44
|
+
(parent.parentId && ctx.resolve(parent.parentId)?.type !== 'level') ||
|
|
45
|
+
position?.some((v) => v !== 0) ||
|
|
46
|
+
live?.rotation ||
|
|
47
|
+
(Array.isArray(rotation) ? rotation.some((v) => v !== 0) : rotation))
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
id = parent.parentId;
|
|
51
|
+
}
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
export function resolveItemTransform(item, ctx, cache = new Map()) {
|
|
17
55
|
const cached = cache.get(item.id);
|
|
18
56
|
if (cached !== undefined)
|
|
19
57
|
return cached;
|
|
58
|
+
if (needsFullAncestorFrame(item, ctx)) {
|
|
59
|
+
const f = restingNodePlanFrame(item, ctx.resolve);
|
|
60
|
+
const result = {
|
|
61
|
+
x: f.position[0],
|
|
62
|
+
y: f.position[2],
|
|
63
|
+
rotation: Math.atan2(f.axes[2][0], f.axes[2][2]),
|
|
64
|
+
};
|
|
65
|
+
cache.set(item.id, result);
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
20
68
|
const localRotation = item.rotation[1] ?? 0;
|
|
21
69
|
let result = null;
|
|
22
70
|
const parentNode = item.parentId
|
|
@@ -27,8 +75,9 @@ function resolveItemTransform(item, ctx, cache = new Map()) {
|
|
|
27
75
|
const wall = parentNode;
|
|
28
76
|
const wallRotation = -Math.atan2(wall.end[1] - wall.start[1], wall.end[0] - wall.start[0]);
|
|
29
77
|
const wallLocalZ = item.asset.attachTo === 'wall-side'
|
|
30
|
-
? (
|
|
31
|
-
: item.position[2]
|
|
78
|
+
? getWallLocalFaceZ(parentNode, item.side === 'front' ? 'a' : 'b')
|
|
79
|
+
: item.position[2] +
|
|
80
|
+
(item.asset.attachTo === 'wall' ? getWallBodyCenterOffset(parentNode) : 0);
|
|
32
81
|
const [offsetX, offsetY] = rotateVec(item.position[0], wallLocalZ, wallRotation);
|
|
33
82
|
result = {
|
|
34
83
|
x: wall.start[0] + offsetX,
|
|
@@ -75,6 +124,18 @@ function resolveItemTransform(item, ctx, cache = new Map()) {
|
|
|
75
124
|
// shelf's own entry follows via the layer's effectiveNode override.
|
|
76
125
|
const shelf = parentNode;
|
|
77
126
|
const live = useLiveTransforms.getState().get(shelf.id);
|
|
127
|
+
if (shelf.parentId &&
|
|
128
|
+
['item', 'shelf', 'cabinet', 'cabinet-module', 'procedural-item'].includes(ctx.resolve(shelf.parentId)?.type ?? '')) {
|
|
129
|
+
const parentT = resolveItemTransform({
|
|
130
|
+
...shelf,
|
|
131
|
+
position: live?.position ?? shelf.position,
|
|
132
|
+
rotation: [0, live?.rotation ?? shelf.rotation[1], 0],
|
|
133
|
+
}, ctx, cache);
|
|
134
|
+
if (!parentT)
|
|
135
|
+
return null;
|
|
136
|
+
const [x, y] = rotateVec(item.position[0], item.position[2], parentT.rotation);
|
|
137
|
+
return { x: parentT.x + x, y: parentT.y + y, rotation: parentT.rotation + localRotation };
|
|
138
|
+
}
|
|
78
139
|
const shelfX = live?.position[0] ?? shelf.position[0];
|
|
79
140
|
const shelfZ = live?.position[2] ?? shelf.position[2];
|
|
80
141
|
const shelfRotationY = live?.rotation ?? shelf.rotation[1] ?? 0;
|
|
@@ -214,13 +275,41 @@ export function buildItemFloorplan(node, ctx) {
|
|
|
214
275
|
const [rx, ry] = rotateVec(x, y, transform.rotation);
|
|
215
276
|
return [cx + rx, cy + ry];
|
|
216
277
|
});
|
|
278
|
+
// A sheet (drafting) draws the permit-set symbol — fixtures as labelled
|
|
279
|
+
// linework, furniture as a light outline — never the sprite or the
|
|
280
|
+
// editor's amber footprint. Ceiling items and decor draw nothing.
|
|
281
|
+
if (readFloorplanContext(ctx).drafting) {
|
|
282
|
+
const planClass = classifyPlanItem(node.asset);
|
|
283
|
+
const symbol = buildPlanItemSymbol(planClass, {
|
|
284
|
+
map: (x, y) => {
|
|
285
|
+
const [rx, ry] = rotateVec(x, y, transform.rotation);
|
|
286
|
+
return [cx + rx, cy + ry];
|
|
287
|
+
},
|
|
288
|
+
width,
|
|
289
|
+
depth,
|
|
290
|
+
});
|
|
291
|
+
// the sheet lays its tags out around fixtures and (more loosely)
|
|
292
|
+
// furniture; the mark rides on the outline itself, which the sheet's
|
|
293
|
+
// model / annotation split passes through untouched (it rebuilds groups)
|
|
294
|
+
const [outline, ...rest] = symbol;
|
|
295
|
+
if (!outline)
|
|
296
|
+
return null;
|
|
297
|
+
const marked = {
|
|
298
|
+
...outline,
|
|
299
|
+
metadata: {
|
|
300
|
+
...outline.metadata,
|
|
301
|
+
[PLAN_SYMBOL_METADATA_KEY]: planClass.kind,
|
|
302
|
+
},
|
|
303
|
+
};
|
|
304
|
+
return { kind: 'group', children: [marked, ...rest] };
|
|
305
|
+
}
|
|
217
306
|
const isSelected = ctx.viewState?.selected ?? false;
|
|
218
307
|
// Marquee preview — the about-to-be-selected tint every other kind shows.
|
|
219
308
|
const isHighlighted = ctx.viewState?.highlighted ?? false;
|
|
220
309
|
const showSelection = isSelected || isHighlighted;
|
|
221
310
|
const isMoving = ctx.viewState?.moving ?? false;
|
|
222
311
|
const selectedStroke = ctx.viewState?.palette?.selectedStroke ?? '#3b82f6';
|
|
223
|
-
const floorPlanUrl = node.asset.floorPlanUrl;
|
|
312
|
+
const floorPlanUrl = scriptImages(node)?.floorPlan ?? node.asset.floorPlanUrl;
|
|
224
313
|
const children = [
|
|
225
314
|
{
|
|
226
315
|
kind: 'polygon',
|
package/dist/item/index.d.ts
CHANGED
package/dist/item/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/item/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { LoadingManager } from 'three';
|
|
2
2
|
import { type GLTF, GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
|
|
3
|
+
/** Active item transactions on this host manager, including their retry waits. */
|
|
4
|
+
export declare function getPendingItemModelLoadCount(manager?: LoadingManager): number;
|
|
3
5
|
export type ItemAssetUnavailable = {
|
|
4
6
|
message: string;
|
|
5
7
|
url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-loader.d.ts","sourceRoot":"","sources":["../../src/item/model-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,cAAc,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"model-loader.d.ts","sourceRoot":"","sources":["../../src/item/model-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,cAAc,EAAE,MAAM,OAAO,CAAA;AAEpE,OAAO,EAAE,KAAK,IAAI,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAA;AAOhF,kFAAkF;AAClF,wBAAgB,4BAA4B,CAAC,OAAO,iBAAwB,GAAG,MAAM,CAEpF;AAMD,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,WAAW,GAAG,aAAa,GAAG,YAAY,CAAA;AAEjF,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,wBAAwB,CAgBrF;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAiB3E;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,oBAAoB,GAAG,IAAI,CAO/E;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,QAE9C;AAED,qBAAa,cAAe,SAAQ,UAAU;IAC5C,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAA;IACpC,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAA;gBAE7B,OAAO,CAAC,EAAE,cAAc,EAAE,aAAa,wBAA0B;IAOpE,IAAI,CACX,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,EAC5B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,EAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GACjC,IAAI;CA+FR"}
|