@univerjssheetsindexclassesMergecellcontroller

@univerjs/sheets v0.5.0-beta.1Docs


Class: MergeCellController

Extends

Constructors

new MergeCellController()

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

Parameters

ParameterType
_commandServiceICommandService
_refRangeServiceRefRangeService
_univerInstanceServiceIUniverInstanceService
_injectorInjector
_sheetInterceptorServiceSheetInterceptorService
_selectionManagerServiceSheetsSelectionsService

Returns

MergeCellController

Overrides

Disposable.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
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

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


refRangeHandle()

refRangeHandle(
   config, 
   unitId, 
   subUnitId): {
  redos: {
     id: RemoveWorksheetMergeMutation.id;
     params: removeParams;
    }[];
  undos: {
     id: RemoveWorksheetMergeMutation.id;
     params: addUndo;
    }[];
}

Parameters

ParameterType
configEffectRefRangeParams
unitIdstring
subUnitIdstring

Returns

{
  redos: {
     id: RemoveWorksheetMergeMutation.id;
     params: removeParams;
    }[];
  undos: {
     id: RemoveWorksheetMergeMutation.id;
     params: addUndo;
    }[];
}
NameTypeDefined in
redos{ id: RemoveWorksheetMergeMutation.id; params: removeParams; }[]submodules/univer/packages/sheets/src/controllers/merge-cell.controller.ts:416
undos{ id: RemoveWorksheetMergeMutation.id; params: addUndo; }[]submodules/univer/packages/sheets/src/controllers/merge-cell.controller.ts:423

Defined in

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