@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

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96
onInputChanged$publicEventSubject<IEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:29
onTransformChange$publicEventSubject<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

RENDER_CLASS_TYPE


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

ParameterType
sceneInstanceT

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

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getCanvas()

abstract getCanvas(): Canvas

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:114

Returns

Canvas


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

ParameterType
sceneKeystring

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

ParameterType
sceneKeystring

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

ParameterType
keystring

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

ParameterType
sceneKeystring

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

ParameterType
valCURSOR_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