MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isBaselineLayout

Function isBaselineLayout

src/native-ts/yoga-layout/index.ts:2325–2332  ·  view source on GitHub ↗
(node: Node, flowChildren: Node[])

Source from the content-addressed store, hash-verified

2323// A container uses baseline layout only for row direction, when either
2324// align-items is baseline or any flow child has align-self: baseline.
2325function isBaselineLayout(node: Node, flowChildren: Node[]): boolean {
2326 if (!isRow(node.style.flexDirection)) return false
2327 if (node.style.alignItems === Align.Baseline) return true
2328 for (const c of flowChildren) {
2329 if (c.style.alignSelf === Align.Baseline) return true
2330 }
2331 return false
2332}
2333
2334function childMarginForAxis(
2335 child: Node,

Callers 1

layoutNodeFunction · 0.85

Calls 1

isRowFunction · 0.85

Tested by

no test coverage detected