@univerjs/sheets v0.4.2 • 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
packages/sheets/src/services/ref-range/ref-range.service.ts:114 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
interceptor | public | InterceptorManager <{ 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
Defined in
packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
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
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
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
range | IRange |
callback | WatchRangeCallback |
skipIntersects ? | boolean |
Returns
Defined in
packages/sheets/src/services/ref-range/ref-range.service.ts:132 (opens in a new tab)