@pascal-app/nodes 0.1.1
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/box-vent/definition.d.ts +30 -0
- package/dist/box-vent/definition.d.ts.map +1 -0
- package/dist/box-vent/definition.js +210 -0
- package/dist/box-vent/floorplan.d.ts +15 -0
- package/dist/box-vent/floorplan.d.ts.map +1 -0
- package/dist/box-vent/floorplan.js +187 -0
- package/dist/box-vent/geometry.d.ts +40 -0
- package/dist/box-vent/geometry.d.ts.map +1 -0
- package/dist/box-vent/geometry.js +421 -0
- package/dist/box-vent/index.d.ts +4 -0
- package/dist/box-vent/index.d.ts.map +1 -0
- package/dist/box-vent/index.js +3 -0
- package/dist/box-vent/move-tool.d.ts +14 -0
- package/dist/box-vent/move-tool.d.ts.map +1 -0
- package/dist/box-vent/move-tool.js +217 -0
- package/dist/box-vent/panel.d.ts +14 -0
- package/dist/box-vent/panel.d.ts.map +1 -0
- package/dist/box-vent/panel.js +143 -0
- package/dist/box-vent/parametrics.d.ts +9 -0
- package/dist/box-vent/parametrics.d.ts.map +1 -0
- package/dist/box-vent/parametrics.js +35 -0
- package/dist/box-vent/preview.d.ts +17 -0
- package/dist/box-vent/preview.d.ts.map +1 -0
- package/dist/box-vent/preview.js +41 -0
- package/dist/box-vent/renderer.d.ts +26 -0
- package/dist/box-vent/renderer.d.ts.map +1 -0
- package/dist/box-vent/renderer.js +127 -0
- package/dist/box-vent/schema.d.ts +2 -0
- package/dist/box-vent/schema.d.ts.map +1 -0
- package/dist/box-vent/schema.js +3 -0
- package/dist/box-vent/tool.d.ts +13 -0
- package/dist/box-vent/tool.d.ts.map +1 -0
- package/dist/box-vent/tool.js +116 -0
- package/dist/building/definition.d.ts +12 -0
- package/dist/building/definition.d.ts.map +1 -0
- package/dist/building/definition.js +53 -0
- package/dist/building/index.d.ts +2 -0
- package/dist/building/index.d.ts.map +1 -0
- package/dist/building/index.js +1 -0
- package/dist/building/move-tool.d.ts +6 -0
- package/dist/building/move-tool.d.ts.map +1 -0
- package/dist/building/move-tool.js +187 -0
- package/dist/building/parametrics.d.ts +3 -0
- package/dist/building/parametrics.d.ts.map +1 -0
- package/dist/building/parametrics.js +3 -0
- package/dist/building/renderer.d.ts +6 -0
- package/dist/building/renderer.d.ts.map +1 -0
- package/dist/building/renderer.js +12 -0
- package/dist/building/schema.d.ts +2 -0
- package/dist/building/schema.d.ts.map +1 -0
- package/dist/building/schema.js +1 -0
- package/dist/cabinet/animation.d.ts +5 -0
- package/dist/cabinet/animation.d.ts.map +1 -0
- package/dist/cabinet/animation.js +48 -0
- package/dist/cabinet/compartment-card.d.ts +17 -0
- package/dist/cabinet/compartment-card.d.ts.map +1 -0
- package/dist/cabinet/compartment-card.js +145 -0
- package/dist/cabinet/continuous-placement.d.ts +49 -0
- package/dist/cabinet/continuous-placement.d.ts.map +1 -0
- package/dist/cabinet/continuous-placement.js +110 -0
- package/dist/cabinet/cooktop-flame.d.ts +14 -0
- package/dist/cabinet/cooktop-flame.d.ts.map +1 -0
- package/dist/cabinet/cooktop-flame.js +115 -0
- package/dist/cabinet/definition.d.ts +26 -0
- package/dist/cabinet/definition.d.ts.map +1 -0
- package/dist/cabinet/definition.js +1016 -0
- package/dist/cabinet/floorplan-move.d.ts +15 -0
- package/dist/cabinet/floorplan-move.d.ts.map +1 -0
- package/dist/cabinet/floorplan-move.js +192 -0
- package/dist/cabinet/floorplan-overrides.d.ts +16 -0
- package/dist/cabinet/floorplan-overrides.d.ts.map +1 -0
- package/dist/cabinet/floorplan-overrides.js +47 -0
- package/dist/cabinet/floorplan.d.ts +4 -0
- package/dist/cabinet/floorplan.d.ts.map +1 -0
- package/dist/cabinet/floorplan.js +311 -0
- package/dist/cabinet/geometry/cooktop.d.ts +20 -0
- package/dist/cabinet/geometry/cooktop.d.ts.map +1 -0
- package/dist/cabinet/geometry/cooktop.js +269 -0
- package/dist/cabinet/geometry/dishwasher.d.ts +4 -0
- package/dist/cabinet/geometry/dishwasher.d.ts.map +1 -0
- package/dist/cabinet/geometry/dishwasher.js +100 -0
- package/dist/cabinet/geometry/fridge.d.ts +5 -0
- package/dist/cabinet/geometry/fridge.d.ts.map +1 -0
- package/dist/cabinet/geometry/fridge.js +393 -0
- package/dist/cabinet/geometry/fronts.d.ts +9 -0
- package/dist/cabinet/geometry/fronts.d.ts.map +1 -0
- package/dist/cabinet/geometry/fronts.js +468 -0
- package/dist/cabinet/geometry/hood.d.ts +6 -0
- package/dist/cabinet/geometry/hood.d.ts.map +1 -0
- package/dist/cabinet/geometry/hood.js +108 -0
- package/dist/cabinet/geometry/oven-microwave.d.ts +5 -0
- package/dist/cabinet/geometry/oven-microwave.d.ts.map +1 -0
- package/dist/cabinet/geometry/oven-microwave.js +292 -0
- package/dist/cabinet/geometry/pantry.d.ts +5 -0
- package/dist/cabinet/geometry/pantry.d.ts.map +1 -0
- package/dist/cabinet/geometry/pantry.js +80 -0
- package/dist/cabinet/geometry/run.d.ts +6 -0
- package/dist/cabinet/geometry/run.d.ts.map +1 -0
- package/dist/cabinet/geometry/run.js +124 -0
- package/dist/cabinet/geometry/shared.d.ts +46 -0
- package/dist/cabinet/geometry/shared.d.ts.map +1 -0
- package/dist/cabinet/geometry/shared.js +356 -0
- package/dist/cabinet/geometry/sink.d.ts +29 -0
- package/dist/cabinet/geometry/sink.d.ts.map +1 -0
- package/dist/cabinet/geometry/sink.js +262 -0
- package/dist/cabinet/geometry.d.ts +6 -0
- package/dist/cabinet/geometry.d.ts.map +1 -0
- package/dist/cabinet/geometry.js +219 -0
- package/dist/cabinet/index.d.ts +5 -0
- package/dist/cabinet/index.d.ts.map +1 -0
- package/dist/cabinet/index.js +4 -0
- package/dist/cabinet/interaction.d.ts +15 -0
- package/dist/cabinet/interaction.d.ts.map +1 -0
- package/dist/cabinet/interaction.js +109 -0
- package/dist/cabinet/move-frame.d.ts +3 -0
- package/dist/cabinet/move-frame.d.ts.map +1 -0
- package/dist/cabinet/move-frame.js +252 -0
- package/dist/cabinet/paint.d.ts +2 -0
- package/dist/cabinet/paint.d.ts.map +1 -0
- package/dist/cabinet/paint.js +17 -0
- package/dist/cabinet/panel.d.ts +2 -0
- package/dist/cabinet/panel.d.ts.map +1 -0
- package/dist/cabinet/panel.js +356 -0
- package/dist/cabinet/parametrics.d.ts +4 -0
- package/dist/cabinet/parametrics.d.ts.map +1 -0
- package/dist/cabinet/parametrics.js +46 -0
- package/dist/cabinet/placement-status.d.ts +7 -0
- package/dist/cabinet/placement-status.d.ts.map +1 -0
- package/dist/cabinet/placement-status.js +6 -0
- package/dist/cabinet/placement-type.d.ts +9 -0
- package/dist/cabinet/placement-type.d.ts.map +1 -0
- package/dist/cabinet/placement-type.js +13 -0
- package/dist/cabinet/presets.d.ts +10 -0
- package/dist/cabinet/presets.d.ts.map +1 -0
- package/dist/cabinet/presets.js +168 -0
- package/dist/cabinet/quick-action-icons.d.ts +13 -0
- package/dist/cabinet/quick-action-icons.d.ts.map +1 -0
- package/dist/cabinet/quick-action-icons.js +29 -0
- package/dist/cabinet/quick-actions.d.ts +6 -0
- package/dist/cabinet/quick-actions.d.ts.map +1 -0
- package/dist/cabinet/quick-actions.js +203 -0
- package/dist/cabinet/run-layout.d.ts +94 -0
- package/dist/cabinet/run-layout.d.ts.map +1 -0
- package/dist/cabinet/run-layout.js +315 -0
- package/dist/cabinet/run-ops.d.ts +140 -0
- package/dist/cabinet/run-ops.d.ts.map +1 -0
- package/dist/cabinet/run-ops.js +1472 -0
- package/dist/cabinet/run-panel.d.ts +17 -0
- package/dist/cabinet/run-panel.d.ts.map +1 -0
- package/dist/cabinet/run-panel.js +220 -0
- package/dist/cabinet/scene-action.d.ts +8 -0
- package/dist/cabinet/scene-action.d.ts.map +1 -0
- package/dist/cabinet/scene-action.js +130 -0
- package/dist/cabinet/schema.d.ts +2 -0
- package/dist/cabinet/schema.d.ts.map +1 -0
- package/dist/cabinet/schema.js +1 -0
- package/dist/cabinet/slots.d.ts +4 -0
- package/dist/cabinet/slots.d.ts.map +1 -0
- package/dist/cabinet/slots.js +24 -0
- package/dist/cabinet/stack-transitions.d.ts +12 -0
- package/dist/cabinet/stack-transitions.d.ts.map +1 -0
- package/dist/cabinet/stack-transitions.js +112 -0
- package/dist/cabinet/stack.d.ts +102 -0
- package/dist/cabinet/stack.d.ts.map +1 -0
- package/dist/cabinet/stack.js +388 -0
- package/dist/cabinet/system.d.ts +13 -0
- package/dist/cabinet/system.d.ts.map +1 -0
- package/dist/cabinet/system.js +116 -0
- package/dist/cabinet/tool.d.ts +3 -0
- package/dist/cabinet/tool.d.ts.map +1 -0
- package/dist/cabinet/tool.js +850 -0
- package/dist/cabinet/tree-structure.d.ts +13 -0
- package/dist/cabinet/tree-structure.d.ts.map +1 -0
- package/dist/cabinet/tree-structure.js +138 -0
- package/dist/cabinet/wall-snap.d.ts +66 -0
- package/dist/cabinet/wall-snap.d.ts.map +1 -0
- package/dist/cabinet/wall-snap.js +255 -0
- package/dist/ceiling/boundary-editor.d.ts +17 -0
- package/dist/ceiling/boundary-editor.d.ts.map +1 -0
- package/dist/ceiling/boundary-editor.js +118 -0
- package/dist/ceiling/definition.d.ts +20 -0
- package/dist/ceiling/definition.d.ts.map +1 -0
- package/dist/ceiling/definition.js +161 -0
- package/dist/ceiling/floorplan-affordances.d.ts +181 -0
- package/dist/ceiling/floorplan-affordances.d.ts.map +1 -0
- package/dist/ceiling/floorplan-affordances.js +28 -0
- package/dist/ceiling/floorplan-move.d.ts +12 -0
- package/dist/ceiling/floorplan-move.d.ts.map +1 -0
- package/dist/ceiling/floorplan-move.js +16 -0
- package/dist/ceiling/floorplan.d.ts +9 -0
- package/dist/ceiling/floorplan.d.ts.map +1 -0
- package/dist/ceiling/floorplan.js +90 -0
- package/dist/ceiling/hole-editor.d.ts +10 -0
- package/dist/ceiling/hole-editor.d.ts.map +1 -0
- package/dist/ceiling/hole-editor.js +45 -0
- package/dist/ceiling/index.d.ts +3 -0
- package/dist/ceiling/index.d.ts.map +1 -0
- package/dist/ceiling/index.js +2 -0
- package/dist/ceiling/materials.d.ts +15 -0
- package/dist/ceiling/materials.d.ts.map +1 -0
- package/dist/ceiling/materials.js +61 -0
- package/dist/ceiling/move-tool.d.ts +6 -0
- package/dist/ceiling/move-tool.d.ts.map +1 -0
- package/dist/ceiling/move-tool.js +264 -0
- package/dist/ceiling/paint.d.ts +9 -0
- package/dist/ceiling/paint.d.ts.map +1 -0
- package/dist/ceiling/paint.js +37 -0
- package/dist/ceiling/panel.d.ts +11 -0
- package/dist/ceiling/panel.d.ts.map +1 -0
- package/dist/ceiling/panel.js +138 -0
- package/dist/ceiling/parametrics.d.ts +11 -0
- package/dist/ceiling/parametrics.d.ts.map +1 -0
- package/dist/ceiling/parametrics.js +16 -0
- package/dist/ceiling/renderer.d.ts +6 -0
- package/dist/ceiling/renderer.d.ts.map +1 -0
- package/dist/ceiling/renderer.js +87 -0
- package/dist/ceiling/schema.d.ts +2 -0
- package/dist/ceiling/schema.d.ts.map +1 -0
- package/dist/ceiling/schema.js +1 -0
- package/dist/ceiling/slots.d.ts +6 -0
- package/dist/ceiling/slots.d.ts.map +1 -0
- package/dist/ceiling/slots.js +7 -0
- package/dist/ceiling/system.d.ts +10 -0
- package/dist/ceiling/system.d.ts.map +1 -0
- package/dist/ceiling/system.js +14 -0
- package/dist/ceiling/tool.d.ts +3 -0
- package/dist/ceiling/tool.d.ts.map +1 -0
- package/dist/ceiling/tool.js +227 -0
- package/dist/chimney/definition.d.ts +18 -0
- package/dist/chimney/definition.d.ts.map +1 -0
- package/dist/chimney/definition.js +387 -0
- package/dist/chimney/floorplan.d.ts +17 -0
- package/dist/chimney/floorplan.d.ts.map +1 -0
- package/dist/chimney/floorplan.js +190 -0
- package/dist/chimney/geometry.d.ts +29 -0
- package/dist/chimney/geometry.d.ts.map +1 -0
- package/dist/chimney/geometry.js +500 -0
- package/dist/chimney/holes.d.ts +30 -0
- package/dist/chimney/holes.d.ts.map +1 -0
- package/dist/chimney/holes.js +310 -0
- package/dist/chimney/index.d.ts +4 -0
- package/dist/chimney/index.d.ts.map +1 -0
- package/dist/chimney/index.js +3 -0
- package/dist/chimney/move-tool.d.ts +19 -0
- package/dist/chimney/move-tool.d.ts.map +1 -0
- package/dist/chimney/move-tool.js +286 -0
- package/dist/chimney/paint.d.ts +24 -0
- package/dist/chimney/paint.d.ts.map +1 -0
- package/dist/chimney/paint.js +96 -0
- package/dist/chimney/panel.d.ts +2 -0
- package/dist/chimney/panel.d.ts.map +1 -0
- package/dist/chimney/panel.js +350 -0
- package/dist/chimney/parametrics.d.ts +4 -0
- package/dist/chimney/parametrics.d.ts.map +1 -0
- package/dist/chimney/parametrics.js +177 -0
- package/dist/chimney/presets.d.ts +27 -0
- package/dist/chimney/presets.d.ts.map +1 -0
- package/dist/chimney/presets.js +93 -0
- package/dist/chimney/preview.d.ts +14 -0
- package/dist/chimney/preview.d.ts.map +1 -0
- package/dist/chimney/preview.js +74 -0
- package/dist/chimney/renderer.d.ts +17 -0
- package/dist/chimney/renderer.d.ts.map +1 -0
- package/dist/chimney/renderer.js +193 -0
- package/dist/chimney/roof-trim.d.ts +23 -0
- package/dist/chimney/roof-trim.d.ts.map +1 -0
- package/dist/chimney/roof-trim.js +94 -0
- package/dist/chimney/schema.d.ts +2 -0
- package/dist/chimney/schema.d.ts.map +1 -0
- package/dist/chimney/schema.js +1 -0
- package/dist/chimney/tool.d.ts +3 -0
- package/dist/chimney/tool.d.ts.map +1 -0
- package/dist/chimney/tool.js +126 -0
- package/dist/column/definition.d.ts +21 -0
- package/dist/column/definition.d.ts.map +1 -0
- package/dist/column/definition.js +375 -0
- package/dist/column/floorplan-affordances.d.ts +32 -0
- package/dist/column/floorplan-affordances.d.ts.map +1 -0
- package/dist/column/floorplan-affordances.js +126 -0
- package/dist/column/floorplan-move.d.ts +11 -0
- package/dist/column/floorplan-move.d.ts.map +1 -0
- package/dist/column/floorplan-move.js +66 -0
- package/dist/column/floorplan.d.ts +15 -0
- package/dist/column/floorplan.d.ts.map +1 -0
- package/dist/column/floorplan.js +238 -0
- package/dist/column/index.d.ts +2 -0
- package/dist/column/index.d.ts.map +1 -0
- package/dist/column/index.js +1 -0
- package/dist/column/paint.d.ts +2 -0
- package/dist/column/paint.d.ts.map +1 -0
- package/dist/column/paint.js +15 -0
- package/dist/column/panel.d.ts +2 -0
- package/dist/column/panel.d.ts.map +1 -0
- package/dist/column/panel.js +414 -0
- package/dist/column/parametrics.d.ts +12 -0
- package/dist/column/parametrics.d.ts.map +1 -0
- package/dist/column/parametrics.js +21 -0
- package/dist/column/renderer.d.ts +20 -0
- package/dist/column/renderer.d.ts.map +1 -0
- package/dist/column/renderer.js +1016 -0
- package/dist/column/schema.d.ts +2 -0
- package/dist/column/schema.d.ts.map +1 -0
- package/dist/column/schema.js +1 -0
- package/dist/column/slots.d.ts +9 -0
- package/dist/column/slots.d.ts.map +1 -0
- package/dist/column/slots.js +19 -0
- package/dist/column/tool.d.ts +14 -0
- package/dist/column/tool.d.ts.map +1 -0
- package/dist/column/tool.js +133 -0
- package/dist/cupola/definition.d.ts +11 -0
- package/dist/cupola/definition.d.ts.map +1 -0
- package/dist/cupola/definition.js +143 -0
- package/dist/cupola/floorplan.d.ts +9 -0
- package/dist/cupola/floorplan.d.ts.map +1 -0
- package/dist/cupola/floorplan.js +89 -0
- package/dist/cupola/geometry.d.ts +23 -0
- package/dist/cupola/geometry.d.ts.map +1 -0
- package/dist/cupola/geometry.js +262 -0
- package/dist/cupola/index.d.ts +4 -0
- package/dist/cupola/index.d.ts.map +1 -0
- package/dist/cupola/index.js +3 -0
- package/dist/cupola/move-tool.d.ts +12 -0
- package/dist/cupola/move-tool.d.ts.map +1 -0
- package/dist/cupola/move-tool.js +206 -0
- package/dist/cupola/panel.d.ts +7 -0
- package/dist/cupola/panel.d.ts.map +1 -0
- package/dist/cupola/panel.js +106 -0
- package/dist/cupola/parametrics.d.ts +9 -0
- package/dist/cupola/parametrics.d.ts.map +1 -0
- package/dist/cupola/parametrics.js +30 -0
- package/dist/cupola/preview.d.ts +13 -0
- package/dist/cupola/preview.d.ts.map +1 -0
- package/dist/cupola/preview.js +37 -0
- package/dist/cupola/renderer.d.ts +12 -0
- package/dist/cupola/renderer.d.ts.map +1 -0
- package/dist/cupola/renderer.js +66 -0
- package/dist/cupola/schema.d.ts +2 -0
- package/dist/cupola/schema.d.ts.map +1 -0
- package/dist/cupola/schema.js +3 -0
- package/dist/cupola/tool.d.ts +8 -0
- package/dist/cupola/tool.d.ts.map +1 -0
- package/dist/cupola/tool.js +105 -0
- package/dist/door/definition.d.ts +23 -0
- package/dist/door/definition.d.ts.map +1 -0
- package/dist/door/definition.js +257 -0
- package/dist/door/door-math.d.ts +23 -0
- package/dist/door/door-math.d.ts.map +1 -0
- package/dist/door/door-math.js +38 -0
- package/dist/door/floorplan-affordances.d.ts +21 -0
- package/dist/door/floorplan-affordances.d.ts.map +1 -0
- package/dist/door/floorplan-affordances.js +102 -0
- package/dist/door/floorplan-move.d.ts +18 -0
- package/dist/door/floorplan-move.d.ts.map +1 -0
- package/dist/door/floorplan-move.js +239 -0
- package/dist/door/floorplan.d.ts +37 -0
- package/dist/door/floorplan.d.ts.map +1 -0
- package/dist/door/floorplan.js +702 -0
- package/dist/door/index.d.ts +3 -0
- package/dist/door/index.d.ts.map +1 -0
- package/dist/door/index.js +2 -0
- package/dist/door/move-tool.d.ts +6 -0
- package/dist/door/move-tool.d.ts.map +1 -0
- package/dist/door/move-tool.js +898 -0
- package/dist/door/paint.d.ts +8 -0
- package/dist/door/paint.d.ts.map +1 -0
- package/dist/door/paint.js +11 -0
- package/dist/door/panel.d.ts +2 -0
- package/dist/door/panel.d.ts.map +1 -0
- package/dist/door/panel.js +576 -0
- package/dist/door/parametrics.d.ts +12 -0
- package/dist/door/parametrics.d.ts.map +1 -0
- package/dist/door/parametrics.js +27 -0
- package/dist/door/preview.d.ts +18 -0
- package/dist/door/preview.d.ts.map +1 -0
- package/dist/door/preview.js +36 -0
- package/dist/door/renderer.d.ts +6 -0
- package/dist/door/renderer.d.ts.map +1 -0
- package/dist/door/renderer.js +26 -0
- package/dist/door/schema.d.ts +2 -0
- package/dist/door/schema.d.ts.map +1 -0
- package/dist/door/schema.js +1 -0
- package/dist/door/slots.d.ts +9 -0
- package/dist/door/slots.d.ts.map +1 -0
- package/dist/door/slots.js +20 -0
- package/dist/door/system.d.ts +18 -0
- package/dist/door/system.d.ts.map +1 -0
- package/dist/door/system.js +22 -0
- package/dist/door/tool.d.ts +15 -0
- package/dist/door/tool.d.ts.map +1 -0
- package/dist/door/tool.js +555 -0
- package/dist/dormer/csg-geometry.d.ts +104 -0
- package/dist/dormer/csg-geometry.d.ts.map +1 -0
- package/dist/dormer/csg-geometry.js +755 -0
- package/dist/dormer/definition.d.ts +20 -0
- package/dist/dormer/definition.d.ts.map +1 -0
- package/dist/dormer/definition.js +491 -0
- package/dist/dormer/floorplan.d.ts +23 -0
- package/dist/dormer/floorplan.d.ts.map +1 -0
- package/dist/dormer/floorplan.js +193 -0
- package/dist/dormer/geometry.d.ts +42 -0
- package/dist/dormer/geometry.d.ts.map +1 -0
- package/dist/dormer/geometry.js +63 -0
- package/dist/dormer/index.d.ts +5 -0
- package/dist/dormer/index.d.ts.map +1 -0
- package/dist/dormer/index.js +3 -0
- package/dist/dormer/move-tool.d.ts +16 -0
- package/dist/dormer/move-tool.d.ts.map +1 -0
- package/dist/dormer/move-tool.js +136 -0
- package/dist/dormer/paint.d.ts +24 -0
- package/dist/dormer/paint.d.ts.map +1 -0
- package/dist/dormer/paint.js +103 -0
- package/dist/dormer/panel-actions-section.d.ts +10 -0
- package/dist/dormer/panel-actions-section.d.ts.map +1 -0
- package/dist/dormer/panel-actions-section.js +11 -0
- package/dist/dormer/panel-position-section.d.ts +17 -0
- package/dist/dormer/panel-position-section.d.ts.map +1 -0
- package/dist/dormer/panel-position-section.js +162 -0
- package/dist/dormer/panel-window-section.d.ts +14 -0
- package/dist/dormer/panel-window-section.d.ts.map +1 -0
- package/dist/dormer/panel-window-section.js +59 -0
- package/dist/dormer/panel.d.ts +2 -0
- package/dist/dormer/panel.d.ts.map +1 -0
- package/dist/dormer/panel.js +134 -0
- package/dist/dormer/parametrics.d.ts +4 -0
- package/dist/dormer/parametrics.d.ts.map +1 -0
- package/dist/dormer/parametrics.js +110 -0
- package/dist/dormer/placement-guides.d.ts +28 -0
- package/dist/dormer/placement-guides.d.ts.map +1 -0
- package/dist/dormer/placement-guides.js +170 -0
- package/dist/dormer/preview.d.ts +7 -0
- package/dist/dormer/preview.d.ts.map +1 -0
- package/dist/dormer/preview.js +29 -0
- package/dist/dormer/renderer.d.ts +8 -0
- package/dist/dormer/renderer.d.ts.map +1 -0
- package/dist/dormer/renderer.js +134 -0
- package/dist/dormer/schema.d.ts +3 -0
- package/dist/dormer/schema.d.ts.map +1 -0
- package/dist/dormer/schema.js +1 -0
- package/dist/dormer/tool.d.ts +11 -0
- package/dist/dormer/tool.d.ts.map +1 -0
- package/dist/dormer/tool.js +69 -0
- package/dist/dormer/use-dormer-placement.d.ts +44 -0
- package/dist/dormer/use-dormer-placement.d.ts.map +1 -0
- package/dist/dormer/use-dormer-placement.js +166 -0
- package/dist/dormer/window-assembly.d.ts +22 -0
- package/dist/dormer/window-assembly.d.ts.map +1 -0
- package/dist/dormer/window-assembly.js +111 -0
- package/dist/dormer/window-frame.d.ts +24 -0
- package/dist/dormer/window-frame.d.ts.map +1 -0
- package/dist/dormer/window-frame.js +100 -0
- package/dist/downspout/definition.d.ts +17 -0
- package/dist/downspout/definition.d.ts.map +1 -0
- package/dist/downspout/definition.js +173 -0
- package/dist/downspout/geometry.d.ts +5 -0
- package/dist/downspout/geometry.d.ts.map +1 -0
- package/dist/downspout/geometry.js +204 -0
- package/dist/downspout/index.d.ts +4 -0
- package/dist/downspout/index.d.ts.map +1 -0
- package/dist/downspout/index.js +3 -0
- package/dist/downspout/inspector-editors.d.ts +25 -0
- package/dist/downspout/inspector-editors.d.ts.map +1 -0
- package/dist/downspout/inspector-editors.js +61 -0
- package/dist/downspout/parametrics.d.ts +4 -0
- package/dist/downspout/parametrics.d.ts.map +1 -0
- package/dist/downspout/parametrics.js +66 -0
- package/dist/downspout/preview.d.ts +19 -0
- package/dist/downspout/preview.d.ts.map +1 -0
- package/dist/downspout/preview.js +48 -0
- package/dist/downspout/renderer.d.ts +22 -0
- package/dist/downspout/renderer.d.ts.map +1 -0
- package/dist/downspout/renderer.js +153 -0
- package/dist/downspout/routing.d.ts +81 -0
- package/dist/downspout/routing.d.ts.map +1 -0
- package/dist/downspout/routing.js +131 -0
- package/dist/downspout/schema.d.ts +2 -0
- package/dist/downspout/schema.d.ts.map +1 -0
- package/dist/downspout/schema.js +3 -0
- package/dist/downspout/tool.d.ts +3 -0
- package/dist/downspout/tool.d.ts.map +1 -0
- package/dist/downspout/tool.js +148 -0
- package/dist/duct-fitting/definition.d.ts +12 -0
- package/dist/duct-fitting/definition.d.ts.map +1 -0
- package/dist/duct-fitting/definition.js +124 -0
- package/dist/duct-fitting/floorplan.d.ts +12 -0
- package/dist/duct-fitting/floorplan.d.ts.map +1 -0
- package/dist/duct-fitting/floorplan.js +59 -0
- package/dist/duct-fitting/geometry.d.ts +26 -0
- package/dist/duct-fitting/geometry.d.ts.map +1 -0
- package/dist/duct-fitting/geometry.js +341 -0
- package/dist/duct-fitting/index.d.ts +5 -0
- package/dist/duct-fitting/index.d.ts.map +1 -0
- package/dist/duct-fitting/index.js +4 -0
- package/dist/duct-fitting/inspector-editors.d.ts +6 -0
- package/dist/duct-fitting/inspector-editors.d.ts.map +1 -0
- package/dist/duct-fitting/inspector-editors.js +16 -0
- package/dist/duct-fitting/move-tool.d.ts +23 -0
- package/dist/duct-fitting/move-tool.d.ts.map +1 -0
- package/dist/duct-fitting/move-tool.js +302 -0
- package/dist/duct-fitting/parametrics.d.ts +4 -0
- package/dist/duct-fitting/parametrics.d.ts.map +1 -0
- package/dist/duct-fitting/parametrics.js +328 -0
- package/dist/duct-fitting/ports.d.ts +32 -0
- package/dist/duct-fitting/ports.d.ts.map +1 -0
- package/dist/duct-fitting/ports.js +140 -0
- package/dist/duct-fitting/schema.d.ts +2 -0
- package/dist/duct-fitting/schema.d.ts.map +1 -0
- package/dist/duct-fitting/schema.js +1 -0
- package/dist/duct-fitting/selection.d.ts +27 -0
- package/dist/duct-fitting/selection.d.ts.map +1 -0
- package/dist/duct-fitting/selection.js +677 -0
- package/dist/duct-fitting/tool.d.ts +18 -0
- package/dist/duct-fitting/tool.d.ts.map +1 -0
- package/dist/duct-fitting/tool.js +160 -0
- package/dist/duct-segment/definition.d.ts +4 -0
- package/dist/duct-segment/definition.d.ts.map +1 -0
- package/dist/duct-segment/definition.js +180 -0
- package/dist/duct-segment/floorplan.d.ts +12 -0
- package/dist/duct-segment/floorplan.d.ts.map +1 -0
- package/dist/duct-segment/floorplan.js +121 -0
- package/dist/duct-segment/geometry.d.ts +99 -0
- package/dist/duct-segment/geometry.d.ts.map +1 -0
- package/dist/duct-segment/geometry.js +368 -0
- package/dist/duct-segment/index.d.ts +4 -0
- package/dist/duct-segment/index.d.ts.map +1 -0
- package/dist/duct-segment/index.js +3 -0
- package/dist/duct-segment/move-tool.d.ts +22 -0
- package/dist/duct-segment/move-tool.d.ts.map +1 -0
- package/dist/duct-segment/move-tool.js +347 -0
- package/dist/duct-segment/parametrics.d.ts +4 -0
- package/dist/duct-segment/parametrics.d.ts.map +1 -0
- package/dist/duct-segment/parametrics.js +165 -0
- package/dist/duct-segment/schema.d.ts +2 -0
- package/dist/duct-segment/schema.d.ts.map +1 -0
- package/dist/duct-segment/schema.js +1 -0
- package/dist/duct-segment/selection.d.ts +34 -0
- package/dist/duct-segment/selection.d.ts.map +1 -0
- package/dist/duct-segment/selection.js +1395 -0
- package/dist/duct-segment/tool.d.ts +3 -0
- package/dist/duct-segment/tool.d.ts.map +1 -0
- package/dist/duct-segment/tool.js +924 -0
- package/dist/duct-terminal/definition.d.ts +13 -0
- package/dist/duct-terminal/definition.d.ts.map +1 -0
- package/dist/duct-terminal/definition.js +87 -0
- package/dist/duct-terminal/floorplan.d.ts +11 -0
- package/dist/duct-terminal/floorplan.d.ts.map +1 -0
- package/dist/duct-terminal/floorplan.js +61 -0
- package/dist/duct-terminal/geometry.d.ts +14 -0
- package/dist/duct-terminal/geometry.d.ts.map +1 -0
- package/dist/duct-terminal/geometry.js +78 -0
- package/dist/duct-terminal/index.d.ts +5 -0
- package/dist/duct-terminal/index.d.ts.map +1 -0
- package/dist/duct-terminal/index.js +4 -0
- package/dist/duct-terminal/parametrics.d.ts +4 -0
- package/dist/duct-terminal/parametrics.d.ts.map +1 -0
- package/dist/duct-terminal/parametrics.js +69 -0
- package/dist/duct-terminal/ports.d.ts +27 -0
- package/dist/duct-terminal/ports.d.ts.map +1 -0
- package/dist/duct-terminal/ports.js +60 -0
- package/dist/duct-terminal/schema.d.ts +2 -0
- package/dist/duct-terminal/schema.d.ts.map +1 -0
- package/dist/duct-terminal/schema.js +1 -0
- package/dist/duct-terminal/tool.d.ts +13 -0
- package/dist/duct-terminal/tool.d.ts.map +1 -0
- package/dist/duct-terminal/tool.js +360 -0
- package/dist/elevator/definition.d.ts +11 -0
- package/dist/elevator/definition.d.ts.map +1 -0
- package/dist/elevator/definition.js +255 -0
- package/dist/elevator/floorplan-affordances.d.ts +21 -0
- package/dist/elevator/floorplan-affordances.d.ts.map +1 -0
- package/dist/elevator/floorplan-affordances.js +94 -0
- package/dist/elevator/floorplan.d.ts +3 -0
- package/dist/elevator/floorplan.d.ts.map +1 -0
- package/dist/elevator/floorplan.js +360 -0
- package/dist/elevator/index.d.ts +2 -0
- package/dist/elevator/index.d.ts.map +1 -0
- package/dist/elevator/index.js +1 -0
- package/dist/elevator/paint.d.ts +2 -0
- package/dist/elevator/paint.d.ts.map +1 -0
- package/dist/elevator/paint.js +6 -0
- package/dist/elevator/panel.d.ts +2 -0
- package/dist/elevator/panel.d.ts.map +1 -0
- package/dist/elevator/panel.js +397 -0
- package/dist/elevator/parametrics.d.ts +3 -0
- package/dist/elevator/parametrics.d.ts.map +1 -0
- package/dist/elevator/parametrics.js +4 -0
- package/dist/elevator/renderer.d.ts +6 -0
- package/dist/elevator/renderer.d.ts.map +1 -0
- package/dist/elevator/renderer.js +583 -0
- package/dist/elevator/schema.d.ts +2 -0
- package/dist/elevator/schema.d.ts.map +1 -0
- package/dist/elevator/schema.js +1 -0
- package/dist/elevator/slots.d.ts +8 -0
- package/dist/elevator/slots.d.ts.map +1 -0
- package/dist/elevator/slots.js +17 -0
- package/dist/elevator/system.d.ts +8 -0
- package/dist/elevator/system.d.ts.map +1 -0
- package/dist/elevator/system.js +13 -0
- package/dist/eyebrow-vent/definition.d.ts +12 -0
- package/dist/eyebrow-vent/definition.d.ts.map +1 -0
- package/dist/eyebrow-vent/definition.js +150 -0
- package/dist/eyebrow-vent/floorplan.d.ts +9 -0
- package/dist/eyebrow-vent/floorplan.d.ts.map +1 -0
- package/dist/eyebrow-vent/floorplan.js +86 -0
- package/dist/eyebrow-vent/geometry.d.ts +25 -0
- package/dist/eyebrow-vent/geometry.d.ts.map +1 -0
- package/dist/eyebrow-vent/geometry.js +313 -0
- package/dist/eyebrow-vent/index.d.ts +4 -0
- package/dist/eyebrow-vent/index.d.ts.map +1 -0
- package/dist/eyebrow-vent/index.js +3 -0
- package/dist/eyebrow-vent/move-tool.d.ts +13 -0
- package/dist/eyebrow-vent/move-tool.d.ts.map +1 -0
- package/dist/eyebrow-vent/move-tool.js +207 -0
- package/dist/eyebrow-vent/panel.d.ts +7 -0
- package/dist/eyebrow-vent/panel.d.ts.map +1 -0
- package/dist/eyebrow-vent/panel.js +106 -0
- package/dist/eyebrow-vent/parametrics.d.ts +9 -0
- package/dist/eyebrow-vent/parametrics.d.ts.map +1 -0
- package/dist/eyebrow-vent/parametrics.js +31 -0
- package/dist/eyebrow-vent/preview.d.ts +13 -0
- package/dist/eyebrow-vent/preview.d.ts.map +1 -0
- package/dist/eyebrow-vent/preview.js +37 -0
- package/dist/eyebrow-vent/renderer.d.ts +12 -0
- package/dist/eyebrow-vent/renderer.d.ts.map +1 -0
- package/dist/eyebrow-vent/renderer.js +68 -0
- package/dist/eyebrow-vent/schema.d.ts +2 -0
- package/dist/eyebrow-vent/schema.d.ts.map +1 -0
- package/dist/eyebrow-vent/schema.js +3 -0
- package/dist/eyebrow-vent/tool.d.ts +9 -0
- package/dist/eyebrow-vent/tool.d.ts.map +1 -0
- package/dist/eyebrow-vent/tool.js +111 -0
- package/dist/fence/actions/move-endpoint.d.ts +32 -0
- package/dist/fence/actions/move-endpoint.d.ts.map +1 -0
- package/dist/fence/actions/move-endpoint.js +201 -0
- package/dist/fence/curve-tool.d.ts +17 -0
- package/dist/fence/curve-tool.d.ts.map +1 -0
- package/dist/fence/curve-tool.js +122 -0
- package/dist/fence/definition.d.ts +17 -0
- package/dist/fence/definition.d.ts.map +1 -0
- package/dist/fence/definition.js +281 -0
- package/dist/fence/floorplan-affordances.d.ts +31 -0
- package/dist/fence/floorplan-affordances.d.ts.map +1 -0
- package/dist/fence/floorplan-affordances.js +271 -0
- package/dist/fence/floorplan-move.d.ts +10 -0
- package/dist/fence/floorplan-move.d.ts.map +1 -0
- package/dist/fence/floorplan-move.js +162 -0
- package/dist/fence/floorplan.d.ts +4 -0
- package/dist/fence/floorplan.d.ts.map +1 -0
- package/dist/fence/floorplan.js +452 -0
- package/dist/fence/geometry.d.ts +6 -0
- package/dist/fence/geometry.d.ts.map +1 -0
- package/dist/fence/geometry.js +65 -0
- package/dist/fence/index.d.ts +3 -0
- package/dist/fence/index.d.ts.map +1 -0
- package/dist/fence/index.js +2 -0
- package/dist/fence/inspector-editors.d.ts +24 -0
- package/dist/fence/inspector-editors.d.ts.map +1 -0
- package/dist/fence/inspector-editors.js +43 -0
- package/dist/fence/move-control-point-tool.d.ts +9 -0
- package/dist/fence/move-control-point-tool.d.ts.map +1 -0
- package/dist/fence/move-control-point-tool.js +91 -0
- package/dist/fence/move-endpoint-tool.d.ts +27 -0
- package/dist/fence/move-endpoint-tool.d.ts.map +1 -0
- package/dist/fence/move-endpoint-tool.js +190 -0
- package/dist/fence/move-tangent-tool.d.ts +10 -0
- package/dist/fence/move-tangent-tool.d.ts.map +1 -0
- package/dist/fence/move-tangent-tool.js +88 -0
- package/dist/fence/move-tool.d.ts +6 -0
- package/dist/fence/move-tool.d.ts.map +1 -0
- package/dist/fence/move-tool.js +271 -0
- package/dist/fence/paint.d.ts +2 -0
- package/dist/fence/paint.d.ts.map +1 -0
- package/dist/fence/paint.js +17 -0
- package/dist/fence/parametrics.d.ts +16 -0
- package/dist/fence/parametrics.d.ts.map +1 -0
- package/dist/fence/parametrics.js +86 -0
- package/dist/fence/schema.d.ts +10 -0
- package/dist/fence/schema.d.ts.map +1 -0
- package/dist/fence/schema.js +9 -0
- package/dist/fence/slots.d.ts +10 -0
- package/dist/fence/slots.d.ts.map +1 -0
- package/dist/fence/slots.js +23 -0
- package/dist/fence/tool.d.ts +3 -0
- package/dist/fence/tool.d.ts.map +1 -0
- package/dist/fence/tool.js +563 -0
- package/dist/guide/definition.d.ts +10 -0
- package/dist/guide/definition.d.ts.map +1 -0
- package/dist/guide/definition.js +52 -0
- package/dist/guide/index.d.ts +2 -0
- package/dist/guide/index.d.ts.map +1 -0
- package/dist/guide/index.js +1 -0
- package/dist/guide/parametrics.d.ts +3 -0
- package/dist/guide/parametrics.d.ts.map +1 -0
- package/dist/guide/parametrics.js +3 -0
- package/dist/guide/renderer.d.ts +6 -0
- package/dist/guide/renderer.d.ts.map +1 -0
- package/dist/guide/renderer.js +52 -0
- package/dist/guide/schema.d.ts +2 -0
- package/dist/guide/schema.d.ts.map +1 -0
- package/dist/guide/schema.js +1 -0
- package/dist/guide/system.d.ts +3 -0
- package/dist/guide/system.d.ts.map +1 -0
- package/dist/guide/system.js +3 -0
- package/dist/gutter/corner-mitre.d.ts +88 -0
- package/dist/gutter/corner-mitre.d.ts.map +1 -0
- package/dist/gutter/corner-mitre.js +176 -0
- package/dist/gutter/definition.d.ts +19 -0
- package/dist/gutter/definition.d.ts.map +1 -0
- package/dist/gutter/definition.js +164 -0
- package/dist/gutter/downspouts-panel.d.ts +8 -0
- package/dist/gutter/downspouts-panel.d.ts.map +1 -0
- package/dist/gutter/downspouts-panel.js +111 -0
- package/dist/gutter/eave-align.d.ts +33 -0
- package/dist/gutter/eave-align.d.ts.map +1 -0
- package/dist/gutter/eave-align.js +50 -0
- package/dist/gutter/eave-snap.d.ts +45 -0
- package/dist/gutter/eave-snap.d.ts.map +1 -0
- package/dist/gutter/eave-snap.js +128 -0
- package/dist/gutter/floorplan.d.ts +18 -0
- package/dist/gutter/floorplan.d.ts.map +1 -0
- package/dist/gutter/floorplan.js +274 -0
- package/dist/gutter/geometry.d.ts +39 -0
- package/dist/gutter/geometry.d.ts.map +1 -0
- package/dist/gutter/geometry.js +532 -0
- package/dist/gutter/index.d.ts +4 -0
- package/dist/gutter/index.d.ts.map +1 -0
- package/dist/gutter/index.js +3 -0
- package/dist/gutter/length-snap.d.ts +16 -0
- package/dist/gutter/length-snap.d.ts.map +1 -0
- package/dist/gutter/length-snap.js +177 -0
- package/dist/gutter/move-tool.d.ts +21 -0
- package/dist/gutter/move-tool.d.ts.map +1 -0
- package/dist/gutter/move-tool.js +223 -0
- package/dist/gutter/outlet-lookup.d.ts +43 -0
- package/dist/gutter/outlet-lookup.d.ts.map +1 -0
- package/dist/gutter/outlet-lookup.js +50 -0
- package/dist/gutter/parametrics.d.ts +4 -0
- package/dist/gutter/parametrics.d.ts.map +1 -0
- package/dist/gutter/parametrics.js +62 -0
- package/dist/gutter/preview.d.ts +22 -0
- package/dist/gutter/preview.d.ts.map +1 -0
- package/dist/gutter/preview.js +57 -0
- package/dist/gutter/profile-geometry.d.ts +44 -0
- package/dist/gutter/profile-geometry.d.ts.map +1 -0
- package/dist/gutter/profile-geometry.js +56 -0
- package/dist/gutter/renderer.d.ts +22 -0
- package/dist/gutter/renderer.d.ts.map +1 -0
- package/dist/gutter/renderer.js +202 -0
- package/dist/gutter/schema.d.ts +2 -0
- package/dist/gutter/schema.d.ts.map +1 -0
- package/dist/gutter/schema.js +3 -0
- package/dist/gutter/tool.d.ts +25 -0
- package/dist/gutter/tool.d.ts.map +1 -0
- package/dist/gutter/tool.js +124 -0
- package/dist/hvac-equipment/definition.d.ts +13 -0
- package/dist/hvac-equipment/definition.d.ts.map +1 -0
- package/dist/hvac-equipment/definition.js +92 -0
- package/dist/hvac-equipment/floorplan.d.ts +10 -0
- package/dist/hvac-equipment/floorplan.d.ts.map +1 -0
- package/dist/hvac-equipment/floorplan.js +71 -0
- package/dist/hvac-equipment/geometry.d.ts +20 -0
- package/dist/hvac-equipment/geometry.d.ts.map +1 -0
- package/dist/hvac-equipment/geometry.js +701 -0
- package/dist/hvac-equipment/index.d.ts +5 -0
- package/dist/hvac-equipment/index.d.ts.map +1 -0
- package/dist/hvac-equipment/index.js +4 -0
- package/dist/hvac-equipment/parametrics.d.ts +4 -0
- package/dist/hvac-equipment/parametrics.d.ts.map +1 -0
- package/dist/hvac-equipment/parametrics.js +101 -0
- package/dist/hvac-equipment/ports.d.ts +36 -0
- package/dist/hvac-equipment/ports.d.ts.map +1 -0
- package/dist/hvac-equipment/ports.js +91 -0
- package/dist/hvac-equipment/schema.d.ts +2 -0
- package/dist/hvac-equipment/schema.d.ts.map +1 -0
- package/dist/hvac-equipment/schema.js +1 -0
- package/dist/hvac-equipment/tool.d.ts +11 -0
- package/dist/hvac-equipment/tool.d.ts.map +1 -0
- package/dist/hvac-equipment/tool.js +103 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +158 -0
- package/dist/item/definition.d.ts +32 -0
- package/dist/item/definition.d.ts.map +1 -0
- package/dist/item/definition.js +309 -0
- package/dist/item/floorplan-move.d.ts +3 -0
- package/dist/item/floorplan-move.d.ts.map +1 -0
- package/dist/item/floorplan-move.js +307 -0
- package/dist/item/floorplan.d.ts +3 -0
- package/dist/item/floorplan.d.ts.map +1 -0
- package/dist/item/floorplan.js +204 -0
- package/dist/item/index.d.ts +3 -0
- package/dist/item/index.d.ts.map +1 -0
- package/dist/item/index.js +2 -0
- package/dist/item/model-loader.d.ts +18 -0
- package/dist/item/model-loader.d.ts.map +1 -0
- package/dist/item/model-loader.js +131 -0
- package/dist/item/move-tool.d.ts +6 -0
- package/dist/item/move-tool.d.ts.map +1 -0
- package/dist/item/move-tool.js +150 -0
- package/dist/item/paint.d.ts +3 -0
- package/dist/item/paint.d.ts.map +1 -0
- package/dist/item/paint.js +214 -0
- package/dist/item/panel.d.ts +16 -0
- package/dist/item/panel.d.ts.map +1 -0
- package/dist/item/panel.js +103 -0
- package/dist/item/parametrics.d.ts +12 -0
- package/dist/item/parametrics.d.ts.map +1 -0
- package/dist/item/parametrics.js +12 -0
- package/dist/item/renderer.d.ts +6 -0
- package/dist/item/renderer.d.ts.map +1 -0
- package/dist/item/renderer.js +425 -0
- package/dist/item/schema.d.ts +2 -0
- package/dist/item/schema.d.ts.map +1 -0
- package/dist/item/schema.js +1 -0
- package/dist/item/system.d.ts +11 -0
- package/dist/item/system.d.ts.map +1 -0
- package/dist/item/system.js +15 -0
- package/dist/item/tool.d.ts +3 -0
- package/dist/item/tool.d.ts.map +1 -0
- package/dist/item/tool.js +46 -0
- package/dist/level/definition.d.ts +9 -0
- package/dist/level/definition.d.ts.map +1 -0
- package/dist/level/definition.js +55 -0
- package/dist/level/index.d.ts +2 -0
- package/dist/level/index.d.ts.map +1 -0
- package/dist/level/index.js +1 -0
- package/dist/level/parametrics.d.ts +3 -0
- package/dist/level/parametrics.d.ts.map +1 -0
- package/dist/level/parametrics.js +3 -0
- package/dist/level/renderer.d.ts +6 -0
- package/dist/level/renderer.d.ts.map +1 -0
- package/dist/level/renderer.js +12 -0
- package/dist/level/schema.d.ts +2 -0
- package/dist/level/schema.d.ts.map +1 -0
- package/dist/level/schema.js +1 -0
- package/dist/level/system.d.ts +3 -0
- package/dist/level/system.d.ts.map +1 -0
- package/dist/level/system.js +3 -0
- package/dist/lineset/definition.d.ts +15 -0
- package/dist/lineset/definition.d.ts.map +1 -0
- package/dist/lineset/definition.js +118 -0
- package/dist/lineset/floorplan.d.ts +10 -0
- package/dist/lineset/floorplan.d.ts.map +1 -0
- package/dist/lineset/floorplan.js +78 -0
- package/dist/lineset/geometry.d.ts +20 -0
- package/dist/lineset/geometry.d.ts.map +1 -0
- package/dist/lineset/geometry.js +87 -0
- package/dist/lineset/index.d.ts +4 -0
- package/dist/lineset/index.d.ts.map +1 -0
- package/dist/lineset/index.js +3 -0
- package/dist/lineset/move-tool.d.ts +27 -0
- package/dist/lineset/move-tool.d.ts.map +1 -0
- package/dist/lineset/move-tool.js +256 -0
- package/dist/lineset/parametrics.d.ts +4 -0
- package/dist/lineset/parametrics.d.ts.map +1 -0
- package/dist/lineset/parametrics.js +34 -0
- package/dist/lineset/schema.d.ts +2 -0
- package/dist/lineset/schema.d.ts.map +1 -0
- package/dist/lineset/schema.js +1 -0
- package/dist/lineset/selection.d.ts +3 -0
- package/dist/lineset/selection.d.ts.map +1 -0
- package/dist/lineset/selection.js +3 -0
- package/dist/lineset/tool.d.ts +3 -0
- package/dist/lineset/tool.d.ts.map +1 -0
- package/dist/lineset/tool.js +298 -0
- package/dist/liquid-line/definition.d.ts +16 -0
- package/dist/liquid-line/definition.d.ts.map +1 -0
- package/dist/liquid-line/definition.js +110 -0
- package/dist/liquid-line/floorplan.d.ts +10 -0
- package/dist/liquid-line/floorplan.d.ts.map +1 -0
- package/dist/liquid-line/floorplan.js +66 -0
- package/dist/liquid-line/geometry.d.ts +16 -0
- package/dist/liquid-line/geometry.d.ts.map +1 -0
- package/dist/liquid-line/geometry.js +57 -0
- package/dist/liquid-line/index.d.ts +5 -0
- package/dist/liquid-line/index.d.ts.map +1 -0
- package/dist/liquid-line/index.js +4 -0
- package/dist/liquid-line/move-tool.d.ts +23 -0
- package/dist/liquid-line/move-tool.d.ts.map +1 -0
- package/dist/liquid-line/move-tool.js +231 -0
- package/dist/liquid-line/options.d.ts +16 -0
- package/dist/liquid-line/options.d.ts.map +1 -0
- package/dist/liquid-line/options.js +6 -0
- package/dist/liquid-line/parametrics.d.ts +4 -0
- package/dist/liquid-line/parametrics.d.ts.map +1 -0
- package/dist/liquid-line/parametrics.js +17 -0
- package/dist/liquid-line/schema.d.ts +2 -0
- package/dist/liquid-line/schema.d.ts.map +1 -0
- package/dist/liquid-line/schema.js +1 -0
- package/dist/liquid-line/selection.d.ts +3 -0
- package/dist/liquid-line/selection.d.ts.map +1 -0
- package/dist/liquid-line/selection.js +3 -0
- package/dist/liquid-line/tool.d.ts +3 -0
- package/dist/liquid-line/tool.d.ts.map +1 -0
- package/dist/liquid-line/tool.js +517 -0
- package/dist/measurement/definition.d.ts +4 -0
- package/dist/measurement/definition.d.ts.map +1 -0
- package/dist/measurement/definition.js +61 -0
- package/dist/measurement/edit.d.ts +9 -0
- package/dist/measurement/edit.d.ts.map +1 -0
- package/dist/measurement/edit.js +97 -0
- package/dist/measurement/floorplan-affordance.d.ts +3 -0
- package/dist/measurement/floorplan-affordance.d.ts.map +1 -0
- package/dist/measurement/floorplan-affordance.js +90 -0
- package/dist/measurement/floorplan.d.ts +3 -0
- package/dist/measurement/floorplan.d.ts.map +1 -0
- package/dist/measurement/floorplan.js +195 -0
- package/dist/measurement/index.d.ts +3 -0
- package/dist/measurement/index.d.ts.map +1 -0
- package/dist/measurement/index.js +2 -0
- package/dist/measurement/renderer.d.ts +8 -0
- package/dist/measurement/renderer.d.ts.map +1 -0
- package/dist/measurement/renderer.js +285 -0
- package/dist/measurement/resolve.d.ts +42 -0
- package/dist/measurement/resolve.d.ts.map +1 -0
- package/dist/measurement/resolve.js +207 -0
- package/dist/measurement/schema.d.ts +2 -0
- package/dist/measurement/schema.d.ts.map +1 -0
- package/dist/measurement/schema.js +1 -0
- package/dist/measurement/selection.d.ts +3 -0
- package/dist/measurement/selection.d.ts.map +1 -0
- package/dist/measurement/selection.js +259 -0
- package/dist/measurement/smart-surface.d.ts +4 -0
- package/dist/measurement/smart-surface.d.ts.map +1 -0
- package/dist/measurement/smart-surface.js +21 -0
- package/dist/measurement/smart-tool.d.ts +3 -0
- package/dist/measurement/smart-tool.d.ts.map +1 -0
- package/dist/measurement/smart-tool.js +264 -0
- package/dist/measurement/surface-query.d.ts +90 -0
- package/dist/measurement/surface-query.d.ts.map +1 -0
- package/dist/measurement/surface-query.js +519 -0
- package/dist/measurement/tool-router.d.ts +2 -0
- package/dist/measurement/tool-router.d.ts.map +1 -0
- package/dist/measurement/tool-router.js +9 -0
- package/dist/measurement/tool.d.ts +62 -0
- package/dist/measurement/tool.d.ts.map +1 -0
- package/dist/measurement/tool.js +1342 -0
- package/dist/pipe-fitting/definition.d.ts +10 -0
- package/dist/pipe-fitting/definition.d.ts.map +1 -0
- package/dist/pipe-fitting/definition.js +91 -0
- package/dist/pipe-fitting/floorplan.d.ts +10 -0
- package/dist/pipe-fitting/floorplan.d.ts.map +1 -0
- package/dist/pipe-fitting/floorplan.js +50 -0
- package/dist/pipe-fitting/geometry.d.ts +11 -0
- package/dist/pipe-fitting/geometry.d.ts.map +1 -0
- package/dist/pipe-fitting/geometry.js +31 -0
- package/dist/pipe-fitting/index.d.ts +5 -0
- package/dist/pipe-fitting/index.d.ts.map +1 -0
- package/dist/pipe-fitting/index.js +4 -0
- package/dist/pipe-fitting/move-tool.d.ts +30 -0
- package/dist/pipe-fitting/move-tool.d.ts.map +1 -0
- package/dist/pipe-fitting/move-tool.js +312 -0
- package/dist/pipe-fitting/parametrics.d.ts +4 -0
- package/dist/pipe-fitting/parametrics.d.ts.map +1 -0
- package/dist/pipe-fitting/parametrics.js +105 -0
- package/dist/pipe-fitting/ports.d.ts +26 -0
- package/dist/pipe-fitting/ports.d.ts.map +1 -0
- package/dist/pipe-fitting/ports.js +93 -0
- package/dist/pipe-fitting/schema.d.ts +2 -0
- package/dist/pipe-fitting/schema.d.ts.map +1 -0
- package/dist/pipe-fitting/schema.js +1 -0
- package/dist/pipe-fitting/selection.d.ts +3 -0
- package/dist/pipe-fitting/selection.d.ts.map +1 -0
- package/dist/pipe-fitting/selection.js +579 -0
- package/dist/pipe-fitting/tool.d.ts +19 -0
- package/dist/pipe-fitting/tool.d.ts.map +1 -0
- package/dist/pipe-fitting/tool.js +162 -0
- package/dist/pipe-segment/definition.d.ts +14 -0
- package/dist/pipe-segment/definition.d.ts.map +1 -0
- package/dist/pipe-segment/definition.js +116 -0
- package/dist/pipe-segment/floorplan.d.ts +9 -0
- package/dist/pipe-segment/floorplan.d.ts.map +1 -0
- package/dist/pipe-segment/floorplan.js +87 -0
- package/dist/pipe-segment/geometry.d.ts +16 -0
- package/dist/pipe-segment/geometry.d.ts.map +1 -0
- package/dist/pipe-segment/geometry.js +54 -0
- package/dist/pipe-segment/index.d.ts +4 -0
- package/dist/pipe-segment/index.d.ts.map +1 -0
- package/dist/pipe-segment/index.js +3 -0
- package/dist/pipe-segment/move-tool.d.ts +25 -0
- package/dist/pipe-segment/move-tool.d.ts.map +1 -0
- package/dist/pipe-segment/move-tool.js +254 -0
- package/dist/pipe-segment/parametrics.d.ts +4 -0
- package/dist/pipe-segment/parametrics.d.ts.map +1 -0
- package/dist/pipe-segment/parametrics.js +33 -0
- package/dist/pipe-segment/schema.d.ts +2 -0
- package/dist/pipe-segment/schema.d.ts.map +1 -0
- package/dist/pipe-segment/schema.js +1 -0
- package/dist/pipe-segment/selection.d.ts +31 -0
- package/dist/pipe-segment/selection.d.ts.map +1 -0
- package/dist/pipe-segment/selection.js +841 -0
- package/dist/pipe-segment/tool.d.ts +3 -0
- package/dist/pipe-segment/tool.d.ts.map +1 -0
- package/dist/pipe-segment/tool.js +595 -0
- package/dist/pipe-trap/definition.d.ts +10 -0
- package/dist/pipe-trap/definition.d.ts.map +1 -0
- package/dist/pipe-trap/definition.js +59 -0
- package/dist/pipe-trap/floorplan.d.ts +10 -0
- package/dist/pipe-trap/floorplan.d.ts.map +1 -0
- package/dist/pipe-trap/floorplan.js +41 -0
- package/dist/pipe-trap/geometry.d.ts +16 -0
- package/dist/pipe-trap/geometry.d.ts.map +1 -0
- package/dist/pipe-trap/geometry.js +74 -0
- package/dist/pipe-trap/index.d.ts +5 -0
- package/dist/pipe-trap/index.d.ts.map +1 -0
- package/dist/pipe-trap/index.js +4 -0
- package/dist/pipe-trap/parametrics.d.ts +4 -0
- package/dist/pipe-trap/parametrics.d.ts.map +1 -0
- package/dist/pipe-trap/parametrics.js +16 -0
- package/dist/pipe-trap/ports.d.ts +11 -0
- package/dist/pipe-trap/ports.d.ts.map +1 -0
- package/dist/pipe-trap/ports.js +32 -0
- package/dist/pipe-trap/schema.d.ts +2 -0
- package/dist/pipe-trap/schema.d.ts.map +1 -0
- package/dist/pipe-trap/schema.js +1 -0
- package/dist/pipe-trap/tool.d.ts +9 -0
- package/dist/pipe-trap/tool.d.ts.map +1 -0
- package/dist/pipe-trap/tool.js +99 -0
- package/dist/ridge-vent/definition.d.ts +16 -0
- package/dist/ridge-vent/definition.d.ts.map +1 -0
- package/dist/ridge-vent/definition.js +195 -0
- package/dist/ridge-vent/floorplan.d.ts +15 -0
- package/dist/ridge-vent/floorplan.d.ts.map +1 -0
- package/dist/ridge-vent/floorplan.js +121 -0
- package/dist/ridge-vent/geometry.d.ts +22 -0
- package/dist/ridge-vent/geometry.d.ts.map +1 -0
- package/dist/ridge-vent/geometry.js +526 -0
- package/dist/ridge-vent/index.d.ts +4 -0
- package/dist/ridge-vent/index.d.ts.map +1 -0
- package/dist/ridge-vent/index.js +3 -0
- package/dist/ridge-vent/move-tool.d.ts +12 -0
- package/dist/ridge-vent/move-tool.d.ts.map +1 -0
- package/dist/ridge-vent/move-tool.js +210 -0
- package/dist/ridge-vent/panel.d.ts +7 -0
- package/dist/ridge-vent/panel.d.ts.map +1 -0
- package/dist/ridge-vent/panel.js +118 -0
- package/dist/ridge-vent/parametrics.d.ts +4 -0
- package/dist/ridge-vent/parametrics.d.ts.map +1 -0
- package/dist/ridge-vent/parametrics.js +28 -0
- package/dist/ridge-vent/preview.d.ts +7 -0
- package/dist/ridge-vent/preview.d.ts.map +1 -0
- package/dist/ridge-vent/preview.js +31 -0
- package/dist/ridge-vent/renderer.d.ts +20 -0
- package/dist/ridge-vent/renderer.d.ts.map +1 -0
- package/dist/ridge-vent/renderer.js +205 -0
- package/dist/ridge-vent/schema.d.ts +2 -0
- package/dist/ridge-vent/schema.d.ts.map +1 -0
- package/dist/ridge-vent/schema.js +2 -0
- package/dist/ridge-vent/tool.d.ts +8 -0
- package/dist/ridge-vent/tool.d.ts.map +1 -0
- package/dist/ridge-vent/tool.js +130 -0
- package/dist/roof/definition.d.ts +16 -0
- package/dist/roof/definition.d.ts.map +1 -0
- package/dist/roof/definition.js +170 -0
- package/dist/roof/floorplan.d.ts +21 -0
- package/dist/roof/floorplan.d.ts.map +1 -0
- package/dist/roof/floorplan.js +271 -0
- package/dist/roof/index.d.ts +3 -0
- package/dist/roof/index.d.ts.map +1 -0
- package/dist/roof/index.js +2 -0
- package/dist/roof/panel.d.ts +2 -0
- package/dist/roof/panel.d.ts.map +1 -0
- package/dist/roof/panel.js +214 -0
- package/dist/roof/parametrics.d.ts +3 -0
- package/dist/roof/parametrics.d.ts.map +1 -0
- package/dist/roof/parametrics.js +4 -0
- package/dist/roof/renderer.d.ts +6 -0
- package/dist/roof/renderer.d.ts.map +1 -0
- package/dist/roof/renderer.js +79 -0
- package/dist/roof/roof-materials.d.ts +5 -0
- package/dist/roof/roof-materials.d.ts.map +1 -0
- package/dist/roof/roof-materials.js +43 -0
- package/dist/roof/schema.d.ts +2 -0
- package/dist/roof/schema.d.ts.map +1 -0
- package/dist/roof/schema.js +1 -0
- package/dist/roof/system.d.ts +3 -0
- package/dist/roof/system.d.ts.map +1 -0
- package/dist/roof/system.js +3 -0
- package/dist/roof-segment/definition.d.ts +10 -0
- package/dist/roof-segment/definition.d.ts.map +1 -0
- package/dist/roof-segment/definition.js +305 -0
- package/dist/roof-segment/floorplan-affordances.d.ts +31 -0
- package/dist/roof-segment/floorplan-affordances.d.ts.map +1 -0
- package/dist/roof-segment/floorplan-affordances.js +170 -0
- package/dist/roof-segment/floorplan.d.ts +41 -0
- package/dist/roof-segment/floorplan.d.ts.map +1 -0
- package/dist/roof-segment/floorplan.js +265 -0
- package/dist/roof-segment/index.d.ts +2 -0
- package/dist/roof-segment/index.d.ts.map +1 -0
- package/dist/roof-segment/index.js +1 -0
- package/dist/roof-segment/measurement.d.ts +4 -0
- package/dist/roof-segment/measurement.d.ts.map +1 -0
- package/dist/roof-segment/measurement.js +64 -0
- package/dist/roof-segment/panel.d.ts +2 -0
- package/dist/roof-segment/panel.d.ts.map +1 -0
- package/dist/roof-segment/panel.js +180 -0
- package/dist/roof-segment/parametrics.d.ts +3 -0
- package/dist/roof-segment/parametrics.d.ts.map +1 -0
- package/dist/roof-segment/parametrics.js +4 -0
- package/dist/roof-segment/renderer.d.ts +6 -0
- package/dist/roof-segment/renderer.d.ts.map +1 -0
- package/dist/roof-segment/renderer.js +93 -0
- package/dist/roof-segment/schema.d.ts +2 -0
- package/dist/roof-segment/schema.d.ts.map +1 -0
- package/dist/roof-segment/schema.js +1 -0
- package/dist/scan/definition.d.ts +9 -0
- package/dist/scan/definition.d.ts.map +1 -0
- package/dist/scan/definition.js +49 -0
- package/dist/scan/index.d.ts +2 -0
- package/dist/scan/index.d.ts.map +1 -0
- package/dist/scan/index.js +1 -0
- package/dist/scan/parametrics.d.ts +3 -0
- package/dist/scan/parametrics.d.ts.map +1 -0
- package/dist/scan/parametrics.js +3 -0
- package/dist/scan/renderer.d.ts +6 -0
- package/dist/scan/renderer.d.ts.map +1 -0
- package/dist/scan/renderer.js +54 -0
- package/dist/scan/schema.d.ts +2 -0
- package/dist/scan/schema.d.ts.map +1 -0
- package/dist/scan/schema.js +1 -0
- package/dist/scan/system.d.ts +3 -0
- package/dist/scan/system.d.ts.map +1 -0
- package/dist/scan/system.js +3 -0
- package/dist/shared/auto-fitting.d.ts +253 -0
- package/dist/shared/auto-fitting.d.ts.map +1 -0
- package/dist/shared/auto-fitting.js +659 -0
- package/dist/shared/auto-offset-tag.d.ts +67 -0
- package/dist/shared/auto-offset-tag.d.ts.map +1 -0
- package/dist/shared/auto-offset-tag.js +94 -0
- package/dist/shared/draw-alignment.d.ts +25 -0
- package/dist/shared/draw-alignment.d.ts.map +1 -0
- package/dist/shared/draw-alignment.js +30 -0
- package/dist/shared/duct-body-paint.d.ts +6 -0
- package/dist/shared/duct-body-paint.d.ts.map +1 -0
- package/dist/shared/duct-body-paint.js +13 -0
- package/dist/shared/fitting-endpoint-reaim.d.ts +72 -0
- package/dist/shared/fitting-endpoint-reaim.d.ts.map +1 -0
- package/dist/shared/fitting-endpoint-reaim.js +123 -0
- package/dist/shared/fitting-rotation.d.ts +21 -0
- package/dist/shared/fitting-rotation.d.ts.map +1 -0
- package/dist/shared/fitting-rotation.js +39 -0
- package/dist/shared/floor-placement.d.ts +25 -0
- package/dist/shared/floor-placement.d.ts.map +1 -0
- package/dist/shared/floor-placement.js +109 -0
- package/dist/shared/floorplan-cursor.d.ts +11 -0
- package/dist/shared/floorplan-cursor.d.ts.map +1 -0
- package/dist/shared/floorplan-cursor.js +17 -0
- package/dist/shared/ghost-alignment.d.ts +31 -0
- package/dist/shared/ghost-alignment.d.ts.map +1 -0
- package/dist/shared/ghost-alignment.js +29 -0
- package/dist/shared/ghost-materials.d.ts +29 -0
- package/dist/shared/ghost-materials.d.ts.map +1 -0
- package/dist/shared/ghost-materials.js +81 -0
- package/dist/shared/level-offset-group.d.ts +18 -0
- package/dist/shared/level-offset-group.d.ts.map +1 -0
- package/dist/shared/level-offset-group.js +31 -0
- package/dist/shared/mep-ghost.d.ts +37 -0
- package/dist/shared/mep-ghost.d.ts.map +1 -0
- package/dist/shared/mep-ghost.js +83 -0
- package/dist/shared/move-roof-tool.d.ts +6 -0
- package/dist/shared/move-roof-tool.d.ts.map +1 -0
- package/dist/shared/move-roof-tool.js +420 -0
- package/dist/shared/opening-guides-runtime.d.ts +70 -0
- package/dist/shared/opening-guides-runtime.d.ts.map +1 -0
- package/dist/shared/opening-guides-runtime.js +182 -0
- package/dist/shared/opening-placement-dimensions.d.ts +19 -0
- package/dist/shared/opening-placement-dimensions.d.ts.map +1 -0
- package/dist/shared/opening-placement-dimensions.js +152 -0
- package/dist/shared/path-offset.d.ts +10 -0
- package/dist/shared/path-offset.d.ts.map +1 -0
- package/dist/shared/path-offset.js +74 -0
- package/dist/shared/path-point-affordance.d.ts +34 -0
- package/dist/shared/path-point-affordance.d.ts.map +1 -0
- package/dist/shared/path-point-affordance.js +97 -0
- package/dist/shared/path-segment-affordance.d.ts +33 -0
- package/dist/shared/path-segment-affordance.d.ts.map +1 -0
- package/dist/shared/path-segment-affordance.js +77 -0
- package/dist/shared/pipe-run-translation-offset.d.ts +27 -0
- package/dist/shared/pipe-run-translation-offset.d.ts.map +1 -0
- package/dist/shared/pipe-run-translation-offset.js +131 -0
- package/dist/shared/pipe-vertical-offset.d.ts +98 -0
- package/dist/shared/pipe-vertical-offset.d.ts.map +1 -0
- package/dist/shared/pipe-vertical-offset.js +836 -0
- package/dist/shared/placeholder-geometry.d.ts +22 -0
- package/dist/shared/placeholder-geometry.d.ts.map +1 -0
- package/dist/shared/placeholder-geometry.js +31 -0
- package/dist/shared/polygon-centroid-move.d.ts +21 -0
- package/dist/shared/polygon-centroid-move.d.ts.map +1 -0
- package/dist/shared/polygon-centroid-move.js +117 -0
- package/dist/shared/polygon-measurement.d.ts +10 -0
- package/dist/shared/polygon-measurement.d.ts.map +1 -0
- package/dist/shared/polygon-measurement.js +35 -0
- package/dist/shared/polygon-vertex-affordance.d.ts +108 -0
- package/dist/shared/polygon-vertex-affordance.d.ts.map +1 -0
- package/dist/shared/polygon-vertex-affordance.js +325 -0
- package/dist/shared/ports.d.ts +75 -0
- package/dist/shared/ports.d.ts.map +1 -0
- package/dist/shared/ports.js +164 -0
- package/dist/shared/quick-measurement.d.ts +8 -0
- package/dist/shared/quick-measurement.d.ts.map +1 -0
- package/dist/shared/quick-measurement.js +15 -0
- package/dist/shared/refrigerant-line-selection.d.ts +4 -0
- package/dist/shared/refrigerant-line-selection.d.ts.map +1 -0
- package/dist/shared/refrigerant-line-selection.js +405 -0
- package/dist/shared/relative-roof-drag.d.ts +18 -0
- package/dist/shared/relative-roof-drag.d.ts.map +1 -0
- package/dist/shared/relative-roof-drag.js +83 -0
- package/dist/shared/ridge-snap.d.ts +31 -0
- package/dist/shared/ridge-snap.d.ts.map +1 -0
- package/dist/shared/ridge-snap.js +61 -0
- package/dist/shared/roof-attachment-fallback-preview.d.ts +14 -0
- package/dist/shared/roof-attachment-fallback-preview.d.ts.map +1 -0
- package/dist/shared/roof-attachment-fallback-preview.js +84 -0
- package/dist/shared/roof-face-host.d.ts +17 -0
- package/dist/shared/roof-face-host.d.ts.map +1 -0
- package/dist/shared/roof-face-host.js +24 -0
- package/dist/shared/roof-opening-host.d.ts +66 -0
- package/dist/shared/roof-opening-host.d.ts.map +1 -0
- package/dist/shared/roof-opening-host.js +98 -0
- package/dist/shared/roof-segment-hit.d.ts +34 -0
- package/dist/shared/roof-segment-hit.d.ts.map +1 -0
- package/dist/shared/roof-segment-hit.js +72 -0
- package/dist/shared/roof-surface-placement-guides.d.ts +68 -0
- package/dist/shared/roof-surface-placement-guides.d.ts.map +1 -0
- package/dist/shared/roof-surface-placement-guides.js +716 -0
- package/dist/shared/roof-surface.d.ts +20 -0
- package/dist/shared/roof-surface.d.ts.map +1 -0
- package/dist/shared/roof-surface.js +467 -0
- package/dist/shared/roof-wall-opening-cut.d.ts +16 -0
- package/dist/shared/roof-wall-opening-cut.d.ts.map +1 -0
- package/dist/shared/roof-wall-opening-cut.js +52 -0
- package/dist/shared/roof-wall-opening-placement.d.ts +53 -0
- package/dist/shared/roof-wall-opening-placement.d.ts.map +1 -0
- package/dist/shared/roof-wall-opening-placement.js +58 -0
- package/dist/shared/rotate-affordance.d.ts +16 -0
- package/dist/shared/rotate-affordance.d.ts.map +1 -0
- package/dist/shared/rotate-affordance.js +20 -0
- package/dist/shared/run-move-connectivity.d.ts +52 -0
- package/dist/shared/run-move-connectivity.d.ts.map +1 -0
- package/dist/shared/run-move-connectivity.js +82 -0
- package/dist/shared/run-translation-offset.d.ts +24 -0
- package/dist/shared/run-translation-offset.d.ts.map +1 -0
- package/dist/shared/run-translation-offset.js +140 -0
- package/dist/shared/selection-handles.d.ts +51 -0
- package/dist/shared/selection-handles.d.ts.map +1 -0
- package/dist/shared/selection-handles.js +74 -0
- package/dist/shared/slot-paint.d.ts +46 -0
- package/dist/shared/slot-paint.d.ts.map +1 -0
- package/dist/shared/slot-paint.js +235 -0
- package/dist/shared/surface-paint.d.ts +3 -0
- package/dist/shared/surface-paint.d.ts.map +1 -0
- package/dist/shared/surface-paint.js +41 -0
- package/dist/shared/use-segment-trim-clip.d.ts +44 -0
- package/dist/shared/use-segment-trim-clip.d.ts.map +1 -0
- package/dist/shared/use-segment-trim-clip.js +149 -0
- package/dist/shared/vertical-offset.d.ts +95 -0
- package/dist/shared/vertical-offset.d.ts.map +1 -0
- package/dist/shared/vertical-offset.js +851 -0
- package/dist/shared/wall-attach-target.d.ts +109 -0
- package/dist/shared/wall-attach-target.d.ts.map +1 -0
- package/dist/shared/wall-attach-target.js +192 -0
- package/dist/shared/wall-opening-alignment.d.ts +34 -0
- package/dist/shared/wall-opening-alignment.d.ts.map +1 -0
- package/dist/shared/wall-opening-alignment.js +113 -0
- package/dist/shelf/definition.d.ts +4 -0
- package/dist/shelf/definition.d.ts.map +1 -0
- package/dist/shelf/definition.js +265 -0
- package/dist/shelf/dimensions.d.ts +3 -0
- package/dist/shelf/dimensions.d.ts.map +1 -0
- package/dist/shelf/dimensions.js +15 -0
- package/dist/shelf/floorplan-affordances.d.ts +26 -0
- package/dist/shelf/floorplan-affordances.d.ts.map +1 -0
- package/dist/shelf/floorplan-affordances.js +88 -0
- package/dist/shelf/floorplan-move.d.ts +25 -0
- package/dist/shelf/floorplan-move.d.ts.map +1 -0
- package/dist/shelf/floorplan-move.js +90 -0
- package/dist/shelf/floorplan.d.ts +20 -0
- package/dist/shelf/floorplan.d.ts.map +1 -0
- package/dist/shelf/floorplan.js +124 -0
- package/dist/shelf/geometry.d.ts +15 -0
- package/dist/shelf/geometry.d.ts.map +1 -0
- package/dist/shelf/geometry.js +304 -0
- package/dist/shelf/index.d.ts +4 -0
- package/dist/shelf/index.d.ts.map +1 -0
- package/dist/shelf/index.js +3 -0
- package/dist/shelf/paint.d.ts +3 -0
- package/dist/shelf/paint.d.ts.map +1 -0
- package/dist/shelf/paint.js +181 -0
- package/dist/shelf/parametrics.d.ts +14 -0
- package/dist/shelf/parametrics.d.ts.map +1 -0
- package/dist/shelf/parametrics.js +81 -0
- package/dist/shelf/preview.d.ts +31 -0
- package/dist/shelf/preview.d.ts.map +1 -0
- package/dist/shelf/preview.js +77 -0
- package/dist/shelf/schema.d.ts +2 -0
- package/dist/shelf/schema.d.ts.map +1 -0
- package/dist/shelf/schema.js +6 -0
- package/dist/shelf/slots.d.ts +9 -0
- package/dist/shelf/slots.d.ts.map +1 -0
- package/dist/shelf/slots.js +30 -0
- package/dist/shelf/tool.d.ts +3 -0
- package/dist/shelf/tool.d.ts.map +1 -0
- package/dist/shelf/tool.js +125 -0
- package/dist/site/definition.d.ts +10 -0
- package/dist/site/definition.d.ts.map +1 -0
- package/dist/site/definition.js +54 -0
- package/dist/site/index.d.ts +2 -0
- package/dist/site/index.d.ts.map +1 -0
- package/dist/site/index.js +1 -0
- package/dist/site/parametrics.d.ts +3 -0
- package/dist/site/parametrics.d.ts.map +1 -0
- package/dist/site/parametrics.js +3 -0
- package/dist/site/recessed-slab-ground-holes.d.ts +3 -0
- package/dist/site/recessed-slab-ground-holes.d.ts.map +1 -0
- package/dist/site/recessed-slab-ground-holes.js +46 -0
- package/dist/site/renderer.d.ts +6 -0
- package/dist/site/renderer.d.ts.map +1 -0
- package/dist/site/renderer.js +196 -0
- package/dist/site/schema.d.ts +2 -0
- package/dist/site/schema.d.ts.map +1 -0
- package/dist/site/schema.js +1 -0
- package/dist/skylight/definition.d.ts +10 -0
- package/dist/skylight/definition.d.ts.map +1 -0
- package/dist/skylight/definition.js +268 -0
- package/dist/skylight/floorplan.d.ts +16 -0
- package/dist/skylight/floorplan.d.ts.map +1 -0
- package/dist/skylight/floorplan.js +129 -0
- package/dist/skylight/frame-csg.d.ts +4 -0
- package/dist/skylight/frame-csg.d.ts.map +1 -0
- package/dist/skylight/frame-csg.js +49 -0
- package/dist/skylight/geometry.d.ts +7 -0
- package/dist/skylight/geometry.d.ts.map +1 -0
- package/dist/skylight/geometry.js +114 -0
- package/dist/skylight/index.d.ts +5 -0
- package/dist/skylight/index.d.ts.map +1 -0
- package/dist/skylight/index.js +4 -0
- package/dist/skylight/interaction.d.ts +11 -0
- package/dist/skylight/interaction.d.ts.map +1 -0
- package/dist/skylight/interaction.js +42 -0
- package/dist/skylight/move-tool.d.ts +5 -0
- package/dist/skylight/move-tool.d.ts.map +1 -0
- package/dist/skylight/move-tool.js +233 -0
- package/dist/skylight/panel.d.ts +2 -0
- package/dist/skylight/panel.d.ts.map +1 -0
- package/dist/skylight/panel.js +253 -0
- package/dist/skylight/parametrics.d.ts +4 -0
- package/dist/skylight/parametrics.d.ts.map +1 -0
- package/dist/skylight/parametrics.js +99 -0
- package/dist/skylight/preview.d.ts +7 -0
- package/dist/skylight/preview.d.ts.map +1 -0
- package/dist/skylight/preview.js +49 -0
- package/dist/skylight/renderer.d.ts +6 -0
- package/dist/skylight/renderer.d.ts.map +1 -0
- package/dist/skylight/renderer.js +303 -0
- package/dist/skylight/roof-cut.d.ts +21 -0
- package/dist/skylight/roof-cut.d.ts.map +1 -0
- package/dist/skylight/roof-cut.js +61 -0
- package/dist/skylight/schema.d.ts +2 -0
- package/dist/skylight/schema.d.ts.map +1 -0
- package/dist/skylight/schema.js +1 -0
- package/dist/skylight/system.d.ts +3 -0
- package/dist/skylight/system.d.ts.map +1 -0
- package/dist/skylight/system.js +49 -0
- package/dist/skylight/tool.d.ts +3 -0
- package/dist/skylight/tool.d.ts.map +1 -0
- package/dist/skylight/tool.js +100 -0
- package/dist/slab/boundary-editor.d.ts +24 -0
- package/dist/slab/boundary-editor.d.ts.map +1 -0
- package/dist/slab/boundary-editor.js +127 -0
- package/dist/slab/definition.d.ts +20 -0
- package/dist/slab/definition.d.ts.map +1 -0
- package/dist/slab/definition.js +218 -0
- package/dist/slab/floorplan-affordances.d.ts +177 -0
- package/dist/slab/floorplan-affordances.d.ts.map +1 -0
- package/dist/slab/floorplan-affordances.js +52 -0
- package/dist/slab/floorplan-move.d.ts +12 -0
- package/dist/slab/floorplan-move.d.ts.map +1 -0
- package/dist/slab/floorplan-move.js +19 -0
- package/dist/slab/floorplan.d.ts +20 -0
- package/dist/slab/floorplan.d.ts.map +1 -0
- package/dist/slab/floorplan.js +144 -0
- package/dist/slab/geometry.d.ts +5 -0
- package/dist/slab/geometry.d.ts.map +1 -0
- package/dist/slab/geometry.js +133 -0
- package/dist/slab/hole-editor.d.ts +14 -0
- package/dist/slab/hole-editor.d.ts.map +1 -0
- package/dist/slab/hole-editor.js +54 -0
- package/dist/slab/index.d.ts +3 -0
- package/dist/slab/index.d.ts.map +1 -0
- package/dist/slab/index.js +2 -0
- package/dist/slab/move-tool.d.ts +6 -0
- package/dist/slab/move-tool.d.ts.map +1 -0
- package/dist/slab/move-tool.js +232 -0
- package/dist/slab/paint.d.ts +8 -0
- package/dist/slab/paint.d.ts.map +1 -0
- package/dist/slab/paint.js +26 -0
- package/dist/slab/panel.d.ts +14 -0
- package/dist/slab/panel.d.ts.map +1 -0
- package/dist/slab/panel.js +144 -0
- package/dist/slab/parametrics.d.ts +14 -0
- package/dist/slab/parametrics.d.ts.map +1 -0
- package/dist/slab/parametrics.js +19 -0
- package/dist/slab/quick-measurement.d.ts +3 -0
- package/dist/slab/quick-measurement.d.ts.map +1 -0
- package/dist/slab/quick-measurement.js +35 -0
- package/dist/slab/schema.d.ts +2 -0
- package/dist/slab/schema.d.ts.map +1 -0
- package/dist/slab/schema.js +1 -0
- package/dist/slab/slots.d.ts +10 -0
- package/dist/slab/slots.d.ts.map +1 -0
- package/dist/slab/slots.js +20 -0
- package/dist/slab/system.d.ts +3 -0
- package/dist/slab/system.d.ts.map +1 -0
- package/dist/slab/system.js +63 -0
- package/dist/slab/tool.d.ts +3 -0
- package/dist/slab/tool.d.ts.map +1 -0
- package/dist/slab/tool.js +204 -0
- package/dist/solar-panel/definition.d.ts +15 -0
- package/dist/solar-panel/definition.d.ts.map +1 -0
- package/dist/solar-panel/definition.js +260 -0
- package/dist/solar-panel/floorplan.d.ts +21 -0
- package/dist/solar-panel/floorplan.d.ts.map +1 -0
- package/dist/solar-panel/floorplan.js +120 -0
- package/dist/solar-panel/geometry.d.ts +29 -0
- package/dist/solar-panel/geometry.d.ts.map +1 -0
- package/dist/solar-panel/geometry.js +196 -0
- package/dist/solar-panel/index.d.ts +5 -0
- package/dist/solar-panel/index.d.ts.map +1 -0
- package/dist/solar-panel/index.js +4 -0
- package/dist/solar-panel/move-tool.d.ts +5 -0
- package/dist/solar-panel/move-tool.d.ts.map +1 -0
- package/dist/solar-panel/move-tool.js +257 -0
- package/dist/solar-panel/panel.d.ts +2 -0
- package/dist/solar-panel/panel.d.ts.map +1 -0
- package/dist/solar-panel/panel.js +146 -0
- package/dist/solar-panel/parametrics.d.ts +4 -0
- package/dist/solar-panel/parametrics.d.ts.map +1 -0
- package/dist/solar-panel/parametrics.js +52 -0
- package/dist/solar-panel/preview.d.ts +7 -0
- package/dist/solar-panel/preview.d.ts.map +1 -0
- package/dist/solar-panel/preview.js +46 -0
- package/dist/solar-panel/renderer.d.ts +26 -0
- package/dist/solar-panel/renderer.d.ts.map +1 -0
- package/dist/solar-panel/renderer.js +162 -0
- package/dist/solar-panel/schema.d.ts +2 -0
- package/dist/solar-panel/schema.d.ts.map +1 -0
- package/dist/solar-panel/schema.js +1 -0
- package/dist/solar-panel/tool.d.ts +11 -0
- package/dist/solar-panel/tool.d.ts.map +1 -0
- package/dist/solar-panel/tool.js +120 -0
- package/dist/spawn/definition.d.ts +4 -0
- package/dist/spawn/definition.d.ts.map +1 -0
- package/dist/spawn/definition.js +107 -0
- package/dist/spawn/floorplan-affordances.d.ts +3 -0
- package/dist/spawn/floorplan-affordances.d.ts.map +1 -0
- package/dist/spawn/floorplan-affordances.js +31 -0
- package/dist/spawn/floorplan-move.d.ts +3 -0
- package/dist/spawn/floorplan-move.d.ts.map +1 -0
- package/dist/spawn/floorplan-move.js +31 -0
- package/dist/spawn/floorplan.d.ts +14 -0
- package/dist/spawn/floorplan.d.ts.map +1 -0
- package/dist/spawn/floorplan.js +135 -0
- package/dist/spawn/index.d.ts +3 -0
- package/dist/spawn/index.d.ts.map +1 -0
- package/dist/spawn/index.js +2 -0
- package/dist/spawn/panel.d.ts +2 -0
- package/dist/spawn/panel.d.ts.map +1 -0
- package/dist/spawn/panel.js +71 -0
- package/dist/spawn/parametrics.d.ts +8 -0
- package/dist/spawn/parametrics.d.ts.map +1 -0
- package/dist/spawn/parametrics.js +23 -0
- package/dist/spawn/renderer.d.ts +16 -0
- package/dist/spawn/renderer.d.ts.map +1 -0
- package/dist/spawn/renderer.js +47 -0
- package/dist/spawn/schema.d.ts +2 -0
- package/dist/spawn/schema.d.ts.map +1 -0
- package/dist/spawn/schema.js +5 -0
- package/dist/spawn/tool.d.ts +10 -0
- package/dist/spawn/tool.d.ts.map +1 -0
- package/dist/spawn/tool.js +109 -0
- package/dist/stair/definition.d.ts +9 -0
- package/dist/stair/definition.d.ts.map +1 -0
- package/dist/stair/definition.js +440 -0
- package/dist/stair/floor-stack.d.ts +10 -0
- package/dist/stair/floor-stack.d.ts.map +1 -0
- package/dist/stair/floor-stack.js +77 -0
- package/dist/stair/floorplan-affordances.d.ts +53 -0
- package/dist/stair/floorplan-affordances.d.ts.map +1 -0
- package/dist/stair/floorplan-affordances.js +266 -0
- package/dist/stair/floorplan-move.d.ts +17 -0
- package/dist/stair/floorplan-move.d.ts.map +1 -0
- package/dist/stair/floorplan-move.js +64 -0
- package/dist/stair/floorplan.d.ts +26 -0
- package/dist/stair/floorplan.d.ts.map +1 -0
- package/dist/stair/floorplan.js +455 -0
- package/dist/stair/index.d.ts +2 -0
- package/dist/stair/index.d.ts.map +1 -0
- package/dist/stair/index.js +1 -0
- package/dist/stair/paint.d.ts +2 -0
- package/dist/stair/paint.d.ts.map +1 -0
- package/dist/stair/paint.js +86 -0
- package/dist/stair/panel.d.ts +2 -0
- package/dist/stair/panel.d.ts.map +1 -0
- package/dist/stair/panel.js +196 -0
- package/dist/stair/parametrics.d.ts +3 -0
- package/dist/stair/parametrics.d.ts.map +1 -0
- package/dist/stair/parametrics.js +4 -0
- package/dist/stair/renderer.d.ts +6 -0
- package/dist/stair/renderer.d.ts.map +1 -0
- package/dist/stair/renderer.js +667 -0
- package/dist/stair/schema.d.ts +2 -0
- package/dist/stair/schema.d.ts.map +1 -0
- package/dist/stair/schema.js +1 -0
- package/dist/stair/slots.d.ts +7 -0
- package/dist/stair/slots.d.ts.map +1 -0
- package/dist/stair/slots.js +13 -0
- package/dist/stair/system.d.ts +3 -0
- package/dist/stair/system.d.ts.map +1 -0
- package/dist/stair/system.js +3 -0
- package/dist/stair-segment/definition.d.ts +8 -0
- package/dist/stair-segment/definition.d.ts.map +1 -0
- package/dist/stair-segment/definition.js +133 -0
- package/dist/stair-segment/index.d.ts +2 -0
- package/dist/stair-segment/index.d.ts.map +1 -0
- package/dist/stair-segment/index.js +1 -0
- package/dist/stair-segment/panel.d.ts +2 -0
- package/dist/stair-segment/panel.d.ts.map +1 -0
- package/dist/stair-segment/panel.js +126 -0
- package/dist/stair-segment/parametrics.d.ts +3 -0
- package/dist/stair-segment/parametrics.d.ts.map +1 -0
- package/dist/stair-segment/parametrics.js +4 -0
- package/dist/stair-segment/renderer.d.ts +6 -0
- package/dist/stair-segment/renderer.d.ts.map +1 -0
- package/dist/stair-segment/renderer.js +55 -0
- package/dist/stair-segment/schema.d.ts +2 -0
- package/dist/stair-segment/schema.d.ts.map +1 -0
- package/dist/stair-segment/schema.js +1 -0
- package/dist/turbine-vent/definition.d.ts +24 -0
- package/dist/turbine-vent/definition.d.ts.map +1 -0
- package/dist/turbine-vent/definition.js +119 -0
- package/dist/turbine-vent/floorplan.d.ts +13 -0
- package/dist/turbine-vent/floorplan.d.ts.map +1 -0
- package/dist/turbine-vent/floorplan.js +111 -0
- package/dist/turbine-vent/geometry.d.ts +6 -0
- package/dist/turbine-vent/geometry.d.ts.map +1 -0
- package/dist/turbine-vent/geometry.js +284 -0
- package/dist/turbine-vent/index.d.ts +4 -0
- package/dist/turbine-vent/index.d.ts.map +1 -0
- package/dist/turbine-vent/index.js +3 -0
- package/dist/turbine-vent/move-tool.d.ts +13 -0
- package/dist/turbine-vent/move-tool.d.ts.map +1 -0
- package/dist/turbine-vent/move-tool.js +207 -0
- package/dist/turbine-vent/panel.d.ts +8 -0
- package/dist/turbine-vent/panel.d.ts.map +1 -0
- package/dist/turbine-vent/panel.js +127 -0
- package/dist/turbine-vent/parametrics.d.ts +9 -0
- package/dist/turbine-vent/parametrics.d.ts.map +1 -0
- package/dist/turbine-vent/parametrics.js +34 -0
- package/dist/turbine-vent/preview.d.ts +14 -0
- package/dist/turbine-vent/preview.d.ts.map +1 -0
- package/dist/turbine-vent/preview.js +38 -0
- package/dist/turbine-vent/renderer.d.ts +18 -0
- package/dist/turbine-vent/renderer.d.ts.map +1 -0
- package/dist/turbine-vent/renderer.js +107 -0
- package/dist/turbine-vent/schema.d.ts +2 -0
- package/dist/turbine-vent/schema.d.ts.map +1 -0
- package/dist/turbine-vent/schema.js +3 -0
- package/dist/turbine-vent/tool.d.ts +9 -0
- package/dist/turbine-vent/tool.d.ts.map +1 -0
- package/dist/turbine-vent/tool.js +111 -0
- package/dist/wall/curve-tool.d.ts +14 -0
- package/dist/wall/curve-tool.d.ts.map +1 -0
- package/dist/wall/curve-tool.js +123 -0
- package/dist/wall/definition.d.ts +19 -0
- package/dist/wall/definition.d.ts.map +1 -0
- package/dist/wall/definition.js +132 -0
- package/dist/wall/floorplan-affordances.d.ts +13 -0
- package/dist/wall/floorplan-affordances.d.ts.map +1 -0
- package/dist/wall/floorplan-affordances.js +241 -0
- package/dist/wall/floorplan-move.d.ts +32 -0
- package/dist/wall/floorplan-move.d.ts.map +1 -0
- package/dist/wall/floorplan-move.js +259 -0
- package/dist/wall/floorplan-overrides.d.ts +22 -0
- package/dist/wall/floorplan-overrides.d.ts.map +1 -0
- package/dist/wall/floorplan-overrides.js +32 -0
- package/dist/wall/floorplan.d.ts +23 -0
- package/dist/wall/floorplan.d.ts.map +1 -0
- package/dist/wall/floorplan.js +249 -0
- package/dist/wall/index.d.ts +3 -0
- package/dist/wall/index.d.ts.map +1 -0
- package/dist/wall/index.js +2 -0
- package/dist/wall/measurement.d.ts +5 -0
- package/dist/wall/measurement.d.ts.map +1 -0
- package/dist/wall/measurement.js +174 -0
- package/dist/wall/move-endpoint-tool.d.ts +22 -0
- package/dist/wall/move-endpoint-tool.d.ts.map +1 -0
- package/dist/wall/move-endpoint-tool.js +450 -0
- package/dist/wall/move-shared.d.ts +48 -0
- package/dist/wall/move-shared.d.ts.map +1 -0
- package/dist/wall/move-shared.js +162 -0
- package/dist/wall/move-tool.d.ts +6 -0
- package/dist/wall/move-tool.d.ts.map +1 -0
- package/dist/wall/move-tool.js +523 -0
- package/dist/wall/paint.d.ts +33 -0
- package/dist/wall/paint.d.ts.map +1 -0
- package/dist/wall/paint.js +176 -0
- package/dist/wall/panel.d.ts +2 -0
- package/dist/wall/panel.d.ts.map +1 -0
- package/dist/wall/panel.js +198 -0
- package/dist/wall/parametrics.d.ts +16 -0
- package/dist/wall/parametrics.d.ts.map +1 -0
- package/dist/wall/parametrics.js +30 -0
- package/dist/wall/quick-measurement.d.ts +3 -0
- package/dist/wall/quick-measurement.d.ts.map +1 -0
- package/dist/wall/quick-measurement.js +30 -0
- package/dist/wall/renderer.d.ts +25 -0
- package/dist/wall/renderer.d.ts.map +1 -0
- package/dist/wall/renderer.js +65 -0
- package/dist/wall/schema.d.ts +12 -0
- package/dist/wall/schema.d.ts.map +1 -0
- package/dist/wall/schema.js +10 -0
- package/dist/wall/slots.d.ts +10 -0
- package/dist/wall/slots.d.ts.map +1 -0
- package/dist/wall/slots.js +84 -0
- package/dist/wall/system.d.ts +14 -0
- package/dist/wall/system.d.ts.map +1 -0
- package/dist/wall/system.js +18 -0
- package/dist/wall/tool.d.ts +3 -0
- package/dist/wall/tool.d.ts.map +1 -0
- package/dist/wall/tool.js +628 -0
- package/dist/wall/treatments.d.ts +26 -0
- package/dist/wall/treatments.d.ts.map +1 -0
- package/dist/wall/treatments.js +503 -0
- package/dist/window/definition.d.ts +15 -0
- package/dist/window/definition.d.ts.map +1 -0
- package/dist/window/definition.js +237 -0
- package/dist/window/floor-projection.d.ts +9 -0
- package/dist/window/floor-projection.d.ts.map +1 -0
- package/dist/window/floor-projection.js +84 -0
- package/dist/window/floorplan-affordances.d.ts +22 -0
- package/dist/window/floorplan-affordances.d.ts.map +1 -0
- package/dist/window/floorplan-affordances.js +82 -0
- package/dist/window/floorplan-move.d.ts +14 -0
- package/dist/window/floorplan-move.d.ts.map +1 -0
- package/dist/window/floorplan-move.js +223 -0
- package/dist/window/floorplan.d.ts +16 -0
- package/dist/window/floorplan.d.ts.map +1 -0
- package/dist/window/floorplan.js +151 -0
- package/dist/window/index.d.ts +3 -0
- package/dist/window/index.d.ts.map +1 -0
- package/dist/window/index.js +2 -0
- package/dist/window/move-tool.d.ts +18 -0
- package/dist/window/move-tool.d.ts.map +1 -0
- package/dist/window/move-tool.js +914 -0
- package/dist/window/paint.d.ts +8 -0
- package/dist/window/paint.d.ts.map +1 -0
- package/dist/window/paint.js +11 -0
- package/dist/window/panel.d.ts +2 -0
- package/dist/window/panel.d.ts.map +1 -0
- package/dist/window/panel.js +384 -0
- package/dist/window/parametrics.d.ts +11 -0
- package/dist/window/parametrics.d.ts.map +1 -0
- package/dist/window/parametrics.js +22 -0
- package/dist/window/preview.d.ts +18 -0
- package/dist/window/preview.d.ts.map +1 -0
- package/dist/window/preview.js +36 -0
- package/dist/window/renderer.d.ts +6 -0
- package/dist/window/renderer.d.ts.map +1 -0
- package/dist/window/renderer.js +37 -0
- package/dist/window/schema.d.ts +2 -0
- package/dist/window/schema.d.ts.map +1 -0
- package/dist/window/schema.js +1 -0
- package/dist/window/slots.d.ts +5 -0
- package/dist/window/slots.d.ts.map +1 -0
- package/dist/window/slots.js +11 -0
- package/dist/window/system.d.ts +12 -0
- package/dist/window/system.d.ts.map +1 -0
- package/dist/window/system.js +16 -0
- package/dist/window/tool.d.ts +13 -0
- package/dist/window/tool.d.ts.map +1 -0
- package/dist/window/tool.js +580 -0
- package/dist/window/window-math.d.ts +31 -0
- package/dist/window/window-math.d.ts.map +1 -0
- package/dist/window/window-math.js +41 -0
- package/dist/zone/definition.d.ts +10 -0
- package/dist/zone/definition.d.ts.map +1 -0
- package/dist/zone/definition.js +80 -0
- package/dist/zone/floorplan-affordances.d.ts +81 -0
- package/dist/zone/floorplan-affordances.d.ts.map +1 -0
- package/dist/zone/floorplan-affordances.js +19 -0
- package/dist/zone/floorplan-move.d.ts +13 -0
- package/dist/zone/floorplan-move.d.ts.map +1 -0
- package/dist/zone/floorplan-move.js +17 -0
- package/dist/zone/floorplan.d.ts +13 -0
- package/dist/zone/floorplan.d.ts.map +1 -0
- package/dist/zone/floorplan.js +147 -0
- package/dist/zone/index.d.ts +2 -0
- package/dist/zone/index.d.ts.map +1 -0
- package/dist/zone/index.js +1 -0
- package/dist/zone/parametrics.d.ts +3 -0
- package/dist/zone/parametrics.d.ts.map +1 -0
- package/dist/zone/parametrics.js +4 -0
- package/dist/zone/quantities-panel.d.ts +2 -0
- package/dist/zone/quantities-panel.d.ts.map +1 -0
- package/dist/zone/quantities-panel.js +83 -0
- package/dist/zone/quick-measurement.d.ts +3 -0
- package/dist/zone/quick-measurement.d.ts.map +1 -0
- package/dist/zone/quick-measurement.js +29 -0
- package/dist/zone/renderer.d.ts +6 -0
- package/dist/zone/renderer.d.ts.map +1 -0
- package/dist/zone/renderer.js +205 -0
- package/dist/zone/schema.d.ts +2 -0
- package/dist/zone/schema.d.ts.map +1 -0
- package/dist/zone/schema.js +1 -0
- package/dist/zone/system.d.ts +3 -0
- package/dist/zone/system.d.ts.map +1 -0
- package/dist/zone/system.js +3 -0
- package/package.json +61 -0
|
@@ -0,0 +1,1016 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useLiveNodeOverrides, useLiveTransforms, useRegistry, useScene, } from '@pascal-app/core';
|
|
4
|
+
import { baseMaterial, createColumnBoxGeometry, createColumnCylinderGeometry, createColumnSphereGeometry, createColumnTorusGeometry, createMaterial, createMaterialFromPresetRef, createSurfaceRoleMaterial, resolveMaterialRef, resolveSlotDefaultMaterial, useNodeEvents, useViewer, } from '@pascal-app/viewer';
|
|
5
|
+
import { createContext, useContext, useEffect, useMemo, useRef } from 'react';
|
|
6
|
+
import { BufferGeometry, Float32BufferAttribute } from 'three';
|
|
7
|
+
import { COLUMN_BASE_DEFAULT, COLUMN_CAPITAL_DEFAULT, COLUMN_FRAME_DEFAULT, COLUMN_SHAFT_DEFAULT, } from './slots';
|
|
8
|
+
const DEFAULT_COLUMN_MATERIAL = baseMaterial();
|
|
9
|
+
const DEFAULT_COLUMN_SLOT_MATERIALS = createSingleColumnMaterialMap(DEFAULT_COLUMN_MATERIAL);
|
|
10
|
+
const ColumnMaterialContext = createContext(DEFAULT_COLUMN_SLOT_MATERIALS);
|
|
11
|
+
const ColumnSlotContext = createContext('shaft');
|
|
12
|
+
const ColumnEdgeSoftnessContext = createContext(0.025);
|
|
13
|
+
function ColumnMaterial() {
|
|
14
|
+
const slotId = useContext(ColumnSlotContext);
|
|
15
|
+
const materials = useContext(ColumnMaterialContext);
|
|
16
|
+
const material = materials[slotId] ?? materials.shaft;
|
|
17
|
+
return _jsx("primitive", { attach: "material", object: material });
|
|
18
|
+
}
|
|
19
|
+
function ColumnSlot({ children, slotId }) {
|
|
20
|
+
return _jsx(ColumnSlotContext.Provider, { value: slotId, children: children });
|
|
21
|
+
}
|
|
22
|
+
function createSingleColumnMaterialMap(material) {
|
|
23
|
+
return {
|
|
24
|
+
shaft: material,
|
|
25
|
+
base: material,
|
|
26
|
+
capital: material,
|
|
27
|
+
frame: material,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function createLegacyColumnMaterial({ material, materialPreset, shading, textures, colorPreset, }) {
|
|
31
|
+
if (!textures)
|
|
32
|
+
return createSurfaceRoleMaterial('wall', colorPreset);
|
|
33
|
+
const presetMaterial = createMaterialFromPresetRef(materialPreset, shading);
|
|
34
|
+
if (presetMaterial)
|
|
35
|
+
return presetMaterial;
|
|
36
|
+
if (material)
|
|
37
|
+
return createMaterial(material, shading);
|
|
38
|
+
return baseMaterial(shading);
|
|
39
|
+
}
|
|
40
|
+
function resolveColumnSlotMaterial({ colorPreset, legacyMaterial, node, sceneMaterials, shading, slotId, textures, }) {
|
|
41
|
+
if (!textures)
|
|
42
|
+
return createSurfaceRoleMaterial('wall', colorPreset);
|
|
43
|
+
const slotRef = node.slots?.[slotId];
|
|
44
|
+
if (slotRef) {
|
|
45
|
+
const resolved = resolveMaterialRef(slotRef, sceneMaterials, shading);
|
|
46
|
+
if (resolved)
|
|
47
|
+
return resolved;
|
|
48
|
+
}
|
|
49
|
+
if (legacyMaterial)
|
|
50
|
+
return legacyMaterial;
|
|
51
|
+
if (slotId === 'frame')
|
|
52
|
+
return resolveSlotDefaultMaterial(COLUMN_FRAME_DEFAULT, shading);
|
|
53
|
+
if (slotId === 'base')
|
|
54
|
+
return resolveSlotDefaultMaterial(COLUMN_BASE_DEFAULT, shading);
|
|
55
|
+
if (slotId === 'capital')
|
|
56
|
+
return resolveSlotDefaultMaterial(COLUMN_CAPITAL_DEFAULT, shading);
|
|
57
|
+
return resolveSlotDefaultMaterial(COLUMN_SHAFT_DEFAULT, shading);
|
|
58
|
+
}
|
|
59
|
+
function createColumnSlotMaterials({ colorPreset, material, materialPreset, node, sceneMaterials, shading, textures, }) {
|
|
60
|
+
const legacyMaterial = materialPreset || material
|
|
61
|
+
? createLegacyColumnMaterial({ colorPreset, material, materialPreset, shading, textures })
|
|
62
|
+
: null;
|
|
63
|
+
return {
|
|
64
|
+
shaft: resolveColumnSlotMaterial({
|
|
65
|
+
colorPreset,
|
|
66
|
+
legacyMaterial,
|
|
67
|
+
node,
|
|
68
|
+
sceneMaterials,
|
|
69
|
+
shading,
|
|
70
|
+
slotId: 'shaft',
|
|
71
|
+
textures,
|
|
72
|
+
}),
|
|
73
|
+
base: resolveColumnSlotMaterial({
|
|
74
|
+
colorPreset,
|
|
75
|
+
legacyMaterial,
|
|
76
|
+
node,
|
|
77
|
+
sceneMaterials,
|
|
78
|
+
shading,
|
|
79
|
+
slotId: 'base',
|
|
80
|
+
textures,
|
|
81
|
+
}),
|
|
82
|
+
capital: resolveColumnSlotMaterial({
|
|
83
|
+
colorPreset,
|
|
84
|
+
legacyMaterial,
|
|
85
|
+
node,
|
|
86
|
+
sceneMaterials,
|
|
87
|
+
shading,
|
|
88
|
+
slotId: 'capital',
|
|
89
|
+
textures,
|
|
90
|
+
}),
|
|
91
|
+
frame: resolveColumnSlotMaterial({
|
|
92
|
+
colorPreset,
|
|
93
|
+
legacyMaterial,
|
|
94
|
+
node,
|
|
95
|
+
sceneMaterials,
|
|
96
|
+
shading,
|
|
97
|
+
slotId: 'frame',
|
|
98
|
+
textures,
|
|
99
|
+
}),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function getSegments(node) {
|
|
103
|
+
if (node.crossSection === 'octagonal')
|
|
104
|
+
return 8;
|
|
105
|
+
if (node.crossSection === 'sixteen-sided')
|
|
106
|
+
return 16;
|
|
107
|
+
return 32;
|
|
108
|
+
}
|
|
109
|
+
function getShaftProfile(node) {
|
|
110
|
+
return node.shaftProfile ?? (node.shaftTaper > 0 ? 'tapered' : 'straight');
|
|
111
|
+
}
|
|
112
|
+
function getShaftSegmentCount(node) {
|
|
113
|
+
const shaftProfile = getShaftProfile(node);
|
|
114
|
+
const shaftTaper = node.shaftTaper ?? 0;
|
|
115
|
+
const hasTwist = Math.abs(node.shaftTwistStep ?? 0) > 0.001;
|
|
116
|
+
return Math.max(hasTwist ? 4 : 1, shaftProfile === 'straight' && shaftTaper <= 0 && !hasTwist
|
|
117
|
+
? 1
|
|
118
|
+
: (node.shaftSegmentCount ?? (hasTwist ? 12 : 24)));
|
|
119
|
+
}
|
|
120
|
+
function getShaftTwistRadians(node, index) {
|
|
121
|
+
return ((node.shaftTwistStep ?? 0) * Math.PI * index) / 180;
|
|
122
|
+
}
|
|
123
|
+
function getShaftScaleAt(node, t) {
|
|
124
|
+
const shaftProfile = getShaftProfile(node);
|
|
125
|
+
const shaftTaper = Math.min(node.shaftTaper ?? 0, 0.85);
|
|
126
|
+
const startScale = node.shaftStartScale ?? 0.72;
|
|
127
|
+
const endScale = node.shaftEndScale ?? startScale;
|
|
128
|
+
const shaftBulge = node.shaftBulge ??
|
|
129
|
+
(shaftProfile === 'bulged'
|
|
130
|
+
? 0.16
|
|
131
|
+
: shaftProfile === 'baluster'
|
|
132
|
+
? 0.2
|
|
133
|
+
: shaftProfile === 'hourglass'
|
|
134
|
+
? 0.18
|
|
135
|
+
: 0);
|
|
136
|
+
const taperedScale = 1 - shaftTaper * t;
|
|
137
|
+
const linearScale = (startScale + (endScale - startScale) * t) * taperedScale;
|
|
138
|
+
const bulgeCurve = Math.sin(Math.PI * t);
|
|
139
|
+
const hourglassCurve = Math.abs(t - 0.5) * 2;
|
|
140
|
+
const profileScale = shaftProfile === 'bulged' || shaftProfile === 'baluster'
|
|
141
|
+
? linearScale + shaftBulge * bulgeCurve
|
|
142
|
+
: shaftProfile === 'hourglass'
|
|
143
|
+
? linearScale - shaftBulge * (1 - hourglassCurve)
|
|
144
|
+
: linearScale;
|
|
145
|
+
return Math.max(0.1, profileScale);
|
|
146
|
+
}
|
|
147
|
+
function clamp(value, min, max) {
|
|
148
|
+
return Math.min(max, Math.max(min, value));
|
|
149
|
+
}
|
|
150
|
+
function MappedBox({ depth, height, position, rotation, softenEdges = true, width, }) {
|
|
151
|
+
const edgeSoftness = useContext(ColumnEdgeSoftnessContext);
|
|
152
|
+
const slotId = useContext(ColumnSlotContext);
|
|
153
|
+
const minDimension = Math.max(0, Math.min(width, height, depth));
|
|
154
|
+
const bevelRadius = softenEdges ? Math.min(Math.max(0, edgeSoftness), minDimension * 0.35) : 0;
|
|
155
|
+
const geometry = useMemo(() => {
|
|
156
|
+
if (height <= 0 || width <= 0 || depth <= 0)
|
|
157
|
+
return null;
|
|
158
|
+
return createColumnBoxGeometry(width, height, depth, bevelRadius);
|
|
159
|
+
}, [bevelRadius, depth, height, width]);
|
|
160
|
+
if (!geometry)
|
|
161
|
+
return null;
|
|
162
|
+
return (_jsxs("mesh", { castShadow: true, dispose: null, position: position, receiveShadow: true, rotation: rotation, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
|
|
163
|
+
}
|
|
164
|
+
function FlatEndedBeam({ depth, end, start, width, }) {
|
|
165
|
+
const slotId = useContext(ColumnSlotContext);
|
|
166
|
+
const dx = end[0] - start[0];
|
|
167
|
+
const dy = end[1] - start[1];
|
|
168
|
+
const dz = end[2] - start[2];
|
|
169
|
+
const length = Math.hypot(dx, dy, dz);
|
|
170
|
+
const geometry = useMemo(() => {
|
|
171
|
+
if (length <= 0.001 || width <= 0 || depth <= 0)
|
|
172
|
+
return null;
|
|
173
|
+
const halfWidth = width / 2;
|
|
174
|
+
const halfDepth = depth / 2;
|
|
175
|
+
const bottomY = start[1];
|
|
176
|
+
const topY = end[1];
|
|
177
|
+
const bottomCenterX = start[0];
|
|
178
|
+
const topCenterX = end[0];
|
|
179
|
+
const bottomCenterZ = start[2];
|
|
180
|
+
const topCenterZ = end[2];
|
|
181
|
+
const vertices = [
|
|
182
|
+
[bottomCenterX - halfWidth, bottomY, bottomCenterZ - halfDepth],
|
|
183
|
+
[bottomCenterX + halfWidth, bottomY, bottomCenterZ - halfDepth],
|
|
184
|
+
[bottomCenterX + halfWidth, bottomY, bottomCenterZ + halfDepth],
|
|
185
|
+
[bottomCenterX - halfWidth, bottomY, bottomCenterZ + halfDepth],
|
|
186
|
+
[topCenterX - halfWidth, topY, topCenterZ - halfDepth],
|
|
187
|
+
[topCenterX + halfWidth, topY, topCenterZ - halfDepth],
|
|
188
|
+
[topCenterX + halfWidth, topY, topCenterZ + halfDepth],
|
|
189
|
+
[topCenterX - halfWidth, topY, topCenterZ + halfDepth],
|
|
190
|
+
];
|
|
191
|
+
const faceQuads = [
|
|
192
|
+
[0, 1, 2, 3],
|
|
193
|
+
[4, 7, 6, 5],
|
|
194
|
+
[0, 4, 5, 1],
|
|
195
|
+
[1, 5, 6, 2],
|
|
196
|
+
[2, 6, 7, 3],
|
|
197
|
+
[3, 7, 4, 0],
|
|
198
|
+
];
|
|
199
|
+
const positions = [];
|
|
200
|
+
const uvs = [];
|
|
201
|
+
const pushVertex = (vertexIndex, uv) => {
|
|
202
|
+
const vertex = vertices[vertexIndex];
|
|
203
|
+
if (!vertex)
|
|
204
|
+
return false;
|
|
205
|
+
positions.push(...vertex);
|
|
206
|
+
uvs.push(...uv);
|
|
207
|
+
return true;
|
|
208
|
+
};
|
|
209
|
+
const pushTriangle = (a, b, c, uvA, uvB, uvC) => {
|
|
210
|
+
const va = vertices[a];
|
|
211
|
+
const vb = vertices[b];
|
|
212
|
+
const vc = vertices[c];
|
|
213
|
+
if (!va || !vb || !vc)
|
|
214
|
+
return;
|
|
215
|
+
pushVertex(a, uvA);
|
|
216
|
+
pushVertex(b, uvB);
|
|
217
|
+
pushVertex(c, uvC);
|
|
218
|
+
};
|
|
219
|
+
for (const [a, b, c, d] of faceQuads) {
|
|
220
|
+
const va = vertices[a];
|
|
221
|
+
const vb = vertices[b];
|
|
222
|
+
const vc = vertices[c];
|
|
223
|
+
const vd = vertices[d];
|
|
224
|
+
if (!va || !vb || !vc || !vd)
|
|
225
|
+
continue;
|
|
226
|
+
const edgeU = Math.hypot(vb[0] - va[0], vb[1] - va[1], vb[2] - va[2]);
|
|
227
|
+
const edgeV = Math.hypot(vd[0] - va[0], vd[1] - va[1], vd[2] - va[2]);
|
|
228
|
+
const uvA = [0, 0];
|
|
229
|
+
const uvB = [edgeU, 0];
|
|
230
|
+
const uvC = [edgeU, edgeV];
|
|
231
|
+
const uvD = [0, edgeV];
|
|
232
|
+
pushTriangle(a, b, c, uvA, uvB, uvC);
|
|
233
|
+
pushTriangle(a, c, d, uvA, uvC, uvD);
|
|
234
|
+
pushTriangle(a, c, b, uvA, uvC, uvB);
|
|
235
|
+
pushTriangle(a, d, c, uvA, uvD, uvC);
|
|
236
|
+
}
|
|
237
|
+
const geometry = new BufferGeometry();
|
|
238
|
+
geometry.setAttribute('position', new Float32BufferAttribute(positions, 3));
|
|
239
|
+
geometry.setAttribute('uv', new Float32BufferAttribute(uvs, 2));
|
|
240
|
+
geometry.setAttribute('uv2', new Float32BufferAttribute(uvs.slice(), 2));
|
|
241
|
+
geometry.computeVertexNormals();
|
|
242
|
+
return geometry;
|
|
243
|
+
}, [depth, length, start, end, width]);
|
|
244
|
+
if (!geometry)
|
|
245
|
+
return null;
|
|
246
|
+
return (_jsxs("mesh", { castShadow: true, dispose: null, receiveShadow: true, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
|
|
247
|
+
}
|
|
248
|
+
function AFrameSupport({ node }) {
|
|
249
|
+
const height = Math.max(0.2, node.height);
|
|
250
|
+
const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
|
|
251
|
+
const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
|
|
252
|
+
const bottomSpread = Math.max(0.2, node.braceBottomSpread ?? Math.max(node.width * 3, 1.2));
|
|
253
|
+
const topSpread = clamp(node.braceTopSpread ?? 0.12, 0, bottomSpread);
|
|
254
|
+
const bottomY = 0;
|
|
255
|
+
const topY = height;
|
|
256
|
+
const leftBottom = [-bottomSpread / 2, bottomY, 0];
|
|
257
|
+
const rightBottom = [bottomSpread / 2, bottomY, 0];
|
|
258
|
+
const leftTop = [-topSpread / 2, topY, 0];
|
|
259
|
+
const rightTop = [topSpread / 2, topY, 0];
|
|
260
|
+
const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
|
|
261
|
+
const footPlateWidth = braceWidth * 1.9;
|
|
262
|
+
const footPlateDepth = braceDepth * 1.75;
|
|
263
|
+
const topPlateWidth = Math.max(topSpread + braceWidth * 1.9, braceWidth * 2.2);
|
|
264
|
+
const topPlateDepth = braceDepth * 1.75;
|
|
265
|
+
return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: leftTop, start: leftBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: rightBottom, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [leftBottom[0], plateHeight / 2, leftBottom[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [rightBottom[0], plateHeight / 2, rightBottom[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: topPlateDepth, height: plateHeight, position: [0, height - plateHeight / 2, 0], width: topPlateWidth })] }))] }));
|
|
266
|
+
}
|
|
267
|
+
function YFrameSupport({ node }) {
|
|
268
|
+
const height = Math.max(0.2, node.height);
|
|
269
|
+
const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
|
|
270
|
+
const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
|
|
271
|
+
const topSpread = Math.max(0.2, node.braceTopSpread ?? 0.9);
|
|
272
|
+
const splitY = height * 0.56;
|
|
273
|
+
const foot = [0, 0, 0];
|
|
274
|
+
const split = [0, splitY, 0];
|
|
275
|
+
const leftTop = [-topSpread / 2, height, 0];
|
|
276
|
+
const rightTop = [topSpread / 2, height, 0];
|
|
277
|
+
const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
|
|
278
|
+
const footPlateWidth = braceWidth * 1.9;
|
|
279
|
+
const footPlateDepth = braceDepth * 1.75;
|
|
280
|
+
const topPlateWidth = topSpread + braceWidth * 1.9;
|
|
281
|
+
const topPlateDepth = braceDepth * 1.75;
|
|
282
|
+
return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: split, start: foot, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: leftTop, start: split, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: split, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [foot[0], plateHeight / 2, foot[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: topPlateDepth, height: plateHeight, position: [0, height - plateHeight / 2, 0], width: topPlateWidth })] }))] }));
|
|
283
|
+
}
|
|
284
|
+
function VFrameSupport({ node }) {
|
|
285
|
+
const height = Math.max(0.2, node.height);
|
|
286
|
+
const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
|
|
287
|
+
const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
|
|
288
|
+
const topSpread = Math.max(0.2, node.braceTopSpread ?? 1);
|
|
289
|
+
const foot = [0, 0, 0];
|
|
290
|
+
const leftTop = [-topSpread / 2, height, 0];
|
|
291
|
+
const rightTop = [topSpread / 2, height, 0];
|
|
292
|
+
const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
|
|
293
|
+
const footPlateWidth = braceWidth * 1.9;
|
|
294
|
+
const footPlateDepth = braceDepth * 1.75;
|
|
295
|
+
const topPlateWidth = topSpread + braceWidth * 1.9;
|
|
296
|
+
const topPlateDepth = braceDepth * 1.75;
|
|
297
|
+
return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: leftTop, start: foot, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: foot, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [foot[0], plateHeight / 2, foot[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: topPlateDepth, height: plateHeight, position: [0, height - plateHeight / 2, 0], width: topPlateWidth })] }))] }));
|
|
298
|
+
}
|
|
299
|
+
function XBraceSupport({ node }) {
|
|
300
|
+
const height = Math.max(0.2, node.height);
|
|
301
|
+
const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
|
|
302
|
+
const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
|
|
303
|
+
const bottomSpread = Math.max(0.2, node.braceBottomSpread ?? 1);
|
|
304
|
+
const topSpread = Math.max(0.2, node.braceTopSpread ?? 1);
|
|
305
|
+
const leftBottom = [-bottomSpread / 2, 0, 0];
|
|
306
|
+
const rightBottom = [bottomSpread / 2, 0, 0];
|
|
307
|
+
const leftTop = [-topSpread / 2, height, 0];
|
|
308
|
+
const rightTop = [topSpread / 2, height, 0];
|
|
309
|
+
const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
|
|
310
|
+
const footPlateWidth = braceWidth * 1.9;
|
|
311
|
+
const footPlateDepth = braceDepth * 1.75;
|
|
312
|
+
const topPlateWidth = braceWidth * 1.9;
|
|
313
|
+
const topPlateDepth = braceDepth * 1.75;
|
|
314
|
+
return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: leftBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: leftTop, start: rightBottom, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [leftBottom[0], plateHeight / 2, leftBottom[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: footPlateDepth, height: plateHeight, position: [rightBottom[0], plateHeight / 2, rightBottom[2]], width: footPlateWidth }), _jsx(MappedBox, { depth: topPlateDepth, height: plateHeight, position: [leftTop[0], height - plateHeight / 2, leftTop[2]], width: topPlateWidth }), _jsx(MappedBox, { depth: topPlateDepth, height: plateHeight, position: [rightTop[0], height - plateHeight / 2, rightTop[2]], width: topPlateWidth })] }))] }));
|
|
315
|
+
}
|
|
316
|
+
function KBraceSupport({ node }) {
|
|
317
|
+
const height = Math.max(0.2, node.height);
|
|
318
|
+
const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
|
|
319
|
+
const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
|
|
320
|
+
const spread = Math.max(0.2, Math.max(node.braceBottomSpread ?? 1, node.braceTopSpread ?? 1));
|
|
321
|
+
const leftBottom = [-spread / 2, 0, 0];
|
|
322
|
+
const leftTop = [-spread / 2, height, 0];
|
|
323
|
+
const centerBottom = [0, 0, 0];
|
|
324
|
+
const centerMiddle = [0, height / 2, 0];
|
|
325
|
+
const centerTop = [0, height, 0];
|
|
326
|
+
const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
|
|
327
|
+
const plateWidth = braceWidth * 1.9;
|
|
328
|
+
const plateDepth = braceDepth * 1.75;
|
|
329
|
+
return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: centerTop, start: centerBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: centerMiddle, start: leftBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: centerMiddle, start: leftTop, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [leftBottom[0], plateHeight / 2, leftBottom[2]], width: plateWidth }), _jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [centerBottom[0], plateHeight / 2, centerBottom[2]], width: plateWidth }), _jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [leftTop[0], height - plateHeight / 2, leftTop[2]], width: plateWidth }), _jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [centerTop[0], height - plateHeight / 2, centerTop[2]], width: plateWidth })] }))] }));
|
|
330
|
+
}
|
|
331
|
+
function SingleStrutSupport({ node }) {
|
|
332
|
+
const height = Math.max(0.2, node.height);
|
|
333
|
+
const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
|
|
334
|
+
const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
|
|
335
|
+
const spread = Math.max(0.2, Math.max(node.braceBottomSpread ?? 1, node.braceTopSpread ?? 1));
|
|
336
|
+
const bottom = [-spread / 2, 0, 0];
|
|
337
|
+
const top = [spread / 2, height, 0];
|
|
338
|
+
const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
|
|
339
|
+
const plateWidth = braceWidth * 1.9;
|
|
340
|
+
const plateDepth = braceDepth * 1.75;
|
|
341
|
+
return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: top, start: bottom, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [bottom[0], plateHeight / 2, bottom[2]], width: plateWidth }), _jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [top[0], height - plateHeight / 2, top[2]], width: plateWidth })] }))] }));
|
|
342
|
+
}
|
|
343
|
+
function TripodSupport({ node }) {
|
|
344
|
+
const height = Math.max(0.2, node.height);
|
|
345
|
+
const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
|
|
346
|
+
const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
|
|
347
|
+
const width = Math.max(0.2, node.braceBottomSpread ?? 1.1);
|
|
348
|
+
const depth = Math.max(0.2, node.braceTopSpread ?? 1.1);
|
|
349
|
+
const top = [0, height, 0];
|
|
350
|
+
const feet = [
|
|
351
|
+
[0, 0, -depth / 2],
|
|
352
|
+
[-width / 2, 0, depth / 2],
|
|
353
|
+
[width / 2, 0, depth / 2],
|
|
354
|
+
];
|
|
355
|
+
const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
|
|
356
|
+
const plateWidth = braceWidth * 1.9;
|
|
357
|
+
const plateDepth = braceDepth * 1.75;
|
|
358
|
+
return (_jsxs("group", { children: [feet.map((foot, index) => (_jsx(FlatEndedBeam, { depth: braceDepth, end: top, start: foot, width: braceWidth }, `leg-${index}`))), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [feet.map((foot, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [foot[0], plateHeight / 2, foot[2]], width: plateWidth }, `foot-${index}`))), _jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [0, height - plateHeight / 2, 0], width: plateWidth })] }))] }));
|
|
359
|
+
}
|
|
360
|
+
function TrestleSupport({ node }) {
|
|
361
|
+
const height = Math.max(0.2, node.height);
|
|
362
|
+
const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
|
|
363
|
+
const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
|
|
364
|
+
const width = Math.max(0.2, node.braceBottomSpread ?? 1.2);
|
|
365
|
+
const depth = Math.max(0.2, node.braceTopSpread ?? 1);
|
|
366
|
+
const zPositions = [-depth / 2, depth / 2];
|
|
367
|
+
const topPoints = zPositions.map((z) => [0, height, z]);
|
|
368
|
+
const footPoints = zPositions.flatMap((z) => [
|
|
369
|
+
[-width / 2, 0, z],
|
|
370
|
+
[width / 2, 0, z],
|
|
371
|
+
]);
|
|
372
|
+
const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
|
|
373
|
+
const plateWidth = braceWidth * 1.9;
|
|
374
|
+
const plateDepth = braceDepth * 1.75;
|
|
375
|
+
return (_jsxs("group", { children: [zPositions.map((z, index) => {
|
|
376
|
+
const leftBottom = [-width / 2, 0, z];
|
|
377
|
+
const rightBottom = [width / 2, 0, z];
|
|
378
|
+
const top = topPoints[index] ?? [0, height, z];
|
|
379
|
+
return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: top, start: leftBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: top, start: rightBottom, width: braceWidth })] }, `frame-${z}`));
|
|
380
|
+
}), _jsx(FlatEndedBeam, { depth: braceDepth, end: topPoints[1] ?? [0, height, depth / 2], start: topPoints[0] ?? [0, height, -depth / 2], width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [footPoints.map((foot, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [foot[0], plateHeight / 2, foot[2]], width: plateWidth }, `foot-${index}`))), topPoints.map((top, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [top[0], height - plateHeight / 2, top[2]], width: plateWidth }, `top-${index}`)))] }))] }));
|
|
381
|
+
}
|
|
382
|
+
function PortalFrameSupport({ node }) {
|
|
383
|
+
const height = Math.max(0.2, node.height);
|
|
384
|
+
const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
|
|
385
|
+
const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
|
|
386
|
+
const width = Math.max(0.2, node.braceBottomSpread ?? 1.4);
|
|
387
|
+
const leftBottom = [-width / 2, 0, 0];
|
|
388
|
+
const rightBottom = [width / 2, 0, 0];
|
|
389
|
+
const leftTop = [-width / 2, height, 0];
|
|
390
|
+
const rightTop = [width / 2, height, 0];
|
|
391
|
+
const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
|
|
392
|
+
const plateWidth = braceWidth * 1.9;
|
|
393
|
+
const plateDepth = braceDepth * 1.75;
|
|
394
|
+
return (_jsxs("group", { children: [_jsx(FlatEndedBeam, { depth: braceDepth, end: leftTop, start: leftBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: rightBottom, width: braceWidth }), _jsx(FlatEndedBeam, { depth: braceDepth, end: rightTop, start: leftTop, width: braceWidth }), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [[leftBottom, rightBottom].map((foot, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [foot[0], plateHeight / 2, foot[2]], width: plateWidth }, `foot-${index}`))), [leftTop, rightTop].map((top, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [top[0], height - plateHeight / 2, top[2]], width: plateWidth }, `top-${index}`)))] }))] }));
|
|
395
|
+
}
|
|
396
|
+
function BoxFrameSupport({ node }) {
|
|
397
|
+
const height = Math.max(0.2, node.height);
|
|
398
|
+
const braceWidth = clamp(node.braceWidth ?? node.width, 0.04, 1.6);
|
|
399
|
+
const braceDepth = clamp(node.braceDepth ?? node.depth, 0.04, 1.6);
|
|
400
|
+
const width = Math.max(0.2, node.braceBottomSpread ?? 1.4);
|
|
401
|
+
const depth = Math.max(0.2, node.braceTopSpread ?? 1);
|
|
402
|
+
const corners = [
|
|
403
|
+
[-width / 2, 0, -depth / 2],
|
|
404
|
+
[width / 2, 0, -depth / 2],
|
|
405
|
+
[width / 2, 0, depth / 2],
|
|
406
|
+
[-width / 2, 0, depth / 2],
|
|
407
|
+
];
|
|
408
|
+
const topCorners = corners.map(([x, _y, z]) => [x, height, z]);
|
|
409
|
+
const plateHeight = Math.max(0.035, Math.min(0.08, braceWidth * 0.45));
|
|
410
|
+
const plateWidth = braceWidth * 1.9;
|
|
411
|
+
const plateDepth = braceDepth * 1.75;
|
|
412
|
+
return (_jsxs("group", { children: [corners.map((corner, index) => (_jsx(FlatEndedBeam, { depth: braceDepth, end: topCorners[index] ?? [corner[0], height, corner[2]], start: corner, width: braceWidth }, `post-${index}`))), topCorners.map((corner, index) => (_jsx(FlatEndedBeam, { depth: braceDepth, end: topCorners[(index + 1) % topCorners.length] ?? corner, start: corner, width: braceWidth }, `top-rail-${index}`))), corners.map((corner, index) => (_jsx(FlatEndedBeam, { depth: braceDepth, end: corners[(index + 1) % corners.length] ?? corner, start: corner, width: braceWidth }, `bottom-rail-${index}`))), (node.bracePlateEnabled ?? true) && (_jsxs(_Fragment, { children: [corners.map((corner, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [corner[0], plateHeight / 2, corner[2]], width: plateWidth }, `foot-${index}`))), topCorners.map((corner, index) => (_jsx(MappedBox, { depth: plateDepth, height: plateHeight, position: [corner[0], height - plateHeight / 2, corner[2]], width: plateWidth }, `top-${index}`)))] }))] }));
|
|
413
|
+
}
|
|
414
|
+
function MappedCylinder({ height, position, radius, radiusBottom = radius, radiusTop = radius, radiusX = 1, radiusZ = 1, rotation, segments = 32, }) {
|
|
415
|
+
const slotId = useContext(ColumnSlotContext);
|
|
416
|
+
const geometry = useMemo(() => {
|
|
417
|
+
if (height <= 0 || radius <= 0 || radiusBottom < 0 || radiusTop < 0)
|
|
418
|
+
return null;
|
|
419
|
+
return createColumnCylinderGeometry({
|
|
420
|
+
height,
|
|
421
|
+
radiusBottom,
|
|
422
|
+
radiusTop,
|
|
423
|
+
radiusX,
|
|
424
|
+
radiusZ,
|
|
425
|
+
segments,
|
|
426
|
+
});
|
|
427
|
+
}, [height, radius, radiusBottom, radiusTop, radiusX, radiusZ, segments]);
|
|
428
|
+
if (!geometry)
|
|
429
|
+
return null;
|
|
430
|
+
return (_jsxs("mesh", { castShadow: true, dispose: null, position: position, receiveShadow: true, rotation: rotation, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
|
|
431
|
+
}
|
|
432
|
+
function MappedCone({ height, position, radiusX, radiusZ = radiusX, rotation, segments = 6, }) {
|
|
433
|
+
const slotId = useContext(ColumnSlotContext);
|
|
434
|
+
const geometry = useMemo(() => {
|
|
435
|
+
if (height <= 0 || radiusX <= 0 || radiusZ <= 0)
|
|
436
|
+
return null;
|
|
437
|
+
return createColumnCylinderGeometry({
|
|
438
|
+
height,
|
|
439
|
+
radiusBottom: 1,
|
|
440
|
+
radiusTop: 0,
|
|
441
|
+
radiusX,
|
|
442
|
+
radiusZ,
|
|
443
|
+
segments,
|
|
444
|
+
});
|
|
445
|
+
}, [height, radiusX, radiusZ, segments]);
|
|
446
|
+
if (!geometry)
|
|
447
|
+
return null;
|
|
448
|
+
return (_jsxs("mesh", { castShadow: true, dispose: null, position: position, receiveShadow: true, rotation: rotation, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
|
|
449
|
+
}
|
|
450
|
+
function MappedSphere({ position, radius, segments = 10, verticalSegments = 8, }) {
|
|
451
|
+
const slotId = useContext(ColumnSlotContext);
|
|
452
|
+
const geometry = useMemo(() => {
|
|
453
|
+
if (radius <= 0)
|
|
454
|
+
return null;
|
|
455
|
+
return createColumnSphereGeometry(radius, segments, verticalSegments);
|
|
456
|
+
}, [radius, segments, verticalSegments]);
|
|
457
|
+
if (!geometry)
|
|
458
|
+
return null;
|
|
459
|
+
return (_jsxs("mesh", { castShadow: true, dispose: null, position: position, receiveShadow: true, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
|
|
460
|
+
}
|
|
461
|
+
function MappedTorus({ arc, position, ringRadius, rotation, scaleX, scaleY, scaleZ, tubeRadius, }) {
|
|
462
|
+
const slotId = useContext(ColumnSlotContext);
|
|
463
|
+
const geometry = useMemo(() => {
|
|
464
|
+
if (ringRadius <= 0 || tubeRadius <= 0)
|
|
465
|
+
return null;
|
|
466
|
+
return createColumnTorusGeometry({
|
|
467
|
+
arc,
|
|
468
|
+
ringRadius,
|
|
469
|
+
scaleX,
|
|
470
|
+
scaleY,
|
|
471
|
+
scaleZ,
|
|
472
|
+
tubeRadius,
|
|
473
|
+
});
|
|
474
|
+
}, [arc, ringRadius, scaleX, scaleY, scaleZ, tubeRadius]);
|
|
475
|
+
if (!geometry)
|
|
476
|
+
return null;
|
|
477
|
+
return (_jsxs("mesh", { castShadow: true, dispose: null, position: position, receiveShadow: true, rotation: rotation, userData: { slotId }, children: [_jsx("primitive", { attach: "geometry", dispose: null, object: geometry }), _jsx(ColumnMaterial, {})] }));
|
|
478
|
+
}
|
|
479
|
+
function SquareBlock({ y, height, width, depth, softenEdges = true, }) {
|
|
480
|
+
return (_jsx(MappedBox, { depth: depth, height: height, position: [0, y + height / 2, 0], softenEdges: softenEdges, width: width }));
|
|
481
|
+
}
|
|
482
|
+
function RoundBlock({ x = 0, y, z = 0, height, radius, segments = 32, }) {
|
|
483
|
+
return (_jsx(MappedCylinder, { height: height, position: [x, y + height / 2, z], radius: radius, segments: segments }));
|
|
484
|
+
}
|
|
485
|
+
function RoundedRectangleShaftSegment({ y, height, width, depth, cornerRadius, }) {
|
|
486
|
+
if (height <= 0)
|
|
487
|
+
return null;
|
|
488
|
+
const radius = Math.min(Math.max(0, cornerRadius), Math.min(width, depth) * 0.45);
|
|
489
|
+
if (radius <= 0.001) {
|
|
490
|
+
return _jsx(SquareBlock, { depth: depth, height: height, width: width, y: y });
|
|
491
|
+
}
|
|
492
|
+
const innerWidth = Math.max(0, width - radius * 2);
|
|
493
|
+
const innerDepth = Math.max(0, depth - radius * 2);
|
|
494
|
+
const cornerX = width / 2 - radius;
|
|
495
|
+
const cornerZ = depth / 2 - radius;
|
|
496
|
+
return (_jsxs("group", { children: [innerWidth > 0 && (_jsx(SquareBlock, { depth: depth, height: height, softenEdges: false, width: innerWidth, y: y })), innerDepth > 0 && (_jsx(SquareBlock, { depth: innerDepth, height: height, softenEdges: false, width: width, y: y })), [
|
|
497
|
+
[cornerX, cornerZ],
|
|
498
|
+
[cornerX, -cornerZ],
|
|
499
|
+
[-cornerX, cornerZ],
|
|
500
|
+
[-cornerX, -cornerZ],
|
|
501
|
+
].map(([x, z], index) => (_jsx(RoundBlock, { height: height, radius: radius, segments: 18, x: x, y: y, z: z }, index)))] }));
|
|
502
|
+
}
|
|
503
|
+
function OvalBlock({ y, height, width, depth, segments = 32, }) {
|
|
504
|
+
return (_jsx(MappedCylinder, { height: height, position: [0, y + height / 2, 0], radius: 1, radiusX: width / 2, radiusZ: depth / 2, segments: segments }));
|
|
505
|
+
}
|
|
506
|
+
function ColumnBlock({ node, y, height, scale = 1, }) {
|
|
507
|
+
if (height <= 0)
|
|
508
|
+
return null;
|
|
509
|
+
const width = node.width * scale;
|
|
510
|
+
const depth = node.depth * scale;
|
|
511
|
+
const radius = node.radius * scale;
|
|
512
|
+
if (node.crossSection === 'square' || node.crossSection === 'rectangular') {
|
|
513
|
+
return _jsx(SquareBlock, { depth: depth, height: height, width: width, y: y });
|
|
514
|
+
}
|
|
515
|
+
return _jsx(RoundBlock, { height: height, radius: radius, segments: getSegments(node), y: y });
|
|
516
|
+
}
|
|
517
|
+
function TaperedRoundShaft({ node, y, height }) {
|
|
518
|
+
const segmentCount = getShaftSegmentCount(node);
|
|
519
|
+
const segmentHeight = height / segmentCount;
|
|
520
|
+
return (_jsx("group", { children: Array.from({ length: segmentCount }, (_, index) => {
|
|
521
|
+
const t = (index + 0.5) / segmentCount;
|
|
522
|
+
const profileScale = getShaftScaleAt(node, t);
|
|
523
|
+
return (_jsx("group", { rotation: [0, getShaftTwistRadians(node, index), 0], children: _jsx(RoundBlock, { height: segmentHeight * 1.015, radius: node.radius * profileScale, segments: getSegments(node), y: y + index * segmentHeight }) }, index));
|
|
524
|
+
}) }));
|
|
525
|
+
}
|
|
526
|
+
function TaperedSquareShaft({ node, y, height }) {
|
|
527
|
+
const segmentCount = getShaftSegmentCount(node);
|
|
528
|
+
const segmentHeight = height / segmentCount;
|
|
529
|
+
return (_jsx("group", { children: Array.from({ length: segmentCount }, (_, index) => {
|
|
530
|
+
const t = (index + 0.5) / segmentCount;
|
|
531
|
+
const profileScale = getShaftScaleAt(node, t);
|
|
532
|
+
return (_jsx("group", { rotation: [0, getShaftTwistRadians(node, index), 0], children: _jsx(RoundedRectangleShaftSegment, { cornerRadius: (node.shaftCornerRadius ?? 0.035) * profileScale, depth: node.depth * profileScale, height: segmentHeight * 1.015, width: node.width * profileScale, y: y + index * segmentHeight }) }, index));
|
|
533
|
+
}) }));
|
|
534
|
+
}
|
|
535
|
+
function Shaft({ node, y, height }) {
|
|
536
|
+
if (height <= 0)
|
|
537
|
+
return null;
|
|
538
|
+
if (node.style === 'cluster') {
|
|
539
|
+
const sideRadius = Math.max(0.04, node.radius * 0.36);
|
|
540
|
+
const offset = Math.max(node.radius * 0.78, node.width * 0.22);
|
|
541
|
+
return (_jsxs("group", { children: [_jsx(RoundBlock, { height: height, radius: node.radius * 0.62, segments: 24, y: y }), [
|
|
542
|
+
[offset, 0],
|
|
543
|
+
[-offset, 0],
|
|
544
|
+
[0, offset],
|
|
545
|
+
[0, -offset],
|
|
546
|
+
].map(([x, z], index) => (_jsx(RoundBlock, { height: height, radius: sideRadius, segments: 16, x: x, y: y, z: z }, `${x}-${z}-${index}`)))] }));
|
|
547
|
+
}
|
|
548
|
+
if (node.crossSection === 'round' ||
|
|
549
|
+
node.crossSection === 'octagonal' ||
|
|
550
|
+
node.crossSection === 'sixteen-sided') {
|
|
551
|
+
return _jsx(TaperedRoundShaft, { height: height, node: node, y: y });
|
|
552
|
+
}
|
|
553
|
+
return _jsx(TaperedSquareShaft, { height: height, node: node, y: y });
|
|
554
|
+
}
|
|
555
|
+
function Base({ node, height }) {
|
|
556
|
+
if (height <= 0)
|
|
557
|
+
return null;
|
|
558
|
+
const baseStyle = node.baseStyle ?? 'round-rings';
|
|
559
|
+
const widthScale = node.baseWidthScale ?? 1.24;
|
|
560
|
+
const depthScale = node.baseDepthScale ?? widthScale;
|
|
561
|
+
if (baseStyle === 'none')
|
|
562
|
+
return null;
|
|
563
|
+
if (baseStyle === 'simple-square') {
|
|
564
|
+
return (_jsx(SquareBlock, { depth: node.depth * depthScale, height: height, width: node.width * widthScale, y: 0 }));
|
|
565
|
+
}
|
|
566
|
+
if (baseStyle === 'square-plinth') {
|
|
567
|
+
return (_jsxs("group", { children: [_jsx(SquareBlock, { depth: node.depth * depthScale, height: height * 0.35, width: node.width * widthScale, y: 0 }), _jsx(SquareBlock, { depth: node.depth * Math.max(0.9, depthScale * 0.84), height: height * 0.65, width: node.width * Math.max(0.9, widthScale * 0.84), y: height * 0.35 })] }));
|
|
568
|
+
}
|
|
569
|
+
if (baseStyle === 'stepped-square') {
|
|
570
|
+
const tierCount = Math.max(3, node.baseTierCount ?? 3);
|
|
571
|
+
const tierHeight = height / tierCount;
|
|
572
|
+
const stepSpread = node.baseStepSpread ?? 0.42;
|
|
573
|
+
return (_jsx("group", { children: Array.from({ length: tierCount }, (_, index) => {
|
|
574
|
+
const t = index / Math.max(1, tierCount - 1);
|
|
575
|
+
const widthScaleAt = Math.max(0.5, widthScale - t * stepSpread);
|
|
576
|
+
const depthScaleAt = Math.max(0.5, depthScale - t * stepSpread);
|
|
577
|
+
return (_jsx(SquareBlock, { depth: node.depth * depthScaleAt, height: tierHeight * 1.01, width: node.width * widthScaleAt, y: index * tierHeight }, index));
|
|
578
|
+
}) }));
|
|
579
|
+
}
|
|
580
|
+
if (baseStyle === 'round-rings') {
|
|
581
|
+
const baseWidth = node.width * widthScale;
|
|
582
|
+
const baseDepth = node.depth * depthScale;
|
|
583
|
+
const plinthRatio = Math.min(0.7, Math.max(0.2, node.basePlinthHeightRatio ?? 0.44));
|
|
584
|
+
const plinthHeight = height * plinthRatio;
|
|
585
|
+
const roundedHeight = height - plinthHeight;
|
|
586
|
+
const bandHeight = roundedHeight * 0.57;
|
|
587
|
+
const neckHeight = roundedHeight - bandHeight;
|
|
588
|
+
const bandScale = node.baseRoundBandScale ?? 0.92;
|
|
589
|
+
const neckScale = node.baseNeckScale ?? 0.72;
|
|
590
|
+
return (_jsxs("group", { children: [_jsx(SquareBlock, { depth: baseDepth, height: plinthHeight, width: baseWidth, y: 0 }), _jsx(OvalBlock, { depth: baseDepth * bandScale, height: bandHeight, segments: 32, width: baseWidth * bandScale, y: plinthHeight }), _jsx(OvalBlock, { depth: baseDepth * neckScale, height: neckHeight, segments: 32, width: baseWidth * neckScale, y: plinthHeight + bandHeight })] }));
|
|
591
|
+
}
|
|
592
|
+
if (baseStyle === 'lotus' || baseStyle === 'ribbed-lotus') {
|
|
593
|
+
const ribCount = node.baseRibCount ?? (baseStyle === 'ribbed-lotus' ? 24 : 14);
|
|
594
|
+
const ribRadius = Math.max(0.01, node.width * 0.025);
|
|
595
|
+
const baseRadius = Math.max(node.radius * widthScale, node.width * widthScale * 0.5);
|
|
596
|
+
return (_jsxs("group", { children: [_jsx(SquareBlock, { depth: node.depth * 1.28, height: height * 0.22, width: node.width * 1.28, y: 0 }), _jsx(RoundBlock, { height: height * 0.24, radius: baseRadius * 0.86, segments: 32, y: height * 0.22 }), Array.from({ length: ribCount }, (_, index) => {
|
|
597
|
+
const angle = (index / ribCount) * Math.PI * 2;
|
|
598
|
+
return (_jsx(MappedCylinder, { height: height * 0.38, position: [
|
|
599
|
+
Math.cos(angle) * baseRadius * 0.86,
|
|
600
|
+
height * 0.58,
|
|
601
|
+
Math.sin(angle) * baseRadius * 0.86,
|
|
602
|
+
], radius: ribRadius, rotation: [0, -angle, 0], segments: 6 }, index));
|
|
603
|
+
}), _jsx(RoundBlock, { height: height * 0.16, radius: baseRadius * 0.72, segments: 32, y: height * 0.82 })] }));
|
|
604
|
+
}
|
|
605
|
+
if (baseStyle === 'panelled-pedestal') {
|
|
606
|
+
const inset = node.basePanelInset ?? 0.02;
|
|
607
|
+
return (_jsxs("group", { children: [_jsx(SquareBlock, { depth: node.depth * widthScale, height: height, width: node.width * widthScale, y: 0 }), [
|
|
608
|
+
[0, node.depth * widthScale * 0.51, 0],
|
|
609
|
+
[0, -node.depth * widthScale * 0.51, 0],
|
|
610
|
+
[node.width * widthScale * 0.51, 0, Math.PI / 2],
|
|
611
|
+
[-node.width * widthScale * 0.51, 0, Math.PI / 2],
|
|
612
|
+
].map(([x, z, rotation], index) => (_jsx(MappedBox, { depth: inset, height: height * 0.42, position: [x, height * 0.5, z], rotation: [0, rotation, 0], softenEdges: false, width: node.width * 0.36 }, index)))] }));
|
|
613
|
+
}
|
|
614
|
+
return _jsx(ColumnBlock, { height: height, node: node, scale: 1.12, y: 0 });
|
|
615
|
+
}
|
|
616
|
+
function BaseCarvings({ node, height }) {
|
|
617
|
+
const placement = node.carvingPlacement ?? 'capital';
|
|
618
|
+
const carvingLevel = node.baseCarvingLevel ?? 0;
|
|
619
|
+
if (carvingLevel <= 0 || height <= 0 || (placement !== 'base' && placement !== 'all')) {
|
|
620
|
+
return null;
|
|
621
|
+
}
|
|
622
|
+
const count = Math.max(8, carvingLevel * 8);
|
|
623
|
+
const radius = Math.max(node.radius * 1.04, Math.max(node.width, node.depth) * 0.5);
|
|
624
|
+
const y = height * 0.52;
|
|
625
|
+
return (_jsx("group", { children: Array.from({ length: count }, (_, index) => {
|
|
626
|
+
const angle = (index / count) * Math.PI * 2;
|
|
627
|
+
return (_jsx(MappedCone, { height: height * 0.28, position: [Math.cos(angle) * radius, y, Math.sin(angle) * radius], radiusX: 0.014, radiusZ: 0.01, rotation: [0.36, -angle, 0], segments: 5 }, index));
|
|
628
|
+
}) }));
|
|
629
|
+
}
|
|
630
|
+
function Rings({ node, shaftY, shaftHeight, }) {
|
|
631
|
+
if (node.ringCount <= 0 || shaftHeight <= 0)
|
|
632
|
+
return null;
|
|
633
|
+
const ringPlacement = node.ringPlacement ?? 'ends';
|
|
634
|
+
const ringSpread = Math.min(0.45, Math.max(0.04, node.ringSpread ?? 0.16));
|
|
635
|
+
const ringHeight = Math.min(node.ringThickness ?? 0.055, shaftHeight / Math.max(8, node.ringCount * 3));
|
|
636
|
+
const rings = Array.from({ length: node.ringCount }, (_, index) => {
|
|
637
|
+
const pairIndex = Math.floor(index / 2);
|
|
638
|
+
const nearTop = index % 2 === 1;
|
|
639
|
+
const pairCount = Math.ceil(node.ringCount / 2);
|
|
640
|
+
const pairT = pairCount <= 1 ? 0 : pairIndex / (pairCount - 1);
|
|
641
|
+
const offset = Math.min(0.48, 0.06 + pairT * Math.max(0, ringSpread - 0.06));
|
|
642
|
+
const oneSideT = 0.06 + (index / Math.max(1, node.ringCount - 1)) * Math.max(0, ringSpread - 0.06);
|
|
643
|
+
const t = ringPlacement === 'even'
|
|
644
|
+
? (index + 1) / (node.ringCount + 1)
|
|
645
|
+
: ringPlacement === 'top'
|
|
646
|
+
? 1 - Math.min(0.48, oneSideT)
|
|
647
|
+
: ringPlacement === 'bottom'
|
|
648
|
+
? Math.min(0.48, oneSideT)
|
|
649
|
+
: nearTop
|
|
650
|
+
? 1 - offset
|
|
651
|
+
: offset;
|
|
652
|
+
return {
|
|
653
|
+
scale: Math.min(1.4, getShaftScaleAt(node, t) + 0.12),
|
|
654
|
+
y: shaftY + shaftHeight * t - ringHeight / 2,
|
|
655
|
+
};
|
|
656
|
+
}).sort((a, b) => a.y - b.y);
|
|
657
|
+
return (_jsx("group", { children: rings.map((ring, index) => (_jsx(ColumnBlock, { height: ringHeight, node: node, scale: ring.scale, y: ring.y }, index))) }));
|
|
658
|
+
}
|
|
659
|
+
function LatheBands({ node, shaftY, shaftHeight, }) {
|
|
660
|
+
const latheRingCount = Math.max(node.latheRingCount ?? 0, node.shaftDetail === 'lathe-turned' ? 8 : 0);
|
|
661
|
+
if (latheRingCount <= 0 || shaftHeight <= 0)
|
|
662
|
+
return null;
|
|
663
|
+
const placement = node.latheRingSpacing ?? 'ends';
|
|
664
|
+
const bandHeight = Math.min(0.04, shaftHeight / Math.max(12, latheRingCount * 3));
|
|
665
|
+
const bands = Array.from({ length: latheRingCount }, (_, index) => {
|
|
666
|
+
const pairIndex = Math.floor(index / 2);
|
|
667
|
+
const nearTop = index % 2 === 1;
|
|
668
|
+
const offset = Math.min(0.48, 0.1 + pairIndex * 0.04);
|
|
669
|
+
const t = placement === 'even'
|
|
670
|
+
? (index + 1) / (latheRingCount + 1)
|
|
671
|
+
: placement === 'top'
|
|
672
|
+
? 1 - Math.min(0.48, 0.08 + index * 0.04)
|
|
673
|
+
: placement === 'bottom'
|
|
674
|
+
? Math.min(0.48, 0.08 + index * 0.04)
|
|
675
|
+
: nearTop
|
|
676
|
+
? 1 - offset
|
|
677
|
+
: offset;
|
|
678
|
+
return shaftY + shaftHeight * t - bandHeight / 2;
|
|
679
|
+
}).sort((a, b) => a - b);
|
|
680
|
+
return (_jsx("group", { children: bands.map((y, index) => (_jsx(ColumnBlock, { height: bandHeight, node: node, scale: 0.82 + (index % 2) * 0.08, y: y }, index))) }));
|
|
681
|
+
}
|
|
682
|
+
function Flutes({ node, shaftY, shaftHeight, }) {
|
|
683
|
+
const fluteCount = Math.max(node.fluteCount, node.shaftDetail === 'fluted' ? 16 : 0);
|
|
684
|
+
if (fluteCount <= 0 || shaftHeight <= 0 || node.crossSection !== 'round')
|
|
685
|
+
return null;
|
|
686
|
+
const fluteDepth = node.fluteDepth ?? 0.02;
|
|
687
|
+
const fluteWidth = node.fluteWidth ?? fluteDepth;
|
|
688
|
+
const fluteRadius = Math.max(0.006, fluteWidth * 0.42);
|
|
689
|
+
const shaftRadius = node.radius * 0.74;
|
|
690
|
+
return (_jsx("group", { children: Array.from({ length: fluteCount }, (_, index) => {
|
|
691
|
+
const angle = (index / fluteCount) * Math.PI * 2;
|
|
692
|
+
const x = Math.cos(angle) * shaftRadius;
|
|
693
|
+
const z = Math.sin(angle) * shaftRadius;
|
|
694
|
+
return (_jsx(MappedCylinder, { height: shaftHeight * 0.92, position: [x, shaftY + shaftHeight / 2, z], radius: fluteRadius, segments: 8 }, index));
|
|
695
|
+
}) }));
|
|
696
|
+
}
|
|
697
|
+
function DravidianPanelFace({ position, rotation = 0, panelHeight, panelWidth, rail, reliefDepth, panelShape, }) {
|
|
698
|
+
return (_jsxs("group", { position: position, rotation: [0, rotation, 0], children: [_jsx(MappedBox, { depth: reliefDepth, height: rail, position: [0, panelHeight / 2, 0], softenEdges: false, width: panelWidth }), _jsx(MappedBox, { depth: reliefDepth, height: rail, position: [0, -panelHeight / 2, 0], softenEdges: false, width: panelWidth }), _jsx(MappedBox, { depth: reliefDepth, height: panelHeight, position: [panelWidth / 2, 0, 0], softenEdges: false, width: rail }), _jsx(MappedBox, { depth: reliefDepth, height: panelHeight, position: [-panelWidth / 2, 0, 0], softenEdges: false, width: rail }), panelShape === 'diamond' && (_jsx(MappedBox, { depth: reliefDepth, height: panelHeight * 0.42, position: [0, 0, 0], rotation: [0, 0, Math.PI / 4], softenEdges: false, width: rail * 1.2 })), panelShape === 'arched' && (_jsx(MappedTorus, { arc: Math.PI, position: [0, panelHeight * 0.28, 0], ringRadius: panelWidth * 0.42, scaleX: panelWidth * 0.42, scaleY: rail, scaleZ: reliefDepth, tubeRadius: Math.max(rail, reliefDepth) * 0.18 }))] }));
|
|
699
|
+
}
|
|
700
|
+
function DravidianShaftPanels({ node, shaftY, shaftHeight, }) {
|
|
701
|
+
const panelCount = Math.max(node.panelCount ?? 0, node.style === 'dravidian-carved' || node.shaftDetail === 'panelled' ? 3 : 0);
|
|
702
|
+
if (panelCount <= 0 || shaftHeight <= 0)
|
|
703
|
+
return null;
|
|
704
|
+
const shaftWidth = node.width * 0.72;
|
|
705
|
+
const shaftDepth = node.depth * 0.72;
|
|
706
|
+
const panelHeight = Math.min(0.42, shaftHeight / Math.max(4, panelCount + 2));
|
|
707
|
+
const panelWidth = node.width * 0.26;
|
|
708
|
+
const rail = Math.max(0.012, node.width * 0.028);
|
|
709
|
+
const reliefDepth = Math.max(0.012, node.panelInsetDepth ?? node.width * 0.025);
|
|
710
|
+
const rows = Array.from({ length: panelCount }, (_, index) => (index + 1) / (panelCount + 1));
|
|
711
|
+
const panelShape = node.panelShape ?? 'rectangle';
|
|
712
|
+
const faceProps = { panelHeight, panelWidth, rail, reliefDepth, panelShape };
|
|
713
|
+
return (_jsx("group", { children: rows.map((t, rowIndex) => {
|
|
714
|
+
const y = shaftY + shaftHeight * t;
|
|
715
|
+
return (_jsxs("group", { children: [_jsx(DravidianPanelFace, { position: [0, y, shaftDepth / 2 + reliefDepth / 2], ...faceProps }), _jsx(DravidianPanelFace, { position: [0, y, -shaftDepth / 2 - reliefDepth / 2], ...faceProps }), _jsx(DravidianPanelFace, { position: [shaftWidth / 2 + reliefDepth / 2, y, 0], rotation: Math.PI / 2, ...faceProps }), _jsx(DravidianPanelFace, { position: [-shaftWidth / 2 - reliefDepth / 2, y, 0], rotation: Math.PI / 2, ...faceProps })] }, rowIndex));
|
|
716
|
+
}) }));
|
|
717
|
+
}
|
|
718
|
+
function SpiralRibs({ node, shaftY, shaftHeight, }) {
|
|
719
|
+
const spiralRibCount = node.spiralRibCount ?? 0;
|
|
720
|
+
const spiralTwist = node.spiralTwist ?? 0;
|
|
721
|
+
const shaftTaper = node.shaftTaper ?? 0;
|
|
722
|
+
const ribCountSetting = Math.max(spiralRibCount, node.shaftDetail === 'spiral' ? 12 : 0);
|
|
723
|
+
if (ribCountSetting <= 0 || spiralTwist === 0 || shaftHeight <= 0)
|
|
724
|
+
return null;
|
|
725
|
+
const ribCount = Math.min(ribCountSetting, 24);
|
|
726
|
+
const stepCount = 28;
|
|
727
|
+
const ribDistance = node.radius * 0.78;
|
|
728
|
+
const ribWidth = Math.max(0.012, node.radius * 0.06);
|
|
729
|
+
const segmentHeight = (shaftHeight / stepCount) * 1.18;
|
|
730
|
+
const lean = spiralTwist > 0 ? -0.55 : 0.55;
|
|
731
|
+
return (_jsx("group", { children: Array.from({ length: ribCount * stepCount }, (_, index) => {
|
|
732
|
+
const ribIndex = index % ribCount;
|
|
733
|
+
const stepIndex = Math.floor(index / ribCount);
|
|
734
|
+
const t = (stepIndex + 0.5) / stepCount;
|
|
735
|
+
const angle = (ribIndex / ribCount) * Math.PI * 2 + t * spiralTwist * Math.PI * 2;
|
|
736
|
+
const taperScale = 1 - Math.min(shaftTaper, 0.85) * t;
|
|
737
|
+
return (_jsx(MappedCylinder, { height: segmentHeight, position: [
|
|
738
|
+
Math.cos(angle) * ribDistance * taperScale,
|
|
739
|
+
shaftY + shaftHeight * t,
|
|
740
|
+
Math.sin(angle) * ribDistance * taperScale,
|
|
741
|
+
], radius: ribWidth, rotation: [0, -angle, lean], segments: 8 }, index));
|
|
742
|
+
}) }));
|
|
743
|
+
}
|
|
744
|
+
function LowerCarvedBand({ node, shaftY, shaftHeight, }) {
|
|
745
|
+
const placement = node.carvingPlacement ?? 'capital';
|
|
746
|
+
if (!node.lowerBandEnabled ||
|
|
747
|
+
shaftHeight <= 0 ||
|
|
748
|
+
(placement !== 'shaft' && placement !== 'all')) {
|
|
749
|
+
return null;
|
|
750
|
+
}
|
|
751
|
+
const bandHeight = Math.min(node.lowerBandHeight ?? 0.24, shaftHeight * 0.35);
|
|
752
|
+
const y = shaftY + shaftHeight * 0.12;
|
|
753
|
+
const level = Math.max(1, node.lowerBandCarvingLevel ?? 1);
|
|
754
|
+
const count = Math.max(6, level * 6);
|
|
755
|
+
const distance = Math.max(node.radius * 0.82, Math.max(node.width, node.depth) * 0.36);
|
|
756
|
+
return (_jsxs("group", { children: [_jsx(ColumnBlock, { height: bandHeight, node: node, scale: 0.84, y: y }), Array.from({ length: count }, (_, index) => {
|
|
757
|
+
const angle = (index / count) * Math.PI * 2;
|
|
758
|
+
return (_jsx(MappedCylinder, { height: bandHeight * 0.62, position: [
|
|
759
|
+
Math.cos(angle) * distance,
|
|
760
|
+
y + bandHeight * 0.5,
|
|
761
|
+
Math.sin(angle) * distance,
|
|
762
|
+
], radius: 0.012, rotation: [0, -angle, 0], segments: 5 }, index));
|
|
763
|
+
})] }));
|
|
764
|
+
}
|
|
765
|
+
function CapitalCarvings({ node, capitalY, capitalHeight, }) {
|
|
766
|
+
const placement = node.carvingPlacement ?? 'capital';
|
|
767
|
+
const carvingLevel = Math.max(node.carvingLevel ?? 0, node.capitalCarvingLevel ?? 0);
|
|
768
|
+
const bandSetting = node.capitalBandCount ?? 0;
|
|
769
|
+
if ((carvingLevel <= 0 && bandSetting <= 0) ||
|
|
770
|
+
capitalHeight <= 0 ||
|
|
771
|
+
(placement !== 'capital' && placement !== 'all')) {
|
|
772
|
+
return null;
|
|
773
|
+
}
|
|
774
|
+
const level = Math.min(Math.max(carvingLevel, bandSetting > 0 ? 1 : 0), 4);
|
|
775
|
+
const bandHeight = Math.min(0.035, capitalHeight / 8);
|
|
776
|
+
const bandCount = Math.min(bandSetting > 0 ? bandSetting : level + 1, 16);
|
|
777
|
+
const bands = Array.from({ length: bandCount }, (_, index) => {
|
|
778
|
+
const t = (index + 1) / (bandCount + 1);
|
|
779
|
+
return capitalY + capitalHeight * t - bandHeight / 2;
|
|
780
|
+
});
|
|
781
|
+
if (node.crossSection === 'square' || node.crossSection === 'rectangular') {
|
|
782
|
+
const dentilCount = Math.max(node.dentilCount ?? 0, level * 4, 4);
|
|
783
|
+
const dentilHeight = Math.min(0.08, capitalHeight * 0.28);
|
|
784
|
+
const dentilDepth = Math.min(0.08, Math.min(node.width, node.depth) * 0.16);
|
|
785
|
+
const dentilWidth = Math.max(0.025, node.width / (dentilCount * 1.75));
|
|
786
|
+
const halfWidth = node.width * 0.56;
|
|
787
|
+
const halfDepth = node.depth * 0.56;
|
|
788
|
+
const y = capitalY + capitalHeight * 0.28;
|
|
789
|
+
const xPositions = Array.from({ length: dentilCount }, (_, index) => {
|
|
790
|
+
const t = dentilCount === 1 ? 0.5 : index / (dentilCount - 1);
|
|
791
|
+
return -halfWidth + t * halfWidth * 2;
|
|
792
|
+
});
|
|
793
|
+
const zPositions = Array.from({ length: dentilCount }, (_, index) => {
|
|
794
|
+
const t = dentilCount === 1 ? 0.5 : index / (dentilCount - 1);
|
|
795
|
+
return -halfDepth + t * halfDepth * 2;
|
|
796
|
+
});
|
|
797
|
+
return (_jsxs("group", { children: [bands.map((bandY, index) => (_jsx(ColumnBlock, { height: bandHeight, node: node, scale: 1.28, y: bandY }, `band-${index}`))), xPositions.map((x, index) => (_jsxs("group", { children: [_jsx(MappedBox, { depth: dentilDepth, height: dentilHeight, position: [x, y, halfDepth], softenEdges: false, width: dentilWidth }), _jsx(MappedBox, { depth: dentilDepth, height: dentilHeight, position: [x, y, -halfDepth], softenEdges: false, width: dentilWidth })] }, `front-back-dentil-${index}`))), zPositions.map((z, index) => (_jsxs("group", { children: [_jsx(MappedBox, { depth: dentilWidth, height: dentilHeight, position: [halfWidth, y, z], softenEdges: false, width: dentilDepth }), _jsx(MappedBox, { depth: dentilWidth, height: dentilHeight, position: [-halfWidth, y, z], softenEdges: false, width: dentilDepth })] }, `side-dentil-${index}`)))] }));
|
|
798
|
+
}
|
|
799
|
+
const beadCount = Math.max(node.beadCount ?? 0, 8, level * 8);
|
|
800
|
+
const beadRadius = Math.max(0.012, Math.min(0.03, node.radius * 0.12));
|
|
801
|
+
const beadDistance = node.radius * 1.24;
|
|
802
|
+
const beadY = capitalY + capitalHeight * 0.24;
|
|
803
|
+
return (_jsxs("group", { children: [bands.map((bandY, index) => (_jsx(ColumnBlock, { height: bandHeight, node: node, scale: 1.24, y: bandY }, `band-${index}`))), Array.from({ length: beadCount }, (_, index) => {
|
|
804
|
+
const angle = (index / beadCount) * Math.PI * 2;
|
|
805
|
+
return (_jsx(MappedSphere, { position: [Math.cos(angle) * beadDistance, beadY, Math.sin(angle) * beadDistance], radius: beadRadius }, `bead-${index}`));
|
|
806
|
+
})] }));
|
|
807
|
+
}
|
|
808
|
+
function Volutes({ node, capitalY, capitalHeight, }) {
|
|
809
|
+
if (!['volute', 'ionic-volute'].includes(node.capitalStyle ?? 'simple') || capitalHeight <= 0)
|
|
810
|
+
return null;
|
|
811
|
+
const y = capitalY + capitalHeight * 0.62;
|
|
812
|
+
const radius = node.voluteSize ?? Math.min(0.085, Math.max(0.04, node.width * 0.12));
|
|
813
|
+
const x = node.width * 0.46;
|
|
814
|
+
const z = node.depth * 0.7;
|
|
815
|
+
const maxVolutes = Math.max(0, Math.min(node.voluteCount ?? 4, 8));
|
|
816
|
+
const volutes = [
|
|
817
|
+
{
|
|
818
|
+
position: [x, y, z],
|
|
819
|
+
rotation: [0, 0, 0],
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
position: [-x, y, z],
|
|
823
|
+
rotation: [0, 0, 0],
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
position: [x, y, -z],
|
|
827
|
+
rotation: [0, Math.PI, 0],
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
position: [-x, y, -z],
|
|
831
|
+
rotation: [0, Math.PI, 0],
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
position: [z, y, x],
|
|
835
|
+
rotation: [0, Math.PI / 2, 0],
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
position: [z, y, -x],
|
|
839
|
+
rotation: [0, Math.PI / 2, 0],
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
position: [-z, y, x],
|
|
843
|
+
rotation: [0, -Math.PI / 2, 0],
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
position: [-z, y, -x],
|
|
847
|
+
rotation: [0, -Math.PI / 2, 0],
|
|
848
|
+
},
|
|
849
|
+
].slice(0, maxVolutes);
|
|
850
|
+
return (_jsx("group", { children: volutes.map((volute, index) => (_jsx(MappedTorus, { position: volute.position, ringRadius: radius, rotation: volute.rotation, scaleZ: radius * 0.28, tubeRadius: radius * 0.18 }, index))) }));
|
|
851
|
+
}
|
|
852
|
+
function LeafCarvings({ node, capitalY, capitalHeight, }) {
|
|
853
|
+
if (!['leaf-carved', 'corinthian-leaf'].includes(node.capitalStyle ?? 'simple') ||
|
|
854
|
+
capitalHeight <= 0) {
|
|
855
|
+
return null;
|
|
856
|
+
}
|
|
857
|
+
const leafCount = node.leafCount ?? (node.crossSection === 'round' ? 18 : 12);
|
|
858
|
+
const distance = Math.max(node.radius * 1.05, Math.max(node.width, node.depth) * 0.48);
|
|
859
|
+
const rowCount = Math.max(0, Math.min(node.leafRows ?? 2, 4));
|
|
860
|
+
const rows = Array.from({ length: rowCount }, (_, index) => ({
|
|
861
|
+
y: capitalY + capitalHeight * (0.3 + index * 0.16),
|
|
862
|
+
scale: 0.28 - index * 0.04,
|
|
863
|
+
offset: index % 2 === 0 ? 0 : Math.PI / leafCount,
|
|
864
|
+
}));
|
|
865
|
+
return (_jsx("group", { children: rows.flatMap((row, rowIndex) => Array.from({ length: leafCount }, (_, index) => {
|
|
866
|
+
const angle = (index / leafCount) * Math.PI * 2 + row.offset;
|
|
867
|
+
return (_jsx(MappedCone, { height: capitalHeight * row.scale, position: [Math.cos(angle) * distance, row.y, Math.sin(angle) * distance], radiusX: 0.018, radiusZ: 0.01, rotation: [0.48, -angle, 0], segments: 6 }, `${rowIndex}-${index}`));
|
|
868
|
+
})) }));
|
|
869
|
+
}
|
|
870
|
+
function Capital({ node, y, height }) {
|
|
871
|
+
if (height <= 0)
|
|
872
|
+
return null;
|
|
873
|
+
const capitalStyle = node.capitalStyle ?? 'simple';
|
|
874
|
+
if (capitalStyle === 'none')
|
|
875
|
+
return null;
|
|
876
|
+
if (capitalStyle === 'south-indian-bracket' || capitalStyle === 'wood-bracket') {
|
|
877
|
+
const tierCount = Math.max(1, node.bracketTierCount ?? 3);
|
|
878
|
+
const tierHeight = height / tierCount;
|
|
879
|
+
const bracketDepth = node.bracketDepth ?? 0.35;
|
|
880
|
+
return (_jsxs("group", { children: [Array.from({ length: tierCount }, (_, index) => {
|
|
881
|
+
const t = index / Math.max(1, tierCount - 1);
|
|
882
|
+
const scale = (node.capitalWidthScale ?? 1.6) + t * 0.32;
|
|
883
|
+
return (_jsx(SquareBlock, { depth: node.depth * scale + bracketDepth * t, height: tierHeight, width: node.width * scale + bracketDepth * t, y: y + index * tierHeight }, index));
|
|
884
|
+
}), Array.from({ length: node.pendantCount ?? 0 }, (_, index) => {
|
|
885
|
+
const count = Math.max(1, node.pendantCount ?? 0);
|
|
886
|
+
const angle = (index / count) * Math.PI * 2;
|
|
887
|
+
const distance = Math.max(node.width, node.depth) * 0.56;
|
|
888
|
+
return (_jsx(MappedCone, { height: height * 0.28, position: [Math.cos(angle) * distance, y - height * 0.1, Math.sin(angle) * distance], radiusX: 0.035, rotation: [0, 0, 0], segments: 6 }, index));
|
|
889
|
+
})] }));
|
|
890
|
+
}
|
|
891
|
+
if (capitalStyle === 'rounded' || capitalStyle === 'doric') {
|
|
892
|
+
const topWidth = node.width * (node.capitalWidthScale ?? 1.34);
|
|
893
|
+
const topDepth = node.depth * (node.capitalDepthScale ?? node.capitalWidthScale ?? 1.34);
|
|
894
|
+
return (_jsxs("group", { children: [_jsx(OvalBlock, { depth: topDepth * 0.72, height: height * 0.24, segments: 32, width: topWidth * 0.72, y: y }), _jsx(OvalBlock, { depth: topDepth * 0.92, height: height * 0.32, segments: 32, width: topWidth * 0.92, y: y + height * 0.24 }), _jsx(SquareBlock, { depth: topDepth, height: height * 0.44, width: topWidth, y: y + height * 0.56 })] }));
|
|
895
|
+
}
|
|
896
|
+
if (capitalStyle === 'stepped') {
|
|
897
|
+
const widthScale = node.capitalWidthScale ?? 1.46;
|
|
898
|
+
const depthScale = node.capitalDepthScale ?? widthScale;
|
|
899
|
+
const tierCount = Math.max(3, node.capitalTierCount ?? 3);
|
|
900
|
+
const tierHeight = height / tierCount;
|
|
901
|
+
const stepSpread = node.capitalStepSpread ?? 0.42;
|
|
902
|
+
return (_jsx("group", { children: Array.from({ length: tierCount }, (_, index) => {
|
|
903
|
+
const t = index / Math.max(1, tierCount - 1);
|
|
904
|
+
const widthScaleAt = Math.max(0.5, widthScale - (1 - t) * stepSpread);
|
|
905
|
+
const depthScaleAt = Math.max(0.5, depthScale - (1 - t) * stepSpread);
|
|
906
|
+
return (_jsx(SquareBlock, { depth: node.depth * depthScaleAt, height: tierHeight * 1.01, width: node.width * widthScaleAt, y: y + index * tierHeight }, index));
|
|
907
|
+
}) }));
|
|
908
|
+
}
|
|
909
|
+
if (capitalStyle === 'volute' ||
|
|
910
|
+
capitalStyle === 'ionic-volute' ||
|
|
911
|
+
capitalStyle === 'leaf-carved' ||
|
|
912
|
+
capitalStyle === 'corinthian-leaf') {
|
|
913
|
+
const topWidth = node.width * (node.capitalWidthScale ?? 1.46);
|
|
914
|
+
const topDepth = node.depth * (node.capitalDepthScale ?? node.capitalWidthScale ?? 1.46);
|
|
915
|
+
return (_jsxs("group", { children: [_jsx(ColumnBlock, { height: height * 0.24, node: node, scale: 0.9, y: y }), _jsx(ColumnBlock, { height: height * 0.2, node: node, scale: 1.08, y: y + height * 0.24 }), _jsx(SquareBlock, { depth: topDepth, height: height * 0.28, width: topWidth, y: y + height * 0.44 }), _jsx(Volutes, { capitalHeight: height, capitalY: y, node: node }), _jsx(LeafCarvings, { capitalHeight: height, capitalY: y, node: node })] }));
|
|
916
|
+
}
|
|
917
|
+
const widthScale = node.capitalWidthScale ?? (capitalStyle === 'simple-slab' ? 1.28 : 1.18);
|
|
918
|
+
const depthScale = node.capitalDepthScale ?? widthScale;
|
|
919
|
+
if (node.crossSection === 'square' || node.crossSection === 'rectangular') {
|
|
920
|
+
return (_jsx(SquareBlock, { depth: node.depth * depthScale, height: height, width: node.width * widthScale, y: y }));
|
|
921
|
+
}
|
|
922
|
+
return (_jsx(RoundBlock, { height: height, radius: Math.max(node.radius * widthScale, node.width * widthScale * 0.5), segments: getSegments(node), y: y }));
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* The column's geometry tree — either a fabricated support frame or the
|
|
926
|
+
* classical base / shaft / capital stack. Extracted from `ColumnRenderer`
|
|
927
|
+
* so the translucent placement ghost (`ColumnPreview`) renders the exact
|
|
928
|
+
* same shape without the registry registration, pointer handlers, or
|
|
929
|
+
* live-transform wiring the real renderer layers on. Material and edge
|
|
930
|
+
* softness arrive through context, so each caller controls appearance by
|
|
931
|
+
* wrapping this in its own providers.
|
|
932
|
+
*/
|
|
933
|
+
function ColumnBody({ node }) {
|
|
934
|
+
const shaftLayout = useMemo(() => {
|
|
935
|
+
const baseHeight = node.baseStyle === 'none' ? 0 : Math.min(node.baseHeight, node.height * 0.4);
|
|
936
|
+
const capitalHeight = node.capitalStyle === 'none' ? 0 : Math.min(node.capitalHeight, node.height * 0.4);
|
|
937
|
+
const shaftHeight = Math.max(0.1, node.height - baseHeight - capitalHeight);
|
|
938
|
+
return { baseHeight, capitalHeight, shaftY: baseHeight, shaftHeight };
|
|
939
|
+
}, [node.baseHeight, node.baseStyle, node.capitalHeight, node.capitalStyle, node.height]);
|
|
940
|
+
if (node.supportStyle !== 'vertical') {
|
|
941
|
+
const support = node.supportStyle === 'a-frame' ? (_jsx(AFrameSupport, { node: node })) : node.supportStyle === 'y-frame' ? (_jsx(YFrameSupport, { node: node })) : node.supportStyle === 'v-frame' ? (_jsx(VFrameSupport, { node: node })) : node.supportStyle === 'x-brace' ? (_jsx(XBraceSupport, { node: node })) : node.supportStyle === 'k-brace' ? (_jsx(KBraceSupport, { node: node })) : node.supportStyle === 'single-strut' ? (_jsx(SingleStrutSupport, { node: node })) : node.supportStyle === 'tripod' ? (_jsx(TripodSupport, { node: node })) : node.supportStyle === 'trestle' ? (_jsx(TrestleSupport, { node: node })) : node.supportStyle === 'portal-frame' ? (_jsx(PortalFrameSupport, { node: node })) : (_jsx(BoxFrameSupport, { node: node }));
|
|
942
|
+
return _jsx(ColumnSlot, { slotId: "frame", children: support });
|
|
943
|
+
}
|
|
944
|
+
return (_jsxs(_Fragment, { children: [_jsxs(ColumnSlot, { slotId: "base", children: [_jsx(Base, { height: shaftLayout.baseHeight, node: node }), _jsx(BaseCarvings, { height: shaftLayout.baseHeight, node: node })] }), _jsxs(ColumnSlot, { slotId: "shaft", children: [_jsx(Shaft, { height: shaftLayout.shaftHeight, node: node, y: shaftLayout.shaftY }), _jsx(Rings, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY }), _jsx(LatheBands, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY }), _jsx(Flutes, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY }), _jsx(LowerCarvedBand, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY }), _jsx(DravidianShaftPanels, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY }), _jsx(SpiralRibs, { node: node, shaftHeight: shaftLayout.shaftHeight, shaftY: shaftLayout.shaftY })] }), _jsxs(ColumnSlot, { slotId: "capital", children: [_jsx(Capital, { height: shaftLayout.capitalHeight, node: node, y: shaftLayout.baseHeight + shaftLayout.shaftHeight }), _jsx(CapitalCarvings, { capitalHeight: shaftLayout.capitalHeight, capitalY: shaftLayout.baseHeight + shaftLayout.shaftHeight, node: node })] })] }));
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Translucent, non-interactive ghost of a column — the placement tool's
|
|
948
|
+
* cursor preview, mirroring `ShelfPreview`. Builds the same geometry tree
|
|
949
|
+
* as the real renderer via `<ColumnBody>` but:
|
|
950
|
+
* - clones the material and makes it transparent (cloning is required:
|
|
951
|
+
* `createLegacyColumnMaterial` can hand back a shared/cached instance, and
|
|
952
|
+
* mutating it would turn every committed column see-through);
|
|
953
|
+
* - disables raycast on every mesh so the ghost doesn't intercept the
|
|
954
|
+
* placement cursor ray (which would stall `grid:move`);
|
|
955
|
+
* - renders at the local origin so the caller's cursor group positions it.
|
|
956
|
+
*/
|
|
957
|
+
export const ColumnPreview = ({ node }) => {
|
|
958
|
+
const shading = useViewer((state) => state.shading);
|
|
959
|
+
const textures = useViewer((state) => state.textures);
|
|
960
|
+
const colorPreset = useViewer((state) => state.colorPreset);
|
|
961
|
+
const groupRef = useRef(null);
|
|
962
|
+
const materials = useMemo(() => {
|
|
963
|
+
const ghost = createLegacyColumnMaterial({
|
|
964
|
+
material: node.material,
|
|
965
|
+
materialPreset: node.materialPreset,
|
|
966
|
+
shading,
|
|
967
|
+
textures,
|
|
968
|
+
colorPreset,
|
|
969
|
+
}).clone();
|
|
970
|
+
ghost.transparent = true;
|
|
971
|
+
ghost.opacity = 0.5;
|
|
972
|
+
ghost.depthWrite = false;
|
|
973
|
+
return createSingleColumnMaterialMap(ghost);
|
|
974
|
+
}, [shading, textures, colorPreset, node.material, node.materialPreset]);
|
|
975
|
+
useEffect(() => () => {
|
|
976
|
+
for (const material of new Set(Object.values(materials)))
|
|
977
|
+
material.dispose();
|
|
978
|
+
}, [materials]);
|
|
979
|
+
// Strip pointer events off the freshly-built meshes every render — the
|
|
980
|
+
// geometry tree rebuilds when the ghost's dimensions change, so a one-shot
|
|
981
|
+
// effect wouldn't cover later meshes.
|
|
982
|
+
useEffect(() => {
|
|
983
|
+
groupRef.current?.traverse((obj) => {
|
|
984
|
+
;
|
|
985
|
+
obj.raycast = () => { };
|
|
986
|
+
});
|
|
987
|
+
});
|
|
988
|
+
return (_jsx(ColumnMaterialContext.Provider, { value: materials, children: _jsx(ColumnEdgeSoftnessContext.Provider, { value: node.edgeSoftness ?? 0.025, children: _jsx("group", { ref: groupRef, children: _jsx(ColumnBody, { node: node }) }) }) }));
|
|
989
|
+
};
|
|
990
|
+
export const ColumnRenderer = ({ node: rawNode }) => {
|
|
991
|
+
const ref = useRef(null);
|
|
992
|
+
// Merge any live drag override so width / depth / radius / height
|
|
993
|
+
// arrows update the mesh on every pointer move, with zustand only
|
|
994
|
+
// hearing the commit on release. Subscribes narrowly to this node's
|
|
995
|
+
// override entry; unrelated writes don't re-render.
|
|
996
|
+
const liveOverride = useLiveNodeOverrides((s) => s.overrides.get(rawNode.id));
|
|
997
|
+
const node = useMemo(() => (liveOverride ? { ...rawNode, ...liveOverride } : rawNode), [rawNode, liveOverride]);
|
|
998
|
+
const handlers = useNodeEvents(node, 'column');
|
|
999
|
+
const liveTransform = useLiveTransforms((state) => state.get(node.id));
|
|
1000
|
+
const shading = useViewer((state) => state.shading);
|
|
1001
|
+
const textures = useViewer((state) => state.textures);
|
|
1002
|
+
const colorPreset = useViewer((state) => state.colorPreset);
|
|
1003
|
+
const sceneMaterials = useScene((state) => state.materials);
|
|
1004
|
+
const materials = useMemo(() => createColumnSlotMaterials({
|
|
1005
|
+
material: node.material,
|
|
1006
|
+
materialPreset: node.materialPreset,
|
|
1007
|
+
node,
|
|
1008
|
+
sceneMaterials,
|
|
1009
|
+
shading,
|
|
1010
|
+
textures,
|
|
1011
|
+
colorPreset,
|
|
1012
|
+
}), [shading, textures, colorPreset, node, sceneMaterials]);
|
|
1013
|
+
useRegistry(node.id, node.type, ref);
|
|
1014
|
+
return (_jsx(ColumnMaterialContext.Provider, { value: materials, children: _jsx(ColumnEdgeSoftnessContext.Provider, { value: node.edgeSoftness ?? 0.025, children: _jsx("group", { position: liveTransform?.position ?? node.position, ref: ref, rotation: [0, liveTransform?.rotation ?? node.rotation, 0], visible: node.visible, ...handlers, children: _jsx(ColumnBody, { node: node }) }) }) }));
|
|
1015
|
+
};
|
|
1016
|
+
export default ColumnRenderer;
|