API Reference
@univerjs
@univerjs/sheets
classes
Mergecellcontroller

@univerjs/sheets v0.4.2Docs


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

packages/sheets/src/controllers/merge-cell.controller.ts:134 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
disposableCollectionpublicDisposableCollectionundefined-packages/sheets/src/controllers/merge-cell.controller.ts:130 (opens in a new tab)
interceptorreadonlyInterceptorManager<{ MERGE_CELL_INTERCEPTOR_CHECK: IInterceptor<boolean, IRange[]>; }>undefined-packages/sheets/src/controllers/merge-cell.controller.ts:132 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


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; }[]packages/sheets/src/controllers/merge-cell.controller.ts:416 (opens in a new tab)
undos{ id: RemoveWorksheetMergeMutation.id; params: addUndo; }[]packages/sheets/src/controllers/merge-cell.controller.ts:423 (opens in a new tab)

Defined in

packages/sheets/src/controllers/merge-cell.controller.ts:234 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.