@univerjs/engine-render v0.5.0-beta.1 • Docs
Class: abstract
ThinEngine<T>
Extends
Type Parameters
Type Parameter |
---|
T extends IDisposable |
Constructors
new ThinEngine()
new ThinEngine<T>(): ThinEngine<T>
Returns
ThinEngine
<T
>
Inherited from
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
onInputChanged$ | public | EventSubject <IEvent > | undefined | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:29 |
onTransformChange$ | public | EventSubject <ITransformChangeState > | undefined | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:31 |
Accessors
activeScene
Get Signature
get activeScene(): null | T
Returns
null
| T
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:41
classType
Get Signature
get classType(): RENDER_CLASS_TYPE
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:37
height
Get Signature
get height(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:49
width
Get Signature
get width(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:45
Methods
addScene()
addScene(sceneInstance): T
Parameters
Parameter | Type |
---|---|
sceneInstance | T |
Returns
T
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:65
clearCanvas()
abstract clearCanvas(): void
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:112
dispose()
dispose(): void
Returns
void
Overrides
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:89
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
getCanvas()
abstract getCanvas(): Canvas
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:114
getCanvasElement()
abstract getCanvasElement(): HTMLCanvasElement
Returns
HTMLCanvasElement
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:116
getParent()
getParent(): void
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:100
getPixelRatio()
abstract getPixelRatio(): number
Returns
number
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:120
getScene()
getScene(sceneKey): null | T
Parameters
Parameter | Type |
---|---|
sceneKey | string |
Returns
null
| T
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:57
getScenes()
getScenes(): {}
Returns
{}
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:53
hasActiveScene()
hasActiveScene(): boolean
Returns
boolean
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:85
hasScene()
hasScene(sceneKey): boolean
Parameters
Parameter | Type |
---|---|
sceneKey | string |
Returns
boolean
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:61
remainScene()
remainScene(key): undefined | T
Parameters
Parameter | Type |
---|---|
key | string |
Returns
undefined
| T
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:103
setActiveScene()
setActiveScene(sceneKey): null | T
Parameters
Parameter | Type |
---|---|
sceneKey | string |
Returns
null
| T
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:75
setCanvasCursor()
abstract setCanvasCursor(val): void
Parameters
Parameter | Type |
---|---|
val | CURSOR_TYPE |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:118
setRemainCapture()
abstract setRemainCapture(): void
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:83