Snap roof segment resize handles to grid

This commit is contained in:
Aymeric Rabot
2026-06-07 00:44:58 -04:00
parent fe0a1056f2
commit 21b79c0d62
6 changed files with 21 additions and 3 deletions
+2
View File
@@ -130,6 +130,8 @@ export type LinearResizeHandle<N> = {
overrideTarget?: (node: N, sceneApi: SceneApi) => AnyNodeId | undefined
min?: number | ((node: N, sceneApi: SceneApi) => number)
max?: number | ((node: N, sceneApi: SceneApi) => number)
/** Snap the resized scalar to the editor's active grid step before apply. */
gridSnap?: boolean
placement: HandlePlacement<N>
/**
* Dimension this handle steers (e.g. `'height'`). When set, the editor
+2
View File
@@ -541,6 +541,8 @@ export type FloorplanAffordance<N> = {
nodes: Record<AnyNodeId, AnyNode>
/** Initial pointer position in plan coordinates. */
initialPlanPoint: FloorplanAffordancePoint
/** Active editor grid step in meters. */
gridSnapStep: number
}): FloorplanAffordanceSession
}