@univerjs-pro/sheets-chart-ui v0.5.0-beta.1 • Docs
Class: SheetsChartUIController
Extends
Constructors
new SheetsChartUIController()
new SheetsChartUIController(
_drawingManagerService,
_univerInstanceService,
_injector,
_chartModelService,
_sidebarService,
_componentManager,
_menuManagerService,
_sheetInterceptorService,
_sheetCanvasPopManagerService,
_commandService,
_sheetsChartUIService): SheetsChartUIController
Parameters
Parameter | Type |
---|---|
_drawingManagerService | IDrawingManagerService |
_univerInstanceService | IUniverInstanceService |
_injector | Injector |
_chartModelService | ChartModelService |
_sidebarService | ISidebarService |
_componentManager | ComponentManager |
_menuManagerService | IMenuManagerService |
_sheetInterceptorService | SheetInterceptorService |
_sheetCanvasPopManagerService | SheetCanvasPopManagerService |
_commandService | ICommandService |
_sheetsChartUIService | SheetsChartUIService |
Returns
Overrides
Defined in
packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:57
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
_menuManagerService | readonly | IMenuManagerService | undefined | - | packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:64 |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
getChartPopupMenus()
getChartPopupMenus(
unitId,
subUnitId,
drawingId,
drawingType): ({
commandId: ChartOpenPanelOperation.id;
commandParams: {
drawingId: string;
drawings: undefined;
subUnitId: string;
unitId: string;
};
disable: boolean;
index: 0;
label: 'chart.openChartPanel';
} | {
commandId: RemoveSheetDrawingCommand.id;
commandParams: {
drawingId: undefined;
drawings: {
drawingId: string;
drawingType: DrawingTypeEnum;
subUnitId: string;
unitId: string;
}[];
subUnitId: undefined;
unitId: string;
};
disable: false;
index: 1;
label: 'chart.deleteChart';
})[]
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
drawingId | string |
drawingType | DrawingTypeEnum |
Returns
({
commandId
: ChartOpenPanelOperation.id
;
commandParams
: {
drawingId
: string
;
drawings
: undefined
;
subUnitId
: string
;
unitId
: string
;
};
disable
: boolean
;
index
: 0
;
label
: 'chart.openChartPanel'
;
} | {
commandId
: RemoveSheetDrawingCommand.id
;
commandParams
: {
drawingId
: undefined
;
drawings
: {
drawingId
: string
;
drawingType
: DrawingTypeEnum
;
subUnitId
: string
;
unitId
: string
;
}[];
subUnitId
: undefined
;
unitId
: string
;
};
disable
: false
;
index
: 1
;
label
: 'chart.deleteChart'
;
})[]
Defined in
packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:175
hidePanel()
hidePanel(): void
Returns
void
Defined in
packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:108
initPanel()
initPanel(): void
Returns
void
Defined in
packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:117
openChartPanelById()
openChartPanelById(chartId): void
Parameters
Parameter | Type |
---|---|
chartId | string |
Returns
void
Defined in
packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:159
registerChartIcons()
registerChartIcons(): void
Returns
void
Defined in
packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:85