@univerjssheetsindexclassesMergecellcontroller

@univerjs/sheets v0.5.4


Class: MergeCellController

Defined in: submodules/univer/packages/sheets/src/controllers/merge-cell.controller.ts:129

Extends

Constructors

new MergeCellController()

new MergeCellController(
   _commandService, 
   _refRangeService, 
   _univerInstanceService, 
   _injector, 
   _sheetInterceptorService, 
   _selectionManagerService): MergeCellController

Defined in: submodules/univer/packages/sheets/src/controllers/merge-cell.controller.ts:134

Parameters

ParameterType
_commandServiceICommandService
_refRangeServiceRefRangeService
_univerInstanceServiceIUniverInstanceService
_injectorInjector
_sheetInterceptorServiceSheetInterceptorService
_selectionManagerServiceSheetsSelectionsService

Returns

MergeCellController

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
disposableCollectionpublicDisposableCollectionundefined-submodules/univer/packages/sheets/src/controllers/merge-cell.controller.ts:130
interceptorreadonlyInterceptorManager<{ MERGE_CELL_INTERCEPTOR_CHECK: IInterceptor<boolean, IRange[]>; }>undefined-submodules/univer/packages/sheets/src/controllers/merge-cell.controller.ts:132

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


refRangeHandle()

refRangeHandle(
   config, 
   unitId, 
   subUnitId): {
  redos: {
     id: string;
     params: IRemoveWorksheetMergeMutationParams;
    }[];
  undos: {
     id: string;
     params: IRemoveWorksheetMergeMutationParams;
    }[];
}

Defined in: submodules/univer/packages/sheets/src/controllers/merge-cell.controller.ts:234

Parameters

ParameterType
configEffectRefRangeParams
unitIdstring
subUnitIdstring

Returns

{
  redos: {
     id: string;
     params: IRemoveWorksheetMergeMutationParams;
    }[];
  undos: {
     id: string;
     params: IRemoveWorksheetMergeMutationParams;
    }[];
}
NameTypeDefined in
redos{ id: string; params: IRemoveWorksheetMergeMutationParams; }[]submodules/univer/packages/sheets/src/controllers/merge-cell.controller.ts:555
undos{ id: string; params: IRemoveWorksheetMergeMutationParams; }[]submodules/univer/packages/sheets/src/controllers/merge-cell.controller.ts:555