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
Parameter | Type |
---|---|
_commandService | ICommandService |
_sheetInterceptorService | SheetInterceptorService |
_univerInstanceService | IUniverInstanceService |
_selectionManagerService | SheetsSelectionsService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
interceptor | public | InterceptorManager <{ 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
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
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
Parameter | Type | Description |
---|---|---|
range | IRange | the area that needs to be monitored |
callback | RefRangCallback | the callback function that is executed when the range changes |
_unitId ? | string | - |
_subUnitId ? | string | - |
Returns
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
range | IRange |
callback | WatchRangeCallback |
skipIntersects ? | boolean |