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

Function justifyAbsolute

src/native-ts/yoga-layout/index.ts:2023–2037  ·  view source on GitHub ↗
(
  justify: Justify,
  leadEdge: number,
  trailEdge: number,
  childSize: number,
)

Source from the content-addressed store, hash-verified

2021}
2022
2023function justifyAbsolute(
2024 justify: Justify,
2025 leadEdge: number,
2026 trailEdge: number,
2027 childSize: number,
2028): number {
2029 switch (justify) {
2030 case Justify.Center:
2031 return leadEdge + (trailEdge - leadEdge - childSize) / 2
2032 case Justify.FlexEnd:
2033 return trailEdge - childSize
2034 default:
2035 return leadEdge
2036 }
2037}
2038
2039function alignAbsolute(
2040 align: Align,

Callers 1

layoutAbsoluteChildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected