@univerjscoreclassesColor

@univerjs/core v0.5.0-beta.1Docs


Class: Color

Extended by

Constructors

new Color()

new Color(builder): Color

Parameters

ParameterType
builderColorBuilder

Returns

Color

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:90

Properties

PropertyModifierTypeDefined in
_builderprotectedColorBuilderpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:88

Methods

asRgbColor()

asRgbColor(): RgbColor

Returns

RgbColor

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:129


asThemeColor()

asThemeColor(): ThemeColor

Returns

ThemeColor

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:133


clone()

clone(): Color

Returns

Color

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:141


equals()

equals(color): boolean

Parameters

ParameterType
colorColor

Returns

boolean

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:145


getColorType()

getColorType(): ColorType

Returns

ColorType

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:137


hexToRgbString()

static hexToRgbString(hex): Nullable<string>

Parameters

ParameterType
hexstring

Returns

Nullable<string>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:114


hexValueToRgbColor()

static hexValueToRgbColor(hexValue): RgbColor

Parameters

ParameterType
hexValuestring

Returns

RgbColor

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:100


rgbColorToHexValue()

static rgbColorToHexValue(color): string

Parameters

ParameterType
colorRgbColor

Returns

string

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:94