@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

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:93
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
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

RENDER_CLASS_TYPE

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

ParameterType
sceneInstanceT

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

Disposable.dispose

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-engine.ts:89


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:100


getCanvas()

abstract getCanvas(): Canvas

Returns

Canvas

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

ParameterType
sceneKeystring

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

ParameterType
sceneKeystring

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

ParameterType
keystring

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

ParameterType
sceneKeystring

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

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