@univerjs-pro/sheets-chart-ui v0.5.4


Class: SheetsChartUIService

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:861

Extends

Constructors

new SheetsChartUIService()

new SheetsChartUIService(
   _chartModelService, 
   _sheetsChartService, 
   _commandService, 
   _localeService, 
   _chartHostProviderService, 
   _univerInstanceService): SheetsChartUIService

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:865

Parameters

ParameterType
_chartModelServiceChartModelService
_sheetsChartServiceSheetsChartService
_commandServiceICommandService
_localeServiceLocaleService
_chartHostProviderServiceIChartHostProviderService
_univerInstanceServiceIUniverInstanceService

Returns

SheetsChartUIService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96

Accessors

activeChartModel

Get Signature

get activeChartModel(): Nullable<ChartModel>

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:878

Returns

Nullable<ChartModel>


rangeSelectMode

Get Signature

get rangeSelectMode(): boolean

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:882

Returns

boolean

Set Signature

set rangeSelectMode(on): void

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:886

Parameters
ParameterType
onboolean
Returns

void

Methods

dispose()

dispose(): void

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:937

Returns

void

Overrides

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


executeChartUpdateConfig()

executeChartUpdateConfig(params): void

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:909

Parameters

ParameterType
paramsOmit<IChartUpdateConfigCommandParams, "unitId">

Returns

void


executeChartUpdateSourceConfig()

executeChartUpdateSourceConfig(params): void

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:916

Parameters

ParameterType
paramsOmit<IChartUpdateSourceCommandParams, "unitId">

Returns

void


getDataSource()

getDataSource(id): undefined | IChartDataSource

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:890

Parameters

ParameterType
idstring

Returns

undefined | IChartDataSource


getViewState()

getViewState<V>(id): undefined | IChartConfigState<V, V>

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:898

Type Parameters

Type ParameterDefault type
V extends ChartConfigStateValueChartConfigStateValue

Parameters

ParameterType
idkeyof IChartConfigStateMap

Returns

undefined | IChartConfigState<V, V>


registerViewState()

registerViewState<T>(id, state): void

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:894

Type Parameters

Type ParameterDefault type
T extends keyof IChartConfigStateMapkeyof IChartConfigStateMap

Parameters

ParameterType
idT
state(chartModel) => IChartConfigStateMap[T]

Returns

void


removeViewState()

removeViewState(id): void

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:922

Parameters

ParameterType
idkeyof IChartConfigStateMap

Returns

void


setBorder()

setBorder(id, color): void

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:929

Parameters

ParameterType
idstring
colorstring

Returns

void


t()

t(...args): string

Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:933

Parameters

ParameterType
args[string, ...args: string[]]

Returns

string