@pascal-app/core 1.0.6 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-operations/__fixtures__/add-object-cases.d.ts +31 -0
- package/dist/agent-operations/__fixtures__/add-object-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/build-room-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/build-room-cases.js +27 -0
- package/dist/agent-operations/__fixtures__/cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/cases.js +19 -11
- package/dist/agent-operations/__fixtures__/design-brief-cases.d.ts +25 -2
- package/dist/agent-operations/__fixtures__/design-brief-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/design-brief-cases.js +509 -66
- package/dist/agent-operations/__fixtures__/dressing-scenes.d.ts +30 -0
- package/dist/agent-operations/__fixtures__/dressing-scenes.d.ts.map +1 -0
- package/dist/agent-operations/__fixtures__/dressing-scenes.js +82 -0
- package/dist/agent-operations/__fixtures__/native-materials.d.ts +411 -9
- package/dist/agent-operations/__fixtures__/native-materials.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/notation-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/notation-cases.js +14 -0
- package/dist/agent-operations/__fixtures__/roof-bearing-cases.d.ts +13804 -10600
- package/dist/agent-operations/__fixtures__/roof-bearing-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/room-cases.d.ts +1 -0
- package/dist/agent-operations/__fixtures__/room-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/room-cases.js +57 -1
- package/dist/agent-operations/__fixtures__/room-check-scenes.d.ts +51 -0
- package/dist/agent-operations/__fixtures__/room-check-scenes.d.ts.map +1 -0
- package/dist/agent-operations/__fixtures__/room-check-scenes.js +121 -0
- package/dist/agent-operations/__fixtures__/scene-check-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/scene-check-cases.js +152 -18
- package/dist/agent-operations/__fixtures__/search-assets-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/search-assets-cases.js +91 -0
- package/dist/agent-operations/__fixtures__/site-cases.d.ts +40 -1
- package/dist/agent-operations/__fixtures__/site-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/structure-cases.d.ts +3 -0
- package/dist/agent-operations/__fixtures__/structure-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/structure-cases.js +199 -18
- package/dist/agent-operations/__fixtures__/unit-cases.d.ts +6 -0
- package/dist/agent-operations/__fixtures__/unit-cases.d.ts.map +1 -0
- package/dist/agent-operations/__fixtures__/unit-cases.js +266 -0
- package/dist/agent-operations/__fixtures__/verify-scene-cases.d.ts +37 -1
- package/dist/agent-operations/__fixtures__/verify-scene-cases.d.ts.map +1 -1
- package/dist/agent-operations/add-column.d.ts.map +1 -1
- package/dist/agent-operations/add-column.js +32 -3
- package/dist/agent-operations/add-fence.d.ts.map +1 -1
- package/dist/agent-operations/add-fence.js +2 -1
- package/dist/agent-operations/add-level.d.ts.map +1 -1
- package/dist/agent-operations/add-level.js +4 -4
- package/dist/agent-operations/add-object.d.ts +32 -6
- package/dist/agent-operations/add-object.d.ts.map +1 -1
- package/dist/agent-operations/add-object.js +59 -12
- package/dist/agent-operations/add-wall.d.ts +3 -8
- package/dist/agent-operations/add-wall.d.ts.map +1 -1
- package/dist/agent-operations/add-wall.js +31 -8
- package/dist/agent-operations/apply-changes.d.ts.map +1 -1
- package/dist/agent-operations/apply-changes.js +2 -1
- package/dist/agent-operations/asset-catalog.d.ts +63 -0
- package/dist/agent-operations/asset-catalog.d.ts.map +1 -0
- package/dist/agent-operations/asset-catalog.js +182 -0
- package/dist/agent-operations/asset-views.d.ts +4 -2
- package/dist/agent-operations/asset-views.d.ts.map +1 -1
- package/dist/agent-operations/asset-views.js +1 -3
- package/dist/agent-operations/author-scene-checks.d.ts +38 -0
- package/dist/agent-operations/author-scene-checks.d.ts.map +1 -0
- package/dist/agent-operations/author-scene-checks.js +266 -0
- package/dist/agent-operations/author-scene.d.ts +54 -20
- package/dist/agent-operations/author-scene.d.ts.map +1 -1
- package/dist/agent-operations/author-scene.js +1163 -196
- package/dist/agent-operations/authored-scene-merge.d.ts.map +1 -1
- package/dist/agent-operations/authored-scene-merge.js +61 -3
- package/dist/agent-operations/batch.d.ts +1 -1
- package/dist/agent-operations/batch.d.ts.map +1 -1
- package/dist/agent-operations/batch.js +38 -39
- package/dist/agent-operations/ceiling-object-observations.d.ts.map +1 -1
- package/dist/agent-operations/ceiling-object-observations.js +5 -4
- package/dist/agent-operations/circulation-geometry.d.ts +14 -0
- package/dist/agent-operations/circulation-geometry.d.ts.map +1 -0
- package/dist/agent-operations/circulation-geometry.js +151 -0
- package/dist/agent-operations/circulation-graph.d.ts +72 -0
- package/dist/agent-operations/circulation-graph.d.ts.map +1 -0
- package/dist/agent-operations/circulation-graph.js +713 -0
- package/dist/agent-operations/circulation-non-spaces.d.ts +10 -0
- package/dist/agent-operations/circulation-non-spaces.d.ts.map +1 -0
- package/dist/agent-operations/circulation-non-spaces.js +88 -0
- package/dist/agent-operations/circulation-spaces.d.ts +5881 -0
- package/dist/agent-operations/circulation-spaces.d.ts.map +1 -0
- package/dist/agent-operations/circulation-spaces.js +368 -0
- package/dist/agent-operations/collections.d.ts.map +1 -1
- package/dist/agent-operations/collections.js +9 -7
- package/dist/agent-operations/corner-window.d.ts.map +1 -1
- package/dist/agent-operations/corner-window.js +2 -4
- package/dist/agent-operations/create-roof.d.ts.map +1 -1
- package/dist/agent-operations/create-roof.js +5 -7
- package/dist/agent-operations/create-room.d.ts +4 -1
- package/dist/agent-operations/create-room.d.ts.map +1 -1
- package/dist/agent-operations/create-room.js +7 -4
- package/dist/agent-operations/create-stair.js +2 -2
- package/dist/agent-operations/design-brief.d.ts +13 -7
- package/dist/agent-operations/design-brief.d.ts.map +1 -1
- package/dist/agent-operations/design-brief.js +172 -92
- package/dist/agent-operations/door-clearance.d.ts +68 -8
- package/dist/agent-operations/door-clearance.d.ts.map +1 -1
- package/dist/agent-operations/door-clearance.js +127 -20
- package/dist/agent-operations/dress-targets.d.ts +23 -0
- package/dist/agent-operations/dress-targets.d.ts.map +1 -0
- package/dist/agent-operations/dress-targets.js +34 -0
- package/dist/agent-operations/duplicate-node.d.ts +14 -0
- package/dist/agent-operations/duplicate-node.d.ts.map +1 -0
- package/dist/agent-operations/duplicate-node.js +173 -0
- package/dist/agent-operations/find-by-type.d.ts.map +1 -1
- package/dist/agent-operations/find-by-type.js +3 -0
- package/dist/agent-operations/furnish-room.d.ts +2 -0
- package/dist/agent-operations/furnish-room.d.ts.map +1 -1
- package/dist/agent-operations/furnish-room.js +15 -4
- package/dist/agent-operations/furniture-kind.d.ts +28 -1
- package/dist/agent-operations/furniture-kind.d.ts.map +1 -1
- package/dist/agent-operations/furniture-kind.js +105 -6
- package/dist/agent-operations/ground-reader.d.ts +10 -0
- package/dist/agent-operations/ground-reader.d.ts.map +1 -0
- package/dist/agent-operations/ground-reader.js +25 -0
- package/dist/agent-operations/index.d.ts +118 -12
- package/dist/agent-operations/index.d.ts.map +1 -1
- package/dist/agent-operations/index.js +26 -1
- package/dist/agent-operations/item-solids.d.ts +39 -0
- package/dist/agent-operations/item-solids.d.ts.map +1 -0
- package/dist/agent-operations/item-solids.js +128 -0
- package/dist/agent-operations/layout-clearance.d.ts +91 -11
- package/dist/agent-operations/layout-clearance.d.ts.map +1 -1
- package/dist/agent-operations/layout-clearance.js +280 -73
- package/dist/agent-operations/level-height-fill.d.ts.map +1 -1
- package/dist/agent-operations/level-height-fill.js +7 -1
- package/dist/agent-operations/level-reads.d.ts +5 -0
- package/dist/agent-operations/level-reads.d.ts.map +1 -1
- package/dist/agent-operations/level-reads.js +39 -3
- package/dist/agent-operations/list-levels.d.ts.map +1 -1
- package/dist/agent-operations/list-levels.js +2 -4
- package/dist/agent-operations/move-node.d.ts +12 -0
- package/dist/agent-operations/move-node.d.ts.map +1 -0
- package/dist/agent-operations/move-node.js +28 -0
- package/dist/agent-operations/move-plan.d.ts +28 -0
- package/dist/agent-operations/move-plan.d.ts.map +1 -0
- package/dist/agent-operations/move-plan.js +259 -0
- package/dist/agent-operations/node-patch.d.ts.map +1 -1
- package/dist/agent-operations/node-patch.js +15 -0
- package/dist/agent-operations/paint.d.ts +3 -1
- package/dist/agent-operations/paint.d.ts.map +1 -1
- package/dist/agent-operations/paint.js +14 -1
- package/dist/agent-operations/photo-elevation.d.ts.map +1 -1
- package/dist/agent-operations/photo-elevation.js +2 -1
- package/dist/agent-operations/place-in-room.d.ts.map +1 -1
- package/dist/agent-operations/place-in-room.js +1 -0
- package/dist/agent-operations/place-items.d.ts.map +1 -1
- package/dist/agent-operations/place-items.js +3 -4
- package/dist/agent-operations/plan-clearance.d.ts +28 -0
- package/dist/agent-operations/plan-clearance.d.ts.map +1 -0
- package/dist/agent-operations/plan-clearance.js +47 -0
- package/dist/agent-operations/plan-geometry.d.ts +2 -0
- package/dist/agent-operations/plan-geometry.d.ts.map +1 -1
- package/dist/agent-operations/plan-geometry.js +10 -0
- package/dist/agent-operations/project-files.d.ts +10 -0
- package/dist/agent-operations/project-files.d.ts.map +1 -1
- package/dist/agent-operations/reachability.d.ts +41 -0
- package/dist/agent-operations/reachability.d.ts.map +1 -0
- package/dist/agent-operations/reachability.js +199 -0
- package/dist/agent-operations/room-checks.d.ts +60 -0
- package/dist/agent-operations/room-checks.d.ts.map +1 -0
- package/dist/agent-operations/room-checks.js +226 -0
- package/dist/agent-operations/room-faces.d.ts +30 -0
- package/dist/agent-operations/room-faces.d.ts.map +1 -0
- package/dist/agent-operations/room-faces.js +31 -0
- package/dist/agent-operations/room-findings.d.ts +5 -2
- package/dist/agent-operations/room-findings.d.ts.map +1 -1
- package/dist/agent-operations/room-findings.js +30 -0
- package/dist/agent-operations/room-finishes.d.ts +87 -0
- package/dist/agent-operations/room-finishes.d.ts.map +1 -0
- package/dist/agent-operations/room-finishes.js +193 -0
- package/dist/agent-operations/room-floor-script.d.ts +3 -3
- package/dist/agent-operations/room-floor-script.js +3 -3
- package/dist/agent-operations/room-readings.d.ts +90 -0
- package/dist/agent-operations/room-readings.d.ts.map +1 -0
- package/dist/agent-operations/room-readings.js +369 -0
- package/dist/agent-operations/room-tile.d.ts +15 -0
- package/dist/agent-operations/room-tile.d.ts.map +1 -0
- package/dist/agent-operations/room-tile.js +30 -0
- package/dist/agent-operations/room-wet.d.ts +55 -0
- package/dist/agent-operations/room-wet.d.ts.map +1 -0
- package/dist/agent-operations/room-wet.js +203 -0
- package/dist/agent-operations/scene-check-policy.d.ts +5 -0
- package/dist/agent-operations/scene-check-policy.d.ts.map +1 -0
- package/dist/agent-operations/scene-check-policy.js +24 -0
- package/dist/agent-operations/scene-checkpoint.d.ts +10 -0
- package/dist/agent-operations/scene-checkpoint.d.ts.map +1 -1
- package/dist/agent-operations/scene-checkpoint.js +31 -0
- package/dist/agent-operations/scene-issue-groups.d.ts +17 -0
- package/dist/agent-operations/scene-issue-groups.d.ts.map +1 -0
- package/dist/agent-operations/scene-issue-groups.js +71 -0
- package/dist/agent-operations/scene-materials.d.ts +23 -0
- package/dist/agent-operations/scene-materials.d.ts.map +1 -1
- package/dist/agent-operations/scene-materials.js +41 -0
- package/dist/agent-operations/scene-queries.d.ts +2525 -1723
- package/dist/agent-operations/scene-queries.d.ts.map +1 -1
- package/dist/agent-operations/scene-queries.js +3 -3
- package/dist/agent-operations/scene-review.d.ts.map +1 -1
- package/dist/agent-operations/scene-review.js +3 -2
- package/dist/agent-operations/scene-view.d.ts.map +1 -1
- package/dist/agent-operations/scene-view.js +91 -21
- package/dist/agent-operations/search-assets.d.ts +10 -6
- package/dist/agent-operations/search-assets.d.ts.map +1 -1
- package/dist/agent-operations/search-assets.js +37 -22
- package/dist/agent-operations/set-checkpoint.d.ts.map +1 -1
- package/dist/agent-operations/set-checkpoint.js +1 -0
- package/dist/agent-operations/set-ground-level.d.ts +1 -1
- package/dist/agent-operations/set-ground-level.d.ts.map +1 -1
- package/dist/agent-operations/set-ground-level.js +3 -14
- package/dist/agent-operations/site.js +3 -2
- package/dist/agent-operations/slab-surface-script.d.ts +25 -0
- package/dist/agent-operations/slab-surface-script.d.ts.map +1 -0
- package/dist/agent-operations/slab-surface-script.js +60 -0
- package/dist/agent-operations/stair-plan-footprint.d.ts +9 -0
- package/dist/agent-operations/stair-plan-footprint.d.ts.map +1 -0
- package/dist/agent-operations/stair-plan-footprint.js +50 -0
- package/dist/agent-operations/types.d.ts +10 -5
- package/dist/agent-operations/types.d.ts.map +1 -1
- package/dist/agent-operations/units.d.ts +26 -0
- package/dist/agent-operations/units.d.ts.map +1 -0
- package/dist/agent-operations/units.js +110 -0
- package/dist/agent-operations/unreachable-rooms-check.d.ts +17 -0
- package/dist/agent-operations/unreachable-rooms-check.d.ts.map +1 -0
- package/dist/agent-operations/unreachable-rooms-check.js +35 -0
- package/dist/agent-operations/usage-checks.d.ts +2 -0
- package/dist/agent-operations/usage-checks.d.ts.map +1 -0
- package/dist/agent-operations/usage-checks.js +12 -0
- package/dist/agent-operations/verify-scene.d.ts +8 -11
- package/dist/agent-operations/verify-scene.d.ts.map +1 -1
- package/dist/agent-operations/verify-scene.js +59 -13
- package/dist/agent-operations/wall-face-defaults.d.ts +44 -0
- package/dist/agent-operations/wall-face-defaults.d.ts.map +1 -0
- package/dist/agent-operations/wall-face-defaults.js +229 -0
- package/dist/agent-operations/wall-joins.d.ts +119 -0
- package/dist/agent-operations/wall-joins.d.ts.map +1 -0
- package/dist/agent-operations/wall-joins.js +308 -0
- package/dist/agent-operations/wall-object-observations.d.ts.map +1 -1
- package/dist/agent-operations/wall-object-observations.js +5 -7
- package/dist/agent-operations/wall-skirting.d.ts.map +1 -1
- package/dist/agent-operations/wall-skirting.js +2 -0
- package/dist/agent-operations/wall-type.d.ts +49 -0
- package/dist/agent-operations/wall-type.d.ts.map +1 -0
- package/dist/agent-operations/wall-type.js +31 -0
- package/dist/agent-operations/zone-coverage.d.ts +85 -0
- package/dist/agent-operations/zone-coverage.d.ts.map +1 -0
- package/dist/agent-operations/zone-coverage.js +208 -0
- package/dist/agent-tools/add-object.d.ts +31 -0
- package/dist/agent-tools/add-object.d.ts.map +1 -1
- package/dist/agent-tools/add-object.js +44 -7
- package/dist/agent-tools/assets.d.ts +4 -0
- package/dist/agent-tools/assets.d.ts.map +1 -1
- package/dist/agent-tools/assets.js +11 -1
- package/dist/agent-tools/author-scene.d.ts +810 -15
- package/dist/agent-tools/author-scene.d.ts.map +1 -1
- package/dist/agent-tools/author-scene.js +275 -34
- package/dist/agent-tools/batch.d.ts +1 -1
- package/dist/agent-tools/batch.d.ts.map +1 -1
- package/dist/agent-tools/batch.js +5 -1
- package/dist/agent-tools/checkpoints.js +1 -1
- package/dist/agent-tools/columns.d.ts +14 -0
- package/dist/agent-tools/columns.d.ts.map +1 -1
- package/dist/agent-tools/columns.js +14 -2
- package/dist/agent-tools/contract.d.ts +10 -0
- package/dist/agent-tools/contract.d.ts.map +1 -1
- package/dist/agent-tools/contract.js +5 -1
- package/dist/agent-tools/corner-window.d.ts +1 -0
- package/dist/agent-tools/corner-window.d.ts.map +1 -1
- package/dist/agent-tools/corner-window.js +1 -1
- package/dist/agent-tools/create-room.d.ts +85 -0
- package/dist/agent-tools/create-room.d.ts.map +1 -1
- package/dist/agent-tools/create-room.js +8 -1
- package/dist/agent-tools/design-brief.d.ts +513 -7
- package/dist/agent-tools/design-brief.d.ts.map +1 -1
- package/dist/agent-tools/design-brief.js +192 -14
- package/dist/agent-tools/designs.js +1 -1
- package/dist/agent-tools/find-by-type.js +1 -1
- package/dist/agent-tools/index.d.ts +658 -10
- package/dist/agent-tools/index.d.ts.map +1 -1
- package/dist/agent-tools/index.js +9 -1
- package/dist/agent-tools/levels.js +4 -4
- package/dist/agent-tools/move-duplicate.d.ts +65 -0
- package/dist/agent-tools/move-duplicate.d.ts.map +1 -0
- package/dist/agent-tools/move-duplicate.js +68 -0
- package/dist/agent-tools/paint.d.ts +6 -0
- package/dist/agent-tools/paint.d.ts.map +1 -1
- package/dist/agent-tools/paint.js +7 -3
- package/dist/agent-tools/photo-elevation.js +1 -1
- package/dist/agent-tools/project-files.d.ts +2 -2
- package/dist/agent-tools/project-files.d.ts.map +1 -1
- package/dist/agent-tools/project-files.js +1 -1
- package/dist/agent-tools/refusal.d.ts +9 -1
- package/dist/agent-tools/refusal.d.ts.map +1 -1
- package/dist/agent-tools/refusal.js +5 -1
- package/dist/agent-tools/roofs.js +1 -1
- package/dist/agent-tools/room-structure.d.ts +60 -0
- package/dist/agent-tools/room-structure.d.ts.map +1 -1
- package/dist/agent-tools/room-structure.js +20 -1
- package/dist/agent-tools/search-materials.d.ts +1 -0
- package/dist/agent-tools/search-materials.d.ts.map +1 -1
- package/dist/agent-tools/site.js +1 -1
- package/dist/agent-tools/stairs.js +1 -1
- package/dist/agent-tools/units.d.ts +84 -0
- package/dist/agent-tools/units.d.ts.map +1 -0
- package/dist/agent-tools/units.js +54 -0
- package/dist/agent-tools/verify-scene-usage.d.ts +44 -0
- package/dist/agent-tools/verify-scene-usage.d.ts.map +1 -0
- package/dist/agent-tools/verify-scene-usage.js +146 -0
- package/dist/agent-tools/verify-scene.d.ts +12 -1
- package/dist/agent-tools/verify-scene.d.ts.map +1 -1
- package/dist/agent-tools/verify-scene.js +183 -3
- package/dist/agent-tools/view-scene.d.ts +3 -0
- package/dist/agent-tools/view-scene.d.ts.map +1 -1
- package/dist/agent-tools/view-scene.js +4 -1
- package/dist/agent-tools/wall-openings.d.ts +121 -2
- package/dist/agent-tools/wall-openings.d.ts.map +1 -1
- package/dist/agent-tools/wall-openings.js +123 -18
- package/dist/agent-tools/walls.d.ts +30 -0
- package/dist/agent-tools/walls.d.ts.map +1 -1
- package/dist/agent-tools/walls.js +54 -2
- package/dist/building/__fixtures__/wall-opening-cases.d.ts +181 -35
- package/dist/building/__fixtures__/wall-opening-cases.d.ts.map +1 -1
- package/dist/building/__fixtures__/wall-opening-cases.js +13 -0
- package/dist/building/code-profile.d.ts +231 -0
- package/dist/building/code-profile.d.ts.map +1 -0
- package/dist/building/code-profile.js +208 -0
- package/dist/building/corner-window.d.ts +2 -2
- package/dist/building/corner-window.d.ts.map +1 -1
- package/dist/building/corner-window.js +11 -2
- package/dist/building/door-types.d.ts +1 -0
- package/dist/building/door-types.d.ts.map +1 -1
- package/dist/building/door-types.js +2 -0
- package/dist/building/floor-item-fit.d.ts.map +1 -1
- package/dist/building/floor-item-fit.js +2 -4
- package/dist/building/ground-level.d.ts +1 -3
- package/dist/building/ground-level.d.ts.map +1 -1
- package/dist/building/ground-level.js +3 -5
- package/dist/building/index.d.ts +2 -0
- package/dist/building/index.d.ts.map +1 -1
- package/dist/building/index.js +2 -0
- package/dist/building/level-duplication.d.ts +4667 -3065
- package/dist/building/level-duplication.d.ts.map +1 -1
- package/dist/building/level-insertion.d.ts +1 -1
- package/dist/building/level-wall-copy.d.ts +24 -0
- package/dist/building/level-wall-copy.d.ts.map +1 -0
- package/dist/building/level-wall-copy.js +53 -0
- package/dist/building/merge-windows.d.ts.map +1 -1
- package/dist/building/merge-windows.js +5 -3
- package/dist/building/opening-style-presets.d.ts +2 -0
- package/dist/building/opening-style-presets.d.ts.map +1 -1
- package/dist/building/opening-style-presets.js +26 -5
- package/dist/building/room-use.d.ts +26 -0
- package/dist/building/room-use.d.ts.map +1 -0
- package/dist/building/room-use.js +102 -0
- package/dist/building/wall-openings.d.ts +134 -12
- package/dist/building/wall-openings.d.ts.map +1 -1
- package/dist/building/wall-openings.js +182 -41
- package/dist/building/window-types.d.ts +1 -0
- package/dist/building/window-types.d.ts.map +1 -1
- package/dist/building/window-types.js +3 -0
- package/dist/coherence/__fixtures__/enclosure-scenes.d.ts +84 -0
- package/dist/coherence/__fixtures__/enclosure-scenes.d.ts.map +1 -0
- package/dist/coherence/__fixtures__/enclosure-scenes.js +44 -0
- package/dist/commands/structure/attached-walls.d.ts +16 -0
- package/dist/commands/structure/attached-walls.d.ts.map +1 -0
- package/dist/commands/structure/attached-walls.js +53 -0
- package/dist/commands/structure/index.d.ts +3 -0
- package/dist/commands/structure/index.d.ts.map +1 -1
- package/dist/commands/structure/index.js +3 -0
- package/dist/commands/structure/move-separators.d.ts +62 -0
- package/dist/commands/structure/move-separators.d.ts.map +1 -0
- package/dist/commands/structure/move-separators.js +346 -0
- package/dist/commands/structure/set-floor-foundation.d.ts +5 -0
- package/dist/commands/structure/set-floor-foundation.d.ts.map +1 -1
- package/dist/commands/structure/set-wall-geometry.d.ts.map +1 -1
- package/dist/commands/structure/set-wall-geometry.js +44 -11
- package/dist/commands/structure/set-zone-intent.d.ts +26 -0
- package/dist/commands/structure/set-zone-intent.d.ts.map +1 -1
- package/dist/commands/structure/set-zone-intent.js +107 -2
- package/dist/commands/structure/shared.d.ts +889 -88
- package/dist/commands/structure/shared.d.ts.map +1 -1
- package/dist/commands/structure/wall-overlap.d.ts +45 -0
- package/dist/commands/structure/wall-overlap.d.ts.map +1 -0
- package/dist/commands/structure/wall-overlap.js +289 -0
- package/dist/commands/structure/zone-wall-merge.d.ts +2897 -1938
- package/dist/commands/structure/zone-wall-merge.d.ts.map +1 -1
- package/dist/contracts/reference-discovery.d.ts +2 -2
- package/dist/contracts/reference-discovery.d.ts.map +1 -1
- package/dist/contracts/reference-discovery.js +5 -3
- package/dist/contracts/reference-inventory.d.ts.map +1 -1
- package/dist/contracts/reference-inventory.js +75 -25
- package/dist/events/bus.d.ts +15 -2
- package/dist/events/bus.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/built-in-floor-placed.d.ts +40 -0
- package/dist/hooks/spatial-grid/built-in-floor-placed.d.ts.map +1 -0
- package/dist/hooks/spatial-grid/built-in-floor-placed.js +220 -0
- package/dist/hooks/spatial-grid/floor-placed-elevation.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/floor-placed-elevation.js +13 -7
- package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts +62 -2
- package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/spatial-grid-manager.js +207 -36
- package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts +2915 -2114
- package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/spatial-grid-sync.js +32 -5
- package/dist/hooks/spatial-grid/support-host-patch.js +10 -10
- package/dist/i18n/format.d.ts +41 -0
- package/dist/i18n/format.d.ts.map +1 -0
- package/dist/i18n/format.js +124 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/registry.d.ts +78 -0
- package/dist/i18n/registry.d.ts.map +1 -0
- package/dist/i18n/registry.js +252 -0
- package/dist/i18n/use-translate.d.ts +16 -0
- package/dist/i18n/use-translate.d.ts.map +1 -0
- package/dist/i18n/use-translate.js +23 -0
- package/dist/index.d.ts +43 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -19
- package/dist/lib/__fixtures__/mezzanine.d.ts +10900 -8225
- package/dist/lib/__fixtures__/mezzanine.d.ts.map +1 -1
- package/dist/lib/absorb-wall-separators.d.ts +1629 -828
- package/dist/lib/absorb-wall-separators.d.ts.map +1 -1
- package/dist/lib/beam.d.ts +137 -0
- package/dist/lib/beam.d.ts.map +1 -0
- package/dist/lib/beam.js +297 -0
- package/dist/lib/below-grade-footprints.d.ts +13 -5
- package/dist/lib/below-grade-footprints.d.ts.map +1 -1
- package/dist/lib/below-grade-footprints.js +53 -10
- package/dist/lib/build-mode.d.ts +11 -0
- package/dist/lib/build-mode.d.ts.map +1 -0
- package/dist/lib/build-mode.js +24 -0
- package/dist/lib/build-up.d.ts +89 -0
- package/dist/lib/build-up.d.ts.map +1 -0
- package/dist/lib/build-up.js +216 -0
- package/dist/lib/corner-pair.d.ts +207 -4
- package/dist/lib/corner-pair.d.ts.map +1 -1
- package/dist/lib/deck-boards.d.ts +80 -0
- package/dist/lib/deck-boards.d.ts.map +1 -0
- package/dist/lib/deck-boards.js +184 -0
- package/dist/lib/deck-framing.d.ts +150 -0
- package/dist/lib/deck-framing.d.ts.map +1 -0
- package/dist/lib/deck-framing.js +515 -0
- package/dist/lib/deepest-drawn.d.ts +3 -6
- package/dist/lib/deepest-drawn.d.ts.map +1 -1
- package/dist/lib/deepest-drawn.js +4 -8
- package/dist/lib/door-interaction.d.ts +14 -0
- package/dist/lib/door-interaction.d.ts.map +1 -0
- package/dist/lib/door-interaction.js +62 -0
- package/dist/lib/door-opening.d.ts +19 -0
- package/dist/lib/door-opening.d.ts.map +1 -0
- package/dist/lib/door-opening.js +27 -0
- package/dist/lib/door-operation.d.ts +2 -0
- package/dist/lib/door-operation.d.ts.map +1 -1
- package/dist/lib/door-operation.js +4 -0
- package/dist/lib/elevator-support.d.ts +15 -0
- package/dist/lib/elevator-support.d.ts.map +1 -0
- package/dist/lib/elevator-support.js +40 -0
- package/dist/lib/exterior-wall-loops.d.ts.map +1 -1
- package/dist/lib/exterior-wall-loops.js +2 -1
- package/dist/lib/finish-script.d.ts +5 -5
- package/dist/lib/finish-script.d.ts.map +1 -1
- package/dist/lib/finish-script.js +12 -5
- package/dist/lib/floor-footprint-name.d.ts +17 -0
- package/dist/lib/floor-footprint-name.d.ts.map +1 -1
- package/dist/lib/floor-footprint-name.js +17 -4
- package/dist/lib/floor-intent-changes.d.ts.map +1 -1
- package/dist/lib/floor-intent-changes.js +66 -39
- package/dist/lib/floor-opening-footprints.d.ts +1 -1
- package/dist/lib/floor-opening-footprints.d.ts.map +1 -1
- package/dist/lib/floor-opening-footprints.js +10 -4
- package/dist/lib/floor-plate-paint.d.ts +2 -0
- package/dist/lib/floor-plate-paint.d.ts.map +1 -1
- package/dist/lib/floor-plate-paint.js +12 -0
- package/dist/lib/floor-plates.d.ts +250 -0
- package/dist/lib/floor-plates.d.ts.map +1 -1
- package/dist/lib/floor-plates.js +43 -4
- package/dist/lib/floor-script.d.ts +35 -6
- package/dist/lib/floor-script.d.ts.map +1 -1
- package/dist/lib/floor-script.js +96 -16
- package/dist/lib/foundation-construction.d.ts +4 -13
- package/dist/lib/foundation-construction.d.ts.map +1 -1
- package/dist/lib/foundation-construction.js +4 -14
- package/dist/lib/foundation-standard.d.ts +2 -3
- package/dist/lib/foundation-standard.d.ts.map +1 -1
- package/dist/lib/foundation-standard.js +2 -3
- package/dist/lib/foundation-wall.d.ts +1 -2
- package/dist/lib/foundation-wall.d.ts.map +1 -1
- package/dist/lib/foundation-wall.js +1 -2
- package/dist/lib/framing-post.d.ts +91 -0
- package/dist/lib/framing-post.d.ts.map +1 -0
- package/dist/lib/framing-post.js +174 -0
- package/dist/lib/geometry-script-node.d.ts +11 -0
- package/dist/lib/geometry-script-node.d.ts.map +1 -1
- package/dist/lib/geometry-script-node.js +35 -0
- package/dist/lib/grade-standing.d.ts +16 -2
- package/dist/lib/grade-standing.d.ts.map +1 -1
- package/dist/lib/grade-standing.js +129 -9
- package/dist/lib/ground-seat.d.ts +2 -22
- package/dist/lib/ground-seat.d.ts.map +1 -1
- package/dist/lib/ground-seat.js +2 -17
- package/dist/lib/ground-window.d.ts +2 -1
- package/dist/lib/ground-window.d.ts.map +1 -1
- package/dist/lib/ground-window.js +5 -2
- package/dist/lib/hierarchy.d.ts +19 -0
- package/dist/lib/hierarchy.d.ts.map +1 -0
- package/dist/lib/hierarchy.js +53 -0
- package/dist/lib/level-footprints.d.ts +2 -0
- package/dist/lib/level-footprints.d.ts.map +1 -1
- package/dist/lib/level-footprints.js +7 -0
- package/dist/lib/opening-casing.d.ts +67 -0
- package/dist/lib/opening-casing.d.ts.map +1 -0
- package/dist/lib/opening-casing.js +131 -0
- package/dist/lib/opening-exterior-face.d.ts +6 -0
- package/dist/lib/opening-exterior-face.d.ts.map +1 -0
- package/dist/lib/opening-exterior-face.js +15 -0
- package/dist/lib/opening-floor-datum.d.ts +11 -5
- package/dist/lib/opening-floor-datum.d.ts.map +1 -1
- package/dist/lib/opening-floor-datum.js +40 -8
- package/dist/lib/opening-frame-depth.d.ts +18 -0
- package/dist/lib/opening-frame-depth.d.ts.map +1 -0
- package/dist/lib/opening-frame-depth.js +22 -0
- package/dist/lib/outdoor-room.d.ts +32 -0
- package/dist/lib/outdoor-room.d.ts.map +1 -0
- package/dist/lib/outdoor-room.js +66 -0
- package/dist/lib/own-floor-intent.d.ts.map +1 -1
- package/dist/lib/own-floor-intent.js +2 -2
- package/dist/lib/plate-surface.d.ts +8 -0
- package/dist/lib/plate-surface.d.ts.map +1 -1
- package/dist/lib/plate-surface.js +53 -3
- package/dist/lib/polygon-boolean.d.ts.map +1 -1
- package/dist/lib/polygon-boolean.js +2 -1
- package/dist/lib/porch-framing-sync.d.ts +46 -0
- package/dist/lib/porch-framing-sync.d.ts.map +1 -0
- package/dist/lib/porch-framing-sync.js +206 -0
- package/dist/lib/porch-framing.d.ts +44 -0
- package/dist/lib/porch-framing.d.ts.map +1 -0
- package/dist/lib/porch-framing.js +159 -0
- package/dist/lib/railing-rooms.d.ts +13 -0
- package/dist/lib/railing-rooms.d.ts.map +1 -0
- package/dist/lib/railing-rooms.js +37 -0
- package/dist/lib/roof-eave.d.ts +135 -0
- package/dist/lib/roof-eave.d.ts.map +1 -0
- package/dist/lib/roof-eave.js +186 -0
- package/dist/lib/room-floor-elevation.d.ts +12 -0
- package/dist/lib/room-floor-elevation.d.ts.map +1 -0
- package/dist/lib/room-floor-elevation.js +41 -0
- package/dist/lib/room-floor-feasibility.d.ts.map +1 -1
- package/dist/lib/room-floor-feasibility.js +1 -1
- package/dist/lib/room-floor-plate.d.ts +3 -1
- package/dist/lib/room-floor-plate.d.ts.map +1 -1
- package/dist/lib/room-floor-plate.js +7 -0
- package/dist/lib/space-detection.d.ts +13 -0
- package/dist/lib/space-detection.d.ts.map +1 -1
- package/dist/lib/space-detection.js +113 -24
- package/dist/lib/structure-kernel.d.ts +22 -9
- package/dist/lib/structure-kernel.d.ts.map +1 -1
- package/dist/lib/structure-kernel.js +146 -28
- package/dist/lib/structure-reconcile.d.ts +1 -1
- package/dist/lib/structure-reconcile.d.ts.map +1 -1
- package/dist/lib/structure-reconcile.js +7 -4
- package/dist/lib/surface-intent.d.ts +10 -0
- package/dist/lib/surface-intent.d.ts.map +1 -0
- package/dist/lib/surface-intent.js +18 -0
- package/dist/lib/terrain-source.d.ts.map +1 -1
- package/dist/lib/terrain-source.js +2 -1
- package/dist/lib/wall-face-script.d.ts.map +1 -1
- package/dist/lib/wall-face-script.js +8 -5
- package/dist/lib/window-interaction.d.ts +16 -0
- package/dist/lib/window-interaction.d.ts.map +1 -0
- package/dist/lib/window-interaction.js +82 -0
- package/dist/lib/zone-quantities.js +1 -1
- package/dist/material-kinds.d.ts +1 -1
- package/dist/material-kinds.d.ts.map +1 -1
- package/dist/material-kinds.js +1 -0
- package/dist/material-library.d.ts +15 -0
- package/dist/material-library.d.ts.map +1 -1
- package/dist/material-library.js +458 -59
- package/dist/node-slots/column.d.ts +5 -0
- package/dist/node-slots/column.d.ts.map +1 -1
- package/dist/node-slots/column.js +10 -0
- package/dist/node-slots/door.d.ts +3 -4
- package/dist/node-slots/door.d.ts.map +1 -1
- package/dist/node-slots/door.js +4 -3
- package/dist/node-slots/wall.d.ts.map +1 -1
- package/dist/node-slots/wall.js +21 -3
- package/dist/node-slots/window.d.ts +2 -2
- package/dist/node-slots/window.d.ts.map +1 -1
- package/dist/node-slots/window.js +6 -1
- package/dist/procedural-items/design.d.ts +8 -0
- package/dist/procedural-items/design.d.ts.map +1 -1
- package/dist/procedural-items/design.js +169 -21
- package/dist/procedural-items/motion-controller.d.ts +2 -0
- package/dist/procedural-items/motion-controller.d.ts.map +1 -1
- package/dist/procedural-items/motion-controller.js +2 -1
- package/dist/registry/index.d.ts +3 -3
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +2 -2
- package/dist/registry/mechanism.d.ts +4 -1
- package/dist/registry/mechanism.d.ts.map +1 -1
- package/dist/registry/mechanism.js +10 -0
- package/dist/registry/registry.d.ts +5 -0
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/registry/registry.js +10 -0
- package/dist/registry/types.d.ts +89 -23
- package/dist/registry/types.d.ts.map +1 -1
- package/dist/runtime/__fixtures__/live-scene.d.ts +14 -0
- package/dist/runtime/__fixtures__/live-scene.d.ts.map +1 -0
- package/dist/runtime/__fixtures__/live-scene.js +64 -0
- package/dist/runtime/apply.d.ts +42 -0
- package/dist/runtime/apply.d.ts.map +1 -0
- package/dist/runtime/apply.js +274 -0
- package/dist/runtime/dependencies.d.ts +97 -0
- package/dist/runtime/dependencies.d.ts.map +1 -0
- package/dist/runtime/dependencies.js +42 -0
- package/dist/runtime/ids.d.ts +11 -0
- package/dist/runtime/ids.d.ts.map +1 -0
- package/dist/runtime/ids.js +80 -0
- package/dist/runtime/index.d.ts +14 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +11 -0
- package/dist/runtime/node-queries.d.ts +16 -0
- package/dist/runtime/node-queries.d.ts.map +1 -0
- package/dist/runtime/node-queries.js +30 -0
- package/dist/runtime/patch.d.ts +26 -0
- package/dist/runtime/patch.d.ts.map +1 -0
- package/dist/runtime/patch.js +165 -0
- package/dist/runtime/reader.d.ts +104 -0
- package/dist/runtime/reader.d.ts.map +1 -0
- package/dist/runtime/reader.js +455 -0
- package/dist/runtime/scene-runtime.d.ts +112 -0
- package/dist/runtime/scene-runtime.d.ts.map +1 -0
- package/dist/runtime/scene-runtime.js +302 -0
- package/dist/schema/__fixtures__/node-fixtures.d.ts.map +1 -1
- package/dist/schema/__fixtures__/node-fixtures.js +1 -0
- package/dist/schema/assembly.d.ts +3 -0
- package/dist/schema/assembly.d.ts.map +1 -1
- package/dist/schema/assembly.js +13 -0
- package/dist/schema/asset-url.d.ts +37 -2
- package/dist/schema/asset-url.d.ts.map +1 -1
- package/dist/schema/asset-url.js +80 -11
- package/dist/schema/base.d.ts +8 -0
- package/dist/schema/base.d.ts.map +1 -1
- package/dist/schema/base.js +19 -1
- package/dist/schema/build-up.d.ts +247 -0
- package/dist/schema/build-up.d.ts.map +1 -0
- package/dist/schema/build-up.js +83 -0
- package/dist/schema/geometry-source.d.ts +80 -0
- package/dist/schema/geometry-source.d.ts.map +1 -1
- package/dist/schema/geometry-source.js +38 -0
- package/dist/schema/index.d.ts +12 -7
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +12 -6
- package/dist/schema/material.d.ts +5 -0
- package/dist/schema/material.d.ts.map +1 -1
- package/dist/schema/material.js +6 -0
- package/dist/schema/nodes/beam.d.ts +264 -0
- package/dist/schema/nodes/beam.d.ts.map +1 -0
- package/dist/schema/nodes/beam.js +139 -0
- package/dist/schema/nodes/box-vent.d.ts +5 -0
- package/dist/schema/nodes/box-vent.d.ts.map +1 -1
- package/dist/schema/nodes/cabinet.d.ts +10 -0
- package/dist/schema/nodes/cabinet.d.ts.map +1 -1
- package/dist/schema/nodes/ceiling.d.ts +48 -0
- package/dist/schema/nodes/ceiling.d.ts.map +1 -1
- package/dist/schema/nodes/ceiling.js +5 -0
- package/dist/schema/nodes/chimney.d.ts +10 -0
- package/dist/schema/nodes/chimney.d.ts.map +1 -1
- package/dist/schema/nodes/column.d.ts +42 -0
- package/dist/schema/nodes/column.d.ts.map +1 -1
- package/dist/schema/nodes/column.js +11 -1
- package/dist/schema/nodes/cupola.d.ts +5 -0
- package/dist/schema/nodes/cupola.d.ts.map +1 -1
- package/dist/schema/nodes/door.d.ts +54 -3
- package/dist/schema/nodes/door.d.ts.map +1 -1
- package/dist/schema/nodes/door.js +41 -7
- package/dist/schema/nodes/dormer.d.ts +20 -0
- package/dist/schema/nodes/dormer.d.ts.map +1 -1
- package/dist/schema/nodes/downspout.d.ts +5 -0
- package/dist/schema/nodes/downspout.d.ts.map +1 -1
- package/dist/schema/nodes/elevator.d.ts +5 -0
- package/dist/schema/nodes/elevator.d.ts.map +1 -1
- package/dist/schema/nodes/eyebrow-vent.d.ts +5 -0
- package/dist/schema/nodes/eyebrow-vent.d.ts.map +1 -1
- package/dist/schema/nodes/fence.d.ts +5 -0
- package/dist/schema/nodes/fence.d.ts.map +1 -1
- package/dist/schema/nodes/guide.d.ts +14 -0
- package/dist/schema/nodes/guide.d.ts.map +1 -1
- package/dist/schema/nodes/guide.js +2 -0
- package/dist/schema/nodes/gutter.d.ts +5 -0
- package/dist/schema/nodes/gutter.d.ts.map +1 -1
- package/dist/schema/nodes/item.d.ts +71 -0
- package/dist/schema/nodes/item.d.ts.map +1 -1
- package/dist/schema/nodes/item.js +5 -1
- package/dist/schema/nodes/level.d.ts +1 -1
- package/dist/schema/nodes/level.d.ts.map +1 -1
- package/dist/schema/nodes/opening-types.d.ts +13 -0
- package/dist/schema/nodes/opening-types.d.ts.map +1 -1
- package/dist/schema/nodes/opening-types.js +8 -1
- package/dist/schema/nodes/railing-wall.d.ts +112 -0
- package/dist/schema/nodes/railing-wall.d.ts.map +1 -0
- package/dist/schema/nodes/railing-wall.js +160 -0
- package/dist/schema/nodes/ridge-vent.d.ts +5 -0
- package/dist/schema/nodes/ridge-vent.d.ts.map +1 -1
- package/dist/schema/nodes/roof-segment-resize.d.ts.map +1 -1
- package/dist/schema/nodes/roof-segment-resize.js +2 -2
- package/dist/schema/nodes/roof-segment.d.ts +226 -1
- package/dist/schema/nodes/roof-segment.d.ts.map +1 -1
- package/dist/schema/nodes/roof-segment.js +97 -12
- package/dist/schema/nodes/roof-types.d.ts +11 -0
- package/dist/schema/nodes/roof-types.d.ts.map +1 -1
- package/dist/schema/nodes/roof-types.js +6 -0
- package/dist/schema/nodes/roof.d.ts +60 -0
- package/dist/schema/nodes/roof.d.ts.map +1 -1
- package/dist/schema/nodes/roof.js +4 -0
- package/dist/schema/nodes/shelf.d.ts +5 -0
- package/dist/schema/nodes/shelf.d.ts.map +1 -1
- package/dist/schema/nodes/site.d.ts +80 -0
- package/dist/schema/nodes/site.d.ts.map +1 -1
- package/dist/schema/nodes/site.js +7 -0
- package/dist/schema/nodes/skylight.d.ts +10 -0
- package/dist/schema/nodes/skylight.d.ts.map +1 -1
- package/dist/schema/nodes/slab.d.ts +137 -0
- package/dist/schema/nodes/slab.d.ts.map +1 -1
- package/dist/schema/nodes/slab.js +3 -0
- package/dist/schema/nodes/solar-panel.d.ts +10 -0
- package/dist/schema/nodes/solar-panel.d.ts.map +1 -1
- package/dist/schema/nodes/stair-segment.d.ts +5 -0
- package/dist/schema/nodes/stair-segment.d.ts.map +1 -1
- package/dist/schema/nodes/stair-structure.d.ts +69 -0
- package/dist/schema/nodes/stair-structure.d.ts.map +1 -0
- package/dist/schema/nodes/stair-structure.js +39 -0
- package/dist/schema/nodes/stair.d.ts +46 -0
- package/dist/schema/nodes/stair.d.ts.map +1 -1
- package/dist/schema/nodes/stair.js +3 -0
- package/dist/schema/nodes/turbine-vent.d.ts +5 -0
- package/dist/schema/nodes/turbine-vent.d.ts.map +1 -1
- package/dist/schema/nodes/wall.d.ts +136 -2
- package/dist/schema/nodes/wall.d.ts.map +1 -1
- package/dist/schema/nodes/wall.js +48 -6
- package/dist/schema/nodes/window.d.ts +66 -1
- package/dist/schema/nodes/window.d.ts.map +1 -1
- package/dist/schema/nodes/window.js +50 -5
- package/dist/schema/nodes/zone.d.ts +68 -0
- package/dist/schema/nodes/zone.d.ts.map +1 -1
- package/dist/schema/nodes/zone.js +32 -0
- package/dist/schema/scene-material.d.ts +5 -0
- package/dist/schema/scene-material.d.ts.map +1 -1
- package/dist/schema/types.d.ts +1080 -4
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/schema/types.js +2 -0
- package/dist/schema/wall-type.d.ts +95 -0
- package/dist/schema/wall-type.d.ts.map +1 -0
- package/dist/schema/wall-type.js +32 -0
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/movement.d.ts +7 -0
- package/dist/services/movement.d.ts.map +1 -1
- package/dist/services/movement.js +13 -0
- package/dist/services/port-connectivity.d.ts +15 -6
- package/dist/services/port-connectivity.d.ts.map +1 -1
- package/dist/services/port-connectivity.js +83 -17
- package/dist/services/roof-bearing.d.ts.map +1 -1
- package/dist/services/roof-bearing.js +8 -4
- package/dist/services/roof-level.d.ts.map +1 -1
- package/dist/services/roof-level.js +4 -3
- package/dist/services/roof-move.d.ts.map +1 -1
- package/dist/services/roof-move.js +13 -7
- package/dist/services/storey.d.ts +6 -1
- package/dist/services/storey.d.ts.map +1 -1
- package/dist/services/storey.js +24 -10
- package/dist/spatial/usage-field/beds.d.ts +51 -0
- package/dist/spatial/usage-field/beds.d.ts.map +1 -0
- package/dist/spatial/usage-field/beds.js +346 -0
- package/dist/spatial/usage-field/blocked.d.ts +28 -0
- package/dist/spatial/usage-field/blocked.d.ts.map +1 -0
- package/dist/spatial/usage-field/blocked.js +185 -0
- package/dist/spatial/usage-field/boxes.d.ts +17 -0
- package/dist/spatial/usage-field/boxes.d.ts.map +1 -0
- package/dist/spatial/usage-field/boxes.js +82 -0
- package/dist/spatial/usage-field/catalogue-shapes.d.ts +3 -0
- package/dist/spatial/usage-field/catalogue-shapes.d.ts.map +1 -0
- package/dist/spatial/usage-field/catalogue-shapes.js +257 -0
- package/dist/spatial/usage-field/catalogue.d.ts +6 -0
- package/dist/spatial/usage-field/catalogue.d.ts.map +1 -0
- package/dist/spatial/usage-field/catalogue.js +11 -0
- package/dist/spatial/usage-field/clash.d.ts +40 -0
- package/dist/spatial/usage-field/clash.d.ts.map +1 -0
- package/dist/spatial/usage-field/clash.js +187 -0
- package/dist/spatial/usage-field/door-stairs.d.ts +18 -0
- package/dist/spatial/usage-field/door-stairs.d.ts.map +1 -0
- package/dist/spatial/usage-field/door-stairs.js +129 -0
- package/dist/spatial/usage-field/entry-way.d.ts +14 -0
- package/dist/spatial/usage-field/entry-way.d.ts.map +1 -0
- package/dist/spatial/usage-field/entry-way.js +219 -0
- package/dist/spatial/usage-field/fences.d.ts +18 -0
- package/dist/spatial/usage-field/fences.d.ts.map +1 -0
- package/dist/spatial/usage-field/fences.js +253 -0
- package/dist/spatial/usage-field/field.d.ts +44 -0
- package/dist/spatial/usage-field/field.d.ts.map +1 -0
- package/dist/spatial/usage-field/field.js +145 -0
- package/dist/spatial/usage-field/findings.d.ts +76 -0
- package/dist/spatial/usage-field/findings.d.ts.map +1 -0
- package/dist/spatial/usage-field/findings.js +252 -0
- package/dist/spatial/usage-field/fixtures.d.ts +18 -0
- package/dist/spatial/usage-field/fixtures.d.ts.map +1 -0
- package/dist/spatial/usage-field/fixtures.js +160 -0
- package/dist/spatial/usage-field/flag.d.ts +10 -0
- package/dist/spatial/usage-field/flag.d.ts.map +1 -0
- package/dist/spatial/usage-field/flag.js +12 -0
- package/dist/spatial/usage-field/floors.d.ts +13 -0
- package/dist/spatial/usage-field/floors.d.ts.map +1 -0
- package/dist/spatial/usage-field/floors.js +36 -0
- package/dist/spatial/usage-field/index.d.ts +7 -0
- package/dist/spatial/usage-field/index.d.ts.map +1 -0
- package/dist/spatial/usage-field/index.js +5 -0
- package/dist/spatial/usage-field/items.d.ts +38 -0
- package/dist/spatial/usage-field/items.d.ts.map +1 -0
- package/dist/spatial/usage-field/items.js +261 -0
- package/dist/spatial/usage-field/labels.d.ts +8 -0
- package/dist/spatial/usage-field/labels.d.ts.map +1 -0
- package/dist/spatial/usage-field/labels.js +14 -0
- package/dist/spatial/usage-field/level-field.d.ts +47 -0
- package/dist/spatial/usage-field/level-field.d.ts.map +1 -0
- package/dist/spatial/usage-field/level-field.js +96 -0
- package/dist/spatial/usage-field/measure.d.ts +324 -0
- package/dist/spatial/usage-field/measure.d.ts.map +1 -0
- package/dist/spatial/usage-field/measure.js +458 -0
- package/dist/spatial/usage-field/obstacles.d.ts +63 -0
- package/dist/spatial/usage-field/obstacles.d.ts.map +1 -0
- package/dist/spatial/usage-field/obstacles.js +215 -0
- package/dist/spatial/usage-field/openings.d.ts +12 -0
- package/dist/spatial/usage-field/openings.d.ts.map +1 -0
- package/dist/spatial/usage-field/openings.js +162 -0
- package/dist/spatial/usage-field/path.d.ts +48 -0
- package/dist/spatial/usage-field/path.d.ts.map +1 -0
- package/dist/spatial/usage-field/path.js +354 -0
- package/dist/spatial/usage-field/pieces.d.ts +27 -0
- package/dist/spatial/usage-field/pieces.d.ts.map +1 -0
- package/dist/spatial/usage-field/pieces.js +89 -0
- package/dist/spatial/usage-field/shapes.d.ts +18 -0
- package/dist/spatial/usage-field/shapes.d.ts.map +1 -0
- package/dist/spatial/usage-field/shapes.js +92 -0
- package/dist/spatial/usage-field/stairs.d.ts +23 -0
- package/dist/spatial/usage-field/stairs.d.ts.map +1 -0
- package/dist/spatial/usage-field/stairs.js +163 -0
- package/dist/spatial/usage-field/support.d.ts +24 -0
- package/dist/spatial/usage-field/support.d.ts.map +1 -0
- package/dist/spatial/usage-field/support.js +46 -0
- package/dist/spatial/usage-field/swings.d.ts +847 -0
- package/dist/spatial/usage-field/swings.d.ts.map +1 -0
- package/dist/spatial/usage-field/swings.js +427 -0
- package/dist/spatial/usage-field/types.d.ts +65 -0
- package/dist/spatial/usage-field/types.d.ts.map +1 -0
- package/dist/spatial/usage-field/types.js +1 -0
- package/dist/spatial/usage-field/walls.d.ts +1059 -0
- package/dist/spatial/usage-field/walls.d.ts.map +1 -0
- package/dist/spatial/usage-field/walls.js +180 -0
- package/dist/spatial/usage-field/way-in.d.ts +26 -0
- package/dist/spatial/usage-field/way-in.d.ts.map +1 -0
- package/dist/spatial/usage-field/way-in.js +113 -0
- package/dist/store/actions/node-actions.d.ts +1467 -664
- package/dist/store/actions/node-actions.d.ts.map +1 -1
- package/dist/store/actions/node-actions.js +65 -21
- package/dist/store/derived-node-guard.d.ts +10 -2
- package/dist/store/derived-node-guard.d.ts.map +1 -1
- package/dist/store/derived-node-guard.js +33 -12
- package/dist/store/document-settling.d.ts +9 -0
- package/dist/store/document-settling.d.ts.map +1 -0
- package/dist/store/document-settling.js +22 -0
- package/dist/store/history-control.d.ts +19 -10
- package/dist/store/history-control.d.ts.map +1 -1
- package/dist/store/history-control.js +176 -127
- package/dist/store/history-drafts.d.ts.map +1 -1
- package/dist/store/history-drafts.js +21 -17
- package/dist/store/live-previews.d.ts +9 -0
- package/dist/store/live-previews.d.ts.map +1 -0
- package/dist/store/live-previews.js +19 -0
- package/dist/store/scene-annotations.d.ts +5409 -3807
- package/dist/store/scene-annotations.d.ts.map +1 -1
- package/dist/store/scene-environment.d.ts +33 -0
- package/dist/store/scene-environment.d.ts.map +1 -0
- package/dist/store/scene-environment.js +54 -0
- package/dist/store/scene-hydration.d.ts.map +1 -1
- package/dist/store/scene-hydration.js +41 -30
- package/dist/store/use-interactive.d.ts +9 -3
- package/dist/store/use-interactive.d.ts.map +1 -1
- package/dist/store/use-interactive.js +43 -11
- package/dist/store/use-live-node-overrides.d.ts.map +1 -1
- package/dist/store/use-live-node-overrides.js +3 -0
- package/dist/store/use-scene.d.ts +25 -0
- package/dist/store/use-scene.d.ts.map +1 -1
- package/dist/store/use-scene.js +408 -336
- package/dist/systems/document-reconcile.d.ts +40 -0
- package/dist/systems/document-reconcile.d.ts.map +1 -0
- package/dist/systems/document-reconcile.js +159 -0
- package/dist/systems/elevator/elevator-geometry.d.ts +25 -0
- package/dist/systems/elevator/elevator-geometry.d.ts.map +1 -1
- package/dist/systems/elevator/elevator-geometry.js +40 -8
- package/dist/systems/elevator/elevator-opening-sync.d.ts.map +1 -1
- package/dist/systems/elevator/elevator-opening-sync.js +4 -35
- package/dist/systems/elevator/elevator-opening-system.d.ts.map +1 -1
- package/dist/systems/elevator/elevator-opening-system.js +9 -24
- package/dist/systems/elevator/elevator-runtime.d.ts.map +1 -1
- package/dist/systems/elevator/elevator-runtime.js +95 -18
- package/dist/systems/elevator/elevator-service.d.ts.map +1 -1
- package/dist/systems/elevator/elevator-service.js +24 -4
- package/dist/systems/fence/guard-layout.d.ts +69 -0
- package/dist/systems/fence/guard-layout.d.ts.map +1 -0
- package/dist/systems/fence/guard-layout.js +194 -0
- package/dist/systems/owned-floor-openings.d.ts +13 -1
- package/dist/systems/owned-floor-openings.d.ts.map +1 -1
- package/dist/systems/owned-floor-openings.js +58 -2
- package/dist/systems/reconcile-owned-floor-openings.d.ts +3 -1
- package/dist/systems/reconcile-owned-floor-openings.d.ts.map +1 -1
- package/dist/systems/reconcile-owned-floor-openings.js +4 -4
- package/dist/systems/roof/roof-elevation-system.d.ts.map +1 -1
- package/dist/systems/roof/roof-elevation-system.js +8 -26
- package/dist/systems/roof/roof-elevation.d.ts +16 -1
- package/dist/systems/roof/roof-elevation.d.ts.map +1 -1
- package/dist/systems/roof/roof-elevation.js +87 -5
- package/dist/systems/roof/roof-footprint.d.ts +42 -1
- package/dist/systems/roof/roof-footprint.d.ts.map +1 -1
- package/dist/systems/roof/roof-footprint.js +160 -4
- package/dist/systems/slab/__fixtures__/floor-step.d.ts +2714 -1481
- package/dist/systems/slab/__fixtures__/floor-step.d.ts.map +1 -1
- package/dist/systems/slab/__fixtures__/raised-room.d.ts +3815 -2565
- package/dist/systems/slab/__fixtures__/raised-room.d.ts.map +1 -1
- package/dist/systems/stair/stair-clearance.d.ts +7 -0
- package/dist/systems/stair/stair-clearance.d.ts.map +1 -1
- package/dist/systems/stair/stair-clearance.js +31 -11
- package/dist/systems/stair/stair-construction.d.ts +8 -3
- package/dist/systems/stair/stair-construction.d.ts.map +1 -1
- package/dist/systems/stair/stair-construction.js +55 -4
- package/dist/systems/stair/stair-opening-preview.d.ts +1630 -829
- package/dist/systems/stair/stair-opening-preview.d.ts.map +1 -1
- package/dist/systems/stair/stair-opening-system.d.ts.map +1 -1
- package/dist/systems/stair/stair-opening-system.js +18 -34
- package/dist/systems/stair/stair-presets.d.ts +36 -0
- package/dist/systems/stair/stair-presets.d.ts.map +1 -1
- package/dist/systems/stair/stair-rise-query.d.ts.map +1 -1
- package/dist/systems/stair/stair-rise-query.js +3 -2
- package/dist/systems/stair/stair-rise.d.ts.map +1 -1
- package/dist/systems/stair/stair-rise.js +6 -0
- package/dist/systems/stair/stair-sizing.d.ts +42 -11
- package/dist/systems/stair/stair-sizing.d.ts.map +1 -1
- package/dist/systems/stair/stair-sizing.js +10 -1
- package/dist/systems/stair/stair-structure.d.ts +277 -0
- package/dist/systems/stair/stair-structure.d.ts.map +1 -0
- package/dist/systems/stair/stair-structure.js +496 -0
- package/dist/systems/wall/wall-assembly.d.ts +84 -6
- package/dist/systems/wall/wall-assembly.d.ts.map +1 -1
- package/dist/systems/wall/wall-assembly.js +204 -5
- package/dist/systems/wall/wall-curve.d.ts +10 -0
- package/dist/systems/wall/wall-curve.d.ts.map +1 -1
- package/dist/systems/wall/wall-curve.js +38 -0
- package/dist/systems/wall/wall-finish.d.ts +38 -2
- package/dist/systems/wall/wall-finish.d.ts.map +1 -1
- package/dist/systems/wall/wall-finish.js +70 -2
- package/dist/systems/wall/wall-footprint.js +2 -2
- package/dist/systems/wall/wall-frame.d.ts.map +1 -1
- package/dist/systems/wall/wall-frame.js +8 -0
- package/dist/systems/wall/wall-merge.d.ts +9 -1
- package/dist/systems/wall/wall-merge.d.ts.map +1 -1
- package/dist/systems/wall/wall-merge.js +66 -13
- package/dist/systems/wall/wall-mitering.d.ts +1 -0
- package/dist/systems/wall/wall-mitering.d.ts.map +1 -1
- package/dist/systems/wall/wall-mitering.js +152 -52
- package/dist/systems/wall/wall-move.d.ts +23 -6
- package/dist/systems/wall/wall-move.d.ts.map +1 -1
- package/dist/systems/wall/wall-move.js +65 -0
- package/dist/systems/wall/wall-top.d.ts +11 -4
- package/dist/systems/wall/wall-top.d.ts.map +1 -1
- package/dist/systems/wall/wall-top.js +28 -7
- package/dist/systems/wall/wall-topology.d.ts +32 -1
- package/dist/systems/wall/wall-topology.d.ts.map +1 -1
- package/dist/systems/wall/wall-topology.js +137 -11
- package/dist/systems/wall/wall-trim-profiles.d.ts +12 -0
- package/dist/systems/wall/wall-trim-profiles.d.ts.map +1 -0
- package/dist/systems/wall/wall-trim-profiles.js +191 -0
- package/dist/utils/ensure-scene-openings.d.ts +4663 -3061
- package/dist/utils/ensure-scene-openings.d.ts.map +1 -1
- package/dist/utils/floor-piece-adoption.d.ts +5 -0
- package/dist/utils/floor-piece-adoption.d.ts.map +1 -1
- package/dist/utils/floor-plate-migration.d.ts +3372 -2571
- package/dist/utils/floor-plate-migration.d.ts.map +1 -1
- package/dist/utils/measurement-format.d.ts +27 -0
- package/dist/utils/measurement-format.d.ts.map +1 -0
- package/dist/utils/measurement-format.js +143 -0
- package/dist/utils/owned-floor-opening-migration.d.ts +1629 -828
- package/dist/utils/owned-floor-opening-migration.d.ts.map +1 -1
- package/dist/utils/reconcile-structure-on-load.d.ts +2308 -1507
- package/dist/utils/reconcile-structure-on-load.d.ts.map +1 -1
- package/dist/utils/structure-id.d.ts.map +1 -1
- package/dist/utils/structure-id.js +4 -0
- package/dist/validation/validate-build-json.d.ts.map +1 -1
- package/dist/validation/validate-build-json.js +3 -1
- package/package.json +22 -5
- package/dist/lib/generic-foundation.d.ts +0 -40
- package/dist/lib/generic-foundation.d.ts.map +0 -1
- package/dist/lib/generic-foundation.js +0 -200
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"door-opening.d.ts","sourceRoot":"","sources":["../../src/lib/door-opening.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAGzC,yFAAyF;AACzF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAezD;AAED,iEAAiE;AACjE,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,UAAU,CAAC,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,EACxF,YAAY,EAAE,QAAQ,CAAC,UAAU,CAAC,GACjC,QAAQ,CAAC,UAAU,CAAC,CAQtB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { openingHostFacing } from './opening-casing.js';
|
|
2
|
+
/** Leaf centre relative to the full opening centre, in the door's own frame (metres). */
|
|
3
|
+
export function getDoorOpeningSize(door) {
|
|
4
|
+
const swing = !door.source &&
|
|
5
|
+
door.openingKind !== 'opening' &&
|
|
6
|
+
(!door.doorType ||
|
|
7
|
+
door.doorType === 'hinged' ||
|
|
8
|
+
door.doorType === 'double' ||
|
|
9
|
+
door.doorType === 'french');
|
|
10
|
+
const left = swing ? (door.sidelightLeft ?? 0) : 0;
|
|
11
|
+
const right = swing ? (door.sidelightRight ?? 0) : 0;
|
|
12
|
+
return {
|
|
13
|
+
width: door.width + left + right,
|
|
14
|
+
height: door.height + (swing ? (door.transomHeight ?? 0) : 0),
|
|
15
|
+
leafOffsetX: (left - right) / 2,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/** Keep the host cutout fixed when the leaf's facing changes. */
|
|
19
|
+
export function doorPositionForFacing(door, nextRotation) {
|
|
20
|
+
const { leafOffsetX } = getDoorOpeningSize(door);
|
|
21
|
+
return [
|
|
22
|
+
door.position[0] +
|
|
23
|
+
leafOffsetX * (openingHostFacing({ rotation: nextRotation }) - openingHostFacing(door)),
|
|
24
|
+
door.position[1],
|
|
25
|
+
door.position[2],
|
|
26
|
+
];
|
|
27
|
+
}
|
|
@@ -2,6 +2,8 @@ import type { DoorNode, DoorType } from '../schema/nodes/door.js';
|
|
|
2
2
|
export declare const SECTIONAL_GARAGE_RENDER_OPEN_SCALE = 0.88;
|
|
3
3
|
export declare function clampDoorOperationState(value: number | undefined): number;
|
|
4
4
|
export declare function isOperationDoorType(doorType: DoorType | DoorNode['doorType'] | string | undefined): doorType is "barn" | "folding" | "garage-rollup" | "garage-sectional" | "garage-tiltup" | "pocket" | "sliding";
|
|
5
|
+
/** A door a vehicle drives through: it has no leaf to swing across the floor. */
|
|
6
|
+
export declare function isVehicleDoorType(doorType: DoorType | DoorNode['doorType'] | string | undefined): doorType is "garage-rollup" | "garage-sectional" | "garage-tiltup";
|
|
5
7
|
export declare function getDoorRenderOpenAmount(doorType: DoorType | DoorNode['doorType'], operationState: number | undefined): number;
|
|
6
8
|
export declare function getGarageVisibleOpeningRatio(doorType: DoorType | DoorNode['doorType'], operationState: number | undefined): number;
|
|
7
9
|
//# sourceMappingURL=door-operation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"door-operation.d.ts","sourceRoot":"","sources":["../../src/lib/door-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE9D,eAAO,MAAM,kCAAkC,OAAO,CAAA;AAEtD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,UAEhE;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,GAAG,SAAS,kHAW/D;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,EACzC,cAAc,EAAE,MAAM,GAAG,SAAS,UAMnC;AAED,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,EACzC,cAAc,EAAE,MAAM,GAAG,SAAS,UAOnC"}
|
|
1
|
+
{"version":3,"file":"door-operation.d.ts","sourceRoot":"","sources":["../../src/lib/door-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE9D,eAAO,MAAM,kCAAkC,OAAO,CAAA;AAEtD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,UAEhE;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,GAAG,SAAS,kHAW/D;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,GAAG,SAAS,sEAI/F;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,EACzC,cAAc,EAAE,MAAM,GAAG,SAAS,UAMnC;AAED,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,EACzC,cAAc,EAAE,MAAM,GAAG,SAAS,UAOnC"}
|
|
@@ -11,6 +11,10 @@ export function isOperationDoorType(doorType) {
|
|
|
11
11
|
doorType === 'garage-rollup' ||
|
|
12
12
|
doorType === 'garage-tiltup');
|
|
13
13
|
}
|
|
14
|
+
/** A door a vehicle drives through: it has no leaf to swing across the floor. */
|
|
15
|
+
export function isVehicleDoorType(doorType) {
|
|
16
|
+
return (doorType === 'garage-sectional' || doorType === 'garage-rollup' || doorType === 'garage-tiltup');
|
|
17
|
+
}
|
|
14
18
|
export function getDoorRenderOpenAmount(doorType, operationState) {
|
|
15
19
|
const openAmount = clampDoorOperationState(operationState);
|
|
16
20
|
return doorType === 'garage-sectional'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AnyNode, ElevatorNode, LevelNode } from '../schema/index.js';
|
|
2
|
+
export declare function resolveElevatorSupportLevelId({ buildingId, preferredLevelId, nodes, }: {
|
|
3
|
+
buildingId: string | null | undefined;
|
|
4
|
+
preferredLevelId?: string | null;
|
|
5
|
+
nodes?: Readonly<Record<string, AnyNode>>;
|
|
6
|
+
}): LevelNode['id'] | null;
|
|
7
|
+
export declare function resolveElevatorSupportY({ buildingId, preferredLevelId, x, z, nodes, }: {
|
|
8
|
+
buildingId: string | null | undefined;
|
|
9
|
+
preferredLevelId?: string | null;
|
|
10
|
+
x: number;
|
|
11
|
+
z: number;
|
|
12
|
+
nodes?: Readonly<Record<string, AnyNode>>;
|
|
13
|
+
}): number;
|
|
14
|
+
export declare function resolveElevatorNodeSupportY(node: ElevatorNode, position?: [number, number, number], nodes?: Readonly<Record<string, AnyNode>>): number;
|
|
15
|
+
//# sourceMappingURL=elevator-support.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elevator-support.d.ts","sourceRoot":"","sources":["../../src/lib/elevator-support.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAa,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAiB5E,wBAAgB,6BAA6B,CAAC,EAC5C,UAAU,EACV,gBAAgB,EAChB,KAAiC,GAClC,EAAE;IACD,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACrC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAC1C,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,CAWzB;AAED,wBAAgB,uBAAuB,CAAC,EACtC,UAAU,EACV,gBAAgB,EAChB,CAAC,EACD,CAAC,EACD,KAAK,GACN,EAAE;IACD,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACrC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CAC1C,GAAG,MAAM,CAKT;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,YAAY,EAClB,QAAQ,GAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAiB,EAClD,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACxC,MAAM,CAQR"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { spatialGridManager } from '../hooks/spatial-grid/spatial-grid-manager.js';
|
|
2
|
+
import useScene from '../store/use-scene.js';
|
|
3
|
+
function getBuildingLevels(buildingId, nodes) {
|
|
4
|
+
if (!buildingId)
|
|
5
|
+
return [];
|
|
6
|
+
const building = nodes[buildingId];
|
|
7
|
+
if (building?.type !== 'building')
|
|
8
|
+
return [];
|
|
9
|
+
return building.children
|
|
10
|
+
.map((childId) => nodes[childId])
|
|
11
|
+
.filter((entry) => entry?.type === 'level')
|
|
12
|
+
.sort((left, right) => left.level - right.level);
|
|
13
|
+
}
|
|
14
|
+
export function resolveElevatorSupportLevelId({ buildingId, preferredLevelId, nodes = useScene.getState().nodes, }) {
|
|
15
|
+
const preferred = preferredLevelId ? nodes[preferredLevelId] : undefined;
|
|
16
|
+
const levels = getBuildingLevels(buildingId, nodes);
|
|
17
|
+
const preferredInBuilding = preferredLevelId
|
|
18
|
+
? levels.find((level) => level.id === preferredLevelId)
|
|
19
|
+
: undefined;
|
|
20
|
+
if (preferredInBuilding)
|
|
21
|
+
return preferredInBuilding.id;
|
|
22
|
+
if (levels.length === 0)
|
|
23
|
+
return preferred?.type === 'level' ? preferred.id : null;
|
|
24
|
+
return levels[0]?.id ?? null;
|
|
25
|
+
}
|
|
26
|
+
export function resolveElevatorSupportY({ buildingId, preferredLevelId, x, z, nodes, }) {
|
|
27
|
+
const levelId = resolveElevatorSupportLevelId({ buildingId, preferredLevelId, nodes });
|
|
28
|
+
if (!levelId)
|
|
29
|
+
return 0;
|
|
30
|
+
return Math.max(0, spatialGridManager.getSlabElevationAt(levelId, x, z));
|
|
31
|
+
}
|
|
32
|
+
export function resolveElevatorNodeSupportY(node, position = node.position, nodes) {
|
|
33
|
+
return resolveElevatorSupportY({
|
|
34
|
+
buildingId: node.parentId,
|
|
35
|
+
preferredLevelId: node.fromLevelId ?? node.defaultLevelId,
|
|
36
|
+
x: position[0],
|
|
37
|
+
z: position[2],
|
|
38
|
+
nodes,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exterior-wall-loops.d.ts","sourceRoot":"","sources":["../../src/lib/exterior-wall-loops.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"exterior-wall-loops.d.ts","sourceRoot":"","sources":["../../src/lib/exterior-wall-loops.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAGzC,OAAO,EAOL,KAAK,iBAAiB,EAEvB,MAAM,cAAc,CAAA;AA0VrB;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,QAAQ,EAAE,EACjB,aAAa,SAA0B,GACtC,iBAAiB,EAAE,EAAE,CAEvB;AAED,kGAAkG;AAClG,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,QAAQ,EAAE,EACjB,aAAa,SAA0B,GACtC,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,CAEtB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,QAAQ,EAAE,EACjB,aAAa,SAA0B,GACtC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAmBrB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isRailingWall } from '../schema/nodes/railing-wall.js';
|
|
1
2
|
import { getWallCurveFrameAt, isCurvedWall } from '../systems/wall/wall-curve.js';
|
|
2
3
|
import { dedupeSequentialPoints, pointFromTuple, pointToTuple, polygonArea, polygonSignature, sampleWallPointsForRoomDetection, } from './room-graph.js';
|
|
3
4
|
import { distanceToSegment } from './room-topology-index.js';
|
|
@@ -322,7 +323,7 @@ export function enclosedWallIds(walls, joinTolerance = WALL_ENDPOINT_TOLERANCE)
|
|
|
322
323
|
return enclosed;
|
|
323
324
|
}
|
|
324
325
|
function outerFaces(walls, joinTolerance) {
|
|
325
|
-
const loops = exteriorFaces(walls, Math.max(WALL_ENDPOINT_TOLERANCE, joinTolerance));
|
|
326
|
+
const loops = exteriorFaces(walls.filter((wall) => !isRailingWall(wall)), Math.max(WALL_ENDPOINT_TOLERANCE, joinTolerance));
|
|
326
327
|
return loops.filter((loop, index) => !loops.some((other, otherIndex) => {
|
|
327
328
|
if (otherIndex === index ||
|
|
328
329
|
Math.abs(polygonArea(other.polygon)) <= Math.abs(polygonArea(loop.polygon)))
|
|
@@ -4,8 +4,8 @@ import { type FloorScriptInputs } from './floor-script.js';
|
|
|
4
4
|
import { type WallFaceScriptInputs } from './wall-face-script.js';
|
|
5
5
|
type SceneNodes = Readonly<Record<string, AnyNode>>;
|
|
6
6
|
/**
|
|
7
|
-
* A finish a script builds for its host: a room's floor (`nodeId` a zone)
|
|
8
|
-
* (`nodeId` a wall, with `face`).
|
|
7
|
+
* A finish a script builds for its host: a room's floor (`nodeId` a zone), a standalone slab's
|
|
8
|
+
* surface (`nodeId` a slab) or one face of a wall (`nodeId` a wall, with `face`).
|
|
9
9
|
*/
|
|
10
10
|
export type FinishScriptTarget = {
|
|
11
11
|
nodeId: string;
|
|
@@ -20,9 +20,9 @@ export type StaleFinishScript = FinishScriptTarget & {
|
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* The finish scripts whose floor or face is no longer the one they were built for: the structure
|
|
23
|
-
* reconcile re-derived a room (a wall moved, an edge pushed, a floor raised),
|
|
24
|
-
* length, height or openings, so the key differs. A host with nothing
|
|
25
|
-
* no floor, a wall turned curved) keeps its script as it was.
|
|
23
|
+
* reconcile re-derived a room (a wall moved, an edge pushed, a floor raised), a slab was reshaped
|
|
24
|
+
* or holed, or a wall changed length, height or openings, so the key differs. A host with nothing
|
|
25
|
+
* to build on now (a room with no floor, a wall turned curved) keeps its script as it was.
|
|
26
26
|
*/
|
|
27
27
|
export declare function staleFinishScripts(nodes: SceneNodes): StaleFinishScript[];
|
|
28
28
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finish-script.d.ts","sourceRoot":"","sources":["../../src/lib/finish-script.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,sBAAsB,EACtB,wBAAwB,EACxB,cAAc,EAEd,eAAe,EAChB,MAAM,WAAW,CAAA;AAClB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EACL,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"finish-script.d.ts","sourceRoot":"","sources":["../../src/lib/finish-script.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,sBAAsB,EACtB,wBAAwB,EACxB,cAAc,EAEd,eAAe,EAChB,MAAM,WAAW,CAAA;AAClB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,KAAK,oBAAoB,EAI1B,MAAM,oBAAoB,CAAA;AAE3B,KAAK,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;AAEnD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAA;AACpE,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG,oBAAoB,CAAA;AACzE,KAAK,YAAY,GAAG,eAAe,GAAG,cAAc,CAAA;AA+BpD,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG;IACnD,MAAM,EAAE,YAAY,CAAA;IACpB,8DAA8D;IAC9D,MAAM,EAAE,kBAAkB,CAAA;CAC3B,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,iBAAiB,EAAE,CAOzE;AAED;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IAClD,KAAK,CACH,KAAK,EAAE,kBAAkB,GAAG;QAC1B,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAA;QAChD,MAAM,EAAE,kBAAkB,CAAA;KAC3B,GACA,OAAO,CAAC,sBAAsB,CAAC,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,CAAC,kBAAkB,GAAG;QAAE,MAAM,EAAE,YAAY,CAAA;KAAE,CAAC,EAAE,CAAA;IAC1D,MAAM,EAAE,CAAC,kBAAkB,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAA;CACnD,CAAA;AAED,8FAA8F;AAC9F,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,gBAAgB,GACrB,OAAO,CAAC,mBAAmB,CAAC,CA4B9B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,mBAAmB,CAAC,SAAS,CAAC,GACtC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;CAAE,EAAE,CAsB1C"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { floorScriptInputs, floorScriptInputsKey, floorScriptRecord, } from './floor-script.js';
|
|
1
|
+
import { floorScriptInputs, floorScriptInputsKey, floorScriptRecord, slabSurfaceScriptInputs, } from './floor-script.js';
|
|
2
2
|
import { wallFaceScriptInputs, wallFaceScriptInputsKey, wallFaceScriptRecord, } from './wall-face-script.js';
|
|
3
3
|
function finishScriptsOf(node) {
|
|
4
4
|
if (node.type === 'zone')
|
|
5
5
|
return node.floor?.script ? [{ nodeId: node.id, script: node.floor.script }] : [];
|
|
6
|
+
if (node.type === 'slab')
|
|
7
|
+
return node.surfaceScript ? [{ nodeId: node.id, script: node.surfaceScript }] : [];
|
|
6
8
|
if (node.type !== 'wall')
|
|
7
9
|
return [];
|
|
8
10
|
return ['a', 'b'].flatMap((face) => {
|
|
@@ -16,14 +18,16 @@ function currentInputs(nodes, { nodeId, face }, script) {
|
|
|
16
18
|
const inputs = wallFaceScriptInputs(nodes, nodeId, face, script.toHeight);
|
|
17
19
|
return inputs && { inputs, key: wallFaceScriptInputsKey(inputs) };
|
|
18
20
|
}
|
|
19
|
-
const inputs =
|
|
21
|
+
const inputs = nodes[nodeId]?.type === 'slab'
|
|
22
|
+
? slabSurfaceScriptInputs(nodes, nodeId)
|
|
23
|
+
: floorScriptInputs(nodes, nodeId);
|
|
20
24
|
return inputs && { inputs, key: floorScriptInputsKey(inputs) };
|
|
21
25
|
}
|
|
22
26
|
/**
|
|
23
27
|
* The finish scripts whose floor or face is no longer the one they were built for: the structure
|
|
24
|
-
* reconcile re-derived a room (a wall moved, an edge pushed, a floor raised),
|
|
25
|
-
* length, height or openings, so the key differs. A host with nothing
|
|
26
|
-
* no floor, a wall turned curved) keeps its script as it was.
|
|
28
|
+
* reconcile re-derived a room (a wall moved, an edge pushed, a floor raised), a slab was reshaped
|
|
29
|
+
* or holed, or a wall changed length, height or openings, so the key differs. A host with nothing
|
|
30
|
+
* to build on now (a room with no floor, a wall turned curved) keeps its script as it was.
|
|
27
31
|
*/
|
|
28
32
|
export function staleFinishScripts(nodes) {
|
|
29
33
|
return Object.values(nodes).flatMap((node) => finishScriptsOf(node).flatMap((entry) => {
|
|
@@ -71,6 +75,9 @@ export function finishScriptWrites(nodes, rebuilt) {
|
|
|
71
75
|
if (node.type === 'zone') {
|
|
72
76
|
writes.set(node.id, { floor: { ...node.floor, script: script } });
|
|
73
77
|
}
|
|
78
|
+
else if (node.type === 'slab') {
|
|
79
|
+
writes.set(node.id, { surfaceScript: script });
|
|
80
|
+
}
|
|
74
81
|
else if (node.type === 'wall' && target.face) {
|
|
75
82
|
const earlier = writes.get(node.id);
|
|
76
83
|
writes.set(node.id, {
|
|
@@ -8,4 +8,21 @@ import type { AnyNode, SlabNode } from '../schema/index.js';
|
|
|
8
8
|
* largest named room ("Kitchen floor"), or "Floor area" with no rooms.
|
|
9
9
|
*/
|
|
10
10
|
export declare function floorFootprintName(nodes: Readonly<Record<string, AnyNode>>, plate: SlabNode): string;
|
|
11
|
+
/**
|
|
12
|
+
* How `floorFootprintName` arrives at its name, so a UI can word it in its
|
|
13
|
+
* language: `named` is the plate's own name (or a room name that already
|
|
14
|
+
* ends in "floor") and shows as is; `room` is "<room> floor".
|
|
15
|
+
*/
|
|
16
|
+
export type FloorFootprintNaming = {
|
|
17
|
+
kind: 'named';
|
|
18
|
+
name: string;
|
|
19
|
+
} | {
|
|
20
|
+
kind: 'room';
|
|
21
|
+
room: string;
|
|
22
|
+
} | {
|
|
23
|
+
kind: 'shared';
|
|
24
|
+
} | {
|
|
25
|
+
kind: 'area';
|
|
26
|
+
};
|
|
27
|
+
export declare function floorFootprintNaming(nodes: Readonly<Record<string, AnyNode>>, plate: SlabNode): FloorFootprintNaming;
|
|
11
28
|
//# sourceMappingURL=floor-footprint-name.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floor-footprint-name.d.ts","sourceRoot":"","sources":["../../src/lib/floor-footprint-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAY,MAAM,WAAW,CAAA;AAS5D;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,KAAK,EAAE,QAAQ,GACd,MAAM,
|
|
1
|
+
{"version":3,"file":"floor-footprint-name.d.ts","sourceRoot":"","sources":["../../src/lib/floor-footprint-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAY,MAAM,WAAW,CAAA;AAS5D;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,KAAK,EAAE,QAAQ,GACd,MAAM,CAYR;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAEpB,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,KAAK,EAAE,QAAQ,GACd,oBAAoB,CAkCtB"}
|
|
@@ -11,9 +11,22 @@ const polygonArea = (outer, holes = []) => area([{ outer, holes }]);
|
|
|
11
11
|
* largest named room ("Kitchen floor"), or "Floor area" with no rooms.
|
|
12
12
|
*/
|
|
13
13
|
export function floorFootprintName(nodes, plate) {
|
|
14
|
+
const naming = floorFootprintNaming(nodes, plate);
|
|
15
|
+
switch (naming.kind) {
|
|
16
|
+
case 'named':
|
|
17
|
+
return naming.name;
|
|
18
|
+
case 'room':
|
|
19
|
+
return `${naming.room} floor`;
|
|
20
|
+
case 'shared':
|
|
21
|
+
return 'Shared floor';
|
|
22
|
+
case 'area':
|
|
23
|
+
return 'Floor area';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export function floorFootprintNaming(nodes, plate) {
|
|
14
27
|
const own = plate.name?.trim();
|
|
15
28
|
if (own && !GENERATED_NAME.test(own))
|
|
16
|
-
return own;
|
|
29
|
+
return { kind: 'named', name: own };
|
|
17
30
|
const rooms = (plate.zoneIds ?? [])
|
|
18
31
|
.flatMap((id) => {
|
|
19
32
|
const zone = nodes[id];
|
|
@@ -25,7 +38,7 @@ export function floorFootprintName(nodes, plate) {
|
|
|
25
38
|
if (rooms.length > 1 &&
|
|
26
39
|
!rooms.some((room) => room.floor?.footprint) &&
|
|
27
40
|
isLargestFootprint(nodes, plate))
|
|
28
|
-
return '
|
|
41
|
+
return { kind: 'shared' };
|
|
29
42
|
const key = rooms.find((room) => room.floor?.footprint)?.floor?.footprint;
|
|
30
43
|
const creatorId = key && floorFootprintCreatorId(key);
|
|
31
44
|
const creator = creatorId ? nodes[creatorId] : undefined;
|
|
@@ -40,8 +53,8 @@ export function floorFootprintName(nodes, plate) {
|
|
|
40
53
|
: undefined;
|
|
41
54
|
const named = creatorName || rooms.map((room) => room.name?.trim()).find(Boolean);
|
|
42
55
|
if (!named)
|
|
43
|
-
return rooms.some((room) => room.floor?.footprint) ?
|
|
44
|
-
return /\bfloor$/i.test(named) ? named :
|
|
56
|
+
return rooms.some((room) => room.floor?.footprint) ? { kind: 'shared' } : { kind: 'area' };
|
|
57
|
+
return /\bfloor$/i.test(named) ? { kind: 'named', name: named } : { kind: 'room', room: named };
|
|
45
58
|
}
|
|
46
59
|
function isLargestFootprint(nodes, plate) {
|
|
47
60
|
const largest = Object.values(nodes)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floor-intent-changes.d.ts","sourceRoot":"","sources":["../../src/lib/floor-intent-changes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,SAAS,EAOV,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"floor-intent-changes.d.ts","sourceRoot":"","sources":["../../src/lib/floor-intent-changes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,SAAS,EAOV,MAAM,WAAW,CAAA;AAuBlB,OAAO,EAGL,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAA;AAEjC,KAAK,MAAM,GAAG;IAAE,EAAE,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;CAAE,CAAA;AAkCvD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,OAAO,EAAE,SAAS,MAAM,EAAE,GACzB,MAAM,EAAE,CA6IV;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,OAAO,GAAE,SAAS,OAAO,EAAO,EAChC,OAAO,GAAE,SAAS,MAAM,EAAO,uBAwXhC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { boundaries, roomFace } from '../commands/structure/shared.js';
|
|
2
2
|
import { DEFAULT_SLAB_ELEVATION } from '../schema/nodes/slab.js';
|
|
3
|
-
import { findLevelBelowId, getLevelElevations, getWallCoveringSlabUnderside, getWallTop, } from '../services/storey.js';
|
|
3
|
+
import { findLevelBelowId, getLevelElevations, getWallCoveringSlabUnderside, getWallTop, getWallTopOver, } from '../services/storey.js';
|
|
4
4
|
import { automaticFloorHeight, floorPlateAtGroundContact, floorPlateHoldsUnderside, footprintSupportsNode, supportDerivedFloorHeight, } from './floor-foundation-datum.js';
|
|
5
5
|
import { changedLevelConstructionDisplacements, footprintStackChanges, } from './floor-foundation-stack.js';
|
|
6
6
|
import { floorRoomFaces } from './floor-room-faces.js';
|
|
@@ -190,32 +190,54 @@ export function floorIntentConflicts(nodes, updates, created = [], deleted = [])
|
|
|
190
190
|
});
|
|
191
191
|
if (groundOnly.length)
|
|
192
192
|
return groundOnly;
|
|
193
|
-
|
|
193
|
+
// The edit as an overlay of the ids it touches: reading the whole scene is left to an edit that
|
|
194
|
+
// reaches a level (below), so an unrelated edit reads only what it names.
|
|
195
|
+
const overlay = new Map();
|
|
196
|
+
const at = (id) => (overlay.has(id) ? overlay.get(id) : nodes[id]);
|
|
194
197
|
for (const id of deleted)
|
|
195
|
-
|
|
196
|
-
for (const node of created)
|
|
197
|
-
|
|
198
|
+
overlay.set(id, undefined);
|
|
199
|
+
for (const node of created)
|
|
200
|
+
overlay.set(node.id, node);
|
|
201
|
+
for (const { id, data } of updates) {
|
|
202
|
+
const node = at(id);
|
|
203
|
+
if (node)
|
|
204
|
+
overlay.set(id, { ...node, ...data });
|
|
198
205
|
}
|
|
199
|
-
for (const { id, data } of updates)
|
|
200
|
-
if (draft[id])
|
|
201
|
-
draft[id] = { ...draft[id], ...data };
|
|
202
206
|
for (const node of created) {
|
|
203
|
-
const parent = node.parentId
|
|
207
|
+
const parent = node.parentId ? at(node.parentId) : undefined;
|
|
204
208
|
if (parent && 'children' in parent)
|
|
205
|
-
|
|
209
|
+
overlay.set(parent.id, {
|
|
206
210
|
...parent,
|
|
207
211
|
children: [...new Set([...parent.children, node.id])],
|
|
208
|
-
};
|
|
212
|
+
});
|
|
209
213
|
}
|
|
210
214
|
for (const { id, data } of updates) {
|
|
211
|
-
const plate =
|
|
215
|
+
const plate = at(id);
|
|
212
216
|
if (plate?.type === 'slab' &&
|
|
213
217
|
plate.plateRole === 'base' &&
|
|
214
218
|
Object.hasOwn(data, 'floorHeight') &&
|
|
215
219
|
!Object.hasOwn(data, 'elevation'))
|
|
216
|
-
|
|
220
|
+
overlay.set(id, {
|
|
221
|
+
...plate,
|
|
222
|
+
elevation: plate.floorHeight ?? automaticFloorHeight(nodes, plate),
|
|
223
|
+
});
|
|
217
224
|
}
|
|
218
|
-
|
|
225
|
+
let whole;
|
|
226
|
+
const draft = () => {
|
|
227
|
+
if (whole)
|
|
228
|
+
return whole;
|
|
229
|
+
whole = { ...nodes };
|
|
230
|
+
for (const [id, node] of overlay)
|
|
231
|
+
if (node)
|
|
232
|
+
whole[id] = node;
|
|
233
|
+
else
|
|
234
|
+
delete whole[id];
|
|
235
|
+
return whole;
|
|
236
|
+
};
|
|
237
|
+
// Only slabs displace a level's construction.
|
|
238
|
+
const changedDisplacements = [...overlay].some(([id, node]) => node?.type === 'slab' || nodes[id]?.type === 'slab')
|
|
239
|
+
? changedLevelConstructionDisplacements(nodes, draft())
|
|
240
|
+
: new Set();
|
|
219
241
|
const baseHeightChanges = updates.filter(({ id, data }) => nodes[id]?.type === 'slab' &&
|
|
220
242
|
nodes[id].plateRole === 'base' &&
|
|
221
243
|
(Object.hasOwn(data, 'floorHeight') || Object.hasOwn(data, 'elevation')));
|
|
@@ -322,12 +344,12 @@ export function floorIntentConflicts(nodes, updates, created = [], deleted = [])
|
|
|
322
344
|
]) {
|
|
323
345
|
if (!relevant.some((key) => Object.hasOwn(data, key)))
|
|
324
346
|
continue;
|
|
325
|
-
for (const
|
|
326
|
-
let node =
|
|
347
|
+
for (const read of [(id) => nodes[id], at]) {
|
|
348
|
+
let node = read(id);
|
|
327
349
|
const visited = new Set();
|
|
328
350
|
while (node && node.type !== 'level' && !visited.has(node.id)) {
|
|
329
351
|
visited.add(node.id);
|
|
330
|
-
node = node.parentId ?
|
|
352
|
+
node = node.parentId ? read(node.parentId) : undefined;
|
|
331
353
|
}
|
|
332
354
|
if (node?.type === 'level')
|
|
333
355
|
levels.add(node.id);
|
|
@@ -338,12 +360,12 @@ export function floorIntentConflicts(nodes, updates, created = [], deleted = [])
|
|
|
338
360
|
for (const id of changedDisplacements)
|
|
339
361
|
levels.add(id);
|
|
340
362
|
if (updates.some(({ id, data }) => {
|
|
341
|
-
const plate = nodes[id] ??
|
|
363
|
+
const plate = nodes[id] ?? at(id);
|
|
342
364
|
return (plate?.type === 'slab' &&
|
|
343
365
|
plate.plateRole === 'base' &&
|
|
344
366
|
['thickness', 'floorHeight', 'polygon', 'holes'].some((field) => Object.hasOwn(data, field)));
|
|
345
367
|
})) {
|
|
346
|
-
for (const graph of [nodes, draft]) {
|
|
368
|
+
for (const graph of [nodes, draft()]) {
|
|
347
369
|
const elevations = getLevelElevations(graph);
|
|
348
370
|
for (const { id, data } of updates) {
|
|
349
371
|
const plate = graph[id];
|
|
@@ -360,15 +382,17 @@ export function floorIntentConflicts(nodes, updates, created = [], deleted = [])
|
|
|
360
382
|
}
|
|
361
383
|
}
|
|
362
384
|
}
|
|
363
|
-
|
|
385
|
+
// Every conflict below stands on a level the edit reaches.
|
|
386
|
+
if (!levels.size)
|
|
364
387
|
return [];
|
|
388
|
+
const drafted = draft();
|
|
365
389
|
const edited = new Set([...updates.map((u) => u.id), ...created.map((n) => n.id)]);
|
|
366
|
-
const zoneOnly = [...edited].every((id) =>
|
|
390
|
+
const zoneOnly = [...edited].every((id) => drafted[id]?.type === 'zone');
|
|
367
391
|
const affectedWalls = new Set();
|
|
368
392
|
const spans = (graph, zone) => roomFace(graph, zone, floorRoomFaces(boundaries(graph, zone.parentId)))?.spans ?? [];
|
|
369
393
|
if (zoneOnly)
|
|
370
394
|
for (const id of edited)
|
|
371
|
-
for (const graph of [nodes,
|
|
395
|
+
for (const graph of [nodes, drafted]) {
|
|
372
396
|
const zone = graph[id];
|
|
373
397
|
if (zone?.type === 'zone') {
|
|
374
398
|
if (zone.boundaryWallIds?.length)
|
|
@@ -379,21 +403,21 @@ export function floorIntentConflicts(nodes, updates, created = [], deleted = [])
|
|
|
379
403
|
affectedWalls.add(span.boundaryId);
|
|
380
404
|
}
|
|
381
405
|
}
|
|
382
|
-
const ids = Object.values(
|
|
406
|
+
const ids = Object.values(drafted).flatMap((node) => node.type === 'zone' &&
|
|
383
407
|
levels.has(node.parentId) &&
|
|
384
|
-
(!baseOnly || verticalBases.some(({ plate }) => footprintSupportsNode(plate, node,
|
|
408
|
+
(!baseOnly || verticalBases.some(({ plate }) => footprintSupportsNode(plate, node, drafted))) &&
|
|
385
409
|
(!zoneOnly ||
|
|
386
410
|
edited.has(node.id) ||
|
|
387
411
|
(node.boundaryWallIds?.some((id) => affectedWalls.has(id)) ??
|
|
388
|
-
spans(
|
|
412
|
+
spans(drafted, node).some((span) => affectedWalls.has(span.boundaryId))))
|
|
389
413
|
? [node.id]
|
|
390
414
|
: []);
|
|
391
415
|
const conflicts = [...ids].flatMap((id) => {
|
|
392
|
-
const zone =
|
|
416
|
+
const zone = drafted[id];
|
|
393
417
|
if (zone.floor?.support === 'open' || zone.spaceRole !== 'room' || zone.hasFloor === false)
|
|
394
418
|
return [];
|
|
395
|
-
const elevation = zone.floor?.elevation ?? getRoomBaseElevation(
|
|
396
|
-
const check = checkRoomFloor(
|
|
419
|
+
const elevation = zone.floor?.elevation ?? getRoomBaseElevation(drafted, zone.id);
|
|
420
|
+
const check = checkRoomFloor(drafted, id, elevation);
|
|
397
421
|
const previous = nodes[id];
|
|
398
422
|
const oldElevation = previous?.type === 'zone'
|
|
399
423
|
? (previous.floor?.elevation ?? getRoomBaseElevation(nodes, id))
|
|
@@ -405,13 +429,14 @@ export function floorIntentConflicts(nodes, updates, created = [], deleted = [])
|
|
|
405
429
|
JSON.stringify(old.nodeIds) === JSON.stringify(c.nodeIds) &&
|
|
406
430
|
(c.excess ?? Infinity) <= (old.excess ?? 0) + 1e-6));
|
|
407
431
|
});
|
|
408
|
-
for (const node of Object.values(
|
|
432
|
+
for (const node of Object.values(drafted)) {
|
|
409
433
|
if (node.type !== 'door' && node.type !== 'window')
|
|
410
434
|
continue;
|
|
411
|
-
const wall =
|
|
435
|
+
const wall = drafted[node.parentId];
|
|
412
436
|
if (wall?.type !== 'wall' ||
|
|
413
437
|
!levels.has(wall.parentId) ||
|
|
414
|
-
(baseOnly &&
|
|
438
|
+
(baseOnly &&
|
|
439
|
+
!verticalBases.some(({ plate }) => footprintSupportsNode(plate, wall, drafted))) ||
|
|
415
440
|
(zoneOnly && !affectedWalls.has(wall.id)))
|
|
416
441
|
continue;
|
|
417
442
|
const excess = (graph, opening) => {
|
|
@@ -421,10 +446,10 @@ export function floorIntentConflicts(nodes, updates, created = [], deleted = [])
|
|
|
421
446
|
return (getOpeningFloorTarget(host, opening, graph) +
|
|
422
447
|
opening.position[1] +
|
|
423
448
|
opening.height / 2 -
|
|
424
|
-
|
|
449
|
+
getWallTopOver(host, host.parentId, graph, wallSupportForNodes(host, graph).elevation, opening.position[0] - opening.width / 2, opening.position[0] + opening.width / 2));
|
|
425
450
|
};
|
|
426
|
-
const after = excess(
|
|
427
|
-
const previous = nodes[node.id] ?? copiedOpening(nodes,
|
|
451
|
+
const after = excess(drafted, node);
|
|
452
|
+
const previous = nodes[node.id] ?? copiedOpening(nodes, drafted, node);
|
|
428
453
|
const before = previous?.type === 'door' || previous?.type === 'window' ? excess(nodes, previous) : -Infinity;
|
|
429
454
|
if (after > 1e-6 &&
|
|
430
455
|
after > before + 1e-6 &&
|
|
@@ -437,15 +462,17 @@ export function floorIntentConflicts(nodes, updates, created = [], deleted = [])
|
|
|
437
462
|
message: `The ${node.type} does not fit: it exceeds its wall top by ${roundFloorElevation(after)} m.`,
|
|
438
463
|
});
|
|
439
464
|
}
|
|
440
|
-
for (const node of Object.values(
|
|
465
|
+
for (const node of Object.values(drafted)) {
|
|
441
466
|
if (node.type !== 'wall' ||
|
|
442
467
|
node.height === undefined ||
|
|
443
468
|
!levels.has(node.parentId) ||
|
|
444
|
-
!loweringPlates.some(({ plate }) => footprintSupportsNode(plate, node,
|
|
469
|
+
!loweringPlates.some(({ plate }) => footprintSupportsNode(plate, node, drafted)))
|
|
445
470
|
continue;
|
|
446
|
-
const excess = (graph, wall) =>
|
|
447
|
-
(
|
|
448
|
-
|
|
471
|
+
const excess = (graph, wall) => {
|
|
472
|
+
const base = wallSupportForNodes(wall, graph).elevation;
|
|
473
|
+
return (Math.max(getWallTop(wall, wall.parentId, graph, base, 0), getWallTop(wall, wall.parentId, graph, base, 1)) - (getWallCoveringSlabUnderside(wall, wall.parentId, graph) ?? Infinity));
|
|
474
|
+
};
|
|
475
|
+
const after = excess(drafted, node);
|
|
449
476
|
const previous = nodes[node.id];
|
|
450
477
|
const before = previous?.type === 'wall' ? excess(nodes, previous) : -Infinity;
|
|
451
478
|
if (after > 1e-6 && after > before + 1e-6)
|
|
@@ -10,7 +10,7 @@ export declare function isFloorAnchoredOpening(opening: Pick<DoorNode | WindowNo
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function wallOpeningBand(wall: WallNode, from: number, to: number): Ring;
|
|
12
12
|
export declare function wallOpeningFootprint(wall: WallNode, footprint: Ring, from: number, to: number): MultiPolygon;
|
|
13
|
-
export declare function openingAperture(wall: WallNode, opening: Pick<DoorNode | WindowNode, 'position' | 'width'
|
|
13
|
+
export declare function openingAperture(wall: WallNode, opening: Pick<DoorNode | WindowNode, 'position' | 'width'> & Partial<Pick<DoorNode, 'height' | 'rotation' | 'sidelightLeft' | 'sidelightRight' | 'transomHeight' | 'doorType'>>, footprints: ReadonlyMap<string, Ring>): MultiPolygon;
|
|
14
14
|
export type OpeningLanding = {
|
|
15
15
|
openingId: string;
|
|
16
16
|
wallId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floor-opening-footprints.d.ts","sourceRoot":"","sources":["../../src/lib/floor-opening-footprints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"floor-opening-footprints.d.ts","sourceRoot":"","sources":["../../src/lib/floor-opening-footprints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAGxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAG/C,OAAO,EAA4B,KAAK,YAAY,EAAE,KAAK,IAAI,EAAS,MAAM,mBAAmB,CAAA;AAEjG,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,IAAI,CAAC,QAAQ,GAAG,UAAU,EAAE,UAAU,GAAG,QAAQ,CAAC,GACzD,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,UAAU,EAAE,gBAAgB,CAAC,CAAC,WAIzD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAc9E;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,QAAQ,EACd,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,GACT,YAAY,CAGd;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,IAAI,CAAC,QAAQ,GAAG,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,GACxD,OAAO,CACL,IAAI,CACF,QAAQ,EACR,QAAQ,GAAG,UAAU,GAAG,eAAe,GAAG,gBAAgB,GAAG,eAAe,GAAG,UAAU,CAC1F,CACF,EACH,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,GACpC,YAAY,CA0Bd;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,YAAY,CAAA;IACtB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,SAAS,EAAE,EAClB,WAAW,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,MAAM,EACxC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,GAC5C,cAAc,EAAE,CAoFlB;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,SAAS,EAAE,EAClB,WAAW,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,MAAM,EACxC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACvC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAQ3B"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { getWallCurveFrameAt, getWallCurveLength, isCurvedWall } from '../systems/wall/wall-curve.js';
|
|
2
|
+
import { getDoorOpeningSize } from './door-opening.js';
|
|
3
|
+
import { openingHostFacing } from './opening-casing.js';
|
|
2
4
|
import { openingFitsAtDatum } from './opening-floor-datum.js';
|
|
3
5
|
import { difference, intersection, union } from './polygon-boolean.js';
|
|
4
6
|
export function isFloorAnchoredOpening(opening) {
|
|
@@ -35,8 +37,10 @@ export function openingAperture(wall, opening, footprints) {
|
|
|
35
37
|
const length = getWallCurveLength(wall);
|
|
36
38
|
if (length < 1e-9)
|
|
37
39
|
return [];
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
+
const size = getDoorOpeningSize({ ...opening, height: opening.height ?? 0 });
|
|
41
|
+
const centerX = opening.position[0] - size.leafOffsetX * openingHostFacing(opening);
|
|
42
|
+
const from = Math.max(0, (centerX - size.width / 2) / length);
|
|
43
|
+
const to = Math.min(1, (centerX + size.width / 2) / length);
|
|
40
44
|
const aperture = wallOpeningFootprint(wall, footprints.get(wall.id) ?? [], from, to);
|
|
41
45
|
const points = aperture.flatMap((part) => part.outer);
|
|
42
46
|
const xs = points.map((p) => p[0]), zs = points.map((p) => p[1]);
|
|
@@ -71,8 +75,10 @@ export function openingLandings(rooms, elevationOf, nodes, apertures) {
|
|
|
71
75
|
const dx = wall.end[0] - wall.start[0], dz = wall.end[1] - wall.start[1];
|
|
72
76
|
return (((point.x - wall.start[0]) * dx + (point.y - wall.start[1]) * dz) / (dx * dx + dz * dz));
|
|
73
77
|
};
|
|
74
|
-
const
|
|
75
|
-
const
|
|
78
|
+
const size = getDoorOpeningSize({ ...opening, height: opening.height ?? 0 });
|
|
79
|
+
const centerX = opening.position[0] - size.leafOffsetX * openingHostFacing(opening);
|
|
80
|
+
const from = Math.max(0, chord(centerX - size.width / 2));
|
|
81
|
+
const to = Math.min(1, chord(centerX + size.width / 2));
|
|
76
82
|
const cuts = [
|
|
77
83
|
...new Set([
|
|
78
84
|
from,
|
|
@@ -6,5 +6,7 @@ export type FloorPlatePaintRefusal = {
|
|
|
6
6
|
};
|
|
7
7
|
/** Why a room's floor cannot be painted: a script builds it, and the script owns its colours. */
|
|
8
8
|
export declare function floorScriptPaintRefusal(zone: AnyNode | undefined): FloorPlatePaintRefusal | undefined;
|
|
9
|
+
/** Why a slab's top cannot be painted: its own surface script builds it, and owns its colours. */
|
|
10
|
+
export declare function slabSurfaceScriptPaintRefusal(slab: AnyNode | undefined, role: string): FloorPlatePaintRefusal | undefined;
|
|
9
11
|
export declare function floorPlatePaintRefusal(nodes: Readonly<Record<string, AnyNode>>, node: AnyNode, role: string): FloorPlatePaintRefusal | undefined;
|
|
10
12
|
//# sourceMappingURL=floor-plate-paint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floor-plate-paint.d.ts","sourceRoot":"","sources":["../../src/lib/floor-plate-paint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAGxC,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,4BAA4B,GAAG,uBAAuB,CAAA;IAC5D,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,iGAAiG;AACjG,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,OAAO,GAAG,SAAS,GACxB,sBAAsB,GAAG,SAAS,CAOpC;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,MAAM,GACX,sBAAsB,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"floor-plate-paint.d.ts","sourceRoot":"","sources":["../../src/lib/floor-plate-paint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAGxC,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,4BAA4B,GAAG,uBAAuB,CAAA;IAC5D,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,iGAAiG;AACjG,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,OAAO,GAAG,SAAS,GACxB,sBAAsB,GAAG,SAAS,CAOpC;AAED,kGAAkG;AAClG,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,OAAO,GAAG,SAAS,EACzB,IAAI,EAAE,MAAM,GACX,sBAAsB,GAAG,SAAS,CAOpC;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxC,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,MAAM,GACX,sBAAsB,GAAG,SAAS,CAkBpC"}
|
|
@@ -8,9 +8,21 @@ export function floorScriptPaintRefusal(zone) {
|
|
|
8
8
|
message: `${zone.name?.trim() || 'This room'}'s floor is built by a script, which owns its colours. Remove the script to paint the floor.`,
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
+
/** Why a slab's top cannot be painted: its own surface script builds it, and owns its colours. */
|
|
12
|
+
export function slabSurfaceScriptPaintRefusal(slab, role) {
|
|
13
|
+
if (slab?.type === 'slab' && slab.surfaceScript && role === 'surface')
|
|
14
|
+
return {
|
|
15
|
+
status: 'refused',
|
|
16
|
+
code: 'floor-built-by-script',
|
|
17
|
+
message: `${slab.name?.trim() || 'This slab'}'s surface is built by a script, which owns its colours. Remove the script to paint the surface.`,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
11
20
|
export function floorPlatePaintRefusal(nodes, node, role) {
|
|
12
21
|
if (node.type !== 'slab')
|
|
13
22
|
return;
|
|
23
|
+
const scripted = slabSurfaceScriptPaintRefusal(node, role);
|
|
24
|
+
if (scripted)
|
|
25
|
+
return scripted;
|
|
14
26
|
const room = parseRoomFinishRole(role);
|
|
15
27
|
if (room)
|
|
16
28
|
return floorScriptPaintRefusal(nodes[room.zoneId]);
|