@pascal-app/core 0.8.0 → 0.9.2
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/events/bus.d.ts +67 -13
- package/dist/events/bus.d.ts.map +1 -1
- package/dist/hooks/scene-registry/item-clip-registry.d.ts +18 -0
- package/dist/hooks/scene-registry/item-clip-registry.d.ts.map +1 -0
- package/dist/hooks/scene-registry/item-clip-registry.js +10 -0
- package/dist/hooks/scene-registry/scene-registry.d.ts +14 -23
- package/dist/hooks/scene-registry/scene-registry.d.ts.map +1 -1
- package/dist/hooks/scene-registry/scene-registry.js +59 -26
- package/dist/hooks/scene-registry/scene-registry.test.d.ts +2 -0
- package/dist/hooks/scene-registry/scene-registry.test.d.ts.map +1 -0
- package/dist/hooks/scene-registry/scene-registry.test.js +26 -0
- package/dist/hooks/spatial-grid/floor-placed-elevation.d.ts +14 -0
- package/dist/hooks/spatial-grid/floor-placed-elevation.d.ts.map +1 -0
- package/dist/hooks/spatial-grid/floor-placed-elevation.js +51 -0
- package/dist/hooks/spatial-grid/floor-placed-elevation.test.d.ts +2 -0
- package/dist/hooks/spatial-grid/floor-placed-elevation.test.d.ts.map +1 -0
- package/dist/hooks/spatial-grid/floor-placed-elevation.test.js +366 -0
- package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts +79 -11
- package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/spatial-grid-manager.js +508 -141
- package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts +28 -1
- package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/spatial-grid-sync.js +109 -18
- package/dist/hooks/spatial-grid/wall-slab-overlap.test.d.ts +2 -0
- package/dist/hooks/spatial-grid/wall-slab-overlap.test.d.ts.map +1 -0
- package/dist/hooks/spatial-grid/wall-slab-overlap.test.js +363 -0
- package/dist/index.d.ts +36 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -6
- package/dist/lib/level-name.d.ts +4 -0
- package/dist/lib/level-name.d.ts.map +1 -0
- package/dist/lib/level-name.js +10 -0
- package/dist/lib/measurement-geometry.d.ts +19 -0
- package/dist/lib/measurement-geometry.d.ts.map +1 -0
- package/dist/lib/measurement-geometry.js +232 -0
- package/dist/lib/measurement-geometry.test.d.ts +2 -0
- package/dist/lib/measurement-geometry.test.d.ts.map +1 -0
- package/dist/lib/measurement-geometry.test.js +102 -0
- package/dist/lib/polygon-geometry.d.ts +0 -1
- package/dist/lib/polygon-geometry.d.ts.map +1 -1
- package/dist/lib/polygon-geometry.js +0 -18
- package/dist/lib/polygon-relations.d.ts +10 -0
- package/dist/lib/polygon-relations.d.ts.map +1 -0
- package/dist/lib/polygon-relations.js +73 -0
- package/dist/lib/selection-proxy.d.ts +4 -0
- package/dist/lib/selection-proxy.d.ts.map +1 -0
- package/dist/lib/selection-proxy.js +12 -0
- package/dist/lib/slab-polygon.d.ts +31 -2
- package/dist/lib/slab-polygon.d.ts.map +1 -1
- package/dist/lib/slab-polygon.js +525 -31
- package/dist/lib/slab-polygon.test.d.ts +2 -0
- package/dist/lib/slab-polygon.test.d.ts.map +1 -0
- package/dist/lib/slab-polygon.test.js +635 -0
- package/dist/lib/slots.d.ts +14 -0
- package/dist/lib/slots.d.ts.map +1 -0
- package/dist/lib/slots.js +26 -0
- package/dist/lib/space-detection-pause.test.d.ts +2 -0
- package/dist/lib/space-detection-pause.test.d.ts.map +1 -0
- package/dist/lib/space-detection-pause.test.js +42 -0
- package/dist/lib/space-detection.d.ts +54 -2
- package/dist/lib/space-detection.d.ts.map +1 -1
- package/dist/lib/space-detection.js +599 -124
- package/dist/lib/space-detection.test.d.ts +2 -0
- package/dist/lib/space-detection.test.d.ts.map +1 -0
- package/dist/lib/space-detection.test.js +376 -0
- package/dist/lib/wall-distance.d.ts +60 -0
- package/dist/lib/wall-distance.d.ts.map +1 -0
- package/dist/lib/wall-distance.js +85 -0
- package/dist/lib/zone-quantities.d.ts +21 -0
- package/dist/lib/zone-quantities.d.ts.map +1 -0
- package/dist/lib/zone-quantities.js +183 -0
- package/dist/lib/zone-quantities.test.d.ts +2 -0
- package/dist/lib/zone-quantities.test.d.ts.map +1 -0
- package/dist/lib/zone-quantities.test.js +82 -0
- package/dist/material-library.d.ts +20 -1
- package/dist/material-library.d.ts.map +1 -1
- package/dist/material-library.js +3737 -200
- package/dist/registry/__bench__/relations-resolver.bench.d.ts +15 -0
- package/dist/registry/__bench__/relations-resolver.bench.d.ts.map +1 -0
- package/dist/registry/__bench__/relations-resolver.bench.js +170 -0
- package/dist/registry/handles.d.ts +394 -0
- package/dist/registry/handles.d.ts.map +1 -0
- package/dist/registry/handles.js +24 -0
- package/dist/registry/index.d.ts +7 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +4 -0
- package/dist/registry/registry.d.ts +136 -0
- package/dist/registry/registry.d.ts.map +1 -0
- package/dist/registry/registry.js +282 -0
- package/dist/registry/registry.test.d.ts +2 -0
- package/dist/registry/registry.test.d.ts.map +1 -0
- package/dist/registry/registry.test.js +196 -0
- package/dist/registry/relations-resolver.d.ts +42 -0
- package/dist/registry/relations-resolver.d.ts.map +1 -0
- package/dist/registry/relations-resolver.js +77 -0
- package/dist/registry/relations-resolver.test.d.ts +2 -0
- package/dist/registry/relations-resolver.test.d.ts.map +1 -0
- package/dist/registry/relations-resolver.test.js +183 -0
- package/dist/registry/scene-api.d.ts +44 -0
- package/dist/registry/scene-api.d.ts.map +1 -0
- package/dist/registry/scene-api.js +111 -0
- package/dist/registry/scene-api.test.d.ts +2 -0
- package/dist/registry/scene-api.test.d.ts.map +1 -0
- package/dist/registry/scene-api.test.js +183 -0
- package/dist/registry/subtree.d.ts +67 -0
- package/dist/registry/subtree.d.ts.map +1 -0
- package/dist/registry/subtree.js +123 -0
- package/dist/registry/subtree.test.d.ts +2 -0
- package/dist/registry/subtree.test.d.ts.map +1 -0
- package/dist/registry/subtree.test.js +163 -0
- package/dist/registry/types.d.ts +2099 -0
- package/dist/registry/types.d.ts.map +1 -0
- package/dist/registry/types.js +1 -0
- package/dist/schema/index.d.ts +35 -4
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +32 -4
- package/dist/schema/material.d.ts +13 -2
- package/dist/schema/material.d.ts.map +1 -1
- package/dist/schema/material.js +17 -5
- package/dist/schema/material.test.d.ts +2 -0
- package/dist/schema/material.test.d.ts.map +1 -0
- package/dist/schema/material.test.js +43 -0
- package/dist/schema/nodes/box-vent.d.ts +74 -0
- package/dist/schema/nodes/box-vent.d.ts.map +1 -0
- package/dist/schema/nodes/box-vent.js +63 -0
- 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 +3 -2
- package/dist/schema/nodes/cabinet.d.ts +534 -0
- package/dist/schema/nodes/cabinet.d.ts.map +1 -0
- package/dist/schema/nodes/cabinet.js +137 -0
- package/dist/schema/nodes/ceiling.d.ts +5 -2
- package/dist/schema/nodes/ceiling.d.ts.map +1 -1
- package/dist/schema/nodes/ceiling.js +5 -1
- package/dist/schema/nodes/chimney.d.ts +158 -0
- package/dist/schema/nodes/chimney.d.ts.map +1 -0
- package/dist/schema/nodes/chimney.js +67 -0
- package/dist/schema/nodes/column.d.ts +600 -7
- package/dist/schema/nodes/column.d.ts.map +1 -1
- package/dist/schema/nodes/column.js +589 -6
- package/dist/schema/nodes/cupola.d.ts +66 -0
- package/dist/schema/nodes/cupola.d.ts.map +1 -0
- package/dist/schema/nodes/cupola.js +28 -0
- package/dist/schema/nodes/door.d.ts +13 -5
- package/dist/schema/nodes/door.d.ts.map +1 -1
- package/dist/schema/nodes/door.js +12 -0
- package/dist/schema/nodes/dormer.d.ts +228 -0
- package/dist/schema/nodes/dormer.d.ts.map +1 -0
- package/dist/schema/nodes/dormer.js +119 -0
- package/dist/schema/nodes/downspout.d.ts +75 -0
- package/dist/schema/nodes/downspout.d.ts.map +1 -0
- package/dist/schema/nodes/downspout.js +63 -0
- package/dist/schema/nodes/duct-fitting.d.ts +91 -0
- package/dist/schema/nodes/duct-fitting.d.ts.map +1 -0
- package/dist/schema/nodes/duct-fitting.js +92 -0
- package/dist/schema/nodes/duct-segment.d.ts +61 -0
- package/dist/schema/nodes/duct-segment.d.ts.map +1 -0
- package/dist/schema/nodes/duct-segment.js +73 -0
- package/dist/schema/nodes/duct-terminal.d.ts +57 -0
- package/dist/schema/nodes/duct-terminal.d.ts.map +1 -0
- package/dist/schema/nodes/duct-terminal.js +51 -0
- package/dist/schema/nodes/elevator.d.ts +106 -0
- package/dist/schema/nodes/elevator.d.ts.map +1 -0
- package/dist/schema/nodes/elevator.js +57 -0
- package/dist/schema/nodes/eyebrow-vent.d.ts +68 -0
- package/dist/schema/nodes/eyebrow-vent.d.ts.map +1 -0
- package/dist/schema/nodes/eyebrow-vent.js +40 -0
- package/dist/schema/nodes/fence.d.ts +19 -2
- package/dist/schema/nodes/fence.d.ts.map +1 -1
- package/dist/schema/nodes/fence.js +27 -2
- package/dist/schema/nodes/gutter.d.ts +84 -0
- package/dist/schema/nodes/gutter.d.ts.map +1 -0
- package/dist/schema/nodes/gutter.js +76 -0
- package/dist/schema/nodes/hvac-equipment.d.ts +63 -0
- package/dist/schema/nodes/hvac-equipment.d.ts.map +1 -0
- package/dist/schema/nodes/hvac-equipment.js +55 -0
- package/dist/schema/nodes/item.d.ts +12 -0
- package/dist/schema/nodes/item.d.ts.map +1 -1
- package/dist/schema/nodes/item.js +20 -0
- 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 +4 -0
- package/dist/schema/nodes/lineset.d.ts +42 -0
- package/dist/schema/nodes/lineset.d.ts.map +1 -0
- package/dist/schema/nodes/lineset.js +38 -0
- package/dist/schema/nodes/liquid-line.d.ts +34 -0
- package/dist/schema/nodes/liquid-line.d.ts.map +1 -0
- package/dist/schema/nodes/liquid-line.js +24 -0
- package/dist/schema/nodes/measurement.d.ts +306 -0
- package/dist/schema/nodes/measurement.d.ts.map +1 -0
- package/dist/schema/nodes/measurement.js +87 -0
- package/dist/schema/nodes/measurement.test.d.ts +2 -0
- package/dist/schema/nodes/measurement.test.d.ts.map +1 -0
- package/dist/schema/nodes/measurement.test.js +139 -0
- package/dist/schema/nodes/pipe-fitting.d.ts +56 -0
- package/dist/schema/nodes/pipe-fitting.d.ts.map +1 -0
- package/dist/schema/nodes/pipe-fitting.js +45 -0
- package/dist/schema/nodes/pipe-segment.d.ts +48 -0
- package/dist/schema/nodes/pipe-segment.d.ts.map +1 -0
- package/dist/schema/nodes/pipe-segment.js +36 -0
- package/dist/schema/nodes/pipe-trap.d.ts +43 -0
- package/dist/schema/nodes/pipe-trap.d.ts.map +1 -0
- package/dist/schema/nodes/pipe-trap.js +36 -0
- package/dist/schema/nodes/ridge-vent-defaults.test.d.ts +2 -0
- package/dist/schema/nodes/ridge-vent-defaults.test.d.ts.map +1 -0
- package/dist/schema/nodes/ridge-vent-defaults.test.js +205 -0
- package/dist/schema/nodes/ridge-vent.d.ts +82 -0
- package/dist/schema/nodes/ridge-vent.d.ts.map +1 -0
- package/dist/schema/nodes/ridge-vent.js +248 -0
- package/dist/schema/nodes/roof-segment-shape.d.ts +90 -0
- package/dist/schema/nodes/roof-segment-shape.d.ts.map +1 -0
- package/dist/schema/nodes/roof-segment-shape.js +318 -0
- package/dist/schema/nodes/roof-segment-shape.test.d.ts +2 -0
- package/dist/schema/nodes/roof-segment-shape.test.d.ts.map +1 -0
- package/dist/schema/nodes/roof-segment-shape.test.js +175 -0
- package/dist/schema/nodes/roof-segment-surface.test.d.ts +2 -0
- package/dist/schema/nodes/roof-segment-surface.test.d.ts.map +1 -0
- package/dist/schema/nodes/roof-segment-surface.test.js +48 -0
- package/dist/schema/nodes/roof-segment-trim.test.d.ts +2 -0
- package/dist/schema/nodes/roof-segment-trim.test.d.ts.map +1 -0
- package/dist/schema/nodes/roof-segment-trim.test.js +107 -0
- package/dist/schema/nodes/roof-segment-walls.d.ts +101 -0
- package/dist/schema/nodes/roof-segment-walls.d.ts.map +1 -0
- package/dist/schema/nodes/roof-segment-walls.js +330 -0
- package/dist/schema/nodes/roof-segment-walls.test.d.ts +2 -0
- package/dist/schema/nodes/roof-segment-walls.test.d.ts.map +1 -0
- package/dist/schema/nodes/roof-segment-walls.test.js +92 -0
- package/dist/schema/nodes/roof-segment.d.ts +273 -3
- package/dist/schema/nodes/roof-segment.d.ts.map +1 -1
- package/dist/schema/nodes/roof-segment.js +539 -3
- package/dist/schema/nodes/roof.d.ts +8 -8
- package/dist/schema/nodes/roof.d.ts.map +1 -1
- package/dist/schema/nodes/roof.js +4 -16
- package/dist/schema/nodes/shelf.d.ts +106 -0
- package/dist/schema/nodes/shelf.d.ts.map +1 -0
- package/dist/schema/nodes/shelf.js +90 -0
- package/dist/schema/nodes/site.d.ts +1 -122
- package/dist/schema/nodes/site.d.ts.map +1 -1
- package/dist/schema/nodes/site.js +2 -6
- package/dist/schema/nodes/skylight.d.ts +279 -0
- package/dist/schema/nodes/skylight.d.ts.map +1 -0
- package/dist/schema/nodes/skylight.js +152 -0
- package/dist/schema/nodes/slab.d.ts +5 -2
- package/dist/schema/nodes/slab.d.ts.map +1 -1
- package/dist/schema/nodes/slab.js +5 -1
- package/dist/schema/nodes/solar-panel.d.ts +117 -0
- package/dist/schema/nodes/solar-panel.d.ts.map +1 -0
- package/dist/schema/nodes/solar-panel.js +47 -0
- package/dist/schema/nodes/stair-segment.d.ts +4 -4
- package/dist/schema/nodes/stair.d.ts +13 -12
- package/dist/schema/nodes/stair.d.ts.map +1 -1
- package/dist/schema/nodes/stair.js +3 -0
- package/dist/schema/nodes/surface-hole-metadata.d.ts +2 -0
- package/dist/schema/nodes/surface-hole-metadata.d.ts.map +1 -1
- package/dist/schema/nodes/surface-hole-metadata.js +3 -1
- package/dist/schema/nodes/turbine-vent.d.ts +68 -0
- package/dist/schema/nodes/turbine-vent.d.ts.map +1 -0
- package/dist/schema/nodes/turbine-vent.js +41 -0
- package/dist/schema/nodes/wall.d.ts +245 -6
- package/dist/schema/nodes/wall.d.ts.map +1 -1
- package/dist/schema/nodes/wall.js +257 -0
- package/dist/schema/nodes/wall.test.d.ts +2 -0
- package/dist/schema/nodes/wall.test.d.ts.map +1 -0
- package/dist/schema/nodes/wall.test.js +208 -0
- package/dist/schema/nodes/window.d.ts +11 -3
- package/dist/schema/nodes/window.d.ts.map +1 -1
- package/dist/schema/nodes/window.js +12 -0
- package/dist/schema/nodes/zone.d.ts +2 -0
- package/dist/schema/nodes/zone.d.ts.map +1 -1
- package/dist/schema/nodes/zone.js +6 -0
- package/dist/schema/scene-material.d.ts +41 -0
- package/dist/schema/scene-material.d.ts.map +1 -0
- package/dist/schema/scene-material.js +9 -0
- package/dist/schema/types.d.ts +2850 -655
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/schema/types.js +49 -0
- package/dist/services/alignment-anchors.d.ts +100 -0
- package/dist/services/alignment-anchors.d.ts.map +1 -0
- package/dist/services/alignment-anchors.js +312 -0
- package/dist/services/alignment-anchors.test.d.ts +2 -0
- package/dist/services/alignment-anchors.test.d.ts.map +1 -0
- package/dist/services/alignment-anchors.test.js +383 -0
- package/dist/services/alignment.d.ts +131 -0
- package/dist/services/alignment.d.ts.map +1 -0
- package/dist/services/alignment.js +171 -0
- package/dist/services/alignment.test.d.ts +2 -0
- package/dist/services/alignment.test.d.ts.map +1 -0
- package/dist/services/alignment.test.js +92 -0
- package/dist/services/drag-session.d.ts +47 -0
- package/dist/services/drag-session.d.ts.map +1 -0
- package/dist/services/drag-session.js +100 -0
- package/dist/services/drag-session.test.d.ts +2 -0
- package/dist/services/drag-session.test.d.ts.map +1 -0
- package/dist/services/drag-session.test.js +219 -0
- package/dist/services/hosting.d.ts +88 -0
- package/dist/services/hosting.d.ts.map +1 -0
- package/dist/services/hosting.js +131 -0
- package/dist/services/hosting.test.d.ts +2 -0
- package/dist/services/hosting.test.d.ts.map +1 -0
- package/dist/services/hosting.test.js +230 -0
- package/dist/services/index.d.ts +13 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +12 -0
- package/dist/services/level-height.d.ts +28 -0
- package/dist/services/level-height.d.ts.map +1 -0
- package/dist/services/level-height.js +62 -0
- package/dist/services/movement.d.ts +48 -0
- package/dist/services/movement.d.ts.map +1 -0
- package/dist/services/movement.js +65 -0
- package/dist/services/movement.test.d.ts +2 -0
- package/dist/services/movement.test.d.ts.map +1 -0
- package/dist/services/movement.test.js +133 -0
- package/dist/services/opening-guides.d.ts +141 -0
- package/dist/services/opening-guides.d.ts.map +1 -0
- package/dist/services/opening-guides.js +267 -0
- package/dist/services/opening-guides.test.d.ts +2 -0
- package/dist/services/opening-guides.test.d.ts.map +1 -0
- package/dist/services/opening-guides.test.js +208 -0
- package/dist/services/port-connectivity.d.ts +115 -0
- package/dist/services/port-connectivity.d.ts.map +1 -0
- package/dist/services/port-connectivity.js +300 -0
- package/dist/services/port-connectivity.test.d.ts +2 -0
- package/dist/services/port-connectivity.test.d.ts.map +1 -0
- package/dist/services/port-connectivity.test.js +297 -0
- package/dist/services/riser-diagram.d.ts +40 -0
- package/dist/services/riser-diagram.d.ts.map +1 -0
- package/dist/services/riser-diagram.js +110 -0
- package/dist/services/riser-diagram.test.d.ts +2 -0
- package/dist/services/riser-diagram.test.d.ts.map +1 -0
- package/dist/services/riser-diagram.test.js +66 -0
- package/dist/services/single-undo-dance.test.d.ts +2 -0
- package/dist/services/single-undo-dance.test.d.ts.map +1 -0
- package/dist/services/single-undo-dance.test.js +210 -0
- package/dist/services/snap.d.ts +80 -0
- package/dist/services/snap.d.ts.map +1 -0
- package/dist/services/snap.js +140 -0
- package/dist/services/snap.test.d.ts +2 -0
- package/dist/services/snap.test.d.ts.map +1 -0
- package/dist/services/snap.test.js +137 -0
- package/dist/services/system-graph.d.ts +30 -0
- package/dist/services/system-graph.d.ts.map +1 -0
- package/dist/services/system-graph.js +164 -0
- package/dist/services/system-graph.test.d.ts +2 -0
- package/dist/services/system-graph.test.d.ts.map +1 -0
- package/dist/services/system-graph.test.js +138 -0
- package/dist/services/validate-dwv.d.ts +32 -0
- package/dist/services/validate-dwv.d.ts.map +1 -0
- package/dist/services/validate-dwv.js +118 -0
- package/dist/services/validate-dwv.test.d.ts +2 -0
- package/dist/services/validate-dwv.test.d.ts.map +1 -0
- package/dist/services/validate-dwv.test.js +109 -0
- package/dist/solar-panel-presets.d.ts +17 -0
- package/dist/solar-panel-presets.d.ts.map +1 -0
- package/dist/solar-panel-presets.js +43 -0
- package/dist/store/actions/node-actions.d.ts +14 -2
- package/dist/store/actions/node-actions.d.ts.map +1 -1
- package/dist/store/actions/node-actions.js +585 -15
- package/dist/store/actions/node-mutation-sanitize.test.d.ts +2 -0
- package/dist/store/actions/node-mutation-sanitize.test.d.ts.map +1 -0
- package/dist/store/actions/node-mutation-sanitize.test.js +147 -0
- package/dist/store/actions/reparent.test.d.ts +2 -0
- package/dist/store/actions/reparent.test.d.ts.map +1 -0
- package/dist/store/actions/reparent.test.js +212 -0
- package/dist/store/actions/ridge-vent-update.test.d.ts +2 -0
- package/dist/store/actions/ridge-vent-update.test.d.ts.map +1 -0
- package/dist/store/actions/ridge-vent-update.test.js +264 -0
- package/dist/store/history-control.d.ts +11 -0
- package/dist/store/history-control.d.ts.map +1 -1
- package/dist/store/history-control.js +33 -0
- package/dist/store/use-interactive.d.ts +39 -0
- package/dist/store/use-interactive.d.ts.map +1 -1
- package/dist/store/use-interactive.js +75 -0
- package/dist/store/use-live-node-overrides.d.ts +22 -0
- package/dist/store/use-live-node-overrides.d.ts.map +1 -0
- package/dist/store/use-live-node-overrides.js +59 -0
- package/dist/store/use-scene-dirty-tracking.test.d.ts +2 -0
- package/dist/store/use-scene-dirty-tracking.test.d.ts.map +1 -0
- package/dist/store/use-scene-dirty-tracking.test.js +68 -0
- package/dist/store/use-scene-elevator-migration.test.d.ts +2 -0
- package/dist/store/use-scene-elevator-migration.test.d.ts.map +1 -0
- package/dist/store/use-scene-elevator-migration.test.js +109 -0
- package/dist/store/use-scene-measurement-roundtrip.test.d.ts +2 -0
- package/dist/store/use-scene-measurement-roundtrip.test.d.ts.map +1 -0
- package/dist/store/use-scene-measurement-roundtrip.test.js +97 -0
- package/dist/store/use-scene-plugins.test.d.ts +2 -0
- package/dist/store/use-scene-plugins.test.d.ts.map +1 -0
- package/dist/store/use-scene-plugins.test.js +51 -0
- package/dist/store/use-scene-wall-slot-migration.test.d.ts +2 -0
- package/dist/store/use-scene-wall-slot-migration.test.d.ts.map +1 -0
- package/dist/store/use-scene-wall-slot-migration.test.js +210 -0
- package/dist/store/use-scene-window-migration.test.d.ts +2 -0
- package/dist/store/use-scene-window-migration.test.d.ts.map +1 -0
- package/dist/store/use-scene-window-migration.test.js +85 -0
- package/dist/store/use-scene.d.ts +28 -2
- package/dist/store/use-scene.d.ts.map +1 -1
- package/dist/store/use-scene.js +546 -49
- package/dist/systems/elevator/elevator-dispatch.d.ts +12 -0
- package/dist/systems/elevator/elevator-dispatch.d.ts.map +1 -0
- package/dist/systems/elevator/elevator-dispatch.js +57 -0
- package/dist/systems/elevator/elevator-geometry.d.ts +15 -0
- package/dist/systems/elevator/elevator-geometry.d.ts.map +1 -0
- package/dist/systems/elevator/elevator-geometry.js +50 -0
- package/dist/systems/elevator/elevator-opening-sync.d.ts +6 -0
- package/dist/systems/elevator/elevator-opening-sync.d.ts.map +1 -0
- package/dist/systems/elevator/elevator-opening-sync.js +218 -0
- package/dist/systems/elevator/elevator-opening-sync.test.d.ts +2 -0
- package/dist/systems/elevator/elevator-opening-sync.test.d.ts.map +1 -0
- package/dist/systems/elevator/elevator-opening-sync.test.js +146 -0
- package/dist/systems/elevator/elevator-opening-system.d.ts +2 -0
- package/dist/systems/elevator/elevator-opening-system.d.ts.map +1 -0
- package/dist/systems/elevator/elevator-opening-system.js +48 -0
- package/dist/systems/elevator/elevator-runtime-system.d.ts +2 -0
- package/dist/systems/elevator/elevator-runtime-system.d.ts.map +1 -0
- package/dist/systems/elevator/elevator-runtime-system.js +8 -0
- package/dist/systems/elevator/elevator-runtime.d.ts +18 -0
- package/dist/systems/elevator/elevator-runtime.d.ts.map +1 -0
- package/dist/systems/elevator/elevator-runtime.js +225 -0
- package/dist/systems/elevator/elevator-runtime.test.d.ts +2 -0
- package/dist/systems/elevator/elevator-runtime.test.d.ts.map +1 -0
- package/dist/systems/elevator/elevator-runtime.test.js +64 -0
- package/dist/systems/elevator/elevator-service.d.ts +19 -0
- package/dist/systems/elevator/elevator-service.d.ts.map +1 -0
- package/dist/systems/elevator/elevator-service.js +111 -0
- package/dist/systems/fence/fence-centerline.d.ts +12 -0
- package/dist/systems/fence/fence-centerline.d.ts.map +1 -0
- package/dist/systems/fence/fence-centerline.js +37 -0
- package/dist/systems/fence/fence-spline.d.ts +39 -0
- package/dist/systems/fence/fence-spline.d.ts.map +1 -0
- package/dist/systems/fence/fence-spline.js +196 -0
- package/dist/systems/fence/fence-spline.test.d.ts +2 -0
- package/dist/systems/fence/fence-spline.test.d.ts.map +1 -0
- package/dist/systems/fence/fence-spline.test.js +136 -0
- package/dist/systems/stair/stair-footprint.d.ts +44 -0
- package/dist/systems/stair/stair-footprint.d.ts.map +1 -0
- package/dist/systems/stair/stair-footprint.js +178 -0
- package/dist/systems/stair/stair-opening-preview.d.ts +2447 -0
- package/dist/systems/stair/stair-opening-preview.d.ts.map +1 -0
- package/dist/systems/stair/stair-opening-preview.js +93 -0
- package/dist/systems/stair/stair-opening-preview.test.d.ts +2 -0
- package/dist/systems/stair/stair-opening-preview.test.d.ts.map +1 -0
- package/dist/systems/stair/stair-opening-preview.test.js +80 -0
- package/dist/systems/stair/stair-opening-sync.d.ts.map +1 -1
- package/dist/systems/stair/stair-opening-sync.js +155 -147
- package/dist/systems/stair/stair-opening-sync.test.js +424 -2
- package/dist/systems/stair/stair-opening-system.d.ts +2 -0
- package/dist/systems/stair/stair-opening-system.d.ts.map +1 -0
- package/dist/systems/stair/stair-opening-system.js +104 -0
- package/dist/systems/wall/wall-mitering.d.ts.map +1 -1
- package/dist/systems/wall/wall-mitering.js +38 -2
- package/dist/systems/wall/wall-mitering.test.d.ts +2 -0
- package/dist/systems/wall/wall-mitering.test.d.ts.map +1 -0
- package/dist/systems/wall/wall-mitering.test.js +63 -0
- package/dist/systems/wall/wall-move.d.ts +48 -0
- package/dist/systems/wall/wall-move.d.ts.map +1 -0
- package/dist/systems/wall/wall-move.js +193 -0
- package/dist/utils/clone-scene-graph.d.ts +7 -4
- package/dist/utils/clone-scene-graph.d.ts.map +1 -1
- package/dist/utils/clone-scene-graph.js +29 -7
- package/dist/utils/clone-scene-graph.test.d.ts +2 -0
- package/dist/utils/clone-scene-graph.test.d.ts.map +1 -0
- package/dist/utils/clone-scene-graph.test.js +62 -0
- package/dist/utils/heal-scene-graph.d.ts +18 -0
- package/dist/utils/heal-scene-graph.d.ts.map +1 -0
- package/dist/utils/heal-scene-graph.js +90 -0
- package/dist/utils/heal-scene-graph.test.d.ts +2 -0
- package/dist/utils/heal-scene-graph.test.d.ts.map +1 -0
- package/dist/utils/heal-scene-graph.test.js +88 -0
- package/dist/validation/validate-build-json.d.ts +44 -0
- package/dist/validation/validate-build-json.d.ts.map +1 -0
- package/dist/validation/validate-build-json.js +256 -0
- package/package.json +11 -4
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { describe, expect, test } from 'bun:test';
|
|
2
|
+
import { buildEnabledWallFaceBandPatch, buildWallFaceBandCountPatch, getWallFaceBandConfig, WALL_CHAIR_RAIL_DEFAULT, WALL_CHAIR_RAIL_SLOT_DEFAULT, WALL_CROWN_DEFAULT, WALL_CROWN_SLOT_DEFAULT, WALL_FACE_BAND_DEFAULT, WALL_FACE_BAND_SOLID_SLOT_DEFAULTS, WALL_SKIRTING_DEFAULT, WALL_SKIRTING_SLOT_DEFAULT, WALL_SURFACE_SLOT_DEFAULTS, WallFaceBandConfig, WallTrimConfig, } from './wall';
|
|
3
|
+
describe('wall face bands', () => {
|
|
4
|
+
test('defaults to one band while preserving legacy enabled scenes as three bands', () => {
|
|
5
|
+
expect(WALL_FACE_BAND_DEFAULT.count).toBe(1);
|
|
6
|
+
expect(WALL_FACE_BAND_DEFAULT.lowerHeight).toBe(0.84);
|
|
7
|
+
expect(WALL_FACE_BAND_DEFAULT.middleHeight).toBe(0.61);
|
|
8
|
+
expect(WALL_FACE_BAND_DEFAULT.upperHeight).toBe(0.61);
|
|
9
|
+
expect(WallFaceBandConfig.parse({})).toEqual({
|
|
10
|
+
enabled: false,
|
|
11
|
+
count: 1,
|
|
12
|
+
lowerHeight: 0.84,
|
|
13
|
+
middleHeight: 0.61,
|
|
14
|
+
upperHeight: 0.61,
|
|
15
|
+
});
|
|
16
|
+
expect(WallFaceBandConfig.parse({ enabled: true })).toEqual({
|
|
17
|
+
enabled: true,
|
|
18
|
+
count: 3,
|
|
19
|
+
lowerHeight: 0.84,
|
|
20
|
+
middleHeight: 0.61,
|
|
21
|
+
upperHeight: 0.61,
|
|
22
|
+
});
|
|
23
|
+
expect(getWallFaceBandConfig({
|
|
24
|
+
height: 2.5,
|
|
25
|
+
faceBands: {
|
|
26
|
+
enabled: true,
|
|
27
|
+
count: 3,
|
|
28
|
+
lowerHeight: 0.84,
|
|
29
|
+
middleHeight: 0.61,
|
|
30
|
+
upperHeight: 0.61,
|
|
31
|
+
},
|
|
32
|
+
})).toMatchObject({
|
|
33
|
+
count: 3,
|
|
34
|
+
lowerTop: 0.84,
|
|
35
|
+
middleTop: 1.45,
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
test('four bands adds an upper split below the final top band', () => {
|
|
39
|
+
expect(getWallFaceBandConfig({
|
|
40
|
+
height: 2.5,
|
|
41
|
+
faceBands: {
|
|
42
|
+
enabled: true,
|
|
43
|
+
count: 4,
|
|
44
|
+
lowerHeight: 0.5,
|
|
45
|
+
middleHeight: 0.6,
|
|
46
|
+
upperHeight: 0.7,
|
|
47
|
+
},
|
|
48
|
+
})).toMatchObject({
|
|
49
|
+
count: 4,
|
|
50
|
+
lowerTop: 0.5,
|
|
51
|
+
middleTop: 1.1,
|
|
52
|
+
upperTop: 1.8,
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
test('enabling bands seeds visible solid-color band slots', () => {
|
|
56
|
+
const patch = buildEnabledWallFaceBandPatch({
|
|
57
|
+
faceBands: {
|
|
58
|
+
enabled: false,
|
|
59
|
+
count: 1,
|
|
60
|
+
lowerHeight: 0.2,
|
|
61
|
+
middleHeight: 0.3,
|
|
62
|
+
upperHeight: 0.61,
|
|
63
|
+
},
|
|
64
|
+
slots: {
|
|
65
|
+
interior: 'library:interior-finish',
|
|
66
|
+
exterior: 'scene:exterior-finish',
|
|
67
|
+
lowerInterior: 'library:stale-lower',
|
|
68
|
+
middleExterior: 'library:stale-middle',
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
expect(patch.faceBands).toEqual({
|
|
72
|
+
enabled: true,
|
|
73
|
+
count: 2,
|
|
74
|
+
lowerHeight: 0.2,
|
|
75
|
+
middleHeight: 0.3,
|
|
76
|
+
upperHeight: 0.61,
|
|
77
|
+
});
|
|
78
|
+
expect(patch.slots).toMatchObject({
|
|
79
|
+
interior: 'library:interior-finish',
|
|
80
|
+
exterior: 'scene:exterior-finish',
|
|
81
|
+
lowerInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
82
|
+
upperInterior: 'library:interior-finish',
|
|
83
|
+
lowerExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
84
|
+
upperExterior: 'scene:exterior-finish',
|
|
85
|
+
});
|
|
86
|
+
expect(patch.slots?.middleInterior).toBeUndefined();
|
|
87
|
+
expect(patch.slots?.middleExterior).toBeUndefined();
|
|
88
|
+
});
|
|
89
|
+
test('band count patch enables only the active slots', () => {
|
|
90
|
+
const patch = buildWallFaceBandCountPatch({
|
|
91
|
+
faceBands: {
|
|
92
|
+
enabled: true,
|
|
93
|
+
count: 4,
|
|
94
|
+
lowerHeight: 0.2,
|
|
95
|
+
middleHeight: 0.3,
|
|
96
|
+
upperHeight: 0.61,
|
|
97
|
+
},
|
|
98
|
+
slots: {
|
|
99
|
+
interior: 'library:interior-finish',
|
|
100
|
+
exterior: 'scene:exterior-finish',
|
|
101
|
+
topInterior: 'library:stale-top',
|
|
102
|
+
},
|
|
103
|
+
}, 3);
|
|
104
|
+
expect(patch.faceBands).toMatchObject({ enabled: true, count: 3 });
|
|
105
|
+
expect(patch.slots).toMatchObject({
|
|
106
|
+
lowerInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
107
|
+
middleInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.middle,
|
|
108
|
+
upperInterior: 'library:stale-top',
|
|
109
|
+
lowerExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
110
|
+
middleExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.middle,
|
|
111
|
+
upperExterior: 'scene:exterior-finish',
|
|
112
|
+
});
|
|
113
|
+
expect(patch.slots?.topInterior).toBeUndefined();
|
|
114
|
+
expect(patch.slots?.topExterior).toBeUndefined();
|
|
115
|
+
});
|
|
116
|
+
test('enabling bands replaces stale inactive band slots with solid-color defaults', () => {
|
|
117
|
+
const patch = buildEnabledWallFaceBandPatch({
|
|
118
|
+
slots: {
|
|
119
|
+
lowerInterior: 'library:stale-lower',
|
|
120
|
+
middleInterior: 'library:stale-middle',
|
|
121
|
+
upperExterior: 'library:stale-upper',
|
|
122
|
+
},
|
|
123
|
+
});
|
|
124
|
+
expect(patch.slots).toEqual({
|
|
125
|
+
lowerInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
126
|
+
upperInterior: WALL_SURFACE_SLOT_DEFAULTS.interior,
|
|
127
|
+
lowerExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
128
|
+
upperExterior: WALL_SURFACE_SLOT_DEFAULTS.exterior,
|
|
129
|
+
});
|
|
130
|
+
expect(patch.slots?.middleInterior).toBeUndefined();
|
|
131
|
+
expect(patch.slots?.middleExterior).toBeUndefined();
|
|
132
|
+
});
|
|
133
|
+
test('increasing band count paints newly active bands with the solid palette', () => {
|
|
134
|
+
const patch = buildWallFaceBandCountPatch({
|
|
135
|
+
faceBands: {
|
|
136
|
+
enabled: true,
|
|
137
|
+
count: 2,
|
|
138
|
+
lowerHeight: 0.2,
|
|
139
|
+
middleHeight: 0.3,
|
|
140
|
+
upperHeight: 0.61,
|
|
141
|
+
},
|
|
142
|
+
slots: {
|
|
143
|
+
lowerInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
144
|
+
upperInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.upper,
|
|
145
|
+
lowerExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
146
|
+
upperExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.upper,
|
|
147
|
+
},
|
|
148
|
+
}, 3);
|
|
149
|
+
expect(patch.slots).toMatchObject({
|
|
150
|
+
lowerInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
151
|
+
middleInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.middle,
|
|
152
|
+
upperInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.upper,
|
|
153
|
+
lowerExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
154
|
+
middleExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.middle,
|
|
155
|
+
upperExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.upper,
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
test('increasing to four bands keeps the previous top material on the new top band', () => {
|
|
159
|
+
const patch = buildWallFaceBandCountPatch({
|
|
160
|
+
faceBands: {
|
|
161
|
+
enabled: true,
|
|
162
|
+
count: 3,
|
|
163
|
+
lowerHeight: 0.2,
|
|
164
|
+
middleHeight: 0.3,
|
|
165
|
+
upperHeight: 0.61,
|
|
166
|
+
},
|
|
167
|
+
slots: {
|
|
168
|
+
lowerInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
169
|
+
middleInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.middle,
|
|
170
|
+
upperInterior: 'scene:painted-top-interior',
|
|
171
|
+
lowerExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
172
|
+
middleExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.middle,
|
|
173
|
+
upperExterior: 'library:painted-top-exterior',
|
|
174
|
+
},
|
|
175
|
+
}, 4);
|
|
176
|
+
expect(patch.slots).toMatchObject({
|
|
177
|
+
lowerInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
178
|
+
middleInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.middle,
|
|
179
|
+
upperInterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.upper,
|
|
180
|
+
topInterior: 'scene:painted-top-interior',
|
|
181
|
+
lowerExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.lower,
|
|
182
|
+
middleExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.middle,
|
|
183
|
+
upperExterior: WALL_FACE_BAND_SOLID_SLOT_DEFAULTS.upper,
|
|
184
|
+
topExterior: 'library:painted-top-exterior',
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
describe('wall trim profiles', () => {
|
|
189
|
+
test('uses curated defaults while preserving legacy profile values', () => {
|
|
190
|
+
expect(WALL_SKIRTING_DEFAULT.profile).toBe('flat');
|
|
191
|
+
expect(WALL_CROWN_DEFAULT.profile).toBe('flat');
|
|
192
|
+
expect(WALL_CHAIR_RAIL_DEFAULT.profile).toBe('flat');
|
|
193
|
+
expect(WallTrimConfig.parse({ profile: 'flat' }).profile).toBe('flat');
|
|
194
|
+
expect(WallTrimConfig.parse({ profile: 'crown-layered' }).profile).toBe('crown-layered');
|
|
195
|
+
expect(WallTrimConfig.parse({ profile: 'triangle' }).profile).toBe('triangle');
|
|
196
|
+
});
|
|
197
|
+
test('declares separate default materials for each trim family', () => {
|
|
198
|
+
expect(WALL_SKIRTING_SLOT_DEFAULT).toBe('library:preset-softwhite');
|
|
199
|
+
expect(WALL_CROWN_SLOT_DEFAULT).toBe('library:preset-white');
|
|
200
|
+
expect(WALL_CHAIR_RAIL_SLOT_DEFAULT).toBe('library:preset-cream');
|
|
201
|
+
expect(WALL_SURFACE_SLOT_DEFAULTS.skirtingInterior).toBe(WALL_SKIRTING_SLOT_DEFAULT);
|
|
202
|
+
expect(WALL_SURFACE_SLOT_DEFAULTS.skirtingExterior).toBe(WALL_SKIRTING_SLOT_DEFAULT);
|
|
203
|
+
expect(WALL_SURFACE_SLOT_DEFAULTS.crownInterior).toBe(WALL_CROWN_SLOT_DEFAULT);
|
|
204
|
+
expect(WALL_SURFACE_SLOT_DEFAULTS.crownExterior).toBe(WALL_CROWN_SLOT_DEFAULT);
|
|
205
|
+
expect(WALL_SURFACE_SLOT_DEFAULTS.chairRailInterior).toBe(WALL_CHAIR_RAIL_SLOT_DEFAULT);
|
|
206
|
+
expect(WALL_SURFACE_SLOT_DEFAULTS.chairRailExterior).toBe(WALL_CHAIR_RAIL_SLOT_DEFAULT);
|
|
207
|
+
});
|
|
208
|
+
});
|
|
@@ -32,7 +32,7 @@ export declare const WindowNode: z.ZodObject<{
|
|
|
32
32
|
type: z.ZodDefault<z.ZodLiteral<"window">>;
|
|
33
33
|
material: z.ZodOptional<z.ZodObject<{
|
|
34
34
|
id: z.ZodOptional<z.ZodString>;
|
|
35
|
-
preset: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
preset: z.ZodOptional<z.ZodCatch<z.ZodEnum<{
|
|
36
36
|
custom: "custom";
|
|
37
37
|
white: "white";
|
|
38
38
|
brick: "brick";
|
|
@@ -43,7 +43,7 @@ export declare const WindowNode: z.ZodObject<{
|
|
|
43
43
|
plaster: "plaster";
|
|
44
44
|
tile: "tile";
|
|
45
45
|
marble: "marble";
|
|
46
|
-
}
|
|
46
|
+
}>>>;
|
|
47
47
|
properties: z.ZodOptional<z.ZodObject<{
|
|
48
48
|
color: z.ZodDefault<z.ZodString>;
|
|
49
49
|
roughness: z.ZodDefault<z.ZodNumber>;
|
|
@@ -62,6 +62,7 @@ export declare const WindowNode: z.ZodObject<{
|
|
|
62
62
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
63
63
|
}, z.core.$strip>>;
|
|
64
64
|
}, z.core.$strip>>;
|
|
65
|
+
slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
65
66
|
position: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
66
67
|
rotation: z.ZodDefault<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
67
68
|
side: z.ZodOptional<z.ZodEnum<{
|
|
@@ -69,6 +70,13 @@ export declare const WindowNode: z.ZodObject<{
|
|
|
69
70
|
back: "back";
|
|
70
71
|
}>>;
|
|
71
72
|
wallId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
roofSegmentId: z.ZodOptional<z.ZodString>;
|
|
74
|
+
roofFace: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
front: "front";
|
|
76
|
+
back: "back";
|
|
77
|
+
right: "right";
|
|
78
|
+
left: "left";
|
|
79
|
+
}>>;
|
|
72
80
|
width: z.ZodDefault<z.ZodNumber>;
|
|
73
81
|
height: z.ZodDefault<z.ZodNumber>;
|
|
74
82
|
openingKind: z.ZodDefault<z.ZodEnum<{
|
|
@@ -97,8 +105,8 @@ export declare const WindowNode: z.ZodObject<{
|
|
|
97
105
|
single: "single";
|
|
98
106
|
}>>;
|
|
99
107
|
hingesSide: z.ZodDefault<z.ZodEnum<{
|
|
100
|
-
left: "left";
|
|
101
108
|
right: "right";
|
|
109
|
+
left: "left";
|
|
102
110
|
}>>;
|
|
103
111
|
openingShape: z.ZodDefault<z.ZodEnum<{
|
|
104
112
|
rectangle: "rectangle";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../src/schema/nodes/window.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,UAAU;;;;;;;;;;;EAWrB,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAEnD,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../src/schema/nodes/window.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,UAAU;;;;;;;;;;;EAWrB,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAEnD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuErB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA"}
|
|
@@ -18,11 +18,23 @@ export const WindowNode = BaseNode.extend({
|
|
|
18
18
|
id: objectId('window'),
|
|
19
19
|
type: nodeType('window'),
|
|
20
20
|
material: MaterialSchema.optional(),
|
|
21
|
+
// Per-slot material overrides on the unified slot model. Keys: `frame`,
|
|
22
|
+
// `glass`. Value = a `MaterialRef` (`library:<id>` / `scene:<id>`). Absent =
|
|
23
|
+
// the frame/glass default. Mirrors `ShelfNode.slots`.
|
|
24
|
+
slots: z.record(z.string(), z.string()).optional(),
|
|
21
25
|
position: z.tuple([z.number(), z.number(), z.number()]).default([0, 0, 0]),
|
|
22
26
|
rotation: z.tuple([z.number(), z.number(), z.number()]).default([0, 0, 0]),
|
|
23
27
|
side: z.enum(['front', 'back']).optional(),
|
|
24
28
|
// Wall reference
|
|
25
29
|
wallId: z.string().optional(),
|
|
30
|
+
// Alternative host: a roof-segment's generated wall face (base wall
|
|
31
|
+
// under the roof or a coplanar gable end). When set, `position` is
|
|
32
|
+
// FACE-LOCAL — [u along the face, v height, z from the wall mid-plane]
|
|
33
|
+
// — exactly the wall-child convention; the renderer mounts the node
|
|
34
|
+
// inside the face frame (`getRoofWallFaceFrame`), which is what makes
|
|
35
|
+
// hosted children track segment resizes live.
|
|
36
|
+
roofSegmentId: z.string().optional(),
|
|
37
|
+
roofFace: z.enum(['front', 'back', 'right', 'left']).optional(),
|
|
26
38
|
// Overall dimensions
|
|
27
39
|
width: z.number().default(1.5),
|
|
28
40
|
height: z.number().default(1.5),
|
|
@@ -17,6 +17,8 @@ export declare const ZoneNode: z.ZodObject<{
|
|
|
17
17
|
type: z.ZodDefault<z.ZodLiteral<"zone">>;
|
|
18
18
|
name: z.ZodString;
|
|
19
19
|
polygon: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
20
|
+
autoFromWalls: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
boundaryWallIds: z.ZodDefault<z.ZodArray<z.ZodDefault<z.ZodTemplateLiteral<`wall_${string}`>>>>;
|
|
20
22
|
color: z.ZodDefault<z.ZodString>;
|
|
21
23
|
metadata: z.ZodDefault<z.ZodOptional<z.ZodJSONSchema>>;
|
|
22
24
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zone.d.ts","sourceRoot":"","sources":["../../../src/schema/nodes/zone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"zone.d.ts","sourceRoot":"","sources":["../../../src/schema/nodes/zone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;iBA0BpB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAA"}
|
|
@@ -7,6 +7,10 @@ export const ZoneNode = BaseNode.extend({
|
|
|
7
7
|
name: z.string(),
|
|
8
8
|
// Polygon boundary - array of [x, z] coordinates defining the zone
|
|
9
9
|
polygon: z.array(z.tuple([z.number(), z.number()])),
|
|
10
|
+
// Procedural room zones retain the walls that prove their enclosure. The
|
|
11
|
+
// stored polygon remains a fallback for missing or temporarily open walls.
|
|
12
|
+
autoFromWalls: z.boolean().default(false),
|
|
13
|
+
boundaryWallIds: z.array(objectId('wall')).default([]),
|
|
10
14
|
// Visual styling
|
|
11
15
|
color: z.string().default('#3b82f6'), // Default blue
|
|
12
16
|
metadata: z.json().optional().default({}),
|
|
@@ -17,6 +21,8 @@ export const ZoneNode = BaseNode.extend({
|
|
|
17
21
|
- levelId: level this zone is attached to
|
|
18
22
|
- name: zone name
|
|
19
23
|
- polygon: array of [x, z] points defining the zone boundary
|
|
24
|
+
- autoFromWalls: whether the boundary follows an enclosed wall loop
|
|
25
|
+
- boundaryWallIds: wall ids that prove the procedural enclosure
|
|
20
26
|
- color: hex color for visual styling
|
|
21
27
|
- metadata: zone metadata (optional)
|
|
22
28
|
`);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export type SceneMaterialId = `mat_${string}`;
|
|
3
|
+
export declare const generateSceneMaterialId: () => SceneMaterialId;
|
|
4
|
+
export declare const SceneMaterial: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
material: z.ZodObject<{
|
|
8
|
+
id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
preset: z.ZodOptional<z.ZodCatch<z.ZodEnum<{
|
|
10
|
+
custom: "custom";
|
|
11
|
+
white: "white";
|
|
12
|
+
brick: "brick";
|
|
13
|
+
concrete: "concrete";
|
|
14
|
+
wood: "wood";
|
|
15
|
+
glass: "glass";
|
|
16
|
+
metal: "metal";
|
|
17
|
+
plaster: "plaster";
|
|
18
|
+
tile: "tile";
|
|
19
|
+
marble: "marble";
|
|
20
|
+
}>>>;
|
|
21
|
+
properties: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
color: z.ZodDefault<z.ZodString>;
|
|
23
|
+
roughness: z.ZodDefault<z.ZodNumber>;
|
|
24
|
+
metalness: z.ZodDefault<z.ZodNumber>;
|
|
25
|
+
opacity: z.ZodDefault<z.ZodNumber>;
|
|
26
|
+
transparent: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
side: z.ZodDefault<z.ZodEnum<{
|
|
28
|
+
front: "front";
|
|
29
|
+
back: "back";
|
|
30
|
+
double: "double";
|
|
31
|
+
}>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
texture: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
url: z.ZodString;
|
|
35
|
+
repeat: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
36
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type SceneMaterial = z.infer<typeof SceneMaterial>;
|
|
41
|
+
//# sourceMappingURL=scene-material.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene-material.d.ts","sourceRoot":"","sources":["../../src/schema/scene-material.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,MAAM,MAAM,eAAe,GAAG,OAAO,MAAM,EAAE,CAAA;AAC7C,eAAO,MAAM,uBAAuB,QAAO,eAAoC,CAAA;AAE/E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIxB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { generateId } from './base';
|
|
3
|
+
import { MaterialSchema } from './material';
|
|
4
|
+
export const generateSceneMaterialId = () => generateId('mat');
|
|
5
|
+
export const SceneMaterial = z.object({
|
|
6
|
+
id: z.string(),
|
|
7
|
+
name: z.string(),
|
|
8
|
+
material: MaterialSchema,
|
|
9
|
+
});
|