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
Parameter | Type |
---|---|
theme | ThemeColorType |
themeTint | number |
themeColors | ThemeColors |
builder | ColorBuilder |
Returns
Overrides
Properties
Property | Modifier | Type | Inherited from | Defined in |
---|---|---|---|---|
_builder | protected | ColorBuilder | Color ._builder | packages/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
Overrides
asThemeColor()
asThemeColor(): ThemeColor
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:133
Returns
Inherited from
clone()
clone(): ThemeColor
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:473
Returns
Overrides
equals()
equals(color): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:477
Parameters
Parameter | Type |
---|---|
color | Color |
Returns
boolean
Overrides
getColorType()
getColorType(): ColorType
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:484
Returns
Overrides
getThemeColorType()
getThemeColorType(): ThemeColorType
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:488
Returns
lumValue()
lumValue(tint, lum): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:427
Parameters
Parameter | Type |
---|---|
tint | number |
lum | number |
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
Parameter | Type |
---|---|
hex | string |
Returns
Nullable
<string
>
Inherited from
hexValueToRgbColor()
static hexValueToRgbColor(hexValue): RgbColor
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:100
Parameters
Parameter | Type |
---|---|
hexValue | string |
Returns
Inherited from
rgbColorToHexValue()
static rgbColorToHexValue(color): string
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:94
Parameters
Parameter | Type |
---|---|
color | RgbColor |
Returns
string