@univerjs/core v0.5.0-beta.1 • Docs
Class: Color
Extended by
Constructors
new Color()
new Color(builder): Color
Parameters
Parameter | Type |
---|---|
builder | ColorBuilder |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:90
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
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:129
asThemeColor()
asThemeColor(): ThemeColor
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:133
clone()
clone(): Color
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:141
equals()
equals(color): boolean
Parameters
Parameter | Type |
---|---|
color | Color |
Returns
boolean
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:145
getColorType()
getColorType(): ColorType
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:137
hexToRgbString()
static hexToRgbString(hex): Nullable<string>
Parameters
Parameter | Type |
---|---|
hex | string |
Returns
Nullable
<string
>
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
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
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:94