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

Function isMarginAuto

src/native-ts/yoga-layout/index.ts:250–252  ·  view source on GitHub ↗
(edges: Value[], physicalEdge: number)

Source from the content-addressed store, hash-verified

248}
249
250function isMarginAuto(edges: Value[], physicalEdge: number): boolean {
251 return resolveEdgeRaw(edges, physicalEdge).unit === Unit.Auto
252}
253
254// Setter helpers for the _hasAutoMargin / _hasPosition fast-path flags.
255// Unit.Undefined = 0, Unit.Auto = 3.

Callers 1

layoutNodeFunction · 0.85

Calls 1

resolveEdgeRawFunction · 0.85

Tested by

no test coverage detected