Skip to content

Commit 699bdef

Browse files
committed
cleanup
1 parent 8b18bfd commit 699bdef

File tree

5 files changed

+0
-10
lines changed

5 files changed

+0
-10
lines changed

apps/sim/lib/workflows/autolayout/constants.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ export const DEFAULT_LAYOUT_OPTIONS = {
7575
horizontalSpacing: DEFAULT_HORIZONTAL_SPACING,
7676
verticalSpacing: DEFAULT_VERTICAL_SPACING,
7777
padding: DEFAULT_LAYOUT_PADDING,
78-
alignment: 'center' as const,
7978
}
8079

8180
/**
@@ -90,5 +89,4 @@ export const CONTAINER_LAYOUT_OPTIONS = {
9089
horizontalSpacing: DEFAULT_CONTAINER_HORIZONTAL_SPACING,
9190
verticalSpacing: DEFAULT_VERTICAL_SPACING,
9291
padding: { x: CONTAINER_PADDING_X, y: CONTAINER_PADDING_Y },
93-
alignment: 'center' as const,
9492
}

apps/sim/lib/workflows/autolayout/containers.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,12 @@ export function layoutContainers(
2828
): void {
2929
const { children } = getBlocksByParent(blocks)
3030

31-
// Build container-specific layout options
32-
// If horizontalSpacing provided, reduce by 15% for tighter container layout
33-
// Otherwise use the default container spacing (400)
3431
const containerOptions: LayoutOptions = {
3532
horizontalSpacing: options.horizontalSpacing
3633
? options.horizontalSpacing * 0.85
3734
: DEFAULT_CONTAINER_HORIZONTAL_SPACING,
3835
verticalSpacing: options.verticalSpacing ?? DEFAULT_VERTICAL_SPACING,
3936
padding: { x: CONTAINER_PADDING_X, y: CONTAINER_PADDING_Y },
40-
alignment: options.alignment,
4137
}
4238

4339
for (const [parentId, childIds] of children.entries()) {

apps/sim/lib/workflows/autolayout/targeted.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ function computeLayoutPositions(
228228
layoutOptions: {
229229
horizontalSpacing: isContainer ? horizontalSpacing * 0.85 : horizontalSpacing,
230230
verticalSpacing,
231-
alignment: 'center',
232231
},
233232
subflowDepths,
234233
})

apps/sim/lib/workflows/autolayout/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export interface LayoutOptions {
44
horizontalSpacing?: number
55
verticalSpacing?: number
66
padding?: { x: number; y: number }
7-
alignment?: 'start' | 'center' | 'end'
87
}
98

109
export interface LayoutResult {

apps/sim/lib/workflows/autolayout/utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ export type LayoutFunction = (
329329
horizontalSpacing?: number
330330
verticalSpacing?: number
331331
padding?: { x: number; y: number }
332-
alignment?: 'start' | 'center' | 'end'
333332
}
334333
subflowDepths?: Map<string, number>
335334
}
@@ -418,7 +417,6 @@ export function prepareContainerDimensions(
418417
layoutOptions: {
419418
horizontalSpacing: horizontalSpacing * 0.85,
420419
verticalSpacing,
421-
alignment: 'center',
422420
},
423421
})
424422

0 commit comments

Comments
 (0)