@univerjs/core v0.5.0-beta.1 • Docs
Class: ColorBuilder
Constructors
new ColorBuilder()
new ColorBuilder(): ColorBuilder
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:32
Methods
asRgbColor()
asRgbColor(): RgbColor
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:38
asThemeColor()
asThemeColor(): ThemeColor
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:42
build()
build(): Nullable<Color>
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:46
getColorType()
getColorType(): ColorType
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:82
setRgbColor()
setRgbColor(cssString): ColorBuilder
Parameters
Parameter | Type |
---|---|
cssString | string |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:60
setThemeColor()
setThemeColor(theme): ColorBuilder
Parameters
Parameter | Type |
---|---|
theme | ThemeColorType |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:76
setThemeColors()
setThemeColors(value): void
Parameters
Parameter | Type |
---|---|
value | ThemeColors |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:66
setThemeTint()
setThemeTint(value): void
Parameters
Parameter | Type |
---|---|
value | number |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:71