MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / parseAngle

Function parseAngle

packages/core/css/parser.ts:232–241  ·  view source on GitHub ↗
(value: string, start = 0)

Source from the content-addressed store, hash-verified

230 }),
231};
232export function parseAngle(value: string, start = 0): Parsed<Angle> {
233 const angleResult = parseUnit(value, start);
234 if (angleResult) {
235 const { start, end, value } = angleResult;
236
237 return (angleUnitsToRadMap[value.unit] || ((_, __, ___) => null))(start, end, value.value);
238 }
239
240 return null;
241}
242
243const backgroundSizeKeywords = new Set(['auto', 'contain', 'cover']);
244export function parseBackgroundSize(value: string, start = 0, keyword = parseKeyword(value, start)): Parsed<BackgroundSize> {

Callers 1

parseLinearGradientFunction · 0.85

Calls 1

parseUnitFunction · 0.85

Tested by

no test coverage detected