@univerjs/core v0.5.0-beta.1 • Docs
Class: RgbColor
Extends
Constructors
new RgbColor()
new RgbColor(cssString, builder): RgbColor
Parameters
Parameter | Type |
---|---|
cssString | string |
builder | ColorBuilder |
Returns
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:301
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_builder | protected | ColorBuilder | undefined | Color ._builder | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:88 |
RGB_COLOR_AMT | static | number | 0 | - | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:283 |
RGB_EXTRACT | static | RegExp | undefined | - | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:289 |
RGBA_EXTRACT | static | RegExp | undefined | - | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:285 |
Methods
asHexString()
asHexString(): string
Returns
string
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:338
asRgbColor()
asRgbColor(): RgbColor
Returns
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:129
asThemeColor()
asThemeColor(): ThemeColor
Returns
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:390
clone()
clone(): RgbColor
Returns
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:386
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:394
getAlpha()
getAlpha(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:378
getBlue()
getBlue(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:366
getColorType()
getColorType(): ColorType
Returns
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:382
getCssString()
getCssString(): string
Returns
string
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:406
getGreen()
getGreen(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:354
getRed()
getRed(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:342
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