@univerjs/sheets-ui v0.5.0-beta.1 • Docs
Class: SheetsRenderService
This controller is responsible for managing units of a specific kind (UnierSheet) to be rendered on the canvas.
Extends
Constructors
new SheetsRenderService()
new SheetsRenderService(
_contextService,
_instanceSrv,
_renderManagerService): SheetsRenderService
Parameters
Parameter | Type |
---|---|
_contextService | IContextService |
_instanceSrv | IUniverInstanceService |
_renderManagerService | IRenderManagerService |
Returns
Overrides
Defined in
submodules/univer/packages/sheets-ui/src/services/sheets-render.service.ts:36
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | submodules/univer/packages/core/src/shared/lifecycle.ts:117 |
Methods
checkMutationShouldTriggerRerender()
checkMutationShouldTriggerRerender(id): boolean
Examine if a mutation would make the skeleton to change.
Parameters
Parameter | Type |
---|---|
id | string |
Returns
boolean
Defined in
submodules/univer/packages/sheets-ui/src/services/sheets-render.service.ts:65
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:119
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
RxDisposable
.ensureNotDisposed
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
registerSkeletonChangingMutations()
registerSkeletonChangingMutations(mutationId): IDisposable
Register a mutation id that will trigger the skeleton change.
Parameters
Parameter | Type | Description |
---|---|---|
mutationId | string | the id of the mutation |
Returns
a disposable to unregister the mutation
Defined in
submodules/univer/packages/sheets-ui/src/services/sheets-render.service.ts:53