@univerjs/engine-render v0.5.0-beta.1 • Docs
Class: RenderManagerService
Extends
Implements
Constructors
new RenderManagerService()
new RenderManagerService(_injector, _univerInstanceService): RenderManagerService
Parameters
Parameter | Type |
---|---|
_injector | Injector |
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:118
Properties
Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
---|---|---|---|---|---|---|
_disposed | protected | boolean | false | - | Disposable ._disposed | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
created$ | readonly | Observable <IRender > | undefined | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:104 |
createRender$ | readonly | Observable <string > | undefined | Deprecated | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:101 |
currentRender$ | readonly | Observable <Nullable <string >> | undefined | Deprecated | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:97 |
disposed$ | readonly | Observable <string > | undefined | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:107 |
Accessors
defaultEngine
Get Signature
get defaultEngine(): Engine
Returns
Implementation of
IRenderManagerService
.defaultEngine
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:109
Methods
_createRender()
protected _createRender(
unitId,
engine,
isMainScene): IRender
create renderUnit & init deps from renderDependencies by renderUnit’s type
Parameters
Parameter | Type | Default value |
---|---|---|
unitId | string | undefined |
engine | Engine | undefined |
isMainScene | boolean | true |
Returns
renderUnit:IRender
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:248
addRender()
addRender(unitId, renderUnit): void
Parameters
Parameter | Type |
---|---|
unitId | string |
renderUnit | IRender |
Returns
void
Implementation of
IRenderManagerService
.addRender
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:307
create()
create(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Deprecated
this design is very very weird! Remove it.
Implementation of
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:189
createRender()
createRender(unitId): IRender
create renderUnit & init deps from renderDependencies
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
renderUnit:IRender
Implementation of
IRenderManagerService
.createRender
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:198
dispose()
dispose(): void
Returns
void
Implementation of
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:125
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:100
getAllRenderersOfType()
getAllRenderersOfType(type): RenderUnit[]
Parameters
Parameter | Type |
---|---|
type | UniverInstanceType |
Returns
Implementation of
IRenderManagerService
.getAllRenderersOfType
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:204
getCurrent()
getCurrent(): Nullable<IRender>
Returns
Deprecated
There will be multi units to render at the same time, so there is no current.
Implementation of
IRenderManagerService
.getCurrent
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:334
getCurrentTypeOfRenderer()
getCurrentTypeOfRenderer(type): Nullable<RenderUnit>
Parameters
Parameter | Type |
---|---|
type | UniverInstanceType |
Returns
Implementation of
IRenderManagerService
.getCurrentTypeOfRenderer
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:216
getFirst()
getFirst(): Nullable<IRender>
Returns
Deprecated
There will be multi units to render at the same time, so there is no first.
Implementation of
IRenderManagerService
.getFirst
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:338
getRenderAll()
getRenderAll(): Map<string, IRender>
Returns
Map
<string
, IRender
>
Implementation of
IRenderManagerService
.getRenderAll
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:351
getRenderById()
getRenderById(unitId): Nullable<IRender>
get RenderUnit from this._renderMap
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
RenderUnit, aka IRender
Implementation of
IRenderManagerService
.getRenderById
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:347
has()
has(unitId): boolean
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
boolean
Implementation of
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:324
registerRenderModule()
registerRenderModule(type, depCtor): IDisposable
add dep to _renderDependencies(type, dep)
Parameters
Parameter | Type |
---|---|
type | number |
depCtor | Dependency |
Returns
Implementation of
IRenderManagerService
.registerRenderModule
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:162
registerRenderModules()
registerRenderModules(type, deps): IDisposable
Parameters
Parameter | Type |
---|---|
type | number |
deps | Dependency [] |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:137
removeRender()
removeRender(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Implementation of
IRenderManagerService
.removeRender
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:315
setCurrent()
setCurrent(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Implementation of
IRenderManagerService
.setCurrent
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:328
withCurrentTypeOfUnit()
withCurrentTypeOfUnit<T>(type, id): Nullable<T>
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
type | UniverInstanceType |
id | DependencyIdentifier <T > |
Returns
Nullable
<T
>
Implementation of
IRenderManagerService
.withCurrentTypeOfUnit
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:223