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

Function percentValue

src/native-ts/yoga-layout/index.ts:93–95  ·  view source on GitHub ↗
(v: number)

Source from the content-addressed store, hash-verified

91 return { unit: Unit.Point, value: v }
92}
93function percentValue(v: number): Value {
94 return { unit: Unit.Percent, value: v }
95}
96
97function resolveValue(v: Value, ownerSize: number): number {
98 switch (v.unit) {

Callers 12

setWidthPercentMethod · 0.85
setHeightPercentMethod · 0.85
setMinWidthPercentMethod · 0.85
setMinHeightPercentMethod · 0.85
setMaxWidthPercentMethod · 0.85
setMaxHeightPercentMethod · 0.85
setFlexBasisPercentMethod · 0.85
setPositionPercentMethod · 0.85
setMarginPercentMethod · 0.85
setPaddingPercentMethod · 0.85
setGapPercentMethod · 0.85
parseDimensionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected