@versatiles/map-state
    Preparing search index...

    Function parseColor

    • Parse a CSS color: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa", "rgb()", "rgba()", "hsl()", "hsla()" (with commas or spaces, and "/ alpha") or "transparent". Returns undefined otherwise, e.g. for named colors.

      Parameters

      • value: string

      Returns RGBA | undefined