@univerjs/engine-render v0.5.0-beta.1 • Docs


Class: abstract ThinScene

Extends

Constructors

new ThinScene()

new ThinScene(sceneKey): ThinScene

Parameters

ParameterType
sceneKeystring

Returns

ThinScene

Overrides

Disposable.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/lifecycle.ts:93
debounceParentTimeoutpublicnumber-1-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:67
onDblclick$publicEventSubject<IMouseEvent | IPointerEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:57
onDragEnter$publicEventSubject<IDragEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:49
onDragLeave$publicEventSubject<IDragEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:53
onDragOver$publicEventSubject<IDragEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:51
onDrop$publicEventSubject<IDragEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:55
onFileLoaded$publicEventSubject<string>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:33
onKeyDown$publicEventSubject<IKeyboardEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:63
onKeyUp$publicEventSubject<IKeyboardEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:65
onMouseWheel$publicEventSubject<IWheelEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:61
onPointerCancel$publicEventSubject<IMouseEvent | IPointerEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:45
onPointerDown$publicEventSubject<IMouseEvent | IPointerEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:35
onPointerEnter$publicEventSubject<IMouseEvent | IPointerEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:41
onPointerLeave$publicEventSubject<IMouseEvent | IPointerEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:47
onPointerMove$publicEventSubject<IMouseEvent | IPointerEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:37
onPointerOut$publicEventSubject<IMouseEvent | IPointerEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:43
onPointerUp$publicEventSubject<IMouseEvent | IPointerEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:39
onTransformChange$publicEventSubject<ITransformChangeState>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:31
onTripleClick$publicEventSubject<IMouseEvent | IPointerEvent>undefined-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:59

Accessors

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-scene.ts:88


height

Get Signature

get height(): number
Returns

number

Set Signature

set height(num): void
Parameters
ParameterType
numnumber
Returns

void

Defined in

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


objectsEvented

Get Signature

get objectsEvented(): boolean
Returns

boolean

Defined in

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


scaleX

Get Signature

get scaleX(): number
Returns

number

Set Signature

set scaleX(scaleX): void
Parameters
ParameterType
scaleXnumber
Returns

void

Defined in

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


scaleY

Get Signature

get scaleY(): number
Returns

number

Set Signature

set scaleY(scaleY): void
Parameters
ParameterType
scaleYnumber
Returns

void

Defined in

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


sceneKey

Get Signature

get sceneKey(): string
Returns

string

Defined in

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


transform

Get Signature

get transform(): Transform
Returns

Transform

Set Signature

set transform(trans): void
Parameters
ParameterType
transTransform
Returns

void

Defined in

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


width

Get Signature

get width(): number
Returns

number

Set Signature

set width(num): void
Parameters
ParameterType
numnumber
Returns

void

Defined in

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

Methods

addObject()

abstract addObject(o, zIndex?): void

Parameters

ParameterType
oBaseObject
zIndex?number

Returns

void

Defined in

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


addObjects()

abstract addObjects(objects, zIndex?): void

Parameters

ParameterType
objectsBaseObject[]
zIndex?number

Returns

void

Defined in

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


addViewport()

abstract addViewport(...viewport): void

Parameters

ParameterType
…viewportany[]

Returns

void

Defined in

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


attachTransformerTo()

attachTransformerTo(o): void

Parameters

ParameterType
oBaseObject

Returns

void

Defined in

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


detachTransformerFrom()

detachTransformerFrom(o): void

Parameters

ParameterType
oBaseObject

Returns

void

Defined in

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


disableObjectsEvent()

disableObjectsEvent(): void

If scene.event is disabled, scene.pick(curosrPos) return null. Then only scene itself can response to pointer event, all objects under the scene would not. see sceneInputManager@_onPointerMove

Returns

void

Defined in

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


dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

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


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


enableObjectsEvent()

enableObjectsEvent(): void

Returns

void

Defined in

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


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


getAncestorScale()

getAncestorScale(): {
  scaleX: 1;
  scaleY: 1;
}

Returns

{
  scaleX: 1;
  scaleY: 1;
}
NameTypeDefault valueDefined in
scaleXnumber1packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:256
scaleYnumber1packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:257

Defined in

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


getEngine()

abstract getEngine(): Nullable<Engine>

Returns

Nullable<Engine>

Defined in

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


getObject()

abstract getObject(oKey): Nullable<BaseObject>

Parameters

ParameterType
oKeystring

Returns

Nullable<BaseObject>

Defined in

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


getParent()

abstract getParent(): any

Returns

any

Defined in

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


getPrecisionScale()

getPrecisionScale(): {
  scaleX: 1;
  scaleY: 1;
}

Returns

{
  scaleX: 1;
  scaleY: 1;
}
NameTypeDefault valueDefined in
scaleXnumber1packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:263
scaleYnumber1packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/thin-scene.ts:264

Defined in

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


getViewports()

getViewports(): any[]

Returns

any[]

Defined in

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


makeDirty()

makeDirty(state): ThinScene

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

ThinScene

Defined in

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


makeDirtyNoParent()

makeDirtyNoParent(state): ThinScene

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

ThinScene

Defined in

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


pick()

abstract pick(coord): Nullable<BaseObject | ThinScene>

Parameters

ParameterType
coordVector2

Returns

Nullable<BaseObject | ThinScene>

Defined in

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


removeViewport()

abstract removeViewport(key): void

Parameters

ParameterType
keystring

Returns

void

Defined in

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


render()

abstract render(parentCtx?): void

Parameters

ParameterType
parentCtx?UniverRenderingContext

Returns

void

Defined in

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


resetCursor()

abstract resetCursor(): void

Returns

void

Defined in

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


setCursor()

abstract setCursor(val): void

Parameters

ParameterType
valCURSOR_TYPE

Returns

void

Defined in

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


setObjectBehavior()

abstract setObjectBehavior(o): void

Parameters

ParameterType
oBaseObject

Returns

void

Defined in

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


triggerDblclick()

abstract triggerDblclick(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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


triggerDragEnter()

abstract triggerDragEnter(evt): void

Parameters

ParameterType
evtIMouseEvent | IDragEvent

Returns

void

Defined in

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


triggerDragLeave()

abstract triggerDragLeave(evt): void

Parameters

ParameterType
evtIMouseEvent | IDragEvent

Returns

void

Defined in

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


triggerDragOver()

abstract triggerDragOver(evt): void

Parameters

ParameterType
evtIMouseEvent | IDragEvent

Returns

void

Defined in

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


triggerDrop()

abstract triggerDrop(evt): void

Parameters

ParameterType
evtIMouseEvent | IDragEvent

Returns

void

Defined in

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


triggerKeyDown()

triggerKeyDown(evt): void

Parameters

ParameterType
evtIKeyboardEvent

Returns

void

Defined in

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


triggerKeyUp()

triggerKeyUp(evt): void

Parameters

ParameterType
evtIKeyboardEvent

Returns

void

Defined in

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


triggerMouseWheel()

abstract triggerMouseWheel(evt): void

Parameters

ParameterType
evtIWheelEvent

Returns

void

Defined in

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


triggerPointerDown()

abstract triggerPointerDown(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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


triggerPointerEnter()

abstract triggerPointerEnter(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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


triggerPointerLeave()

abstract triggerPointerLeave(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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


triggerPointerMove()

abstract triggerPointerMove(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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


triggerPointerOut()

abstract triggerPointerOut(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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


triggerPointerOver()

abstract triggerPointerOver(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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


triggerPointerUp()

abstract triggerPointerUp(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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


triggerTripleClick()

abstract triggerTripleClick(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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