@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
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
import { floorplanGeometryMetadata } from '@pascal-app/editor';
|
|
2
|
+
/**
|
|
3
|
+
* PERMIT-SET PLAN SYMBOLS for items — what a sheet draws instead of the
|
|
4
|
+
* asset's raster sprite: real fixtures (sinks …) with fixture labels, as a
|
|
5
|
+
* full plan set shows them.
|
|
6
|
+
*
|
|
7
|
+
* A plans examiner reads plumbing fixtures and appliances off the floor plan,
|
|
8
|
+
* so those draw as crisp linework at true size with the standard label (WC,
|
|
9
|
+
* LAV, TUB, SHWR, W, D, WH, REF, R, DW …). Furniture is thin light-grey
|
|
10
|
+
* outline, a car a light dashed outline, and ceiling-mounted items, wall
|
|
11
|
+
* devices and decor are left off — the lights go on the electrical plan.
|
|
12
|
+
*
|
|
13
|
+
* Symbols are built in the item's LOCAL plan frame, true size: x across the
|
|
14
|
+
* width, y along the depth, the BACK (the wall it stands against) at
|
|
15
|
+
* y = -depth / 2 and the front at +depth / 2. The caller maps the points.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Metadata key on a drafted item's group naming what it is (`fixture`,
|
|
19
|
+
* `furniture`, `car`) — how a sheet tells a WC it must keep text off from a
|
|
20
|
+
* bed it may overlap, without re-classifying the asset itself.
|
|
21
|
+
*/
|
|
22
|
+
export const PLAN_SYMBOL_METADATA_KEY = 'pascal:sheet/plan-symbol';
|
|
23
|
+
const FIXTURES = [
|
|
24
|
+
{ test: /\btoilet\b(?!-paper)|water-?closet|\bwc\b/, fixture: 'wc', label: 'WC' },
|
|
25
|
+
{ test: /bathroom-sink|lavatory|\blav\b|\bvanity\b|wash-?basin/, fixture: 'lav', label: 'LAV' },
|
|
26
|
+
{ test: /\bbathtub\b|\bbath-?tub\b|^bath$|\btub\b/, fixture: 'tub', label: 'TUB' },
|
|
27
|
+
{ test: /\bshower\b(?!-rug|-curtain|-caddy)/, fixture: 'shower', label: 'SHWR' },
|
|
28
|
+
{
|
|
29
|
+
test: /washer-?dryer|washer\/dryer|laundry-?pair|stacked-?laundry/,
|
|
30
|
+
fixture: 'washer-dryer',
|
|
31
|
+
label: 'W/D',
|
|
32
|
+
},
|
|
33
|
+
{ test: /washing-?machine|(?<!dish)\bwasher\b|clothes-?washer/, fixture: 'washer', label: 'W' },
|
|
34
|
+
{ test: /(?<!hair-)\bdryer\b|clothes-?dryer|tumble/, fixture: 'dryer', label: 'D' },
|
|
35
|
+
{ test: /water-?heater|\bboiler\b|tankless/, fixture: 'water-heater', label: 'WH' },
|
|
36
|
+
{ test: /fridge|refrigerator|freezer/, fixture: 'ref', label: 'REF' },
|
|
37
|
+
{ test: /dishwasher/, fixture: 'dw', label: 'DW' },
|
|
38
|
+
{ test: /microwave/, fixture: 'mw', label: 'MW' },
|
|
39
|
+
{ test: /cooktop|\bhob\b/, fixture: 'cooktop', label: 'CT' },
|
|
40
|
+
{ test: /\bstove\b|\brange\b(?!-hood)/, fixture: 'range', label: 'R' },
|
|
41
|
+
{ test: /\boven\b/, fixture: 'oven', label: 'OV' },
|
|
42
|
+
{
|
|
43
|
+
test: /kitchen-?sink|bar-?sink|utility-?sink|laundry-?sink|\bsink\b/,
|
|
44
|
+
fixture: 'sink',
|
|
45
|
+
label: 'SINK',
|
|
46
|
+
},
|
|
47
|
+
{ test: /fireplace|wood-?stove/, fixture: 'fireplace', label: 'FP' },
|
|
48
|
+
{ test: /ev-?(wall-)?charger|\bevse\b/, fixture: 'ev', label: 'EV' },
|
|
49
|
+
{ test: /ac-block|condenser|condensing-unit|heat-pump/, fixture: 'condenser', label: 'A/C' },
|
|
50
|
+
];
|
|
51
|
+
/** Built-in cabinets and counters placed as items: casework, drawn in ink like a cabinet run. */
|
|
52
|
+
const CASEWORK = /kitchen-counter|kitchen-cabinet|kitchen-island|kitchen-bar|^kitchen$|base-cabinet|^cabinet$|modular-cabinet/;
|
|
53
|
+
/** Decor, loose kitchenware and wall devices: not drawn on a permit floor plan. */
|
|
54
|
+
const OMIT = /plant|cactus|\btree\b|\bbush\b|\bpalm\b|carpet|\brug\b|picture|mirror|lamp|light|toilet-?paper|laundry-?bag|\bbooks?\b|\btoy\b|\bball\b|skate|scooter|kettle|toaster|frying|fruit|wine|utensil|cutting-?board|coffee-?machine|\biron\b|ironing|computer|speaker|guitar|easel|sewing|barbell|outlet|thermostat|keypad|detector|sprinkler|exit-?sign|electric-?panel|alarm|umbrella|hydrant|basket|drying-?rack|coat-?rack|\bhood\b|television|\btv\b(?!-stand)|air-?conditioning|parking-?spot|kitchen-?shelf/;
|
|
55
|
+
const CAR = /\bcar\b(?!-toy)|tesla|camaro|chevrolet|\btruck\b|sedan|\bsuv\b|vehicle/;
|
|
56
|
+
const BED = /\bbed\b|bunkbed|double-bed|single-bed/;
|
|
57
|
+
const SOFA = /sofa|couch|sectional|loveseat/;
|
|
58
|
+
/** What a sheet draws for an item, from its asset. */
|
|
59
|
+
export function classifyPlanItem(asset) {
|
|
60
|
+
if (asset.attachTo === 'ceiling')
|
|
61
|
+
return { kind: 'omit' };
|
|
62
|
+
const id = (asset.id ?? '').toLowerCase();
|
|
63
|
+
const name = (asset.name ?? '').toLowerCase().replace(/\s+/g, '-');
|
|
64
|
+
// the id first: it is the catalog's own word for the thing
|
|
65
|
+
for (const text of [id, name]) {
|
|
66
|
+
if (!text)
|
|
67
|
+
continue;
|
|
68
|
+
for (const entry of FIXTURES) {
|
|
69
|
+
if (!entry.test.test(text))
|
|
70
|
+
continue;
|
|
71
|
+
// a tub with a shower over it is the TUB/SHWR a plan labels
|
|
72
|
+
if (entry.fixture === 'tub' && /shower/.test(`${id} ${name}`)) {
|
|
73
|
+
return { kind: 'fixture', fixture: 'tub', label: 'TUB/SHWR' };
|
|
74
|
+
}
|
|
75
|
+
return { kind: 'fixture', fixture: entry.fixture, label: entry.label };
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const words = `${id} ${name}`;
|
|
79
|
+
if (CASEWORK.test(id) || CASEWORK.test(name))
|
|
80
|
+
return { kind: 'casework' };
|
|
81
|
+
if (CAR.test(words))
|
|
82
|
+
return { kind: 'car' };
|
|
83
|
+
if (OMIT.test(words))
|
|
84
|
+
return { kind: 'omit' };
|
|
85
|
+
if (asset.attachTo === 'wall' || asset.attachTo === 'wall-side') {
|
|
86
|
+
// shelves, cabinets and the like hang on a wall inside the cut: outline them
|
|
87
|
+
return { kind: 'furniture', shape: 'plain' };
|
|
88
|
+
}
|
|
89
|
+
if (BED.test(words))
|
|
90
|
+
return { kind: 'furniture', shape: 'bed' };
|
|
91
|
+
if (SOFA.test(words))
|
|
92
|
+
return { kind: 'furniture', shape: 'sofa' };
|
|
93
|
+
return { kind: 'furniture', shape: 'plain' };
|
|
94
|
+
}
|
|
95
|
+
/* ------------------------------------------------------------ styles */
|
|
96
|
+
/** Fixture linework — the weight casework draws in, near-black. */
|
|
97
|
+
export const FIXTURE_STROKE = '#1f2937';
|
|
98
|
+
export const FIXTURE_STROKE_WIDTH = 0.012;
|
|
99
|
+
const FIXTURE_DETAIL_WIDTH = 0.008;
|
|
100
|
+
/** Furniture: thin, light grey — present, never competing with the walls. */
|
|
101
|
+
export const FURNITURE_STROKE = '#9ca3af';
|
|
102
|
+
export const FURNITURE_STROKE_WIDTH = 0.006;
|
|
103
|
+
const LABEL_FILL = '#111827';
|
|
104
|
+
/** Fixture label size on the paper, points, and its plan-metre size at 1/4" = 1'-0". */
|
|
105
|
+
export const FIXTURE_LABEL_PT = 6.5;
|
|
106
|
+
export const FIXTURE_LABEL_SIZE = 0.11;
|
|
107
|
+
/**
|
|
108
|
+
* The drafting symbol for an item, in plan coordinates. Empty for `omit`.
|
|
109
|
+
*/
|
|
110
|
+
export function buildPlanItemSymbol(cls, frame) {
|
|
111
|
+
switch (cls.kind) {
|
|
112
|
+
case 'omit':
|
|
113
|
+
return [];
|
|
114
|
+
case 'car':
|
|
115
|
+
return [carOutline(frame)];
|
|
116
|
+
case 'casework': {
|
|
117
|
+
const hw = frame.width / 2;
|
|
118
|
+
const hd = frame.depth / 2;
|
|
119
|
+
return [
|
|
120
|
+
polygon(frame, rect(-hw, -hd, hw, hd), {
|
|
121
|
+
...OUTLINE,
|
|
122
|
+
strokeWidth: FIXTURE_DETAIL_WIDTH * 1.25,
|
|
123
|
+
}),
|
|
124
|
+
];
|
|
125
|
+
}
|
|
126
|
+
case 'furniture':
|
|
127
|
+
return furnitureSymbol(cls.shape, frame);
|
|
128
|
+
case 'fixture':
|
|
129
|
+
return fixtureSymbol(cls.fixture, cls.label, frame);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
const OUTLINE = {
|
|
133
|
+
stroke: FIXTURE_STROKE,
|
|
134
|
+
strokeWidth: FIXTURE_STROKE_WIDTH,
|
|
135
|
+
fill: '#ffffff',
|
|
136
|
+
};
|
|
137
|
+
const DETAIL = { stroke: FIXTURE_STROKE, strokeWidth: FIXTURE_DETAIL_WIDTH, fill: 'none' };
|
|
138
|
+
const FURNITURE = {
|
|
139
|
+
stroke: FURNITURE_STROKE,
|
|
140
|
+
strokeWidth: FURNITURE_STROKE_WIDTH,
|
|
141
|
+
fill: 'none',
|
|
142
|
+
};
|
|
143
|
+
function polygon(frame, points, style) {
|
|
144
|
+
return {
|
|
145
|
+
kind: 'polygon',
|
|
146
|
+
points: points.map(([x, y]) => frame.map(x, y)),
|
|
147
|
+
fill: style.fill ?? 'none',
|
|
148
|
+
stroke: style.stroke,
|
|
149
|
+
strokeWidth: style.strokeWidth,
|
|
150
|
+
strokeDasharray: style.strokeDasharray,
|
|
151
|
+
strokeLinejoin: 'round',
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function line(frame, x1, y1, x2, y2, style) {
|
|
155
|
+
const [ax, ay] = frame.map(x1, y1);
|
|
156
|
+
const [bx, by] = frame.map(x2, y2);
|
|
157
|
+
return {
|
|
158
|
+
kind: 'line',
|
|
159
|
+
x1: ax,
|
|
160
|
+
y1: ay,
|
|
161
|
+
x2: bx,
|
|
162
|
+
y2: by,
|
|
163
|
+
stroke: style.stroke,
|
|
164
|
+
strokeWidth: style.strokeWidth,
|
|
165
|
+
strokeDasharray: style.strokeDasharray,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
function circle(frame, x, y, r, style) {
|
|
169
|
+
const [cx, cy] = frame.map(x, y);
|
|
170
|
+
return {
|
|
171
|
+
kind: 'circle',
|
|
172
|
+
cx,
|
|
173
|
+
cy,
|
|
174
|
+
r,
|
|
175
|
+
fill: style.fill ?? 'none',
|
|
176
|
+
stroke: style.stroke,
|
|
177
|
+
strokeWidth: style.strokeWidth,
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
function rect(x0, y0, x1, y1) {
|
|
181
|
+
return [
|
|
182
|
+
[x0, y0],
|
|
183
|
+
[x1, y0],
|
|
184
|
+
[x1, y1],
|
|
185
|
+
[x0, y1],
|
|
186
|
+
];
|
|
187
|
+
}
|
|
188
|
+
function roundedRect(x0, y0, x1, y1, radius) {
|
|
189
|
+
const r = Math.max(0, Math.min(radius, (x1 - x0) / 2, (y1 - y0) / 2));
|
|
190
|
+
if (r < 1e-4)
|
|
191
|
+
return rect(x0, y0, x1, y1);
|
|
192
|
+
const out = [];
|
|
193
|
+
const corner = (cx, cy, from) => {
|
|
194
|
+
for (let i = 0; i <= 4; i++) {
|
|
195
|
+
const a = from + (i / 4) * (Math.PI / 2);
|
|
196
|
+
out.push([cx + Math.cos(a) * r, cy + Math.sin(a) * r]);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
corner(x1 - r, y0 + r, -Math.PI / 2);
|
|
200
|
+
corner(x1 - r, y1 - r, 0);
|
|
201
|
+
corner(x0 + r, y1 - r, Math.PI / 2);
|
|
202
|
+
corner(x0 + r, y0 + r, Math.PI);
|
|
203
|
+
return out;
|
|
204
|
+
}
|
|
205
|
+
function ellipse(cx, cy, rx, ry, segments = 32) {
|
|
206
|
+
const out = [];
|
|
207
|
+
for (let i = 0; i < segments; i++) {
|
|
208
|
+
const a = (i / segments) * Math.PI * 2;
|
|
209
|
+
out.push([cx + Math.cos(a) * rx, cy + Math.sin(a) * ry]);
|
|
210
|
+
}
|
|
211
|
+
return out;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* A fixture label. Text is an annotation on a sheet, printed at a fixed paper
|
|
215
|
+
* size (`FIXTURE_LABEL_PT`) whatever the scale; `fontSize` is its plan-metre
|
|
216
|
+
* size at 1/4" = 1'-0" for any view that draws it in plan units. Each label
|
|
217
|
+
* is its own group so two labels that share an x (a double vanity's LAVs)
|
|
218
|
+
* are never read as one stacked block and re-spaced together.
|
|
219
|
+
*/
|
|
220
|
+
function label(frame, text, x, y) {
|
|
221
|
+
const [px, py] = frame.map(x, y);
|
|
222
|
+
return {
|
|
223
|
+
kind: 'group',
|
|
224
|
+
children: [
|
|
225
|
+
{
|
|
226
|
+
kind: 'text',
|
|
227
|
+
x: px,
|
|
228
|
+
y: py,
|
|
229
|
+
text,
|
|
230
|
+
fontSize: FIXTURE_LABEL_SIZE,
|
|
231
|
+
fill: LABEL_FILL,
|
|
232
|
+
fontWeight: 700,
|
|
233
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
234
|
+
textAnchor: 'middle',
|
|
235
|
+
dominantBaseline: 'central',
|
|
236
|
+
upright: true,
|
|
237
|
+
metadata: floorplanGeometryMetadata({ textSizePt: FIXTURE_LABEL_PT }),
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
/* ------------------------------------------------------------ symbols */
|
|
243
|
+
function carOutline(frame) {
|
|
244
|
+
const hw = frame.width / 2;
|
|
245
|
+
const hd = frame.depth / 2;
|
|
246
|
+
return polygon(frame, roundedRect(-hw, -hd, hw, hd, Math.min(hw, hd) * 0.35), {
|
|
247
|
+
stroke: FURNITURE_STROKE,
|
|
248
|
+
strokeWidth: FURNITURE_STROKE_WIDTH * 1.2,
|
|
249
|
+
fill: 'none',
|
|
250
|
+
strokeDasharray: '0.18 0.12',
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
function furnitureSymbol(shape, frame) {
|
|
254
|
+
const hw = frame.width / 2;
|
|
255
|
+
const hd = frame.depth / 2;
|
|
256
|
+
const out = [polygon(frame, rect(-hw, -hd, hw, hd), FURNITURE)];
|
|
257
|
+
if (shape === 'bed' && frame.depth > 1.2) {
|
|
258
|
+
// pillows at the head (the back), the turned-down sheet across
|
|
259
|
+
const pillows = frame.width >= 1.2 ? 2 : 1;
|
|
260
|
+
const gap = 0.06;
|
|
261
|
+
const pw = (frame.width - gap * (pillows + 1)) / pillows;
|
|
262
|
+
for (let i = 0; i < pillows; i++) {
|
|
263
|
+
const x0 = -hw + gap + i * (pw + gap);
|
|
264
|
+
out.push(polygon(frame, roundedRect(x0, -hd + gap, x0 + pw, -hd + gap + 0.2, 0.05), FURNITURE));
|
|
265
|
+
}
|
|
266
|
+
out.push(line(frame, -hw, -hd + 0.5, hw, -hd + 0.5, FURNITURE));
|
|
267
|
+
}
|
|
268
|
+
else if (shape === 'sofa' && frame.depth > 0.5 && frame.width > 1) {
|
|
269
|
+
const back = -hd + Math.min(0.22, frame.depth * 0.25);
|
|
270
|
+
const arm = Math.min(0.2, frame.width * 0.12);
|
|
271
|
+
out.push(line(frame, -hw, back, hw, back, FURNITURE));
|
|
272
|
+
out.push(line(frame, -hw + arm, back, -hw + arm, hd, FURNITURE));
|
|
273
|
+
out.push(line(frame, hw - arm, back, hw - arm, hd, FURNITURE));
|
|
274
|
+
}
|
|
275
|
+
return out;
|
|
276
|
+
}
|
|
277
|
+
function fixtureSymbol(fixture, text, frame) {
|
|
278
|
+
const w = frame.width;
|
|
279
|
+
const d = frame.depth;
|
|
280
|
+
const hw = w / 2;
|
|
281
|
+
const hd = d / 2;
|
|
282
|
+
const out = [];
|
|
283
|
+
switch (fixture) {
|
|
284
|
+
case 'wc': {
|
|
285
|
+
// tank against the wall, elongated bowl in front of it
|
|
286
|
+
const tank = Math.min(0.22, Math.max(0.15, d * 0.3));
|
|
287
|
+
out.push(polygon(frame, roundedRect(-hw, -hd, hw, -hd + tank, 0.03), OUTLINE));
|
|
288
|
+
const bowlLength = Math.max(0.2, d - tank - 0.02);
|
|
289
|
+
const cy = -hd + tank + bowlLength / 2;
|
|
290
|
+
const rx = Math.min(hw * 0.92, 0.2);
|
|
291
|
+
out.push(polygon(frame, ellipse(0, cy, rx, bowlLength / 2), OUTLINE));
|
|
292
|
+
out.push(polygon(frame, ellipse(0, cy + bowlLength * 0.04, rx * 0.68, bowlLength * 0.34), DETAIL));
|
|
293
|
+
out.push(label(frame, text, 0, cy + bowlLength * 0.04));
|
|
294
|
+
return out;
|
|
295
|
+
}
|
|
296
|
+
case 'lav': {
|
|
297
|
+
out.push(polygon(frame, rect(-hw, -hd, hw, hd), OUTLINE));
|
|
298
|
+
// a double vanity from 48 in wide: a basin per sink, each labelled
|
|
299
|
+
const basins = w >= 1.2 ? 2 : 1;
|
|
300
|
+
const pitch = w / basins;
|
|
301
|
+
const rx = Math.min(0.22, pitch * 0.34);
|
|
302
|
+
const ry = Math.min(0.17, d * 0.3);
|
|
303
|
+
for (let i = 0; i < basins; i++) {
|
|
304
|
+
const cx = -hw + pitch * (i + 0.5);
|
|
305
|
+
const cy = d * 0.04;
|
|
306
|
+
out.push(polygon(frame, ellipse(cx, cy, rx, ry), DETAIL));
|
|
307
|
+
out.push(circle(frame, cx, cy - ry - 0.05, 0.018, DETAIL));
|
|
308
|
+
out.push(label(frame, 'LAV', cx, cy));
|
|
309
|
+
}
|
|
310
|
+
return out;
|
|
311
|
+
}
|
|
312
|
+
case 'tub': {
|
|
313
|
+
out.push(polygon(frame, rect(-hw, -hd, hw, hd), OUTLINE));
|
|
314
|
+
const inset = Math.min(0.08, Math.min(w, d) * 0.1);
|
|
315
|
+
// the long axis carries the drain at one end
|
|
316
|
+
const long = w >= d;
|
|
317
|
+
out.push(polygon(frame, roundedRect(-hw + inset, -hd + inset, hw - inset, hd - inset, Math.min(w, d) * 0.22), DETAIL));
|
|
318
|
+
if (long)
|
|
319
|
+
out.push(circle(frame, -hw + inset + 0.14, 0, 0.03, DETAIL));
|
|
320
|
+
else
|
|
321
|
+
out.push(circle(frame, 0, -hd + inset + 0.14, 0.03, DETAIL));
|
|
322
|
+
out.push(label(frame, text, 0, 0));
|
|
323
|
+
return out;
|
|
324
|
+
}
|
|
325
|
+
case 'shower': {
|
|
326
|
+
out.push(polygon(frame, rect(-hw, -hd, hw, hd), OUTLINE));
|
|
327
|
+
const inset = Math.min(0.05, Math.min(w, d) * 0.08);
|
|
328
|
+
out.push(polygon(frame, rect(-hw + inset, -hd + inset, hw - inset, hd - inset), DETAIL));
|
|
329
|
+
// the drain, and the diagonals a shower pan is drawn with, stopped short of the label
|
|
330
|
+
out.push(circle(frame, 0, d * 0.22, 0.035, DETAIL));
|
|
331
|
+
out.push(line(frame, -hw + inset, hd - inset, -0.08, d * 0.22 + 0.06, DETAIL));
|
|
332
|
+
out.push(line(frame, hw - inset, hd - inset, 0.08, d * 0.22 + 0.06, DETAIL));
|
|
333
|
+
out.push(label(frame, text, 0, -d * 0.08));
|
|
334
|
+
return out;
|
|
335
|
+
}
|
|
336
|
+
case 'washer':
|
|
337
|
+
case 'dryer':
|
|
338
|
+
case 'washer-dryer': {
|
|
339
|
+
out.push(polygon(frame, rect(-hw, -hd, hw, hd), OUTLINE));
|
|
340
|
+
if (fixture === 'washer')
|
|
341
|
+
out.push(circle(frame, 0, 0, Math.min(w, d) * 0.32, DETAIL));
|
|
342
|
+
if (fixture === 'washer-dryer')
|
|
343
|
+
out.push(line(frame, -hw, hd - 0.06, hw, hd - 0.06, DETAIL));
|
|
344
|
+
out.push(label(frame, text, 0, 0));
|
|
345
|
+
return out;
|
|
346
|
+
}
|
|
347
|
+
case 'water-heater': {
|
|
348
|
+
const r = Math.min(w, d) / 2;
|
|
349
|
+
out.push(circle(frame, 0, 0, r, OUTLINE));
|
|
350
|
+
out.push(label(frame, text, 0, 0));
|
|
351
|
+
return out;
|
|
352
|
+
}
|
|
353
|
+
case 'ref': {
|
|
354
|
+
out.push(polygon(frame, rect(-hw, -hd, hw, hd), OUTLINE));
|
|
355
|
+
// the door's swing line across the front
|
|
356
|
+
out.push(line(frame, -hw, hd - Math.min(0.06, d * 0.1), hw, hd - Math.min(0.06, d * 0.1), DETAIL));
|
|
357
|
+
out.push(label(frame, text, 0, -d * 0.05));
|
|
358
|
+
return out;
|
|
359
|
+
}
|
|
360
|
+
case 'range':
|
|
361
|
+
case 'cooktop': {
|
|
362
|
+
out.push(polygon(frame, rect(-hw, -hd, hw, hd), OUTLINE));
|
|
363
|
+
const r = Math.min(0.08, w * 0.13, d * 0.14);
|
|
364
|
+
for (const [x, y] of [
|
|
365
|
+
[-w * 0.26, -d * 0.2],
|
|
366
|
+
[w * 0.26, -d * 0.2],
|
|
367
|
+
[-w * 0.26, d * 0.18],
|
|
368
|
+
[w * 0.26, d * 0.18],
|
|
369
|
+
]) {
|
|
370
|
+
out.push(circle(frame, x, y, r, DETAIL));
|
|
371
|
+
}
|
|
372
|
+
out.push(label(frame, text, 0, 0));
|
|
373
|
+
return out;
|
|
374
|
+
}
|
|
375
|
+
case 'sink': {
|
|
376
|
+
out.push(polygon(frame, rect(-hw, -hd, hw, hd), OUTLINE));
|
|
377
|
+
const inset = Math.min(0.06, Math.min(w, d) * 0.12);
|
|
378
|
+
out.push(polygon(frame, roundedRect(-hw + inset, -hd + inset * 1.8, hw - inset, hd - inset, 0.04), DETAIL));
|
|
379
|
+
out.push(label(frame, text, 0, 0));
|
|
380
|
+
return out;
|
|
381
|
+
}
|
|
382
|
+
case 'fireplace': {
|
|
383
|
+
out.push(polygon(frame, rect(-hw, -hd, hw, hd), {
|
|
384
|
+
...OUTLINE,
|
|
385
|
+
strokeWidth: FIXTURE_STROKE_WIDTH * 1.4,
|
|
386
|
+
}));
|
|
387
|
+
if (d > 0.3) {
|
|
388
|
+
// the firebox, splayed toward the room
|
|
389
|
+
const back = -hd + d * 0.25;
|
|
390
|
+
out.push(polygon(frame, [
|
|
391
|
+
[-w * 0.2, back],
|
|
392
|
+
[w * 0.2, back],
|
|
393
|
+
[w * 0.32, hd],
|
|
394
|
+
[-w * 0.32, hd],
|
|
395
|
+
], DETAIL));
|
|
396
|
+
}
|
|
397
|
+
out.push(label(frame, text, 0, 0));
|
|
398
|
+
return out;
|
|
399
|
+
}
|
|
400
|
+
default: {
|
|
401
|
+
// DW, MW, OV, EV: the box and its label
|
|
402
|
+
out.push(polygon(frame, rect(-hw, -hd, hw, hd), OUTLINE));
|
|
403
|
+
out.push(label(frame, text, 0, 0));
|
|
404
|
+
return out;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
package/dist/item/renderer.d.ts
CHANGED
|
@@ -5,5 +5,15 @@ export declare const ItemRenderer: ({ node: storeNode }: {
|
|
|
5
5
|
export declare const ItemPreview: ({ node }: {
|
|
6
6
|
node: ItemNode;
|
|
7
7
|
}) => import("react").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* An artifact rendered through the item's model path (GLB, paint slots,
|
|
10
|
+
* clips, lights, load settling) for a node that is not an item: a window or
|
|
11
|
+
* door built from a script. `view` is that node seen as an item; the host
|
|
12
|
+
* node keeps its own registry entry and pointer events.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ScriptedModel: ({ view, setSettled, }: {
|
|
15
|
+
view: ItemNode;
|
|
16
|
+
setSettled: (value: boolean) => void;
|
|
17
|
+
}) => import("react").JSX.Element;
|
|
8
18
|
export default ItemRenderer;
|
|
9
19
|
//# sourceMappingURL=renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../src/item/renderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../src/item/renderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,QAAQ,EAad,MAAM,kBAAkB,CAAA;AAsazB,eAAO,MAAM,YAAY,GAAI,qBAAqB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,gCAmEnE,CAAA;AA+CD,eAAO,MAAM,WAAW,GAAI,UAAU;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,gCAUvD,CAAA;AAyVD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,uBAG3B;IACD,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACrC,gCAA+F,CAAA;AAEhG,eAAe,YAAY,CAAA"}
|