Snap roof segment resize handles to grid
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user