@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
Parameter | Type |
---|---|
_chartModelService | ChartModelService |
_sheetsChartService | SheetsChartService |
_commandService | ICommandService |
_localeService | LocaleService |
_chartHostProviderService | IChartHostProviderService |
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/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
Parameter | Type |
---|---|
on | boolean |
Returns
void
Methods
dispose()
dispose(): void
Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:937
Returns
void
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
executeChartUpdateConfig()
executeChartUpdateConfig(params): void
Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:909
Parameters
Parameter | Type |
---|---|
params | Omit <IChartUpdateConfigCommandParams , "unitId" > |
Returns
void
executeChartUpdateSourceConfig()
executeChartUpdateSourceConfig(params): void
Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:916
Parameters
Parameter | Type |
---|---|
params | Omit <IChartUpdateSourceCommandParams , "unitId" > |
Returns
void
getDataSource()
getDataSource(id): undefined | IChartDataSource
Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:890
Parameters
Parameter | Type |
---|---|
id | string |
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 Parameter | Default type |
---|---|
V extends ChartConfigStateValue | ChartConfigStateValue |
Parameters
Parameter | Type |
---|---|
id | keyof 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 Parameter | Default type |
---|---|
T extends keyof IChartConfigStateMap | keyof IChartConfigStateMap |
Parameters
Parameter | Type |
---|---|
id | T |
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
Parameter | Type |
---|---|
id | keyof IChartConfigStateMap |
Returns
void
setBorder()
setBorder(id, color): void
Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:929
Parameters
Parameter | Type |
---|---|
id | string |
color | string |
Returns
void
t()
t(...args): string
Defined in: packages/sheets-chart-ui/src/services/sheets-chart-ui.service.ts:933
Parameters
Parameter | Type |
---|---|
…args | [string , ...args: string[] ] |
Returns
string