@univerjs/engine-render v0.5.0-beta.1Docs


Interface: IRenderManagerService

Extends

Properties

PropertyTypeDescriptionDefined in
created$Observable<IRender>-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:66
createRender$Observable<string>Deprecatedpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:62
currentRender$Observable<Nullable<string>>Deprecatedpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:34
defaultEngineEngine-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:54
disposed$Observable<string>-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:67

Methods

addRender()

addRender(unitId, renderer): void

Parameters

ParameterType
unitIdstring
rendererIRender

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:36


create()

create(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Deprecated

this design is very very weird! Remove it.

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:64


createRender()

createRender(unitId): IRender

create renderUnit & init deps from renderDependencies by renderUnit’s type.

Parameters

ParameterType
unitIdstring

Returns

IRender

renderUnit:IRender

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:43


dispose()

dispose(): void

Returns

void

Inherited from

IDisposable.dispose

Defined in

packages/api/tmp/univer-pro/node_modules/.pnpm/@wendellhu+redi@0.16.1/node_modules/@wendellhu/redi/esm/dispose.d.ts:2


getAllRenderersOfType()

getAllRenderersOfType(type): RenderUnit[]

Parameters

ParameterType
typeUniverInstanceType

Returns

RenderUnit[]

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:51


getCurrent()

getCurrent(): Nullable<IRender>

Returns

Nullable<IRender>

Deprecated

There will be multi units to render at the same time, so there is no current.

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:70


getCurrentTypeOfRenderer()

getCurrentTypeOfRenderer(type): Nullable<RenderUnit>

Parameters

ParameterType
typeUniverInstanceType

Returns

Nullable<RenderUnit>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:52


getFirst()

getFirst(): Nullable<IRender>

Returns

Nullable<IRender>

Deprecated

There will be multi units to render at the same time, so there is no first.

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:72


getRenderAll()

getRenderAll(): Map<string, IRender>

Returns

Map<string, IRender>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:53


getRenderById()

getRenderById(unitId): Nullable<IRender>

get RenderUnit By Id, RenderUnit implements IRender

Parameters

ParameterType
unitIdstring

Returns

Nullable<IRender>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:50


has()

has(unitId): boolean

Parameters

ParameterType
unitIdstring

Returns

boolean

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:74


registerRenderModule()

registerRenderModule<T>(type, dep): IDisposable

add dep to _renderDependencies(type, dep)

Type Parameters

Type Parameter
T extends UnitModel<object, number>

Parameters

ParameterType
typenumber
depDependency<T>

Returns

IDisposable

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:82


removeRender()

removeRender(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:44


setCurrent()

setCurrent(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:45


withCurrentTypeOfUnit()

withCurrentTypeOfUnit<T>(type, id): Nullable<T>

Type Parameters

Type Parameter
T

Parameters

ParameterType
typeUniverInstanceType
idDependencyIdentifier<T>

Returns

Nullable<T>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:75