API Reference
@univerjs
@univerjs/sheets
classes
Refrangeservice

@univerjs/sheets v0.4.2Docs


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

packages/sheets/src/services/ref-range/ref-range.service.ts:114 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
interceptorpublicInterceptorManager<{ MERGE_REDO: IInterceptor<IMutationInfo<object>[], null>; MERGE_UNDO: IInterceptor<IMutationInfo<object>[], null>; }>undefined-packages/sheets/src/services/ref-range/ref-range.service.ts:110 (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)


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

packages/sheets/src/services/ref-range/ref-range.service.ts:390 (opens in a new tab)


watchRange()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangeIRange
callbackWatchRangeCallback
skipIntersects?boolean

Returns

IDisposable

Defined in

packages/sheets/src/services/ref-range/ref-range.service.ts:132 (opens in a new tab)


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