ui/colorpicker/utils
module
Type Definitions
module:ui/colorpicker/utils~ColorPickerConfigmodule:ui/colorpicker/utils~ColorPickerOutputFormatmodule:ui/colorpicker/utils~ColorPickerViewConfig
Functions
convertColor( color, outputFormat ) → stringinternalmodule:ui/colorpicker/utils~convertColorParses and converts the color string to requested format. Handles variety of color spaces like
hsl,hexorrgb.Parameters
color : stringoutputFormat : ColorPickerOutputFormat
Returns
stringA color string.
convertToHex( color ) → stringinternalmodule:ui/colorpicker/utils~convertToHexConverts a color string to hex format.
Parameters
color : string
Returns
stringA color string.
registerCustomElement( elementName, constructor ) → voidinternalmodule:ui/colorpicker/utils~registerCustomElementRegisters the custom element in the CustomElementsRegistry.
Parameters
elementName : stringconstructor : CustomElementConstructor
Returns
void