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


Class: RefRangeService

Collect side effects caused by ref range change

Extends

Constructors

new RefRangeService()

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

Parameters

ParameterType
_commandServiceICommandService
_sheetInterceptorServiceSheetInterceptorService
_univerInstanceServiceIUniverInstanceService
_selectionManagerServiceSheetsSelectionsService

Returns

RefRangeService

Overrides

Disposable.constructor

Defined in

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

Properties

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

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


registerRefRange()

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

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

Defined in

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


watchRange()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangeIRange
callbackWatchRangeCallback
skipIntersects?boolean

Returns

IDisposable

Defined in

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