@univerjs/sheets v0.5.4


Class: RefRangeService

Defined in: submodules/univer/packages/sheets/src/services/ref-range/ref-range.service.ts:109

Collect side effects caused by ref range change

Extends

Constructors

new RefRangeService()

new RefRangeService(
   _commandService, 
   _sheetInterceptorService, 
   _univerInstanceService, 
   _selectionManagerService): RefRangeService

Defined in: submodules/univer/packages/sheets/src/services/ref-range/ref-range.service.ts:114

Parameters

ParameterType
_commandServiceICommandService
_sheetInterceptorServiceSheetInterceptorService
_univerInstanceServiceIUniverInstanceService
_selectionManagerServiceSheetsSelectionsService

Returns

RefRangeService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
interceptorpublicInterceptorManager<{ MERGE_REDO: IInterceptor<IMutationInfo[], null>; MERGE_UNDO: IInterceptor<IMutationInfo[], null>; }>undefined-submodules/univer/packages/sheets/src/services/ref-range/ref-range.service.ts:110

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


registerRefRange()

registerRefRange(
   range, 
   callback, 
   _unitId?, 
   _subUnitId?): IDisposable

Defined in: submodules/univer/packages/sheets/src/services/ref-range/ref-range.service.ts:390

Listens to an area and triggers a fall back when movement occurs

Parameters

ParameterTypeDescription
rangeIRangethe area that needs to be monitored
callbackRefRangCallbackthe callback function that is executed when the range changes
_unitId?string-
_subUnitId?string-

Returns

IDisposable

Memberof

RefRangeService


watchRange()

watchRange(
   unitId, 
   subUnitId, 
   range, 
   callback, 
   skipIntersects?): IDisposable

Defined in: submodules/univer/packages/sheets/src/services/ref-range/ref-range.service.ts:132

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangeIRange
callbackWatchRangeCallback
skipIntersects?boolean

Returns

IDisposable