@univerjscoreclassesColorbuilder

@univerjs/core v0.5.0-beta.1Docs


Class: ColorBuilder

Constructors

new ColorBuilder()

new ColorBuilder(): ColorBuilder

Returns

ColorBuilder

Defined in

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

Methods

asRgbColor()

asRgbColor(): RgbColor

Returns

RgbColor

Defined in

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


asThemeColor()

asThemeColor(): ThemeColor

Returns

ThemeColor

Defined in

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


build()

build(): Nullable<Color>

Returns

Nullable<Color>

Defined in

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


getColorType()

getColorType(): ColorType

Returns

ColorType

Defined in

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


setRgbColor()

setRgbColor(cssString): ColorBuilder

Parameters

ParameterType
cssStringstring

Returns

ColorBuilder

Defined in

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


setThemeColor()

setThemeColor(theme): ColorBuilder

Parameters

ParameterType
themeThemeColorType

Returns

ColorBuilder

Defined in

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


setThemeColors()

setThemeColors(value): void

Parameters

ParameterType
valueThemeColors

Returns

void

Defined in

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


setThemeTint()

setThemeTint(value): void

Parameters

ParameterType
valuenumber

Returns

void

Defined in

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