@univerjs/sheets v0.5.0-beta.1 • Docs
Class: RefRangeService
Collect side effects caused by ref range change
Extends
Constructors
new RefRangeService()
new RefRangeService(
_commandService,
_sheetInterceptorService,
_univerInstanceService,
_selectionManagerService): RefRangeService
Parameters
Parameter | Type |
---|---|
_commandService | ICommandService |
_sheetInterceptorService | SheetInterceptorService |
_univerInstanceService | IUniverInstanceService |
_selectionManagerService | SheetsSelectionsService |
Returns
Overrides
Defined in
submodules/univer/packages/sheets/src/services/ref-range/ref-range.service.ts:114
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
interceptor | public | InterceptorManager <{ 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
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
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
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
Defined in
submodules/univer/packages/sheets/src/services/ref-range/ref-range.service.ts:390
watchRange()
watchRange(
unitId,
subUnitId,
range,
callback,
skipIntersects?): IDisposable
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
range | IRange |
callback | WatchRangeCallback |
skipIntersects ? | boolean |
Returns
Defined in
submodules/univer/packages/sheets/src/services/ref-range/ref-range.service.ts:132