@univerjs/sheets-ui v0.5.4


Class: SheetsRenderService

Defined in: submodules/univer/packages/sheets-ui/src/services/sheets-render.service.ts:33

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

Defined in: submodules/univer/packages/sheets-ui/src/services/sheets-render.service.ts:36

Parameters

ParameterType
_contextServiceIContextService
_instanceSrvIUniverInstanceService
_renderManagerServiceIRenderManagerService

Returns

SheetsRenderService

Overrides

RxDisposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
dispose$protectedSubject<void>undefinedRxDisposable.dispose$submodules/univer/packages/core/src/shared/lifecycle.ts:120

Methods

checkMutationShouldTriggerRerender()

checkMutationShouldTriggerRerender(id): boolean

Defined in: submodules/univer/packages/sheets-ui/src/services/sheets-render.service.ts:65

Examine if a mutation would make the skeleton to change.

Parameters

ParameterType
idstring

Returns

boolean


dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:122

Returns

void

Inherited from

RxDisposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

RxDisposable.ensureNotDisposed


registerSkeletonChangingMutations()

registerSkeletonChangingMutations(mutationId): IDisposable

Defined in: submodules/univer/packages/sheets-ui/src/services/sheets-render.service.ts:53

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