@univerjscoreclassesThemecolor

@univerjs/core v0.5.4


Class: ThemeColor

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

Extends

Constructors

new ThemeColor()

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

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

Parameters

ParameterType
themeThemeColorType
themeTintnumber
themeColorsThemeColors
builderColorBuilder

Returns

ThemeColor

Overrides

Color.constructor

Properties

PropertyModifierTypeInherited fromDefined in
_builderprotectedColorBuilderColor._builderpackages/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:443

Returns

RgbColor

Overrides

Color.asRgbColor


asThemeColor()

asThemeColor(): ThemeColor

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

Returns

ThemeColor

Inherited from

Color.asThemeColor


clone()

clone(): ThemeColor

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

Returns

ThemeColor

Overrides

Color.clone


equals()

equals(color): boolean

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

Parameters

ParameterType
colorColor

Returns

boolean

Overrides

Color.equals


getColorType()

getColorType(): ColorType

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

Returns

ColorType

Overrides

Color.getColorType


getThemeColorType()

getThemeColorType(): ThemeColorType

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

Returns

ThemeColorType


lumValue()

lumValue(tint, lum): number

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

Parameters

ParameterType
tintnumber
lumnumber

Returns

number


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>

Inherited from

Color.hexToRgbString


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

Inherited from

Color.hexValueToRgbColor


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

Inherited from

Color.rgbColorToHexValue