@univerjscoreclassesThemecolor

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


Class: ThemeColor

Extends

Constructors

new ThemeColor()

new ThemeColor(
   theme, 
   themeTint, 
   themeColors, 
   builder): ThemeColor

Parameters

ParameterType
themeThemeColorType
themeTintnumber
themeColorsThemeColors
builderColorBuilder

Returns

ThemeColor

Overrides

Color.constructor

Defined in

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

Properties

PropertyModifierTypeInherited fromDefined in
_builderprotectedColorBuilderColor._builderpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:88

Methods

asRgbColor()

asRgbColor(): RgbColor

Returns

RgbColor

Overrides

Color.asRgbColor

Defined in

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


asThemeColor()

asThemeColor(): ThemeColor

Returns

ThemeColor

Inherited from

Color.asThemeColor

Defined in

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


clone()

clone(): ThemeColor

Returns

ThemeColor

Overrides

Color.clone

Defined in

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


equals()

equals(color): boolean

Parameters

ParameterType
colorColor

Returns

boolean

Overrides

Color.equals

Defined in

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


getColorType()

getColorType(): ColorType

Returns

ColorType

Overrides

Color.getColorType

Defined in

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


getThemeColorType()

getThemeColorType(): ThemeColorType

Returns

ThemeColorType

Defined in

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


lumValue()

lumValue(tint, lum): number

Parameters

ParameterType
tintnumber
lumnumber

Returns

number

Defined in

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


hexToRgbString()

static hexToRgbString(hex): Nullable<string>

Parameters

ParameterType
hexstring

Returns

Nullable<string>

Inherited from

Color.hexToRgbString

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

Inherited from

Color.hexValueToRgbColor

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

Inherited from

Color.rgbColorToHexValue

Defined in

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