@univerjs/engine-render v0.5.4
Class: RenderManagerService
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:89
Extends
Implements
Constructors
new RenderManagerService()
new RenderManagerService(_injector, _univerInstanceService): RenderManagerService
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:118
Parameters
Parameter | Type |
---|---|
_injector | Injector |
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
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:96 |
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
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:109
Returns
Implementation of
IRenderManagerService
.defaultEngine
Methods
_createRender()
protected _createRender(
unitId,
engine,
isMainScene): IRender
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:248
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
addRender()
addRender(unitId, renderUnit): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:307
Parameters
Parameter | Type |
---|---|
unitId | string |
renderUnit | IRender |
Returns
void
Implementation of
IRenderManagerService
.addRender
create()
create(unitId): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:189
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Deprecated
this design is very very weird! Remove it.
Implementation of
createRender()
createRender(unitId): IRender
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:198
create renderUnit & init deps from renderDependencies
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
renderUnit:IRender
Implementation of
IRenderManagerService
.createRender
dispose()
dispose(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:125
Returns
void
Implementation of
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getAllRenderersOfType()
getAllRenderersOfType(type): RenderUnit[]
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:204
Parameters
Parameter | Type |
---|---|
type | UniverInstanceType |
Returns
Implementation of
IRenderManagerService
.getAllRenderersOfType
getCurrent()
getCurrent(): Nullable<IRender>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:334
Returns
Deprecated
There will be multi units to render at the same time, so there is no current.
Implementation of
IRenderManagerService
.getCurrent
getCurrentTypeOfRenderer()
getCurrentTypeOfRenderer(type): Nullable<RenderUnit>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:216
Parameters
Parameter | Type |
---|---|
type | UniverInstanceType |
Returns
Implementation of
IRenderManagerService
.getCurrentTypeOfRenderer
getFirst()
getFirst(): Nullable<IRender>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:338
Returns
Deprecated
There will be multi units to render at the same time, so there is no first.
Implementation of
IRenderManagerService
.getFirst
getRenderAll()
getRenderAll(): Map<string, IRender>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:351
Returns
Map
<string
, IRender
>
Implementation of
IRenderManagerService
.getRenderAll
getRenderById()
getRenderById(unitId): Nullable<IRender>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:347
get RenderUnit from this._renderMap
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
RenderUnit, aka IRender
Implementation of
IRenderManagerService
.getRenderById
has()
has(unitId): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:324
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
boolean
Implementation of
registerRenderModule()
registerRenderModule(type, depCtor): IDisposable
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:162
add dep to _renderDependencies(type, dep)
Parameters
Parameter | Type |
---|---|
type | number |
depCtor | Dependency |
Returns
Implementation of
IRenderManagerService
.registerRenderModule
registerRenderModules()
registerRenderModules(type, deps): IDisposable
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:137
Parameters
Parameter | Type |
---|---|
type | number |
deps | Dependency [] |
Returns
removeRender()
removeRender(unitId): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:315
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Implementation of
IRenderManagerService
.removeRender
setCurrent()
setCurrent(unitId): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:328
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Implementation of
IRenderManagerService
.setCurrent
withCurrentTypeOfUnit()
withCurrentTypeOfUnit<T>(type, id): Nullable<T>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/render-manager/render-manager.service.ts:223
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
type | UniverInstanceType |
id | DependencyIdentifier <T > |
Returns
Nullable
<T
>