@univerjs/engine-render v0.4.2 • Docs
Class: abstract
ThinEngine<T>
Extends
Extended by
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 | submodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
onInputChanged$ | public | EventSubject <IEvent > | undefined | - | submodules/univer/packages/engine-render/src/thin-engine.ts:29 (opens in a new tab) |
onTransformChange$ | public | EventSubject <ITransformChangeState > | undefined | - | submodules/univer/packages/engine-render/src/thin-engine.ts:31 (opens in a new tab) |
Accessors
activeScene
get activeScene(): null | T
Returns
null
| T
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:41 (opens in a new tab)
classType
get classType(): RENDER_CLASS_TYPE
Returns
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:37 (opens in a new tab)
height
get height(): number
Returns
number
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:49 (opens in a new tab)
width
get width(): number
Returns
number
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:45 (opens in a new tab)
Methods
addScene()
addScene(sceneInstance): T
Parameters
Parameter | Type |
---|---|
sceneInstance | T |
Returns
T
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:65 (opens in a new tab)
clearCanvas()
abstract clearCanvas(): void
Returns
void
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:111 (opens in a new tab)
dispose()
dispose(): void
Returns
void
Overrides
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:89 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
getCanvas()
abstract getCanvas(): Canvas
Returns
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:113 (opens in a new tab)
getCanvasElement()
abstract getCanvasElement(): HTMLCanvasElement
Returns
HTMLCanvasElement
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:115 (opens in a new tab)
getParent()
getParent(): void
Returns
void
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:100 (opens in a new tab)
getPixelRatio()
abstract getPixelRatio(): number
Returns
number
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:119 (opens in a new tab)
getScene()
getScene(sceneKey): null | T
Parameters
Parameter | Type |
---|---|
sceneKey | string |
Returns
null
| T
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:57 (opens in a new tab)
getScenes()
getScenes(): {}
Returns
{}
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:53 (opens in a new tab)
hasActiveScene()
hasActiveScene(): boolean
Returns
boolean
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:85 (opens in a new tab)
hasScene()
hasScene(sceneKey): boolean
Parameters
Parameter | Type |
---|---|
sceneKey | string |
Returns
boolean
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:61 (opens in a new tab)
remainScene()
remainScene(key): undefined | T
Parameters
Parameter | Type |
---|---|
key | string |
Returns
undefined
| T
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:102 (opens in a new tab)
setActiveScene()
setActiveScene(sceneKey): null | T
Parameters
Parameter | Type |
---|---|
sceneKey | string |
Returns
null
| T
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:75 (opens in a new tab)
setCanvasCursor()
abstract setCanvasCursor(val): void
Parameters
Parameter | Type |
---|---|
val | CURSOR_TYPE |
Returns
void
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:117 (opens in a new tab)
setRemainCapture()
abstract setRemainCapture(): void
Returns
void
Defined in
submodules/univer/packages/engine-render/src/thin-engine.ts:83 (opens in a new tab)