@univerjs/engine-render v0.5.0-beta.1 • Docs
Interface: IRenderManagerService
Extends
Properties
Property | Type | Description | Defined 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 > | Deprecated | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:62 |
currentRender$ | Observable <Nullable <string >> | Deprecated | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:34 |
defaultEngine | Engine | - | 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
Parameter | Type |
---|---|
unitId | string |
renderer | IRender |
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
Parameter | Type |
---|---|
unitId | string |
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
Parameter | Type |
---|---|
unitId | string |
Returns
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
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
Parameter | Type |
---|---|
type | UniverInstanceType |
Returns
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
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
Parameter | Type |
---|---|
type | UniverInstanceType |
Returns
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
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
Parameter | Type |
---|---|
unitId | string |
Returns
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
Parameter | Type |
---|---|
unitId | string |
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
Parameter | Type |
---|---|
type | number |
dep | Dependency <T > |
Returns
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
Parameter | Type |
---|---|
unitId | string |
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
Parameter | Type |
---|---|
unitId | string |
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
Parameter | Type |
---|---|
type | UniverInstanceType |
id | DependencyIdentifier <T > |
Returns
Nullable
<T
>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:75