@univerjscoreclassesColorbuilder

@univerjs/core v0.5.4


Class: ColorBuilder

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:21

Constructors

new ColorBuilder()

new ColorBuilder(): ColorBuilder

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:32

Returns

ColorBuilder

Methods

asRgbColor()

asRgbColor(): RgbColor

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:38

Returns

RgbColor


asThemeColor()

asThemeColor(): ThemeColor

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:42

Returns

ThemeColor


build()

build(): Nullable<Color>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:46

Returns

Nullable<Color>


getColorType()

getColorType(): ColorType

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:82

Returns

ColorType


setRgbColor()

setRgbColor(cssString): ColorBuilder

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:60

Parameters

ParameterType
cssStringstring

Returns

ColorBuilder


setThemeColor()

setThemeColor(theme): ColorBuilder

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:76

Parameters

ParameterType
themeThemeColorType

Returns

ColorBuilder


setThemeColors()

setThemeColors(value): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:66

Parameters

ParameterType
valueThemeColors

Returns

void


setThemeTint()

setThemeTint(value): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/color/color.ts:71

Parameters

ParameterType
valuenumber

Returns

void