@pascal-app/core 1.0.7 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-operations/__fixtures__/cases.d.ts +3 -2
- package/dist/agent-operations/__fixtures__/cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/native-materials.d.ts +4 -0
- package/dist/agent-operations/__fixtures__/native-materials.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/place-items-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/place-items-cases.js +28 -0
- package/dist/agent-operations/__fixtures__/roof-bearing-cases.d.ts +9567 -9563
- package/dist/agent-operations/__fixtures__/roof-bearing-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/verify-scene-cases.d.ts +77 -77
- package/dist/agent-operations/asset-catalog.d.ts +21 -11
- package/dist/agent-operations/asset-catalog.d.ts.map +1 -1
- package/dist/agent-operations/asset-catalog.js +28 -10
- package/dist/agent-operations/asset-views.d.ts +8 -3
- package/dist/agent-operations/asset-views.d.ts.map +1 -1
- package/dist/agent-operations/asset-views.js +19 -3
- package/dist/agent-operations/author-scene.d.ts.map +1 -1
- package/dist/agent-operations/author-scene.js +2 -3
- package/dist/agent-operations/batch.d.ts +7 -1
- package/dist/agent-operations/batch.d.ts.map +1 -1
- package/dist/agent-operations/batch.js +17 -2
- package/dist/agent-operations/catalog-asset.d.ts +15 -0
- package/dist/agent-operations/catalog-asset.d.ts.map +1 -0
- package/dist/agent-operations/catalog-asset.js +4 -0
- package/dist/agent-operations/circulation-spaces.d.ts +1724 -1723
- package/dist/agent-operations/circulation-spaces.d.ts.map +1 -1
- package/dist/agent-operations/design-brief.d.ts.map +1 -1
- package/dist/agent-operations/design-brief.js +2 -0
- package/dist/agent-operations/furnish-room.d.ts.map +1 -1
- package/dist/agent-operations/furnish-room.js +2 -1
- package/dist/agent-operations/index.d.ts +3 -0
- package/dist/agent-operations/index.d.ts.map +1 -1
- package/dist/agent-operations/index.js +4 -1
- package/dist/agent-operations/level-reads.d.ts.map +1 -1
- package/dist/agent-operations/level-reads.js +5 -2
- package/dist/agent-operations/move-plan.d.ts.map +1 -1
- package/dist/agent-operations/move-plan.js +11 -9
- package/dist/agent-operations/place-in-room.d.ts.map +1 -1
- package/dist/agent-operations/place-in-room.js +2 -1
- package/dist/agent-operations/place-items.d.ts.map +1 -1
- package/dist/agent-operations/place-items.js +2 -1
- package/dist/agent-operations/scene-queries.d.ts +2944 -2943
- package/dist/agent-operations/scene-queries.d.ts.map +1 -1
- package/dist/agent-operations/scene-view.d.ts.map +1 -1
- package/dist/agent-operations/scene-view.js +38 -13
- package/dist/agent-operations/search-assets.d.ts.map +1 -1
- package/dist/agent-operations/search-assets.js +6 -0
- package/dist/agent-operations/types.d.ts +3 -2
- package/dist/agent-operations/types.d.ts.map +1 -1
- package/dist/agent-operations/usage-checks.js +18 -3
- package/dist/agent-operations/verify-scene.d.ts.map +1 -1
- package/dist/agent-operations/verify-scene.js +4 -2
- package/dist/agent-operations/wall-object-observations.d.ts.map +1 -1
- package/dist/agent-operations/wall-object-observations.js +1 -1
- package/dist/agent-tools/assets.js +1 -1
- package/dist/agent-tools/wall-openings.js +2 -2
- package/dist/building/__fixtures__/wall-opening-cases.d.ts +13 -12
- package/dist/building/__fixtures__/wall-opening-cases.d.ts.map +1 -1
- package/dist/building/level-duplication.d.ts +1281 -1279
- package/dist/building/level-duplication.d.ts.map +1 -1
- package/dist/building/level-duplication.js +3 -1
- package/dist/building/merge-windows.d.ts.map +1 -1
- package/dist/building/merge-windows.js +4 -3
- package/dist/building/wall-openings.d.ts +95 -81
- package/dist/building/wall-openings.d.ts.map +1 -1
- package/dist/building/wall-openings.js +74 -25
- package/dist/commands/structure/shared.d.ts +3203 -3202
- package/dist/commands/structure/shared.d.ts.map +1 -1
- package/dist/commands/structure/zone-wall-merge.d.ts +2028 -2025
- package/dist/commands/structure/zone-wall-merge.d.ts.map +1 -1
- package/dist/contracts/reference-inventory.d.ts.map +1 -1
- package/dist/contracts/reference-inventory.js +0 -1
- package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts +6 -1
- package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/spatial-grid-manager.js +30 -9
- package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts +2101 -2100
- package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/spatial-grid-sync.js +8 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -4
- package/dist/lib/__fixtures__/mezzanine.d.ts +6428 -6424
- package/dist/lib/__fixtures__/mezzanine.d.ts.map +1 -1
- package/dist/lib/absorb-wall-separators.d.ts +2267 -2266
- package/dist/lib/absorb-wall-separators.d.ts.map +1 -1
- package/dist/lib/asset-storage.d.ts.map +1 -1
- package/dist/lib/asset-storage.js +3 -0
- 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/corner-pair.d.ts +2 -0
- package/dist/lib/corner-pair.d.ts.map +1 -1
- 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/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/floor-foundation-datum.d.ts.map +1 -1
- package/dist/lib/floor-foundation-datum.js +5 -1
- package/dist/lib/floor-intent-changes.d.ts.map +1 -1
- package/dist/lib/floor-intent-changes.js +6 -4
- package/dist/lib/floorplan/context.d.ts +95 -0
- package/dist/lib/floorplan/context.d.ts.map +1 -0
- package/dist/lib/floorplan/context.js +155 -0
- package/dist/lib/floorplan/index.d.ts +6 -0
- package/dist/lib/floorplan/index.d.ts.map +1 -0
- package/dist/lib/floorplan/index.js +5 -0
- package/dist/lib/floorplan/marks.d.ts +71 -0
- package/dist/lib/floorplan/marks.d.ts.map +1 -0
- package/dist/lib/floorplan/marks.js +157 -0
- package/dist/lib/floorplan/plan-math.d.ts +18 -0
- package/dist/lib/floorplan/plan-math.d.ts.map +1 -0
- package/dist/lib/floorplan/plan-math.js +82 -0
- package/dist/lib/floorplan/svg-paths.d.ts +17 -0
- package/dist/lib/floorplan/svg-paths.d.ts.map +1 -0
- package/dist/lib/floorplan/svg-paths.js +92 -0
- package/dist/lib/floorplan/wall-affordances.d.ts +31 -0
- package/dist/lib/floorplan/wall-affordances.d.ts.map +1 -0
- package/dist/lib/floorplan/wall-affordances.js +24 -0
- 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/opening-floor-datum.d.ts +1 -1
- package/dist/lib/opening-floor-datum.d.ts.map +1 -1
- package/dist/lib/opening-floor-datum.js +2 -2
- package/dist/lib/own-floor-intent.d.ts.map +1 -1
- package/dist/lib/own-floor-intent.js +2 -2
- package/dist/lib/polygon-boolean.d.ts.map +1 -1
- package/dist/lib/polygon-boolean.js +2 -1
- 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/space-detection.d.ts.map +1 -1
- package/dist/lib/space-detection.js +1 -0
- package/dist/lib/wall-face-script.d.ts.map +1 -1
- package/dist/lib/wall-face-script.js +3 -3
- 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/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/registry/__fixtures__/roof-planes.d.ts +69 -0
- package/dist/registry/__fixtures__/roof-planes.d.ts.map +1 -0
- package/dist/registry/__fixtures__/roof-planes.js +59 -0
- package/dist/registry/index.d.ts +3 -2
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +2 -1
- 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/roofs.d.ts +34 -0
- package/dist/registry/roofs.d.ts.map +1 -0
- package/dist/registry/roofs.js +61 -0
- package/dist/registry/types.d.ts +54 -0
- package/dist/registry/types.d.ts.map +1 -1
- package/dist/registry/validate-relations.d.ts +5 -1
- package/dist/registry/validate-relations.d.ts.map +1 -1
- package/dist/registry/validate-relations.js +6 -2
- package/dist/schema/asset-url.d.ts +8 -0
- package/dist/schema/asset-url.d.ts.map +1 -1
- package/dist/schema/asset-url.js +17 -0
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +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 +2 -0
- package/dist/schema/nodes/roof-segment.d.ts.map +1 -1
- package/dist/schema/nodes/roof-segment.js +40 -2
- package/dist/schema/nodes/roof.d.ts +1 -1
- package/dist/schema/nodes/roof.d.ts.map +1 -1
- package/dist/schema/nodes/roof.js +13 -8
- package/dist/schema/nodes/wall.d.ts +1 -0
- package/dist/schema/nodes/wall.d.ts.map +1 -1
- package/dist/schema/nodes/wall.js +6 -0
- package/dist/schema/types.d.ts +2 -1
- package/dist/schema/types.d.ts.map +1 -1
- 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.js +2 -1
- package/dist/services/roof-level.d.ts.map +1 -1
- package/dist/services/roof-level.js +12 -2
- package/dist/services/roof-move.d.ts +4 -2
- package/dist/services/roof-move.d.ts.map +1 -1
- package/dist/services/roof-move.js +21 -9
- package/dist/services/storey.d.ts +6 -1
- package/dist/services/storey.d.ts.map +1 -1
- package/dist/services/storey.js +11 -2
- package/dist/spatial/usage-field/findings.d.ts +7 -1
- package/dist/spatial/usage-field/findings.d.ts.map +1 -1
- package/dist/spatial/usage-field/findings.js +42 -10
- package/dist/spatial/usage-field/path.d.ts.map +1 -1
- package/dist/spatial/usage-field/path.js +28 -18
- package/dist/spatial/usage-field/swings.d.ts +1 -0
- package/dist/spatial/usage-field/swings.d.ts.map +1 -1
- package/dist/spatial/usage-field/walls.d.ts +2 -0
- package/dist/spatial/usage-field/walls.d.ts.map +1 -1
- package/dist/spatial/usage-field/walls.js +18 -4
- package/dist/store/actions/node-actions.d.ts +2 -1
- package/dist/store/actions/node-actions.d.ts.map +1 -1
- package/dist/store/actions/node-actions.js +23 -5
- package/dist/store/derived-node-guard.d.ts.map +1 -1
- package/dist/store/derived-node-guard.js +2 -1
- package/dist/store/scene-annotations.d.ts +4634 -4632
- package/dist/store/scene-annotations.d.ts.map +1 -1
- package/dist/systems/document-reconcile.d.ts.map +1 -1
- package/dist/systems/document-reconcile.js +1 -2
- 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-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/roof/roof-elevation.d.ts +11 -6
- package/dist/systems/roof/roof-elevation.d.ts.map +1 -1
- package/dist/systems/roof/roof-elevation.js +26 -12
- package/dist/systems/slab/__fixtures__/floor-step.d.ts +5 -1
- package/dist/systems/slab/__fixtures__/floor-step.d.ts.map +1 -1
- package/dist/systems/slab/__fixtures__/raised-room.d.ts +2218 -2214
- package/dist/systems/slab/__fixtures__/raised-room.d.ts.map +1 -1
- package/dist/systems/stair/stair-opening-preview.d.ts +3203 -3202
- package/dist/systems/stair/stair-opening-preview.d.ts.map +1 -1
- 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-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 +38 -6
- package/dist/systems/wall/wall-top.d.ts +10 -3
- package/dist/systems/wall/wall-top.d.ts.map +1 -1
- package/dist/systems/wall/wall-top.js +24 -8
- package/dist/systems/wall/wall-topology.d.ts.map +1 -1
- package/dist/systems/wall/wall-topology.js +19 -1
- package/dist/utils/ensure-scene-openings.d.ts +5595 -5593
- package/dist/utils/ensure-scene-openings.d.ts.map +1 -1
- package/dist/utils/floor-plate-migration.d.ts +2267 -2266
- 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 +653 -652
- package/dist/utils/owned-floor-opening-migration.d.ts.map +1 -1
- package/dist/utils/reconcile-structure-on-load.d.ts +1724 -1723
- package/dist/utils/reconcile-structure-on-load.d.ts.map +1 -1
- package/dist/utils/scene-bounds.d.ts +32 -0
- package/dist/utils/scene-bounds.d.ts.map +1 -0
- package/dist/utils/scene-bounds.js +201 -0
- package/dist/validation/validate-build-json.d.ts.map +1 -1
- package/dist/validation/validate-build-json.js +3 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"level-duplication.d.ts","sourceRoot":"","sources":["../../src/building/level-duplication.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,SAAS,EAGd,KAAK,SAAS,EAEf,MAAM,WAAW,CAAA;AAOlB,MAAM,MAAM,oBAAoB,GAC5B,YAAY,GACZ,WAAW,GACX,qBAAqB,GACrB,qBAAqB,CAAA;AAqGzB,6FAA6F;AAC7F,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,4wCAElF;AAED,wBAAgB,4BAA4B,CAAC,EAC3C,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAkB,GACnB,EAAE;IACD,KAAK,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IACjC,KAAK,EAAE,SAAS,CAAA;IAChB,MAAM,EAAE,SAAS,EAAE,CAAA;IACnB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBhF"}
|
|
@@ -3,6 +3,7 @@ import { expandFloorIntentChanges } from '../lib/floor-intent-changes.js';
|
|
|
3
3
|
import { footprintIoU } from '../lib/floor-plates.js';
|
|
4
4
|
import { getDefaultLevelName } from '../lib/level-name.js';
|
|
5
5
|
import { reconcileSceneStructure } from '../lib/structure-reconcile.js';
|
|
6
|
+
import { roofFaceOf } from '../registry/roofs.js';
|
|
6
7
|
import { generateId, UnitNode, } from '../schema/index.js';
|
|
7
8
|
import { DEFAULT_SLAB_ELEVATION } from '../schema/nodes/slab.js';
|
|
8
9
|
import { isRoofLevel, isStoreyContent } from '../services/roof-level.js';
|
|
@@ -32,7 +33,8 @@ function shouldKeepNode(node, preset) {
|
|
|
32
33
|
if (preset === 'structure-furniture')
|
|
33
34
|
return true;
|
|
34
35
|
if (preset === 'structure' || preset === 'structure-materials') {
|
|
35
|
-
|
|
36
|
+
// A roof's faces of other kinds (`capabilities.roofs`) are the roof, as its segments are.
|
|
37
|
+
return STRUCTURAL_NODE_TYPES.has(node.type) || roofFaceOf(node) !== undefined;
|
|
36
38
|
}
|
|
37
39
|
return true;
|
|
38
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-windows.d.ts","sourceRoot":"","sources":["../../src/building/merge-windows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAA0B,MAAM,wBAAwB,CAAA;AAalF,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAY,UAAU,EAAE,MAAM,WAAW,CAAA;AAGzE;;;;;;;;;;GAUG;AAEH,KAAK,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;AAE9C,iFAAiF;AACjF,eAAO,MAAM,WAAW,MAAM,CAAA;AAc9B,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC5B,iDAAiD;IACjD,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,iEAAiE;IACjE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE;QAAE,MAAM,EAAE;YAAE,EAAE,E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AE,CAAA;KAAE,CAAA;IACxF,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAqCD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,WAAW,CAuBzF;AAiKD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,SAAS,MAAM,EAAE,GAC7B;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,YAAY,CAAA;CAAE,GAAG,IAAI,CASvF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isAgentRefusal, refuse } from '../agent-tools/refusal.js';
|
|
2
2
|
import { CORNER_REACH_M, cornerAngle, cornerLinkClears, cornerPair, fusesAtCorner, isWrappableAngle, wallEndPoint, wallLengthOf, windowEndGap, } from '../lib/corner-pair.js';
|
|
3
|
-
import { findWallChildOverlap,
|
|
3
|
+
import { findWallChildOverlap, wallOpeningCeilingOver } from './wall-openings.js';
|
|
4
4
|
/** The widest gap between two windows on one wall that still merges them (m). */
|
|
5
5
|
export const MERGE_GAP_M = 0.3;
|
|
6
6
|
/** What two windows share on a corner window: the second takes the first's. */
|
|
@@ -136,12 +136,13 @@ function mergeAtCorner(nodes, first, second) {
|
|
|
136
136
|
if (gap > CORNER_REACH_M + 1e-9)
|
|
137
137
|
refuse('window_not_at_corner', `Window ${window.id} is ${metres(gap)} from the corner of wall ${wall.id}; a window joins a corner window when it is within ${metres(CORNER_REACH_M)} of the corner.`, { windowId: window.id, gap, limit: CORNER_REACH_M });
|
|
138
138
|
}
|
|
139
|
-
const
|
|
139
|
+
const centreAt = (window, wall, end) => end === 'start' ? window.width / 2 : wallLengthOf(wall) - window.width / 2;
|
|
140
|
+
const secondCentre = centreAt(b, second.wall, joint.endB);
|
|
141
|
+
const ceiling = wallOpeningCeilingOver(second.wall, nodes, secondCentre - b.width / 2, secondCentre + b.width / 2);
|
|
140
142
|
if (headOf(a) > ceiling + 1e-6)
|
|
141
143
|
refuse('height_exceeds_wall', `Window ${a.id} is taller than wall ${second.wall.id} (${metres(headOf(a))} against ${metres(ceiling)}), so ${b.id} cannot take its height and sill. Name the other window first, or lower ${a.id}.`, { windowId: b.id, wallId: second.wall.id });
|
|
142
144
|
// Each side slides to the corner, keeping its width, if no other opening is in the way.
|
|
143
145
|
const post = fusesAtCorner(a) ? 'none' : 'post';
|
|
144
|
-
const centreAt = (window, wall, end) => end === 'start' ? window.width / 2 : wallLengthOf(wall) - window.width / 2;
|
|
145
146
|
const placed = sides.map(({ window, wall, end }, index) => {
|
|
146
147
|
const x = centreAt(window, wall, end);
|
|
147
148
|
const y = a.position[1];
|
|
@@ -2,24 +2,33 @@ import { type AnyNode, type AnyNodeId, type CompiledGeometryScript, DoorNode, ty
|
|
|
2
2
|
import type { DoorType, WindowType } from '../schema/nodes/opening-types.js';
|
|
3
3
|
type Nodes = Readonly<Record<string, AnyNode>>;
|
|
4
4
|
/**
|
|
5
|
-
* Available wall-local Y span for an opening hosted on `wall
|
|
6
|
-
* plane for plane-bound walls, stored height for explicit
|
|
7
|
-
* base, the ceiling an opening's
|
|
5
|
+
* Available wall-local Y span for an opening hosted on `wall` at chord fraction `t` (0 start,
|
|
6
|
+
* 1 end; see `getWallChordFractionAt`): the wall's resolved top (storey plane for plane-bound walls, stored height for explicit
|
|
7
|
+
* ones, sloped by `endHeightOffset`) minus the wall's elected slab base, the ceiling an opening's
|
|
8
|
+
* top edge must stay under.
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveWallOpeningCeiling(wall: WallNode, nodes: Readonly<Record<AnyNodeId, AnyNode>>, t: number): number;
|
|
11
|
+
/** The lowest opening ceiling over arc-length stations `[left, right]` (see `getWallTopOver`). */
|
|
12
|
+
export declare function wallOpeningCeilingOver(wall: WallNode, nodes: Readonly<Record<AnyNodeId, AnyNode>>, left: number, right: number): number;
|
|
13
|
+
/**
|
|
14
|
+
* A door's centre: slid along the wall to stay on it, standing on the floor, and under a sloped
|
|
15
|
+
* top. `fits` is false when no position along the wall clears the door.
|
|
8
16
|
*/
|
|
9
|
-
export declare function resolveWallOpeningCeiling(wall: WallNode, nodes: Readonly<Record<AnyNodeId, AnyNode>>): number;
|
|
10
|
-
/** A door's centre: slid along the wall to stay on it, standing on the floor. */
|
|
11
17
|
export declare function clampDoorToWall(wall: WallNode, localX: number, width: number, height: number, door?: Partial<DoorNode>, nodes?: Readonly<Record<AnyNodeId, AnyNode>>): {
|
|
12
18
|
clampedX: number;
|
|
13
19
|
clampedY: number;
|
|
20
|
+
fits: boolean;
|
|
14
21
|
transomHeight?: number;
|
|
15
22
|
};
|
|
16
23
|
/**
|
|
17
24
|
* A window's centre: slid to stay on the wall, and between the wall's bottom and its ceiling. The
|
|
18
|
-
* bottom is the floor, or lower where the wall fills down beside a sunken floor (a garage).
|
|
25
|
+
* bottom is the floor, or lower where the wall fills down beside a sunken floor (a garage). Under
|
|
26
|
+
* a sloped top the window slides to where its span clears; `fits` is false when nowhere does.
|
|
19
27
|
*/
|
|
20
28
|
export declare function clampWindowToWall(wall: WallNode, localX: number, localY: number, width: number, height: number, nodes: Readonly<Record<AnyNodeId, AnyNode>>): {
|
|
21
29
|
clampedX: number;
|
|
22
30
|
clampedY: number;
|
|
31
|
+
fits: boolean;
|
|
23
32
|
};
|
|
24
33
|
/**
|
|
25
34
|
* The first child of the wall (door, window, or wall-mounted item) that a rectangle centred on
|
|
@@ -89,6 +98,11 @@ export declare const DEFAULT_WINDOW: {
|
|
|
89
98
|
readonly width: 1.5;
|
|
90
99
|
readonly height: 1.5;
|
|
91
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* Refuses an opening that no stretch of a sloped wall can take under its top, which the wall
|
|
103
|
+
* clamps report as `fits: false`. The editor refuses the same placement; a flat wall always fits.
|
|
104
|
+
*/
|
|
105
|
+
export declare function refuseOpeningAboveSlope(wall: WallNode, nodes: Readonly<Record<AnyNodeId, AnyNode>>, kind: 'door' | 'window', width: number, height: number): never;
|
|
92
106
|
/**
|
|
93
107
|
* The sill that centres a window of `height` vertically on the lowest of `walls`, or 0 when it is
|
|
94
108
|
* taller than they are. What a window with no sill given takes, on every agent surface.
|
|
@@ -143,8 +157,8 @@ export declare function planWallOpening(nodes: Nodes, input: WallOpeningInput):
|
|
|
143
157
|
fromIds: string[];
|
|
144
158
|
} | undefined;
|
|
145
159
|
} | undefined;
|
|
146
|
-
id: `
|
|
147
|
-
type: "
|
|
160
|
+
id: `door_${string}`;
|
|
161
|
+
type: "door";
|
|
148
162
|
material?: {
|
|
149
163
|
id?: string | undefined;
|
|
150
164
|
preset?: "brick" | "concrete" | "custom" | "glass" | "marble" | "metal" | "plaster" | "tile" | "white" | "wood" | undefined;
|
|
@@ -288,12 +302,14 @@ export declare function planWallOpening(nodes: Nodes, input: WallOpeningInput):
|
|
|
288
302
|
verticalAnchor?: "floor" | "wall" | undefined;
|
|
289
303
|
floorThresholdVersion: 0 | 1;
|
|
290
304
|
wallId?: string | undefined;
|
|
291
|
-
dormerId?: string | undefined;
|
|
292
|
-
dormerFace?: "back" | "front" | "left" | "right" | undefined;
|
|
293
305
|
roofSegmentId?: string | undefined;
|
|
294
306
|
roofFace?: "back" | "front" | "left" | "right" | undefined;
|
|
295
307
|
width: number;
|
|
296
308
|
height: number;
|
|
309
|
+
sidelightLeft?: number | undefined;
|
|
310
|
+
sidelightRight?: number | undefined;
|
|
311
|
+
transomHeight?: number | undefined;
|
|
312
|
+
slidingStyle?: "bypass" | "patio" | undefined;
|
|
297
313
|
mark?: string | undefined;
|
|
298
314
|
constructionType: "framed" | "masonry";
|
|
299
315
|
dimensionReference: "finish-opening" | "masonry-opening" | "nominal" | "rough-opening";
|
|
@@ -303,51 +319,48 @@ export declare function planWallOpening(nodes: Nodes, input: WallOpeningInput):
|
|
|
303
319
|
masonryOpeningHeight?: number | undefined;
|
|
304
320
|
finishOpeningWidth?: number | undefined;
|
|
305
321
|
finishOpeningHeight?: number | undefined;
|
|
306
|
-
|
|
307
|
-
|
|
322
|
+
doorCategory: "garage" | "interior";
|
|
323
|
+
doorType: "barn" | "double" | "folding" | "french" | "garage-rollup" | "garage-sectional" | "garage-tiltup" | "hinged" | "pocket" | "sliding";
|
|
324
|
+
leafCount: 1 | 2 | 3 | 4 | 6 | 8;
|
|
308
325
|
operationState: number;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
hingesSide: "left" | "right";
|
|
326
|
+
slideDirection: "left" | "right";
|
|
327
|
+
trackStyle: "none" | "overhead" | "pocket" | "visible";
|
|
328
|
+
garagePanelCount: number;
|
|
329
|
+
openingKind: "door" | "opening";
|
|
314
330
|
openingShape: "arch" | "rectangle" | "rounded";
|
|
315
331
|
openingRadiusMode: "all" | "individual";
|
|
316
|
-
|
|
332
|
+
openingTopRadii: [number, number];
|
|
317
333
|
cornerRadius: number;
|
|
318
334
|
archHeight: number;
|
|
319
335
|
openingRevealRadius: number;
|
|
320
336
|
frameThickness: number;
|
|
321
337
|
frameDepth?: number | undefined;
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
columnRatios: number[];
|
|
325
|
-
rowRatios: number[];
|
|
326
|
-
columnDividerThickness: number;
|
|
327
|
-
rowDividerThickness: number;
|
|
328
|
-
corner?: {
|
|
329
|
-
end: "end" | "start";
|
|
330
|
-
partnerId: string;
|
|
331
|
-
post: "none" | "post";
|
|
332
|
-
} | undefined;
|
|
333
|
-
sill: boolean;
|
|
334
|
-
sillDepth: number;
|
|
335
|
-
sillThickness: number;
|
|
336
|
-
sillOverhang?: number | undefined;
|
|
337
|
-
sillInterior?: boolean | undefined;
|
|
338
|
-
sillInteriorDepth?: number | undefined;
|
|
339
|
-
sillInteriorThickness?: number | undefined;
|
|
340
|
-
sillInteriorOverhang?: number | undefined;
|
|
341
|
-
shutters?: "board-batten" | "louvered" | "none" | "panel" | undefined;
|
|
342
|
-
shutterWidth?: number | undefined;
|
|
343
|
-
shutterOpen?: number | undefined;
|
|
344
|
-
shutterSides?: "both" | "left" | "right" | undefined;
|
|
345
|
-
rollerShutter?: "box" | "concealed" | "none" | undefined;
|
|
346
|
-
rollerShutterBoxHeight?: number | undefined;
|
|
347
|
-
rollerShutterOpen?: number | undefined;
|
|
338
|
+
threshold: boolean;
|
|
339
|
+
thresholdHeight: number;
|
|
348
340
|
casingFaceA?: boolean | undefined;
|
|
349
341
|
casingFaceB?: boolean | undefined;
|
|
350
342
|
casingWidth?: number | undefined;
|
|
343
|
+
hingesSide: "left" | "right";
|
|
344
|
+
swingDirection: "inward" | "outward";
|
|
345
|
+
swingAngle: number;
|
|
346
|
+
segments: {
|
|
347
|
+
type: "empty" | "glass" | "panel";
|
|
348
|
+
heightRatio: number;
|
|
349
|
+
columnRatios: number[];
|
|
350
|
+
dividerThickness: number;
|
|
351
|
+
panelDepth: number;
|
|
352
|
+
panelInset: number;
|
|
353
|
+
}[];
|
|
354
|
+
handle: boolean;
|
|
355
|
+
handleStyle?: "bar" | "knob" | "lever" | "lever-curved" | "plate" | undefined;
|
|
356
|
+
handleHeight: number;
|
|
357
|
+
handleSide: "left" | "right";
|
|
358
|
+
contentPadding: [number, number];
|
|
359
|
+
doorCloser: boolean;
|
|
360
|
+
panicBar: boolean;
|
|
361
|
+
panicBarStyle: "crossbar" | "touchbar";
|
|
362
|
+
panicBarRods: boolean;
|
|
363
|
+
panicBarHeight: number;
|
|
351
364
|
} | {
|
|
352
365
|
object: "node";
|
|
353
366
|
name?: string | undefined;
|
|
@@ -372,8 +385,8 @@ export declare function planWallOpening(nodes: Nodes, input: WallOpeningInput):
|
|
|
372
385
|
fromIds: string[];
|
|
373
386
|
} | undefined;
|
|
374
387
|
} | undefined;
|
|
375
|
-
id: `
|
|
376
|
-
type: "
|
|
388
|
+
id: `window_${string}`;
|
|
389
|
+
type: "window";
|
|
377
390
|
material?: {
|
|
378
391
|
id?: string | undefined;
|
|
379
392
|
preset?: "brick" | "concrete" | "custom" | "glass" | "marble" | "metal" | "plaster" | "tile" | "white" | "wood" | undefined;
|
|
@@ -517,14 +530,12 @@ export declare function planWallOpening(nodes: Nodes, input: WallOpeningInput):
|
|
|
517
530
|
verticalAnchor?: "floor" | "wall" | undefined;
|
|
518
531
|
floorThresholdVersion: 0 | 1;
|
|
519
532
|
wallId?: string | undefined;
|
|
533
|
+
dormerId?: string | undefined;
|
|
534
|
+
dormerFace?: "back" | "front" | "left" | "right" | undefined;
|
|
520
535
|
roofSegmentId?: string | undefined;
|
|
521
536
|
roofFace?: "back" | "front" | "left" | "right" | undefined;
|
|
522
537
|
width: number;
|
|
523
538
|
height: number;
|
|
524
|
-
sidelightLeft?: number | undefined;
|
|
525
|
-
sidelightRight?: number | undefined;
|
|
526
|
-
transomHeight?: number | undefined;
|
|
527
|
-
slidingStyle?: "bypass" | "patio" | undefined;
|
|
528
539
|
mark?: string | undefined;
|
|
529
540
|
constructionType: "framed" | "masonry";
|
|
530
541
|
dimensionReference: "finish-opening" | "masonry-opening" | "nominal" | "rough-opening";
|
|
@@ -534,48 +545,51 @@ export declare function planWallOpening(nodes: Nodes, input: WallOpeningInput):
|
|
|
534
545
|
masonryOpeningHeight?: number | undefined;
|
|
535
546
|
finishOpeningWidth?: number | undefined;
|
|
536
547
|
finishOpeningHeight?: number | undefined;
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
leafCount: 1 | 2 | 3 | 4 | 6 | 8;
|
|
548
|
+
openingKind: "opening" | "window";
|
|
549
|
+
windowType: "awning" | "bay" | "bow" | "casement" | "double-hung" | "fixed" | "hopper" | "louvered" | "single-hung" | "sliding" | "tilt-turn";
|
|
540
550
|
operationState: number;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
551
|
+
openingDirection?: "inward" | "outward" | undefined;
|
|
552
|
+
tiltTurnMode?: "tilt" | "turn" | undefined;
|
|
553
|
+
awningDirection: "down" | "up";
|
|
554
|
+
casementStyle: "french" | "single";
|
|
555
|
+
hingesSide: "left" | "right";
|
|
545
556
|
openingShape: "arch" | "rectangle" | "rounded";
|
|
546
557
|
openingRadiusMode: "all" | "individual";
|
|
547
|
-
|
|
558
|
+
openingCornerRadii: [number, number, number, number];
|
|
548
559
|
cornerRadius: number;
|
|
549
560
|
archHeight: number;
|
|
550
561
|
openingRevealRadius: number;
|
|
551
562
|
frameThickness: number;
|
|
552
563
|
frameDepth?: number | undefined;
|
|
553
|
-
|
|
554
|
-
|
|
564
|
+
windowHandle?: boolean | undefined;
|
|
565
|
+
sashGrid?: boolean | undefined;
|
|
566
|
+
columnRatios: number[];
|
|
567
|
+
rowRatios: number[];
|
|
568
|
+
columnDividerThickness: number;
|
|
569
|
+
rowDividerThickness: number;
|
|
570
|
+
corner?: {
|
|
571
|
+
end: "end" | "start";
|
|
572
|
+
partnerId: string;
|
|
573
|
+
post: "none" | "post";
|
|
574
|
+
} | undefined;
|
|
575
|
+
sill: boolean;
|
|
576
|
+
sillDepth: number;
|
|
577
|
+
sillThickness: number;
|
|
578
|
+
sillOverhang?: number | undefined;
|
|
579
|
+
sillInterior?: boolean | undefined;
|
|
580
|
+
sillInteriorDepth?: number | undefined;
|
|
581
|
+
sillInteriorThickness?: number | undefined;
|
|
582
|
+
sillInteriorOverhang?: number | undefined;
|
|
583
|
+
shutters?: "board-batten" | "louvered" | "none" | "panel" | undefined;
|
|
584
|
+
shutterWidth?: number | undefined;
|
|
585
|
+
shutterOpen?: number | undefined;
|
|
586
|
+
shutterSides?: "both" | "left" | "right" | undefined;
|
|
587
|
+
rollerShutter?: "box" | "concealed" | "none" | undefined;
|
|
588
|
+
rollerShutterBoxHeight?: number | undefined;
|
|
589
|
+
rollerShutterOpen?: number | undefined;
|
|
555
590
|
casingFaceA?: boolean | undefined;
|
|
556
591
|
casingFaceB?: boolean | undefined;
|
|
557
592
|
casingWidth?: number | undefined;
|
|
558
|
-
hingesSide: "left" | "right";
|
|
559
|
-
swingDirection: "inward" | "outward";
|
|
560
|
-
swingAngle: number;
|
|
561
|
-
segments: {
|
|
562
|
-
type: "empty" | "glass" | "panel";
|
|
563
|
-
heightRatio: number;
|
|
564
|
-
columnRatios: number[];
|
|
565
|
-
dividerThickness: number;
|
|
566
|
-
panelDepth: number;
|
|
567
|
-
panelInset: number;
|
|
568
|
-
}[];
|
|
569
|
-
handle: boolean;
|
|
570
|
-
handleStyle?: "bar" | "knob" | "lever" | "lever-curved" | "plate" | undefined;
|
|
571
|
-
handleHeight: number;
|
|
572
|
-
handleSide: "left" | "right";
|
|
573
|
-
contentPadding: [number, number];
|
|
574
|
-
doorCloser: boolean;
|
|
575
|
-
panicBar: boolean;
|
|
576
|
-
panicBarStyle: "crossbar" | "touchbar";
|
|
577
|
-
panicBarRods: boolean;
|
|
578
|
-
panicBarHeight: number;
|
|
579
593
|
};
|
|
580
594
|
wallId: string;
|
|
581
595
|
localX: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wall-openings.d.ts","sourceRoot":"","sources":["../../src/building/wall-openings.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,QAAQ,EACR,KAAK,wBAAwB,EAG7B,KAAK,QAAQ,EACb,UAAU,EACX,MAAM,WAAW,CAAA;AAElB,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"wall-openings.d.ts","sourceRoot":"","sources":["../../src/building/wall-openings.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,QAAQ,EACR,KAAK,wBAAwB,EAG7B,KAAK,QAAQ,EACb,UAAU,EACX,MAAM,WAAW,CAAA;AAElB,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,+B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E,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,YAAY,CAAC;;;EAM3F;AAED,eAAO,MAAM,cAAc,SACnB,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,UAAU,CAAC,WACrC,OAAO,GAAG,MAAM,KACxB,OAAO,GAAG,MAA0C,CAAA;AAEvD,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0QpE"}
|
|
@@ -7,9 +7,9 @@ import { wallBottomUnderOpening, wallSupportForNodes } from '../lib/opening-floo
|
|
|
7
7
|
import { DoorNode, getScaledDimensions, WindowNode, } from '../schema/index.js';
|
|
8
8
|
import { getCurtainWallConfig } from '../schema/nodes/curtain-wall.js';
|
|
9
9
|
import { isRailingWall, railingOpeningFields } from '../schema/nodes/railing-wall.js';
|
|
10
|
-
import { getWallTop } from '../services/storey.js';
|
|
10
|
+
import { getWallTop, getWallTopOver } from '../services/storey.js';
|
|
11
11
|
import { resolveWallExteriorSide } from '../systems/wall/wall-assembly.js';
|
|
12
|
-
import { getWallCurveLength, isCurvedWall } from '../systems/wall/wall-curve.js';
|
|
12
|
+
import { getWallCurveLength, getWallStationAtChordFraction, isCurvedWall, } from '../systems/wall/wall-curve.js';
|
|
13
13
|
import { doorTypeFields, NEW_DOOR_FRAME_THICKNESS } from './door-types.js';
|
|
14
14
|
import { doorStyleLook, getWindowStyleOverrides, } from './opening-style-presets.js';
|
|
15
15
|
import { NEW_WINDOW_FRAME_THICKNESS, windowTakesStyle, windowTypeFields } from './window-types.js';
|
|
@@ -17,48 +17,86 @@ import { NEW_WINDOW_FRAME_THICKNESS, windowTakesStyle, windowTypeFields } from '
|
|
|
17
17
|
const TOUCHING = 1e-6;
|
|
18
18
|
const lengthOf = (wall) => Math.hypot(wall.end[0] - wall.start[0], wall.end[1] - wall.start[1]);
|
|
19
19
|
/**
|
|
20
|
-
* Available wall-local Y span for an opening hosted on `wall
|
|
21
|
-
* plane for plane-bound walls, stored height for explicit
|
|
22
|
-
* base, the ceiling an opening's
|
|
20
|
+
* Available wall-local Y span for an opening hosted on `wall` at chord fraction `t` (0 start,
|
|
21
|
+
* 1 end; see `getWallChordFractionAt`): the wall's resolved top (storey plane for plane-bound walls, stored height for explicit
|
|
22
|
+
* ones, sloped by `endHeightOffset`) minus the wall's elected slab base, the ceiling an opening's
|
|
23
|
+
* top edge must stay under.
|
|
23
24
|
*/
|
|
24
|
-
export function resolveWallOpeningCeiling(wall, nodes) {
|
|
25
|
+
export function resolveWallOpeningCeiling(wall, nodes, t) {
|
|
25
26
|
const support = wallSupportForNodes(wall, nodes);
|
|
26
|
-
return (getWallTop(wall, wall.parentId ?? '', nodes, support.elevation) -
|
|
27
|
+
return (getWallTop(wall, wall.parentId ?? '', nodes, support.elevation, t) -
|
|
27
28
|
support.elevation);
|
|
28
29
|
}
|
|
30
|
+
/** The lowest opening ceiling over arc-length stations `[left, right]` (see `getWallTopOver`). */
|
|
31
|
+
export function wallOpeningCeilingOver(wall, nodes, left, right) {
|
|
32
|
+
const support = wallSupportForNodes(wall, nodes);
|
|
33
|
+
return (getWallTopOver(wall, wall.parentId ?? '', nodes, support.elevation, left, right) - support.elevation);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The centres in `[min, max]` where a span `width` wide stays under a sloped top at `need`, or
|
|
37
|
+
* null when there are none. A flat top keeps the whole range: there the editor clamps and the
|
|
38
|
+
* agent path refuses an opening that is too tall, exactly as before tops could slope.
|
|
39
|
+
*/
|
|
40
|
+
function centresUnderCeiling(wall, nodes, width, need, min, max) {
|
|
41
|
+
const start = resolveWallOpeningCeiling(wall, nodes, 0);
|
|
42
|
+
const rise = resolveWallOpeningCeiling(wall, nodes, 1) - start;
|
|
43
|
+
if (Math.abs(rise) < 1e-6)
|
|
44
|
+
return [min, max];
|
|
45
|
+
if (min > max)
|
|
46
|
+
return null;
|
|
47
|
+
// The top is linear along the chord: past this station it is lower than `need`.
|
|
48
|
+
const limit = getWallStationAtChordFraction(wall, (need - start) / rise);
|
|
49
|
+
const lo = rise > 0 ? Math.max(min, limit + width / 2) : min;
|
|
50
|
+
const hi = rise > 0 ? max : Math.min(max, limit - width / 2);
|
|
51
|
+
return lo > hi + 1e-4 ? null : [lo, Math.max(lo, hi)];
|
|
52
|
+
}
|
|
29
53
|
/** A curtain wall keeps its perimeter frame clear of openings. */
|
|
30
54
|
const openingMargin = (wall) => wall.wallType === 'curtain' ? getCurtainWallConfig(wall).perimeterWidth : 0;
|
|
31
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* A door's centre: slid along the wall to stay on it, standing on the floor, and under a sloped
|
|
57
|
+
* top. `fits` is false when no position along the wall clears the door.
|
|
58
|
+
*/
|
|
32
59
|
export function clampDoorToWall(wall, localX, width, height, door, nodes = {}) {
|
|
33
60
|
const margin = openingMargin(wall);
|
|
34
61
|
const length = getWallCurveLength(wall);
|
|
35
62
|
const size = getDoorOpeningSize({ ...door, width, height });
|
|
36
63
|
const offset = size.leafOffsetX * openingHostFacing(door ?? {});
|
|
37
|
-
const
|
|
38
|
-
|
|
64
|
+
const min = margin + size.width / 2;
|
|
65
|
+
const max = length - margin - size.width / 2;
|
|
66
|
+
const fit = centresUnderCeiling(wall, nodes, size.width, height + margin, min, max);
|
|
67
|
+
const [lo, hi] = fit ?? [min, max];
|
|
68
|
+
const centre = Math.max(lo, Math.min(hi, localX - offset));
|
|
39
69
|
const transomHeight = door?.transomHeight !== undefined && size.height > height
|
|
40
|
-
? Math.min(door.transomHeight, Math.max(0,
|
|
70
|
+
? Math.min(door.transomHeight, Math.max(0, wallOpeningCeilingOver(wall, nodes, centre - size.width / 2, centre + size.width / 2) -
|
|
71
|
+
margin -
|
|
72
|
+
height))
|
|
41
73
|
: undefined;
|
|
42
74
|
return {
|
|
43
|
-
clampedX,
|
|
75
|
+
clampedX: centre + offset,
|
|
44
76
|
clampedY: height / 2,
|
|
77
|
+
fits: fit !== null,
|
|
45
78
|
...(transomHeight === undefined ? {} : { transomHeight }),
|
|
46
79
|
};
|
|
47
80
|
}
|
|
48
81
|
/**
|
|
49
82
|
* A window's centre: slid to stay on the wall, and between the wall's bottom and its ceiling. The
|
|
50
|
-
* bottom is the floor, or lower where the wall fills down beside a sunken floor (a garage).
|
|
83
|
+
* bottom is the floor, or lower where the wall fills down beside a sunken floor (a garage). Under
|
|
84
|
+
* a sloped top the window slides to where its span clears; `fits` is false when nowhere does.
|
|
51
85
|
*/
|
|
52
86
|
export function clampWindowToWall(wall, localX, localY, width, height, nodes) {
|
|
53
|
-
const ceiling = resolveWallOpeningCeiling(wall, nodes);
|
|
54
87
|
const margin = openingMargin(wall);
|
|
55
88
|
const length = getWallCurveLength(wall);
|
|
56
|
-
const
|
|
89
|
+
const min = margin + width / 2;
|
|
90
|
+
const max = length - margin - width / 2;
|
|
91
|
+
const fit = centresUnderCeiling(wall, nodes, width, height + 2 * margin, min, max);
|
|
92
|
+
const [lo, hi] = fit ?? [min, max];
|
|
93
|
+
const clampedX = Math.max(lo, Math.min(hi, localX));
|
|
94
|
+
const ceiling = wallOpeningCeilingOver(wall, nodes, clampedX - width / 2, clampedX + width / 2);
|
|
57
95
|
const support = wallSupportForNodes(wall, nodes);
|
|
58
96
|
const floor = Math.min(0, wallBottomUnderOpening(wall, { position: [clampedX, 0, 0], width }, support) -
|
|
59
97
|
support.elevation);
|
|
60
98
|
const clampedY = Math.max(floor + margin + height / 2, Math.min(ceiling - margin - height / 2, localY));
|
|
61
|
-
return { clampedX, clampedY };
|
|
99
|
+
return { clampedX, clampedY, fits: fit !== null };
|
|
62
100
|
}
|
|
63
101
|
/**
|
|
64
102
|
* The first child of the wall (door, window, or wall-mounted item) that a rectangle centred on
|
|
@@ -127,12 +165,20 @@ const DEFAULTS = {
|
|
|
127
165
|
window: DEFAULT_WINDOW,
|
|
128
166
|
};
|
|
129
167
|
const metres = (value) => `${value.toFixed(2)} m`;
|
|
168
|
+
/**
|
|
169
|
+
* Refuses an opening that no stretch of a sloped wall can take under its top, which the wall
|
|
170
|
+
* clamps report as `fits: false`. The editor refuses the same placement; a flat wall always fits.
|
|
171
|
+
*/
|
|
172
|
+
export function refuseOpeningAboveSlope(wall, nodes, kind, width, height) {
|
|
173
|
+
const wallHeight = Math.max(resolveWallOpeningCeiling(wall, nodes, 0), resolveWallOpeningCeiling(wall, nodes, 1));
|
|
174
|
+
refuse('wall_too_low', `Wall ${wall.id} slopes to at most ${metres(wallHeight)}, and nowhere along it does a ${metres(width)} wide, ${metres(height)} tall ${kind} fit under its top. Use a smaller ${kind}, or raise the wall's low end.`, { wallId: wall.id, wallHeight, height });
|
|
175
|
+
}
|
|
130
176
|
/**
|
|
131
177
|
* The sill that centres a window of `height` vertically on the lowest of `walls`, or 0 when it is
|
|
132
178
|
* taller than they are. What a window with no sill given takes, on every agent surface.
|
|
133
179
|
*/
|
|
134
180
|
export function centredWindowSill(walls, height, nodes) {
|
|
135
|
-
const ceiling = Math.min(...walls.map((wall) =>
|
|
181
|
+
const ceiling = Math.min(...walls.map((wall) => wallOpeningCeilingOver(wall, nodes, 0, getWallCurveLength(wall))));
|
|
136
182
|
return Math.max(0, (ceiling - height) / 2);
|
|
137
183
|
}
|
|
138
184
|
/**
|
|
@@ -217,11 +263,6 @@ export function planWallOpening(nodes, input) {
|
|
|
217
263
|
const wallLength = lengthOf(wall);
|
|
218
264
|
if (wallLength < size.width)
|
|
219
265
|
refuse('wall_too_short', `Wall ${wallId} is ${metres(wallLength)} long, too short for a ${metres(width)} ${kind}.`, { wallId, wallLength, width });
|
|
220
|
-
if (kind === 'door') {
|
|
221
|
-
const wallHeight = resolveWallOpeningCeiling(wall, nodes) - openingMargin(wall);
|
|
222
|
-
if (size.height > wallHeight + TOUCHING)
|
|
223
|
-
refuse('wall_too_low', `Wall ${wallId} is ${metres(wallHeight)} high, too low for a ${metres(size.height)} door.`, { wallId, wallHeight, height: size.height });
|
|
224
|
-
}
|
|
225
266
|
const rawX = along * wallLength;
|
|
226
267
|
// A window with no sill given is centred on its wall, taller than the wall or not: the clamp
|
|
227
268
|
// below stands one that is too tall on the floor and reports it clamped. A door stands on the
|
|
@@ -233,10 +274,18 @@ export function planWallOpening(nodes, input) {
|
|
|
233
274
|
? sill + height / 2
|
|
234
275
|
: kind === 'door'
|
|
235
276
|
? height / 2
|
|
236
|
-
:
|
|
237
|
-
const { clampedX, clampedY } = onFloor
|
|
238
|
-
? clampDoorToWall(wall, rawX, size.width, size.height)
|
|
277
|
+
: wallOpeningCeilingOver(wall, nodes, rawX - size.width / 2, rawX + size.width / 2) / 2;
|
|
278
|
+
const { clampedX, clampedY, fits } = onFloor
|
|
279
|
+
? clampDoorToWall(wall, rawX, size.width, size.height, undefined, nodes)
|
|
239
280
|
: clampWindowToWall(wall, rawX, rawY + (size.height - height) / 2, size.width, size.height, nodes);
|
|
281
|
+
if (!fits)
|
|
282
|
+
refuseOpeningAboveSlope(wall, nodes, kind, size.width, size.height);
|
|
283
|
+
// Checked where the clamp put the door: under a sloped top it may have slid to the high end.
|
|
284
|
+
if (kind === 'door') {
|
|
285
|
+
const wallHeight = wallOpeningCeilingOver(wall, nodes, clampedX - size.width / 2, clampedX + size.width / 2) - openingMargin(wall);
|
|
286
|
+
if (size.height > wallHeight + TOUCHING)
|
|
287
|
+
refuse('wall_too_low', `Wall ${wallId} is ${metres(wallHeight)} high, too low for a ${metres(size.height)} door.`, { wallId, wallHeight, height: size.height });
|
|
288
|
+
}
|
|
240
289
|
if (!input.force) {
|
|
241
290
|
const blocking = findWallChildOverlap(wallId, nodes, clampedX, clampedY, size.width, size.height);
|
|
242
291
|
if (blocking) {
|