@univerjs-prosheets-chart-uiindexclassesSheetschartuicontroller

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


Class: SheetsChartUIController

Defined in: packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:37

Extends

Constructors

new SheetsChartUIController()

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

Defined in: packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:40

Parameters

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

Returns

SheetsChartUIController

Overrides

Disposable.constructor

Properties

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

Methods

dispose()

dispose(): void

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

Returns

void

Inherited from

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


getChartPopupMenus()

getChartPopupMenus(
   unitId, 
   subUnitId, 
   drawingId, 
   drawingType): (
  | {
  commandId: string;
  commandParams: {
     drawingId: string;
     drawings: undefined;
     subUnitId: string;
     unitId: string;
    };
  disable: boolean;
  index: number;
  label: string;
 }
  | {
  commandId: string;
  commandParams: {
     drawingId: undefined;
     drawings: {
        drawingId: string;
        drawingType: DrawingTypeEnum;
        subUnitId: string;
        unitId: string;
       }[];
     subUnitId: undefined;
     unitId: string;
    };
  disable: boolean;
  index: number;
  label: string;
 })[]

Defined in: packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:174

Parameters

ParameterType
unitIdstring
subUnitIdstring
drawingIdstring
drawingTypeDrawingTypeEnum

Returns

( | { commandId: string; commandParams: { drawingId: string; drawings: undefined; subUnitId: string; unitId: string; }; disable: boolean; index: number; label: string; } | { commandId: string; commandParams: { drawingId: undefined; drawings: { drawingId: string; drawingType: DrawingTypeEnum; subUnitId: string; unitId: string; }[]; subUnitId: undefined; unitId: string; }; disable: boolean; index: number; label: string; })[]


hidePanel()

hidePanel(): void

Defined in: packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:97

Returns

void


initPanel()

initPanel(): void

Defined in: packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:102

Returns

void


openChartPanelById()

openChartPanelById(chartId): void

Defined in: packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:159

Parameters

ParameterType
chartIdstring

Returns

void


registerChartIcons()

registerChartIcons(): void

Defined in: packages/sheets-chart-ui/src/controllers/sheets-chart-ui.controller.ts:69

Returns

void