From 15daeaace6dc34f254391e0dd0c53c87d94a9c7e Mon Sep 17 00:00:00 2001 From: sudhir Date: Tue, 28 Apr 2026 14:50:51 +0530 Subject: [PATCH] Standardize stair controls on slider inputs --- bun.lock | 1 + .../core/src/systems/stair/stair-opening-sync.ts | 8 -------- .../src/components/tools/spawn/spawn-tool.tsx | 2 +- .../src/components/ui/panels/stair-panel.tsx | 14 +++++++------- 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/bun.lock b/bun.lock index 95fd2c69..fc2f7c2f 100644 --- a/bun.lock +++ b/bun.lock @@ -104,6 +104,7 @@ "motion": "^12.34.3", "nanoid": "^5.1.6", "tailwind-merge": "^3.5.0", + "three-mesh-bvh": "^0.9.8", "zod": "^4.3.6", "zustand": "^5.0.11", }, diff --git a/packages/core/src/systems/stair/stair-opening-sync.ts b/packages/core/src/systems/stair/stair-opening-sync.ts index e4489631..2e478cd2 100644 --- a/packages/core/src/systems/stair/stair-opening-sync.ts +++ b/packages/core/src/systems/stair/stair-opening-sync.ts @@ -9,14 +9,6 @@ import type { } from '../../schema' import { resolveLevelId } from '../../hooks/spatial-grid/spatial-grid-sync' -import type { - AnyNode, - AnyNodeId, - CeilingNode, - SlabNode, - StairNode, - StairSegmentNode, -} from '../../schema' import { DEFAULT_WALL_HEIGHT } from '../wall/wall-footprint' type Point2D = [number, number] diff --git a/packages/editor/src/components/tools/spawn/spawn-tool.tsx b/packages/editor/src/components/tools/spawn/spawn-tool.tsx index c68cfa10..3bd1da3e 100644 --- a/packages/editor/src/components/tools/spawn/spawn-tool.tsx +++ b/packages/editor/src/components/tools/spawn/spawn-tool.tsx @@ -20,7 +20,7 @@ const SPAWN_ICON = ( // eslint-disable-next-line @next/next/no-img-element Spawn Point ) diff --git a/packages/editor/src/components/ui/panels/stair-panel.tsx b/packages/editor/src/components/ui/panels/stair-panel.tsx index 362c42aa..9ee03abb 100644 --- a/packages/editor/src/components/ui/panels/stair-panel.tsx +++ b/packages/editor/src/components/ui/panels/stair-panel.tsx @@ -294,7 +294,7 @@ export function StairPanel() { /> {(node.slabOpeningMode ?? 'none') === 'destination' ? ( - - - - )} {(node.stairType === 'spiral' || !(node.fillToFloor ?? true)) && ( - )} - {(node.topLandingMode ?? 'none') === 'integrated' && ( -