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
Parameter | Type |
---|---|
builder | ColorBuilder |
Returns
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
_builder | protected | ColorBuilder | 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:129
Returns
asThemeColor()
asThemeColor(): ThemeColor
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:133
Returns
clone()
clone(): Color
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:141
Returns
equals()
equals(color): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:145
Parameters
Parameter | Type |
---|---|
color | Color |
Returns
boolean
getColorType()
getColorType(): ColorType
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:137
Returns
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
>
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
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