Skip to content

Commit 6430d83

Browse files
skunkworxdarkpsychedelicious
authored andcommitted
Update nodes auto layout spacing for snap to grid size
Update workflowSettingsSlice.ts Change the default settings for auto layout nodeSpacing and layerSpacing to 30 instead of 32. This will make the x position of auto layed nodes land on the snap to grid positions. Because the node width (320) + 30 = 350 which is divisible by the snap to grid size of 25.
1 parent c3f6389 commit 6430d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/frontend/web/src/features/nodes/store/workflowSettingsSlice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const initialState: WorkflowSettingsState = {
3333
_version: 1,
3434
shouldShowMinimapPanel: true,
3535
layeringStrategy: 'network-simplex',
36-
nodeSpacing: 32,
37-
layerSpacing: 32,
36+
nodeSpacing: 30,
37+
layerSpacing: 30,
3838
layoutDirection: 'LR',
3939
nodeAlignment: 'UL',
4040
shouldValidateGraph: true,

0 commit comments

Comments
 (0)