MCPcopy Index your code
hub / github.com/simstudioai/sim / filterLayoutEligibleBlockIds

Function filterLayoutEligibleBlockIds

apps/sim/lib/workflows/autolayout/utils.ts:108–117  ·  view source on GitHub ↗
(
  blockIds: string[],
  blocks: Record<string, BlockState>
)

Source from the content-addressed store, hash-verified

106 * Filters block IDs to only include those eligible for layout
107 */
108export function filterLayoutEligibleBlockIds(
109 blockIds: string[],
110 blocks: Record<string, BlockState>
111): string[] {
112 return blockIds.filter((id) => {
113 const block = blocks[id]
114 if (!block) return false
115 return !shouldSkipAutoLayout(block)
116 })
117}
118
119/**
120 * Gets metrics for a container block

Callers 5

layoutGroupFunction · 0.90
applyAutoLayoutFunction · 0.90
layoutContainersFunction · 0.90
calculateSubflowDepthsFunction · 0.85

Calls 1

shouldSkipAutoLayoutFunction · 0.85

Tested by

no test coverage detected