@pascal-app/core 1.0.0 → 1.0.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/capture/index.d.ts +2 -2
- package/dist/capture/index.js +2 -2
- package/dist/capture/schema.d.ts.map +1 -1
- package/dist/capture/schema.js +2 -0
- package/dist/capture/source.d.ts +1 -1
- package/dist/capture/source.js +1 -1
- package/dist/events/bus.d.ts +6 -3
- package/dist/events/bus.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/floor-placed-elevation.d.ts +4 -4
- package/dist/hooks/spatial-grid/floor-placed-elevation.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/floor-placed-elevation.js +7 -12
- package/dist/hooks/spatial-grid/floor-placed-footprints.d.ts +4 -0
- package/dist/hooks/spatial-grid/floor-placed-footprints.d.ts.map +1 -0
- package/dist/hooks/spatial-grid/floor-placed-footprints.js +7 -0
- package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts +5 -8
- package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/spatial-grid-manager.js +23 -106
- package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts +221 -76
- package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/spatial-grid-sync.js +77 -13
- package/dist/hooks/spatial-grid/support-host-patch.d.ts +1 -1
- package/dist/hooks/spatial-grid/support-host-patch.js +6 -6
- package/dist/hooks/spatial-grid/use-spatial-query.d.ts +1 -1
- package/dist/hooks/spatial-grid/use-spatial-query.js +1 -1
- package/dist/index.d.ts +74 -72
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +71 -69
- package/dist/lib/door-operation.d.ts +1 -1
- package/dist/lib/item-polygon-overlap.d.ts +6 -0
- package/dist/lib/item-polygon-overlap.d.ts.map +1 -0
- package/dist/lib/item-polygon-overlap.js +67 -0
- package/dist/lib/level-name.d.ts +1 -1
- package/dist/lib/measurement-geometry.d.ts +4 -4
- package/dist/lib/plan-footprint.d.ts +41 -0
- package/dist/lib/plan-footprint.d.ts.map +1 -0
- package/dist/lib/plan-footprint.js +58 -0
- package/dist/lib/room-topology-index.d.ts +1 -1
- package/dist/lib/room-topology-index.js +1 -1
- package/dist/lib/selection-proxy.d.ts +1 -1
- package/dist/lib/slab-polygon.d.ts +2 -2
- package/dist/lib/slab-polygon.js +2 -2
- package/dist/lib/space-detection.d.ts +1 -1
- package/dist/lib/space-detection.d.ts.map +1 -1
- package/dist/lib/space-detection.js +16 -11
- package/dist/lib/terrain-brush.d.ts +1 -1
- package/dist/lib/terrain-brush.js +1 -1
- package/dist/lib/terrain-codec.d.ts +2 -2
- package/dist/lib/terrain-codec.js +1 -1
- package/dist/lib/terrain-raycast.d.ts +1 -1
- package/dist/lib/terrain-raycast.js +1 -1
- package/dist/lib/terrain-source.d.ts +3 -3
- package/dist/lib/terrain-source.js +3 -3
- package/dist/lib/terrain-support.d.ts +1 -1
- package/dist/lib/terrain-support.js +3 -3
- package/dist/lib/unit-containment.d.ts +19 -0
- package/dist/lib/unit-containment.d.ts.map +1 -0
- package/dist/lib/unit-containment.js +158 -0
- package/dist/lib/unit-report.d.ts +19 -0
- package/dist/lib/unit-report.d.ts.map +1 -0
- package/dist/lib/unit-report.js +36 -0
- package/dist/lib/wall-distance.d.ts +2 -2
- package/dist/lib/wall-distance.js +1 -1
- package/dist/lib/zone-quantities.d.ts +1 -1
- package/dist/lib/zone-quantities.js +7 -7
- package/dist/material-library.d.ts +1 -1
- package/dist/material-library.js +1 -1
- package/dist/procedural-items/fixtures.d.ts +261 -0
- package/dist/procedural-items/fixtures.d.ts.map +1 -0
- package/dist/procedural-items/fixtures.js +349 -0
- package/dist/procedural-items/index.d.ts +10 -0
- package/dist/procedural-items/index.d.ts.map +1 -0
- package/dist/procedural-items/index.js +9 -0
- package/dist/procedural-items/integration.d.ts +92 -0
- package/dist/procedural-items/integration.d.ts.map +1 -0
- package/dist/procedural-items/integration.js +19 -0
- package/dist/procedural-items/library-colors.d.ts +56 -0
- package/dist/procedural-items/library-colors.d.ts.map +1 -0
- package/dist/procedural-items/library-colors.js +84 -0
- package/dist/procedural-items/materials.d.ts +5 -0
- package/dist/procedural-items/materials.d.ts.map +1 -0
- package/dist/procedural-items/materials.js +47 -0
- package/dist/procedural-items/node.d.ts +280 -0
- package/dist/procedural-items/node.d.ts.map +1 -0
- package/dist/procedural-items/node.js +71 -0
- package/dist/procedural-items/placement.d.ts +7 -0
- package/dist/procedural-items/placement.d.ts.map +1 -0
- package/dist/procedural-items/placement.js +48 -0
- package/dist/procedural-items/query.d.ts +50 -0
- package/dist/procedural-items/query.d.ts.map +1 -0
- package/dist/procedural-items/query.js +298 -0
- package/dist/procedural-items/recipe.d.ts +144 -0
- package/dist/procedural-items/recipe.d.ts.map +1 -0
- package/dist/procedural-items/recipe.js +372 -0
- package/dist/procedural-items/spatial.d.ts +19 -0
- package/dist/procedural-items/spatial.d.ts.map +1 -0
- package/dist/procedural-items/spatial.js +39 -0
- package/dist/registry/__bench__/relations-resolver.bench.js +2 -2
- package/dist/registry/handles.d.ts +12 -4
- package/dist/registry/handles.d.ts.map +1 -1
- package/dist/registry/index.d.ts +6 -6
- package/dist/registry/index.js +4 -4
- package/dist/registry/registry.d.ts +1 -1
- package/dist/registry/relations-resolver.d.ts +2 -2
- package/dist/registry/relations-resolver.js +1 -1
- package/dist/registry/scene-api.d.ts +2 -2
- package/dist/registry/scene-api.js +2 -2
- package/dist/registry/subtree.d.ts +1 -1
- package/dist/registry/subtree.js +2 -2
- package/dist/registry/types.d.ts +21 -9
- package/dist/registry/types.d.ts.map +1 -1
- package/dist/registry/use-registry-version.js +1 -1
- package/dist/registry/validate-relations.d.ts +4 -0
- package/dist/registry/validate-relations.d.ts.map +1 -0
- package/dist/registry/validate-relations.js +22 -0
- package/dist/schema/__bench__/node-parsers.bench.js +3 -3
- package/dist/schema/__fixtures__/node-fixtures.d.ts +1 -1
- package/dist/schema/__fixtures__/node-fixtures.d.ts.map +1 -1
- package/dist/schema/__fixtures__/node-fixtures.js +4 -2
- package/dist/schema/base.js +1 -1
- package/dist/schema/collections.d.ts +1 -1
- package/dist/schema/collections.js +1 -1
- package/dist/schema/compiled-node-parsers.d.ts +1 -1
- package/dist/schema/compiled-node-parsers.js +1 -1
- package/dist/schema/index.d.ts +73 -70
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +64 -61
- package/dist/schema/material.d.ts +1 -1
- package/dist/schema/material.js +1 -1
- package/dist/schema/nodes/automatic-downspout.d.ts +4 -4
- package/dist/schema/nodes/automatic-downspout.js +5 -5
- package/dist/schema/nodes/block.d.ts +1 -1
- package/dist/schema/nodes/block.d.ts.map +1 -1
- package/dist/schema/nodes/block.js +3 -4
- package/dist/schema/nodes/box-vent.js +2 -2
- package/dist/schema/nodes/building.d.ts +1 -1
- package/dist/schema/nodes/building.d.ts.map +1 -1
- package/dist/schema/nodes/building.js +8 -5
- package/dist/schema/nodes/cabinet.d.ts +2 -2
- package/dist/schema/nodes/cabinet.js +4 -4
- package/dist/schema/nodes/ceiling.d.ts +1 -1
- package/dist/schema/nodes/ceiling.js +5 -5
- package/dist/schema/nodes/chimney.js +2 -2
- package/dist/schema/nodes/column.d.ts +1 -0
- package/dist/schema/nodes/column.d.ts.map +1 -1
- package/dist/schema/nodes/column.js +3 -2
- package/dist/schema/nodes/construction-dimension.d.ts +3 -3
- package/dist/schema/nodes/construction-dimension.js +2 -2
- package/dist/schema/nodes/cupola.d.ts +1 -1
- package/dist/schema/nodes/cupola.js +2 -2
- package/dist/schema/nodes/door.js +2 -2
- package/dist/schema/nodes/dormer.d.ts +3 -3
- package/dist/schema/nodes/dormer.js +4 -4
- package/dist/schema/nodes/downspout.js +2 -2
- package/dist/schema/nodes/duct-fitting.js +1 -1
- package/dist/schema/nodes/duct-segment.js +2 -2
- package/dist/schema/nodes/duct-terminal.js +1 -1
- package/dist/schema/nodes/elevator.js +2 -2
- package/dist/schema/nodes/eyebrow-vent.js +2 -2
- package/dist/schema/nodes/fence.js +2 -2
- package/dist/schema/nodes/guide.js +2 -2
- package/dist/schema/nodes/gutter.d.ts +1 -1
- package/dist/schema/nodes/gutter.js +4 -4
- package/dist/schema/nodes/hvac-equipment.js +1 -1
- package/dist/schema/nodes/imported-mesh.d.ts +40 -0
- package/dist/schema/nodes/imported-mesh.d.ts.map +1 -0
- package/dist/schema/nodes/imported-mesh.js +27 -0
- package/dist/schema/nodes/item.d.ts +3 -3
- package/dist/schema/nodes/item.js +3 -3
- package/dist/schema/nodes/lean-to-extension.js +4 -4
- package/dist/schema/nodes/level.d.ts +1 -1
- package/dist/schema/nodes/level.d.ts.map +1 -1
- package/dist/schema/nodes/level.js +1 -1
- package/dist/schema/nodes/lineset.js +1 -1
- package/dist/schema/nodes/liquid-line.js +1 -1
- package/dist/schema/nodes/measurement.js +2 -2
- package/dist/schema/nodes/pipe-fitting.d.ts +1 -1
- package/dist/schema/nodes/pipe-fitting.js +1 -1
- package/dist/schema/nodes/pipe-segment.d.ts +1 -1
- package/dist/schema/nodes/pipe-segment.js +2 -2
- package/dist/schema/nodes/pipe-trap.d.ts +1 -1
- package/dist/schema/nodes/pipe-trap.js +1 -1
- package/dist/schema/nodes/ridge-vent.d.ts +1 -1
- package/dist/schema/nodes/ridge-vent.js +3 -3
- package/dist/schema/nodes/roof-segment-shape.d.ts +1 -1
- package/dist/schema/nodes/roof-segment-shape.js +1 -1
- package/dist/schema/nodes/roof-segment-walls.d.ts +1 -1
- package/dist/schema/nodes/roof-segment-walls.js +1 -1
- package/dist/schema/nodes/roof-segment.d.ts +2 -2
- package/dist/schema/nodes/roof-segment.js +2 -2
- package/dist/schema/nodes/roof.d.ts +1 -1
- package/dist/schema/nodes/roof.js +3 -3
- package/dist/schema/nodes/scan.js +3 -3
- package/dist/schema/nodes/shelf.d.ts +1 -1
- package/dist/schema/nodes/shelf.d.ts.map +1 -1
- package/dist/schema/nodes/shelf.js +3 -4
- package/dist/schema/nodes/site.js +2 -2
- package/dist/schema/nodes/skylight.d.ts +4 -4
- package/dist/schema/nodes/skylight.js +2 -2
- package/dist/schema/nodes/slab.js +3 -3
- package/dist/schema/nodes/solar-panel.js +3 -3
- package/dist/schema/nodes/spawn.js +1 -1
- package/dist/schema/nodes/stair-segment.js +2 -2
- package/dist/schema/nodes/stair.d.ts +1 -1
- package/dist/schema/nodes/stair.js +3 -3
- package/dist/schema/nodes/structural-grid.js +1 -1
- package/dist/schema/nodes/turbine-vent.d.ts +1 -1
- package/dist/schema/nodes/turbine-vent.js +2 -2
- package/dist/schema/nodes/unit.d.ts +33 -0
- package/dist/schema/nodes/unit.d.ts.map +1 -0
- package/dist/schema/nodes/unit.js +13 -0
- package/dist/schema/nodes/wall.d.ts +2 -2
- package/dist/schema/nodes/wall.d.ts.map +1 -1
- package/dist/schema/nodes/wall.js +7 -6
- package/dist/schema/nodes/window.js +2 -2
- package/dist/schema/nodes/zone.js +1 -1
- package/dist/schema/scene-material.js +2 -2
- package/dist/schema/types.d.ts +341 -19
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/schema/types.js +56 -49
- package/dist/services/alignment-anchors.d.ts +6 -11
- package/dist/services/alignment-anchors.d.ts.map +1 -1
- package/dist/services/alignment-anchors.js +7 -34
- package/dist/services/drag-session.d.ts +4 -4
- package/dist/services/drag-session.js +1 -1
- package/dist/services/hosting.d.ts +2 -8
- package/dist/services/hosting.d.ts.map +1 -1
- package/dist/services/hosting.js +2 -12
- package/dist/services/index.d.ts +16 -13
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +16 -13
- package/dist/services/level-height.d.ts +2 -2
- package/dist/services/level-height.js +3 -3
- package/dist/services/movement.d.ts +3 -3
- package/dist/services/movement.js +2 -2
- package/dist/services/port-connectivity.d.ts +1 -1
- package/dist/services/port-connectivity.js +1 -1
- package/dist/services/riser-diagram.d.ts +1 -1
- package/dist/services/shelf-board.d.ts +5 -0
- package/dist/services/shelf-board.d.ts.map +1 -0
- package/dist/services/shelf-board.js +15 -0
- package/dist/services/storey.d.ts +2 -2
- package/dist/services/storey.js +2 -2
- package/dist/services/surface-hosting-procedural-parity.fixtures.d.ts +13 -0
- package/dist/services/surface-hosting-procedural-parity.fixtures.d.ts.map +1 -0
- package/dist/services/surface-hosting-procedural-parity.fixtures.js +4691 -0
- package/dist/services/surface-hosting-shelf-parity.fixtures.d.ts +1060 -0
- package/dist/services/surface-hosting-shelf-parity.fixtures.d.ts.map +1 -0
- package/dist/services/surface-hosting-shelf-parity.fixtures.js +3127 -0
- package/dist/services/surface-hosting.d.ts +88 -0
- package/dist/services/surface-hosting.d.ts.map +1 -0
- package/dist/services/surface-hosting.js +268 -0
- package/dist/services/surface-region.d.ts +8 -0
- package/dist/services/surface-region.d.ts.map +1 -0
- package/dist/services/surface-region.js +44 -0
- package/dist/services/system-graph.d.ts +2 -2
- package/dist/services/system-graph.js +2 -2
- package/dist/services/validate-dwv.d.ts +1 -1
- package/dist/services/validate-dwv.js +1 -1
- package/dist/store/actions/node-actions.d.ts +2 -2
- package/dist/store/actions/node-actions.d.ts.map +1 -1
- package/dist/store/actions/node-actions.js +48 -9
- package/dist/store/history-control.d.ts +3 -3
- package/dist/store/history-invalidation.d.ts +1 -1
- package/dist/store/history-invalidation.js +1 -1
- package/dist/store/use-interactive.d.ts +2 -2
- package/dist/store/use-live-terrain.d.ts +1 -1
- package/dist/store/use-scene.d.ts +4 -4
- package/dist/store/use-scene.d.ts.map +1 -1
- package/dist/store/use-scene.js +37 -31
- package/dist/systems/elevator/elevator-dispatch.d.ts +2 -2
- package/dist/systems/elevator/elevator-dispatch.js +1 -1
- package/dist/systems/elevator/elevator-geometry.d.ts +1 -1
- package/dist/systems/elevator/elevator-opening-sync.d.ts +1 -1
- package/dist/systems/elevator/elevator-opening-sync.js +2 -2
- package/dist/systems/elevator/elevator-opening-system.js +3 -3
- package/dist/systems/elevator/elevator-runtime.d.ts +3 -3
- package/dist/systems/elevator/elevator-runtime.js +3 -3
- package/dist/systems/elevator/elevator-service.d.ts +1 -1
- package/dist/systems/elevator/elevator-service.js +1 -1
- package/dist/systems/fence/fence-centerline.d.ts +2 -2
- package/dist/systems/fence/fence-centerline.js +2 -2
- package/dist/systems/fence/fence-spline.d.ts +2 -2
- package/dist/systems/roof/roof-elevation-system.js +3 -3
- package/dist/systems/roof/roof-elevation.d.ts +2 -2
- package/dist/systems/roof/roof-elevation.js +6 -6
- package/dist/systems/roof/roof-footprint.d.ts +1 -1
- package/dist/systems/roof/roof-footprint.js +3 -3
- package/dist/systems/slab/slab-placement.d.ts +1 -1
- package/dist/systems/slab/slab-support.d.ts +1 -1
- package/dist/systems/slab/slab-support.js +4 -4
- package/dist/systems/stair/stair-flight.d.ts +2 -2
- package/dist/systems/stair/stair-flight.js +2 -2
- package/dist/systems/stair/stair-footprint.d.ts +1 -1
- package/dist/systems/stair/stair-opening-preview.d.ts +206 -79
- package/dist/systems/stair/stair-opening-preview.d.ts.map +1 -1
- package/dist/systems/stair/stair-opening-preview.js +2 -2
- package/dist/systems/stair/stair-opening-sync.d.ts +1 -1
- package/dist/systems/stair/stair-opening-sync.js +6 -6
- package/dist/systems/stair/stair-opening-system.js +8 -8
- package/dist/systems/stair/stair-rise.d.ts +1 -1
- package/dist/systems/stair/stair-rise.js +3 -3
- package/dist/systems/wall/wall-curve.d.ts +2 -2
- package/dist/systems/wall/wall-footprint.d.ts +3 -3
- package/dist/systems/wall/wall-footprint.js +3 -3
- package/dist/systems/wall/wall-mitering.d.ts +1 -1
- package/dist/systems/wall/wall-mitering.js +1 -1
- package/dist/systems/wall/wall-move.d.ts +1 -1
- package/dist/systems/wall/wall-top.d.ts +1 -1
- package/dist/systems/wall/wall-topology.d.ts +2 -2
- package/dist/systems/wall/wall-topology.js +4 -4
- package/dist/utils/clone-scene-graph.d.ts +3 -3
- package/dist/utils/clone-scene-graph.d.ts.map +1 -1
- package/dist/utils/clone-scene-graph.js +9 -3
- package/dist/utils/scene-migrations.d.ts +3 -3
- package/dist/utils/scene-migrations.js +3 -3
- package/dist/utils/vertical-scene-migration.js +5 -5
- package/dist/validation/validate-build-json.d.ts +5 -2
- package/dist/validation/validate-build-json.d.ts.map +1 -1
- package/dist/validation/validate-build-json.js +45 -4
- package/package.json +14 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-scene.d.ts","sourceRoot":"","sources":["../../src/store/use-scene.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,EAA6B,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAA;AAItF,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AA0BrE,OAAO,EAEL,aAAa,EACb,KAAK,eAAe,EACrB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAA4B,MAAM,iBAAiB,CAAA;AAQxF,OAAO,EAQL,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"use-scene.d.ts","sourceRoot":"","sources":["../../src/store/use-scene.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,EAA6B,KAAK,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAA;AAItF,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AA0BrE,OAAO,EAEL,aAAa,EACb,KAAK,eAAe,EACrB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAA4B,MAAM,iBAAiB,CAAA;AAQxF,OAAO,EAQL,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAA;AA2nC1B,MAAM,MAAM,UAAU,GAAG;IAEv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E,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG;IAC7C,WAAW,EAAE,wBAAwB,EAAE,CAAA;IACvC,WAAW,EAAE,wBAAwB,EAAE,CAAA;CACxC,CAAA;AAkRD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CA0E9E;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAM5D;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,MAAM,EAAE,OAAO,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;CACpD,CAAA;AAED,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAyBT;AAMD,wBAAgB,iBAAiB,SAWhC"}
|
package/dist/store/use-scene.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { temporal } from 'zundo';
|
|
3
3
|
import { create } from 'zustand';
|
|
4
|
-
import { parseMaterialRef, toSceneMaterialRef } from '../material-library';
|
|
5
|
-
import { getNodePluginId, isNodeKindEnabled, nodeRegistry } from '../registry/registry';
|
|
6
|
-
import { BuildingNode } from '../schema';
|
|
7
|
-
import { generateCollectionId } from '../schema/collections';
|
|
8
|
-
import { compiledNodeSchema } from '../schema/compiled-node-parsers';
|
|
9
|
-
import { DoorNode as DoorNodeSchema } from '../schema/nodes/door';
|
|
10
|
-
import { createDormerDefaultWindow, DormerNode as DormerNodeSchema, getDormerDefaultWindowFace, } from '../schema/nodes/dormer';
|
|
11
|
-
import { ElevatorNode as ElevatorNodeSchema } from '../schema/nodes/elevator';
|
|
12
|
-
import { LevelNode, normalizeLevelBaseElevation } from '../schema/nodes/level';
|
|
13
|
-
import { getPitchFromActiveRoofHeight, } from '../schema/nodes/roof-segment';
|
|
14
|
-
import { segmentPointToRoofWallFace } from '../schema/nodes/roof-segment-walls';
|
|
15
|
-
import { ShelfNode as ShelfNodeSchema } from '../schema/nodes/shelf';
|
|
16
|
-
import { SiteNode } from '../schema/nodes/site';
|
|
17
|
-
import { getEffectiveStairSurfaceMaterial, StairNode as StairNodeSchema, } from '../schema/nodes/stair';
|
|
18
|
-
import { StairSegmentNode as StairSegmentNodeSchema } from '../schema/nodes/stair-segment';
|
|
19
|
-
import { getEffectiveWallSurfaceMaterial } from '../schema/nodes/wall';
|
|
20
|
-
import { WindowNode as WindowNodeSchema } from '../schema/nodes/window';
|
|
21
|
-
import { generateSceneMaterialId, SceneMaterial, } from '../schema/scene-material';
|
|
22
|
-
import { AnyNode as AnyNodeSchema } from '../schema/types';
|
|
23
|
-
import { syncAutoElevatorOpenings } from '../systems/elevator/elevator-opening-sync';
|
|
24
|
-
import { syncAutoStairOpenings } from '../systems/stair/stair-opening-sync';
|
|
25
|
-
import { syncStairRises } from '../systems/stair/stair-rise';
|
|
26
|
-
import { healSceneNodes } from '../utils/heal-scene-graph';
|
|
27
|
-
import { removeRetiredDrawingSheetNodes } from '../utils/retired-scene-nodes';
|
|
28
|
-
import { migrateVerticalSceneNodes } from '../utils/vertical-scene-migration';
|
|
29
|
-
import * as nodeActions from './actions/node-actions';
|
|
30
|
-
import { areSceneSnapshotsEqual, getSceneHistoryPauseDepth, notifySceneCommit, pauseSceneHistory, resetSceneHistoryPauseDepth, resumeSceneHistory, runWithSceneCommitNodeIds, } from './history-control';
|
|
31
|
-
import { getHistoryDirtyNodeIds } from './history-invalidation';
|
|
32
|
-
import { invalidatePendingHydration, isHydrationNormalization, queueSceneNormalization, runSceneHydration, } from './scene-hydration';
|
|
33
|
-
import useLiveNodeOverrides from './use-live-node-overrides';
|
|
34
|
-
import useLiveTransforms from './use-live-transforms';
|
|
4
|
+
import { parseMaterialRef, toSceneMaterialRef } from '../material-library.js';
|
|
5
|
+
import { getNodePluginId, isNodeKindEnabled, nodeRegistry } from '../registry/registry.js';
|
|
6
|
+
import { BuildingNode } from '../schema/index.js';
|
|
7
|
+
import { generateCollectionId } from '../schema/collections.js';
|
|
8
|
+
import { compiledNodeSchema } from '../schema/compiled-node-parsers.js';
|
|
9
|
+
import { DoorNode as DoorNodeSchema } from '../schema/nodes/door.js';
|
|
10
|
+
import { createDormerDefaultWindow, DormerNode as DormerNodeSchema, getDormerDefaultWindowFace, } from '../schema/nodes/dormer.js';
|
|
11
|
+
import { ElevatorNode as ElevatorNodeSchema } from '../schema/nodes/elevator.js';
|
|
12
|
+
import { LevelNode, normalizeLevelBaseElevation } from '../schema/nodes/level.js';
|
|
13
|
+
import { getPitchFromActiveRoofHeight, } from '../schema/nodes/roof-segment.js';
|
|
14
|
+
import { segmentPointToRoofWallFace } from '../schema/nodes/roof-segment-walls.js';
|
|
15
|
+
import { ShelfNode as ShelfNodeSchema } from '../schema/nodes/shelf.js';
|
|
16
|
+
import { SiteNode } from '../schema/nodes/site.js';
|
|
17
|
+
import { getEffectiveStairSurfaceMaterial, StairNode as StairNodeSchema, } from '../schema/nodes/stair.js';
|
|
18
|
+
import { StairSegmentNode as StairSegmentNodeSchema } from '../schema/nodes/stair-segment.js';
|
|
19
|
+
import { getEffectiveWallSurfaceMaterial } from '../schema/nodes/wall.js';
|
|
20
|
+
import { WindowNode as WindowNodeSchema } from '../schema/nodes/window.js';
|
|
21
|
+
import { generateSceneMaterialId, SceneMaterial, } from '../schema/scene-material.js';
|
|
22
|
+
import { AnyNode as AnyNodeSchema } from '../schema/types.js';
|
|
23
|
+
import { syncAutoElevatorOpenings } from '../systems/elevator/elevator-opening-sync.js';
|
|
24
|
+
import { syncAutoStairOpenings } from '../systems/stair/stair-opening-sync.js';
|
|
25
|
+
import { syncStairRises } from '../systems/stair/stair-rise.js';
|
|
26
|
+
import { healSceneNodes } from '../utils/heal-scene-graph.js';
|
|
27
|
+
import { removeRetiredDrawingSheetNodes } from '../utils/retired-scene-nodes.js';
|
|
28
|
+
import { migrateVerticalSceneNodes } from '../utils/vertical-scene-migration.js';
|
|
29
|
+
import * as nodeActions from './actions/node-actions.js';
|
|
30
|
+
import { areSceneSnapshotsEqual, getSceneHistoryPauseDepth, notifySceneCommit, pauseSceneHistory, resetSceneHistoryPauseDepth, resumeSceneHistory, runWithSceneCommitNodeIds, } from './history-control.js';
|
|
31
|
+
import { getHistoryDirtyNodeIds } from './history-invalidation.js';
|
|
32
|
+
import { invalidatePendingHydration, isHydrationNormalization, queueSceneNormalization, runSceneHydration, } from './scene-hydration.js';
|
|
33
|
+
import useLiveNodeOverrides from './use-live-node-overrides.js';
|
|
34
|
+
import useLiveTransforms from './use-live-transforms.js';
|
|
35
35
|
function getFiniteNumber(value, fallback) {
|
|
36
36
|
return typeof value === 'number' && Number.isFinite(value) ? value : fallback;
|
|
37
37
|
}
|
|
@@ -874,6 +874,12 @@ function migrateNodes(nodes) {
|
|
|
874
874
|
children: validChildren,
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
|
+
// These kinds are not all schema-parsed on load, so defaults must also
|
|
878
|
+
// reach saved hosts that predate their children field.
|
|
879
|
+
if (['shelf', 'cabinet', 'cabinet-module', 'block', 'item', 'column'].includes(node.type) &&
|
|
880
|
+
patchedNodes[id].children === undefined) {
|
|
881
|
+
patchedNodes[id] = { ...patchedNodes[id], children: [] };
|
|
882
|
+
}
|
|
877
883
|
}
|
|
878
884
|
// Pass 2: elevator migration.
|
|
879
885
|
// migrateElevatorParent mutates the parent level's children array (removes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AnyNode, AnyNodeId } from '../../schema';
|
|
2
|
-
import type { ElevatorInteractiveState } from '../../store/use-interactive';
|
|
1
|
+
import type { AnyNode, AnyNodeId } from '../../schema/index.js';
|
|
2
|
+
import type { ElevatorInteractiveState } from '../../store/use-interactive.js';
|
|
3
3
|
type ElevatorRuntimeMap = Record<AnyNodeId, ElevatorInteractiveState>;
|
|
4
4
|
type ResolveElevatorDispatchTargetArgs = {
|
|
5
5
|
elevators: ElevatorRuntimeMap;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveElevatorServiceLevels } from './elevator-service';
|
|
1
|
+
import { resolveElevatorServiceLevels } from './elevator-service.js';
|
|
2
2
|
function getRuntimeLevelId(runtime, elevator) {
|
|
3
3
|
return runtime?.currentLevelId ?? elevator.defaultLevelId ?? elevator.fromLevelId ?? null;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElevatorDoorPanelStyle, ElevatorDoorStyle, ElevatorNode, ElevatorShaftStyle } from '../../schema';
|
|
1
|
+
import type { ElevatorDoorPanelStyle, ElevatorDoorStyle, ElevatorNode, ElevatorShaftStyle } from '../../schema/index.js';
|
|
2
2
|
export type ElevatorDoorSide = 'left' | 'right';
|
|
3
3
|
export declare function getResolvedElevatorDoorStyle(doorStyle: ElevatorNode['doorStyle'] | undefined): ElevatorDoorStyle;
|
|
4
4
|
export declare function getResolvedElevatorDoorPanelStyle(doorPanelStyle: ElevatorNode['doorPanelStyle'] | undefined): ElevatorDoorPanelStyle;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyNode, AnyNodeId, CeilingNode, SlabNode } from '../../schema';
|
|
1
|
+
import type { AnyNode, AnyNodeId, CeilingNode, SlabNode } from '../../schema/index.js';
|
|
2
2
|
export declare function syncAutoElevatorOpenings(nodes: Record<string, AnyNode>): {
|
|
3
3
|
id: AnyNodeId;
|
|
4
4
|
data: Partial<SlabNode | CeilingNode>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveLevelId } from '../../hooks/spatial-grid/spatial-grid-sync';
|
|
2
|
-
import { resolveElevatorServiceLevels } from './elevator-service';
|
|
1
|
+
import { resolveLevelId } from '../../hooks/spatial-grid/spatial-grid-sync.js';
|
|
2
|
+
import { resolveElevatorServiceLevels } from './elevator-service.js';
|
|
3
3
|
const ELEVATOR_OPENING_PADDING = 0.08;
|
|
4
4
|
const DEFAULT_ELEVATOR_SHAFT_WALL_THICKNESS = 0.09;
|
|
5
5
|
function pointsEqual(a, b, tolerance = 1e-5) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
|
-
import { pauseSceneHistory, resumeSceneHistory } from '../../store/history-control';
|
|
4
|
-
import useScene from '../../store/use-scene';
|
|
5
|
-
import { syncAutoElevatorOpenings } from './elevator-opening-sync';
|
|
3
|
+
import { pauseSceneHistory, resumeSceneHistory } from '../../store/history-control.js';
|
|
4
|
+
import useScene from '../../store/use-scene.js';
|
|
5
|
+
import { syncAutoElevatorOpenings } from './elevator-opening-sync.js';
|
|
6
6
|
function isOpeningRelevantNode(node) {
|
|
7
7
|
return (node?.type === 'building' ||
|
|
8
8
|
node?.type === 'ceiling' ||
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AnyNodeId, ElevatorNode } from '../../schema';
|
|
2
|
-
import { type ElevatorInteractiveState } from '../../store/use-interactive';
|
|
3
|
-
import { type ElevatorLevelEntry } from './elevator-service';
|
|
1
|
+
import type { AnyNodeId, ElevatorNode } from '../../schema/index.js';
|
|
2
|
+
import { type ElevatorInteractiveState } from '../../store/use-interactive.js';
|
|
3
|
+
import { type ElevatorLevelEntry } from './elevator-service.js';
|
|
4
4
|
export declare function createElevatorInteractiveState(levelId: AnyNodeId, carY: number): ElevatorInteractiveState;
|
|
5
5
|
export declare function queueElevatorRequest(state: ElevatorInteractiveState, levelId: AnyNodeId): ElevatorInteractiveState;
|
|
6
6
|
export declare function openElevatorDoorState(state: ElevatorInteractiveState): ElevatorInteractiveState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useInteractive } from '../../store/use-interactive';
|
|
2
|
-
import useScene from '../../store/use-scene';
|
|
3
|
-
import { resolveElevatorLevels } from './elevator-service';
|
|
1
|
+
import { useInteractive } from '../../store/use-interactive.js';
|
|
2
|
+
import useScene from '../../store/use-scene.js';
|
|
3
|
+
import { resolveElevatorLevels } from './elevator-service.js';
|
|
4
4
|
const EPSILON = 0.001;
|
|
5
5
|
function moveToward(current, target, maxDelta) {
|
|
6
6
|
const delta = target - current;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getLevelElevations } from '../../services/storey';
|
|
1
|
+
import { getLevelElevations } from '../../services/storey.js';
|
|
2
2
|
function getBuildingLevels(elevator, nodes) {
|
|
3
3
|
const building = elevator.parentId && nodes[elevator.parentId]?.type === 'building'
|
|
4
4
|
? nodes[elevator.parentId]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FenceNode } from '../../schema';
|
|
2
|
-
import type { Point2D } from '../wall/wall-mitering';
|
|
1
|
+
import type { FenceNode } from '../../schema/index.js';
|
|
2
|
+
import type { Point2D } from '../wall/wall-mitering.js';
|
|
3
3
|
type CurveFrame = {
|
|
4
4
|
point: Point2D;
|
|
5
5
|
tangent: Point2D;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getWallCurveFrameAt, getWallCurveLength, sampleWallCenterline } from '../wall/wall-curve';
|
|
2
|
-
import { getFenceSplineFrameAt, getFenceSplineLength, isSplineFence, sampleFenceSpline, } from './fence-spline';
|
|
1
|
+
import { getWallCurveFrameAt, getWallCurveLength, sampleWallCenterline } from '../wall/wall-curve.js';
|
|
2
|
+
import { getFenceSplineFrameAt, getFenceSplineLength, isSplineFence, sampleFenceSpline, } from './fence-spline.js';
|
|
3
3
|
/**
|
|
4
4
|
* Unified fence centerline accessors. A fence is either:
|
|
5
5
|
* - a spline fence (`path` of >= 2 control points) → smooth Catmull-Rom, or
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FenceNode } from '../../schema';
|
|
2
|
-
import type { Point2D } from '../wall/wall-mitering';
|
|
1
|
+
import type { FenceNode } from '../../schema/index.js';
|
|
2
|
+
import type { Point2D } from '../wall/wall-mitering.js';
|
|
3
3
|
type FenceSplineLike = Pick<FenceNode, 'path'>;
|
|
4
4
|
type TangentList = ReadonlyArray<readonly [number, number] | null> | undefined;
|
|
5
5
|
export declare function isSplineFence(fence: FenceSplineLike): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
|
-
import { getSceneHistoryPauseDepth, notifySceneCommit, pauseSceneHistory, resumeSceneHistory, } from '../../store/history-control';
|
|
4
|
-
import useScene from '../../store/use-scene';
|
|
5
|
-
import { resolveRoofElevation } from './roof-elevation';
|
|
3
|
+
import { getSceneHistoryPauseDepth, notifySceneCommit, pauseSceneHistory, resumeSceneHistory, } from '../../store/history-control.js';
|
|
4
|
+
import useScene from '../../store/use-scene.js';
|
|
5
|
+
import { resolveRoofElevation } from './roof-elevation.js';
|
|
6
6
|
const ROOF_ELEVATION_EPSILON = 1e-4;
|
|
7
7
|
function sceneSnapshot() {
|
|
8
8
|
const { nodes, rootNodeIds, collections, materials, installedPlugins } = useScene.getState();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyNode, LevelNode, RoofNode, WallNode } from '../../schema';
|
|
2
|
-
export declare function resolveRoofWallTopElevation(targetLevelId: LevelNode['id'], wall: WallNode, nodes: Readonly<Record<string, AnyNode>>, elevations?: Map<string, import("
|
|
1
|
+
import type { AnyNode, LevelNode, RoofNode, WallNode } from '../../schema/index.js';
|
|
2
|
+
export declare function resolveRoofWallTopElevation(targetLevelId: LevelNode['id'], wall: WallNode, nodes: Readonly<Record<string, AnyNode>>, elevations?: Map<string, import("../../index.js").LevelElevation>): number;
|
|
3
3
|
export declare function resolveRoofElevation(roof: RoofNode, nodes: Readonly<Record<string, AnyNode>>): number;
|
|
4
4
|
//# sourceMappingURL=roof-elevation.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getWallBaseElevationForNodes, getWallEffectiveHeightForNodes, } from '../../hooks/spatial-grid/spatial-grid-manager';
|
|
2
|
-
import { resolveLevelId } from '../../hooks/spatial-grid/spatial-grid-sync';
|
|
3
|
-
import { findLevelBelowId, getLevelElevations } from '../../services/storey';
|
|
4
|
-
import { wallOverlapsSlabFootprint } from '../slab/slab-support';
|
|
5
|
-
import { getWallArcData } from '../wall/wall-curve';
|
|
6
|
-
import { resolveRoomRoofFootprintOnLevel } from './roof-footprint';
|
|
1
|
+
import { getWallBaseElevationForNodes, getWallEffectiveHeightForNodes, } from '../../hooks/spatial-grid/spatial-grid-manager.js';
|
|
2
|
+
import { resolveLevelId } from '../../hooks/spatial-grid/spatial-grid-sync.js';
|
|
3
|
+
import { findLevelBelowId, getLevelElevations } from '../../services/storey.js';
|
|
4
|
+
import { wallOverlapsSlabFootprint } from '../slab/slab-support.js';
|
|
5
|
+
import { getWallArcData } from '../wall/wall-curve.js';
|
|
6
|
+
import { resolveRoomRoofFootprintOnLevel } from './roof-footprint.js';
|
|
7
7
|
export function resolveRoofWallTopElevation(targetLevelId, wall, nodes, elevations = getLevelElevations(nodes)) {
|
|
8
8
|
const sourceLevelY = elevations.get(resolveLevelId(wall, nodes))?.baseY ?? 0;
|
|
9
9
|
const targetLevelY = elevations.get(targetLevelId)?.baseY ?? 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { pointInPolygon as pointInPolygon2D } from '../../lib/polygon-relations';
|
|
2
|
-
import { detectSpacesForLevel } from '../../lib/space-detection';
|
|
3
|
-
import { getLevelBelow } from '../../services/storey';
|
|
1
|
+
import { pointInPolygon as pointInPolygon2D } from '../../lib/polygon-relations.js';
|
|
2
|
+
import { detectSpacesForLevel } from '../../lib/space-detection.js';
|
|
3
|
+
import { getLevelBelow } from '../../services/storey.js';
|
|
4
4
|
function polygonArea(polygon) {
|
|
5
5
|
return Math.abs(polygon.reduce((area, point, index) => {
|
|
6
6
|
const next = polygon[(index + 1) % polygon.length];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getRenderableSlabPolygon } from '../../lib/slab-polygon';
|
|
2
|
-
import { getWallCurveFrameAt, isCurvedWall } from '../wall/wall-curve';
|
|
3
|
-
import { DEFAULT_WALL_THICKNESS } from '../wall/wall-footprint';
|
|
4
|
-
import { MIN_WALL_HEIGHT } from '../wall/wall-top';
|
|
1
|
+
import { getRenderableSlabPolygon } from '../../lib/slab-polygon.js';
|
|
2
|
+
import { getWallCurveFrameAt, isCurvedWall } from '../wall/wall-curve.js';
|
|
3
|
+
import { DEFAULT_WALL_THICKNESS } from '../wall/wall-footprint.js';
|
|
4
|
+
import { MIN_WALL_HEIGHT } from '../wall/wall-top.js';
|
|
5
5
|
/**
|
|
6
6
|
* Clamp-never-ask upper bound for a slab's elevation. A plane-bound wall
|
|
7
7
|
* (no stored `height`) keeps its top at the storey plane, so a slab that
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AnyNode, StairNode } from '../../schema';
|
|
2
|
-
import { StairSegmentNode } from '../../schema';
|
|
1
|
+
import type { AnyNode, StairNode } from '../../schema/index.js';
|
|
2
|
+
import { StairSegmentNode } from '../../schema/index.js';
|
|
3
3
|
export type StairFlightOverrides = Partial<Pick<StairSegmentNode, 'width' | 'length' | 'height' | 'stepCount' | 'attachmentSide' | 'fillToFloor' | 'thickness'>>;
|
|
4
4
|
/**
|
|
5
5
|
* The single definition of a default straight flight. Anything left out falls
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StairSegmentNode } from '../../schema';
|
|
2
|
-
import { resolveStairTotalRise } from './stair-rise';
|
|
1
|
+
import { StairSegmentNode } from '../../schema/index.js';
|
|
2
|
+
import { resolveStairTotalRise } from './stair-rise.js';
|
|
3
3
|
const MIN_STAIR_FLIGHT_RISE = 0.1;
|
|
4
4
|
const MIN_STAIR_FLIGHT_STEP_COUNT = 2;
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyNode, StairNode, StairSegmentNode } from '../../schema';
|
|
1
|
+
import type { AnyNode, StairNode, StairSegmentNode } from '../../schema/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Stair footprint geometry shared by the slab-opening sync and the
|
|
4
4
|
* alignment-anchor adapters. A stair has no single box footprint: straight
|