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

Function hasAnyAutoEdge

src/native-ts/yoga-layout/index.ts:256–259  ·  view source on GitHub ↗
(edges: Value[])

Source from the content-addressed store, hash-verified

254// Setter helpers for the _hasAutoMargin / _hasPosition fast-path flags.
255// Unit.Undefined = 0, Unit.Auto = 3.
256function hasAnyAutoEdge(edges: Value[]): boolean {
257 for (let i = 0; i < 9; i++) if (edges[i]!.unit === 3) return true
258 return false
259}
260function hasAnyDefinedEdge(edges: Value[]): boolean {
261 for (let i = 0; i < 9; i++) if (edges[i]!.unit !== 0) return true
262 return false

Callers 2

setMarginMethod · 0.85
setMarginPercentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected