@univerjs-prosheets-chart-uiclassesSheetschartuicontroller

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


Class: SheetsChartUIController

Extends

Constructors

new SheetsChartUIController()

new SheetsChartUIController(
   _drawingManagerService, 
   _univerInstanceService, 
   _injector, 
   _chartModelService, 
   _sidebarService, 
   _componentManager, 
   _menuManagerService, 
   _sheetInterceptorService, 
   _sheetCanvasPopManagerService, 
   _commandService, 
   _sheetsChartUIService): SheetsChartUIController

Parameters

ParameterType
_drawingManagerServiceIDrawingManagerService
_univerInstanceServiceIUniverInstanceService
_injectorInjector
_chartModelServiceChartModelService
_sidebarServiceISidebarService
_componentManagerComponentManager
_menuManagerServiceIMenuManagerService
_sheetInterceptorServiceSheetInterceptorService
_sheetCanvasPopManagerServiceSheetCanvasPopManagerService
_commandServiceICommandService
_sheetsChartUIServiceSheetsChartUIService

Returns

SheetsChartUIController

Overrides

Disposable.constructor

Defined in

packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:57

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
_menuManagerServicereadonlyIMenuManagerServiceundefined-packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:64

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

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


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


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

ParameterType
unitIdstring
subUnitIdstring
drawingIdstring
drawingTypeDrawingTypeEnum

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

ParameterType
chartIdstring

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