@univerjs/engine-render v0.5.4
Class: abstract
ThinEngine<T>
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:28
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:96 |
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
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:41
Returns
null
| T
classType
Get Signature
get classType(): RENDER_CLASS_TYPE
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:37
Returns
height
Get Signature
get height(): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:49
Returns
number
width
Get Signature
get width(): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:45
Returns
number
Methods
addScene()
addScene(sceneInstance): T
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:65
Parameters
Parameter | Type |
---|---|
sceneInstance | T |
Returns
T
clearCanvas()
abstract clearCanvas(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:112
Returns
void
dispose()
dispose(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:89
Returns
void
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
getCanvas()
abstract getCanvas(): Canvas
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:114
Returns
getCanvasElement()
abstract getCanvasElement(): HTMLCanvasElement
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:116
Returns
HTMLCanvasElement
getParent()
getParent(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:100
Returns
void
getPixelRatio()
abstract getPixelRatio(): number
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:120
Returns
number
getScene()
getScene(sceneKey): null | T
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:57
Parameters
Parameter | Type |
---|---|
sceneKey | string |
Returns
null
| T
getScenes()
getScenes(): {}
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:53
Returns
{}
hasActiveScene()
hasActiveScene(): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:85
Returns
boolean
hasScene()
hasScene(sceneKey): boolean
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:61
Parameters
Parameter | Type |
---|---|
sceneKey | string |
Returns
boolean
remainScene()
remainScene(key): undefined | T
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:103
Parameters
Parameter | Type |
---|---|
key | string |
Returns
undefined
| T
setActiveScene()
setActiveScene(sceneKey): null | T
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:75
Parameters
Parameter | Type |
---|---|
sceneKey | string |
Returns
null
| T
setCanvasCursor()
abstract setCanvasCursor(val): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:118
Parameters
Parameter | Type |
---|---|
val | CURSOR_TYPE |
Returns
void
setRemainCapture()
abstract setRemainCapture(): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:83
Returns
void