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

Function parseCSSStroke

packages/core/ui/styling/css-stroke.ts:15–26  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

13 * @param value
14 */
15export function parseCSSStroke(value: string): StrokeCSSValues {
16 const data = parseCSSShorthand(value);
17 if (!data) {
18 return null;
19 }
20 const [width] = data.values;
21
22 return {
23 width,
24 color: data.color ? new Color(data.color) : undefined,
25 };
26}

Callers 2

css-stroke.spec.tsFile · 0.90

Calls 1

parseCSSShorthandFunction · 0.90

Tested by

no test coverage detected