API Reference
@univerjs
@univerjs/engine-render
classes
Thinengine

@univerjs/engine-render v0.4.2Docs


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

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
onInputChanged$publicEventSubject<IEvent>undefined-submodules/univer/packages/engine-render/src/thin-engine.ts:29 (opens in a new tab)
onTransformChange$publicEventSubject<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

RENDER_CLASS_TYPE

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

ParameterType
sceneInstanceT

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

Disposable.dispose

Defined in

submodules/univer/packages/engine-render/src/thin-engine.ts:89 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getCanvas()

abstract getCanvas(): Canvas

Returns

Canvas

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

ParameterType
sceneKeystring

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

ParameterType
sceneKeystring

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

ParameterType
keystring

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

ParameterType
sceneKeystring

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

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


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.