@univerjscoreclassesColor

@univerjs/core v0.5.4


Class: Color

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:87

Extended by

Constructors

new Color()

new Color(builder): Color

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

Parameters

ParameterType
builderColorBuilder

Returns

Color

Properties

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

Methods

asRgbColor()

asRgbColor(): RgbColor

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

Returns

RgbColor


asThemeColor()

asThemeColor(): ThemeColor

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

Returns

ThemeColor


clone()

clone(): Color

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

Returns

Color


equals()

equals(color): boolean

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

Parameters

ParameterType
colorColor

Returns

boolean


getColorType()

getColorType(): ColorType

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

Returns

ColorType


hexToRgbString()

static hexToRgbString(hex): Nullable<string>

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

Parameters

ParameterType
hexstring

Returns

Nullable<string>


hexValueToRgbColor()

static hexValueToRgbColor(hexValue): RgbColor

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

Parameters

ParameterType
hexValuestring

Returns

RgbColor


rgbColorToHexValue()

static rgbColorToHexValue(color): string

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

Parameters

ParameterType
colorRgbColor

Returns

string