Skip to main content

Function: svgColorValueToDefinition()

svgColorValueToDefinition(value): ColorDefinition

Converts a color value found in an SVG file into a color definition. This logic will split out the browser value eg. "#ffffff" and the spot color value if available eg. icc-named-color(cub, PANTONE_AAA_100_C)

Parameters​

value​

string

A color definition based on the data provided in the value.

Returns​

ColorDefinition