API Reference
@univerjs
@univerjs/sheets-ui
classes
Sheetsrenderservice

@univerjs/sheets-ui v0.4.2Docs


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

ParameterType
_contextServiceIContextService
_instanceSrvIUniverInstanceService
_renderManagerServiceIRenderManagerService

Returns

SheetsRenderService

Overrides

RxDisposable.constructor

Defined in

packages/sheets-ui/src/services/sheets-render.service.ts:36 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
dispose$protectedSubject<void>undefinedRxDisposable.dispose$packages/core/src/shared/lifecycle.ts:117 (opens in a new tab)

Methods

checkMutationShouldTriggerRerender()

checkMutationShouldTriggerRerender(id): boolean

Examine if a mutation would make the skeleton to change.

Parameters

ParameterType
idstring

Returns

boolean

Defined in

packages/sheets-ui/src/services/sheets-render.service.ts:65 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

RxDisposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:119 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

RxDisposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


registerSkeletonChangingMutations()

registerSkeletonChangingMutations(mutationId): IDisposable

Register a mutation id that will trigger the skeleton change.

Parameters

ParameterTypeDescription
mutationIdstringthe id of the mutation

Returns

IDisposable

a disposable to unregister the mutation

Defined in

packages/sheets-ui/src/services/sheets-render.service.ts:53 (opens in a new tab)


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