Phase 5 Stage D wall: port endpoint move, whole-move, placement (1:1 legacy)
Three remaining wall affordances ported into nodes/src/wall/ as
direct copies of the legacy implementations. Wall D is now complete.
- move-endpoint-tool.tsx (426 LoC) — linked-wall corner cascade +
Alt-detach + angle label. Mounted via `affordanceTools.move-endpoint`.
- move-tool.tsx (804 LoC, the most complex tool in the editor) —
center-drag with axis lock, linked-wall corner cascade via
`planWallMoveJunctions`, bridge wall ghost previews, auto-slab
live preview via `planAutoSlabsForLevel`, R/T rotation in 45°
steps, Shift to bypass grid snap, isNew metadata strip on first
commit. Mounted via `affordanceTools.move`.
- tool.tsx (332 LoC) — two-click placement with length/angle HUD,
Shift to bypass angle snap. Mounted via `def.tool`.
Editor public surface gains:
- createWallOnCurrentLevel, snapWallDraftPoint, WallPlanPoint
- MovingWallEndpoint type
ToolManager dispatch for `movingWallEndpoint` routes through the
registry with the legacy fallback (same shape as the fence
move-endpoint dispatch).
Wall is now A ✅ C ✅ D ✅. Stage B still pending (geometry depends on
level-batch miter data, blocked on `ctx.levelData` design decision).
Stage E pending (drop WallPanel — has slider drags + actions).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
6a1d853dd8
commit
56e022a093
@@ -229,7 +229,20 @@ export const ToolManager: React.FC = () => {
|
||||
<CeilingHoleEditor ceilingId={selectedCeilingId} holeIndex={editingHole.holeIndex} />
|
||||
)
|
||||
})()}
|
||||
{movingWallEndpoint && <MoveWallEndpointTool target={movingWallEndpoint} />}
|
||||
{movingWallEndpoint &&
|
||||
(() => {
|
||||
const RegistryAffordance = getRegistryAffordanceTool(
|
||||
movingWallEndpoint.wall.type,
|
||||
'move-endpoint',
|
||||
)
|
||||
return RegistryAffordance ? (
|
||||
<Suspense fallback={null}>
|
||||
<RegistryAffordance target={movingWallEndpoint} />
|
||||
</Suspense>
|
||||
) : (
|
||||
<MoveWallEndpointTool target={movingWallEndpoint} />
|
||||
)
|
||||
})()}
|
||||
{movingFenceEndpoint &&
|
||||
(() => {
|
||||
const RegistryAffordance = getRegistryAffordanceTool(
|
||||
|
||||
@@ -25,9 +25,12 @@ export {
|
||||
getSegmentAngleReferenceAtPoint,
|
||||
} from './components/tools/shared/segment-angle'
|
||||
export {
|
||||
createWallOnCurrentLevel,
|
||||
getWallGridStep,
|
||||
isWallLongEnough,
|
||||
snapScalarToGrid,
|
||||
snapWallDraftPoint,
|
||||
type WallPlanPoint,
|
||||
} from './components/tools/wall/wall-drafting'
|
||||
export { CameraActions as ViewerToolbarRight } from './components/ui/action-menu/camera-actions'
|
||||
export { ViewToggles as ViewerToolbarLeft } from './components/ui/action-menu/view-toggles'
|
||||
@@ -74,6 +77,7 @@ export { type CommandAction, useCommandRegistry } from './store/use-command-regi
|
||||
export type {
|
||||
FloorplanSelectionTool,
|
||||
MovingFenceEndpoint,
|
||||
MovingWallEndpoint,
|
||||
SplitOrientation,
|
||||
ViewMode,
|
||||
} from './store/use-editor'
|
||||
|
||||
Reference in New Issue
Block a user