Class: RgbColor
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:282
Extends
Constructors
new RgbColor()
new RgbColor(cssString, builder): RgbColor
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:301
Parameters
Parameter | Type |
---|---|
cssString | string |
builder | ColorBuilder |
Returns
Overrides
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
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:338
Returns
string
asRgbColor()
asRgbColor(): RgbColor
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:129
Returns
Inherited from
asThemeColor()
asThemeColor(): ThemeColor
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:390
Returns
Overrides
clone()
clone(): RgbColor
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:386
Returns
Overrides
equals()
equals(color): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:394
Parameters
Parameter | Type |
---|---|
color | Color |
Returns
boolean
Overrides
getAlpha()
getAlpha(): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:378
Returns
number
getBlue()
getBlue(): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:366
Returns
number
getColorType()
getColorType(): ColorType
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:382
Returns
Overrides
getCssString()
getCssString(): string
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:406
Returns
string
getGreen()
getGreen(): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:354
Returns
number
getRed()
getRed(): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:342
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