@univerjs/core v0.5.0-beta.1 • Docs
Class: ThemeColor
Extends
Constructors
new ThemeColor()
new ThemeColor(
theme,
themeTint,
themeColors,
builder): ThemeColor
Parameters
Parameter | Type |
---|---|
theme | ThemeColorType |
themeTint | number |
themeColors | ThemeColors |
builder | ColorBuilder |
Returns
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:420
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
Returns
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:443
asThemeColor()
asThemeColor(): ThemeColor
Returns
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:133
clone()
clone(): ThemeColor
Returns
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:473
equals()
equals(color): boolean
Parameters
Parameter | Type |
---|---|
color | Color |
Returns
boolean
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:477
getColorType()
getColorType(): ColorType
Returns
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:484
getThemeColorType()
getThemeColorType(): ThemeColorType
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:488
lumValue()
lumValue(tint, lum): number
Parameters
Parameter | Type |
---|---|
tint | number |
lum | number |
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
Parameter | Type |
---|---|
hex | string |
Returns
Nullable
<string
>
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:114
hexValueToRgbColor()
static hexValueToRgbColor(hexValue): RgbColor
Parameters
Parameter | Type |
---|---|
hexValue | string |
Returns
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:100
rgbColorToHexValue()
static rgbColorToHexValue(color): string
Parameters
Parameter | Type |
---|---|
color | RgbColor |
Returns
string
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:94