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

Function resolveGap

src/native-ts/yoga-layout/index.ts:2345–2350  ·  view source on GitHub ↗
(style: Style, gutter: Gutter, ownerSize: number)

Source from the content-addressed store, hash-verified

2343}
2344
2345function resolveGap(style: Style, gutter: Gutter, ownerSize: number): number {
2346 let v = style.gap[gutter]!
2347 if (v.unit === Unit.Undefined) v = style.gap[Gutter.All]!
2348 const r = resolveValue(v, ownerSize)
2349 return isDefined(r) ? Math.max(0, r) : 0
2350}
2351
2352function boundAxis(
2353 style: Style,

Callers 1

layoutNodeFunction · 0.85

Calls 3

isDefinedFunction · 0.85
maxMethod · 0.80
resolveValueFunction · 0.70

Tested by

no test coverage detected