floor-elevation: restore stripped import + fix column rotation type

Two follow-up fixes after the FloorElevationSystem landed:

 - `viewer/src/components/viewer/index.tsx`: the auto-format hook
   stripped the `FloorElevationSystem` import a second time, leaving
   the JSX mount unresolved.
 - `packages/nodes/src/column/definition.ts`: column stores Y rotation
   as a scalar `number`, but `floorPlaced.footprint` types the rotation
   field as the full Euler tuple. Wrap as `[0, column.rotation, 0]`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Wassim SAMAD
2026-05-19 19:54:35 -04:00
co-authored by Claude Opus 4.7
parent e3f2343456
commit 2bf824cc91
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -44,7 +44,9 @@ export const columnDefinition: NodeDefinition<typeof ColumnNode> = {
const column = node as ColumnNodeType
return {
dimensions: [column.width, column.height, column.depth] as [number, number, number],
rotation: column.rotation,
// Column stores Y rotation as a scalar; the slab-overlap query
// expects the full Euler tuple.
rotation: [0, column.rotation, 0] as [number, number, number],
}
},
},