@univerjs-pro/sheets-chart-ui v0.5.0-beta.1Docs


Class: SheetsChartUIService

Extends

Constructors

new SheetsChartUIService()

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

Parameters

ParameterType
_chartModelServiceChartModelService
_sheetsChartServiceSheetsChartService
_commandServiceICommandService
_localeServiceLocaleService
_chartHostProviderServiceIChartHostProviderService
_univerInstanceServiceIUniverInstanceService

Returns

SheetsChartUIService

Overrides

Disposable.constructor

Defined in

packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:843

Properties

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

Accessors

activeChartModel

Get Signature

get activeChartModel(): Nullable<ChartModel>
Returns

Nullable<ChartModel>

Defined in

packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:856


rangeSelectMode

Get Signature

get rangeSelectMode(): boolean
Returns

boolean

Set Signature

set rangeSelectMode(on): void
Parameters
ParameterType
onboolean
Returns

void

Defined in

packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:860

Methods

dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:915


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


executeChartUpdateConfig()

executeChartUpdateConfig(params): void

Parameters

ParameterType
paramsOmit<IChartUpdateConfigCommandParams, "unitId">

Returns

void

Defined in

packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:887


executeChartUpdateSourceConfig()

executeChartUpdateSourceConfig(params): void

Parameters

ParameterType
paramsOmit<IChartUpdateSourceCommandParams, "unitId">

Returns

void

Defined in

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


getDataSource()

getDataSource(id): undefined | IChartDataSource

Parameters

ParameterType
idstring

Returns

undefined | IChartDataSource

Defined in

packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:868


getViewState()

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

Type Parameters

Type ParameterDefault type
V extends ChartConfigStateValueChartConfigStateValue

Parameters

ParameterType
idkeyof IChartConfigStateMap

Returns

undefined | IChartConfigState<V, V>

Defined in

packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:876


registerViewState()

registerViewState<T>(id, state): void

Type Parameters

Type ParameterDefault type
T extends keyof IChartConfigStateMapkeyof IChartConfigStateMap

Parameters

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

Returns

void

Defined in

packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:872


removeViewState()

removeViewState(id): void

Parameters

ParameterType
idkeyof IChartConfigStateMap

Returns

void

Defined in

packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:900


setBorder()

setBorder(id, color): void

Parameters

ParameterType
idstring
colorstring

Returns

void

Defined in

packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:907


t()

t(...args): string

Parameters

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

Returns

string

Defined in

packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:911