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

Function parseCSSShadow

packages/core/ui/styling/css-shadow.ts:23–38  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

21 * @param value
22 */
23export function parseCSSShadow(value: string): ShadowCSSValues {
24 const data = parseCSSShorthand(value);
25 if (!data) {
26 return null;
27 }
28 const [offsetX, offsetY, blurRadius, spreadRadius] = data.values;
29
30 return {
31 inset: data.inset,
32 offsetX: offsetX,
33 offsetY: offsetY,
34 blurRadius: blurRadius,
35 spreadRadius: spreadRadius,
36 color: data.color ? new Color(data.color) : undefined,
37 };
38}

Callers 4

css-shadow.spec.tsFile · 0.90
buttonTapFunction · 0.90

Calls 1

parseCSSShorthandFunction · 0.90

Tested by

no test coverage detected