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

@univerjs/engine-render v0.4.2Docs


Class: Scene

Extends

Constructors

new Scene()

new Scene(
   sceneKey, 
   _parent, 
   state?): Scene

Parameters

ParameterType
sceneKeystring
_parentThinEngine<Scene> | SceneViewer
state?ISceneTransformState

Returns

Scene

Overrides

ThinScene.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseThinScene._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
addObject$readonlyObservable<Scene>undefined-submodules/univer/packages/engine-render/src/scene.ts:51 (opens in a new tab)
afterRender$readonlyObservable<Nullable<Canvas>>undefined-submodules/univer/packages/engine-render/src/scene.ts:59 (opens in a new tab)
beforeRender$readonlyObservable<Nullable<Canvas>>undefined-submodules/univer/packages/engine-render/src/scene.ts:55 (opens in a new tab)
debounceParentTimeoutpublicnumber-1ThinScene.debounceParentTimeoutsubmodules/univer/packages/engine-render/src/thin-scene.ts:68 (opens in a new tab)
onDblclick$publicEventSubject<IMouseEvent | IPointerEvent>undefinedThinScene.onDblclick$submodules/univer/packages/engine-render/src/thin-scene.ts:58 (opens in a new tab)
onDragEnter$publicEventSubject<IDragEvent>undefinedThinScene.onDragEnter$submodules/univer/packages/engine-render/src/thin-scene.ts:50 (opens in a new tab)
onDragLeave$publicEventSubject<IDragEvent>undefinedThinScene.onDragLeave$submodules/univer/packages/engine-render/src/thin-scene.ts:54 (opens in a new tab)
onDragOver$publicEventSubject<IDragEvent>undefinedThinScene.onDragOver$submodules/univer/packages/engine-render/src/thin-scene.ts:52 (opens in a new tab)
onDrop$publicEventSubject<IDragEvent>undefinedThinScene.onDrop$submodules/univer/packages/engine-render/src/thin-scene.ts:56 (opens in a new tab)
onFileLoaded$publicEventSubject<string>undefinedThinScene.onFileLoaded$submodules/univer/packages/engine-render/src/thin-scene.ts:34 (opens in a new tab)
onKeyDown$publicEventSubject<IKeyboardEvent>undefinedThinScene.onKeyDown$submodules/univer/packages/engine-render/src/thin-scene.ts:64 (opens in a new tab)
onKeyUp$publicEventSubject<IKeyboardEvent>undefinedThinScene.onKeyUp$submodules/univer/packages/engine-render/src/thin-scene.ts:66 (opens in a new tab)
onMouseWheel$publicEventSubject<IWheelEvent>undefinedThinScene.onMouseWheel$submodules/univer/packages/engine-render/src/thin-scene.ts:62 (opens in a new tab)
onPointerCancel$publicEventSubject<IMouseEvent | IPointerEvent>undefinedThinScene.onPointerCancel$submodules/univer/packages/engine-render/src/thin-scene.ts:46 (opens in a new tab)
onPointerDown$publicEventSubject<IMouseEvent | IPointerEvent>undefinedThinScene.onPointerDown$submodules/univer/packages/engine-render/src/thin-scene.ts:36 (opens in a new tab)
onPointerEnter$publicEventSubject<IMouseEvent | IPointerEvent>undefinedThinScene.onPointerEnter$submodules/univer/packages/engine-render/src/thin-scene.ts:42 (opens in a new tab)
onPointerLeave$publicEventSubject<IMouseEvent | IPointerEvent>undefinedThinScene.onPointerLeave$submodules/univer/packages/engine-render/src/thin-scene.ts:48 (opens in a new tab)
onPointerMove$publicEventSubject<IMouseEvent | IPointerEvent>undefinedThinScene.onPointerMove$submodules/univer/packages/engine-render/src/thin-scene.ts:38 (opens in a new tab)
onPointerOut$publicEventSubject<IMouseEvent | IPointerEvent>undefinedThinScene.onPointerOut$submodules/univer/packages/engine-render/src/thin-scene.ts:44 (opens in a new tab)
onPointerUp$publicEventSubject<IMouseEvent | IPointerEvent>undefinedThinScene.onPointerUp$submodules/univer/packages/engine-render/src/thin-scene.ts:40 (opens in a new tab)
onTransformChange$publicEventSubject<ITransformChangeState>undefinedThinScene.onTransformChange$submodules/univer/packages/engine-render/src/thin-scene.ts:32 (opens in a new tab)
onTripleClick$publicEventSubject<IMouseEvent | IPointerEvent>undefinedThinScene.onTripleClick$submodules/univer/packages/engine-render/src/thin-scene.ts:60 (opens in a new tab)

Accessors

ancestorLeft

get ancestorLeft(): number

Returns

number

Defined in

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


ancestorScaleX

get ancestorScaleX(): number

Returns

number

Defined in

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


ancestorScaleY

get ancestorScaleY(): number

Returns

number

Defined in

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


ancestorTop

get ancestorTop(): number

Returns

number

Defined in

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


classType

get classType(): RENDER_CLASS_TYPE

Returns

RENDER_CLASS_TYPE

Inherited from

ThinScene.classType

Defined in

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


cursor

set cursor(val): void

Parameters

ParameterType
valCURSOR_TYPE

Defined in

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


height

get height(): number
set height(num): void

Parameters

ParameterType
numnumber

Returns

number

Inherited from

ThinScene.height

Defined in

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


objectsEvented

get objectsEvented(): boolean

Returns

boolean

Inherited from

ThinScene.objectsEvented

Defined in

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


scaleX

get scaleX(): number
set scaleX(scaleX): void

Parameters

ParameterType
scaleXnumber

Returns

number

Inherited from

ThinScene.scaleX

Defined in

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


scaleY

get scaleY(): number
set scaleY(scaleY): void

Parameters

ParameterType
scaleYnumber

Returns

number

Inherited from

ThinScene.scaleY

Defined in

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


sceneKey

get sceneKey(): string

Returns

string

Inherited from

ThinScene.sceneKey

Defined in

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


transform

get transform(): Transform
set transform(trans): void

Parameters

ParameterType
transTransform

Returns

Transform

Inherited from

ThinScene.transform

Defined in

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


width

get width(): number
set width(num): void

Parameters

ParameterType
numnumber

Returns

number

Inherited from

ThinScene.width

Defined in

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

Methods

addLayer()

addLayer(...argument): void

Parameters

ParameterType
...argumentLayer[]

Returns

void

Defined in

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


addObject()

addObject(o, zIndex): Scene

Add object to Layer (Layer is specified by zIndex). If object is a group, insert all its children and group itself to _objects[].

Parameters

ParameterTypeDefault valueDescription
oBaseObjectundefined-
zIndexnumber1layer index

Returns

Scene

scene

Overrides

ThinScene.addObject

Defined in

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


addObjects()

addObjects(objects, zIndex): Scene

Add objects to Layer( Layer is specfied by zIndex) If object is a group, insert all its children and group itself to _objects[].

Parameters

ParameterTypeDefault value
objectsBaseObject[]undefined
zIndexnumber1

Returns

Scene

this

Overrides

ThinScene.addObjects

Defined in

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


addViewport()

addViewport(...viewport): Scene

Parameters

ParameterType
...viewportViewport[]

Returns

Scene

Overrides

ThinScene.addViewport

Defined in

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


attachControl()

attachControl(
   hasDown, 
   hasUp, 
   hasMove, 
   hasWheel): undefined | Scene

Parameters

ParameterTypeDefault value
hasDownbooleantrue
hasUpbooleantrue
hasMovebooleantrue
hasWheelbooleantrue

Returns

undefined | Scene

Defined in

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


attachTransformerTo()

attachTransformerTo(o): void

create transformer if not exist, and then transformer attach to object that passed in by parameter.

Parameters

ParameterType
oBaseObject

Returns

void

Overrides

ThinScene.attachTransformerTo

Defined in

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


clearLayer()

clearLayer(): void

Returns

void

Defined in

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


clearViewports()

clearViewports(): void

Returns

void

Defined in

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


detachControl()

detachControl(): Scene

Returns

Scene

Defined in

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


detachTransformerFrom()

detachTransformerFrom(o): void

Parameters

ParameterType
oBaseObject

Returns

void

Overrides

ThinScene.detachTransformerFrom

Defined in

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


disableLayerCache()

disableLayerCache(...layerIndexes): void

Parameters

ParameterType
...layerIndexesnumber[]

Returns

void

Defined in

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


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

Inherited from

ThinScene.disableObjectsEvent

Defined in

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


dispose()

dispose(): void

Returns

void

Overrides

ThinScene.dispose

Defined in

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


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

ThinScene.disposeWithMe

Defined in

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


enableLayerCache()

enableLayerCache(...layerIndexes): void

Parameters

ParameterType
...layerIndexesnumber[]

Returns

void

Defined in

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


enableObjectsEvent()

enableObjectsEvent(): void

Returns

void

Inherited from

ThinScene.enableObjectsEvent

Defined in

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


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

ThinScene.ensureNotDisposed

Defined in

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


findLayerByZIndex()

findLayerByZIndex(zIndex): Nullable<Layer>

Parameters

ParameterTypeDefault value
zIndexnumber1

Returns

Nullable<Layer>

Defined in

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


findViewportByPosToViewport()

findViewportByPosToViewport(coord): undefined | Viewport

prev getActiveViewportByRelativeCoord

Parameters

ParameterType
coordVector2

Returns

undefined | Viewport

Defined in

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


fuzzyMathObjects()

fuzzyMathObjects(oKey, matchStart): BaseObject[]

Parameters

ParameterTypeDefault value
oKeystringundefined
matchStartbooleanfalse

Returns

BaseObject[]

Defined in

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


getActiveViewportByCoord()

getActiveViewportByCoord(coord): undefined | Viewport

Parameters

ParameterType
coordVector2

Returns

undefined | Viewport

Defined in

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


getAllObjects()

getAllObjects(): BaseObject[]

Get all objects of each Layer.

Returns

BaseObject[]

objects

Defined in

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


getAllObjectsByDescOrder()

getAllObjectsByDescOrder(isDesc): BaseObject[]

get objects which is visible and not in a group.

Parameters

ParameterTypeDefault value
isDescbooleanfalse

Returns

BaseObject[]

BaseObject[]

Defined in

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


getAllObjectsByOrder()

getAllObjectsByOrder(): BaseObject[]

Get objects which is visible and not in a group in each layer.

Returns

BaseObject[]

BaseObject[]

Defined in

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


getAllObjectsByOrderForPick()

getAllObjectsByOrderForPick(isDesc): BaseObject[]

Get visible and evented objects.

Parameters

ParameterTypeDefault value
isDescbooleanfalse

Returns

BaseObject[]

objects

Defined in

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


getAncestorScale()

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

Returns

{
  scaleX: number;
  scaleY: number;
}
NameTypeDefined in
scaleXnumbersubmodules/univer/packages/engine-render/src/scene.ts:773 (opens in a new tab)
scaleYnumbersubmodules/univer/packages/engine-render/src/scene.ts:774 (opens in a new tab)

Overrides

ThinScene.getAncestorScale

Defined in

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


getCursor()

getCursor(): CURSOR_TYPE

Returns

CURSOR_TYPE

Defined in

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


getEngine()

getEngine(): Nullable<Engine>

Returns

Nullable<Engine>

Overrides

ThinScene.getEngine

Defined in

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


getLayer()

getLayer(zIndex): Layer

Parameters

ParameterTypeDefault value
zIndexnumber1

Returns

Layer

Defined in

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


getLayerMaxZIndex()

getLayerMaxZIndex(): number

Returns

number

Defined in

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


getLayers()

getLayers(): Layer[]

Returns

Layer[]

Defined in

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


getObject()

getObject(oKey): Nullable<BaseObject>

Parameters

ParameterType
oKeystring

Returns

Nullable<BaseObject>

Overrides

ThinScene.getObject

Defined in

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


getObjectIncludeInGroup()

getObjectIncludeInGroup(oKey): Nullable<BaseObject>

Parameters

ParameterType
oKeystring

Returns

Nullable<BaseObject>

Defined in

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


getObjectsByLayer()

getObjectsByLayer(zIndex): BaseObject[]

Parameters

ParameterType
zIndexnumber

Returns

BaseObject[]

Defined in

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


getParent()

getParent(): ThinEngine<Scene> | SceneViewer

Returns

ThinEngine<Scene> | SceneViewer

Overrides

ThinScene.getParent

Defined in

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


getPrecisionScale()

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

Returns

{
  scaleX: number;
  scaleY: number;
}
NameTypeDefined in
scaleXnumbersubmodules/univer/packages/engine-render/src/scene.ts:783 (opens in a new tab)
scaleYnumbersubmodules/univer/packages/engine-render/src/scene.ts:784 (opens in a new tab)

Overrides

ThinScene.getPrecisionScale

Defined in

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


getRelativeToViewportCoord()

getRelativeToViewportCoord(coord): Vector2

In a nested scene scenario, it is necessary to obtain the relative offsets layer by layer.

Parameters

ParameterTypeDescription
coordVector2Coordinates to be converted.

Returns

Vector2

Defined in

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


getTransformer()

getTransformer(): Nullable<Transformer>

Returns

Nullable<Transformer>

Defined in

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


getTransformerByCreate()

getTransformerByCreate(): Transformer

Returns

Transformer

Defined in

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


getViewport()

getViewport(key): undefined | Viewport

Parameters

ParameterType
keystring

Returns

undefined | Viewport

Defined in

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


getViewportScrollXY()

getViewportScrollXY(viewPort): {
  x: number;
  y: number;
}

Parameters

ParameterType
viewPortViewport

Returns

{
  x: number;
  y: number;
}
NameTypeDefined in
xnumbersubmodules/univer/packages/engine-render/src/scene.ts:708 (opens in a new tab)
ynumbersubmodules/univer/packages/engine-render/src/scene.ts:709 (opens in a new tab)

Defined in

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


getViewports()

getViewports(): Viewport[]

Returns

Viewport[]

Overrides

ThinScene.getViewports

Defined in

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


getVpScrollXYInfoByPosToVp()

getVpScrollXYInfoByPosToVp(pos, viewPort?): {
  x: 0;
  y: 0;
}

getViewportScrollXYInfo by viewport under cursor position prev getScrollXYByRelativeCoords

Parameters

ParameterType
posVector2
viewPort?Viewport

Returns

{
  x: 0;
  y: 0;
}
NameTypeDefault valueDefined in
xnumber0submodules/univer/packages/engine-render/src/scene.ts:691 (opens in a new tab)
ynumber0submodules/univer/packages/engine-render/src/scene.ts:692 (opens in a new tab)

Defined in

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


initTransformer()

initTransformer(config?): void

Parameters

ParameterType
config?ITransformerConfig

Returns

void

Defined in

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


isDirty()

isDirty(): boolean

Returns

boolean

Defined in

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


makeDirty()

makeDirty(state): Scene

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

Scene

Overrides

ThinScene.makeDirty

Defined in

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


makeDirtyNoParent()

makeDirtyNoParent(state): Scene

Parameters

ParameterTypeDefault value
statebooleantrue

Returns

Scene

Overrides

ThinScene.makeDirtyNoParent

Defined in

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


pick()

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

Get the object under the pointer, if scene.event is disabled, the object is null.

Parameters

ParameterType
coordVector2

Returns

Nullable<BaseObject | Scene | ThinScene>

object under the pointer

Overrides

ThinScene.pick

Defined in

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


removeObject()

removeObject(object?): Nullable<Scene>

Parameters

ParameterType
object?string | BaseObject

Returns

Nullable<Scene>

Defined in

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


removeObjects()

removeObjects(objects?): Nullable<Scene>

Parameters

ParameterType
objects?string[] | BaseObject[]

Returns

Nullable<Scene>

Defined in

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


removeViewport()

removeViewport(key): undefined | Viewport

Parameters

ParameterType
keystring

Returns

undefined | Viewport

Overrides

ThinScene.removeViewport

Defined in

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


render()

render(parentCtx?): void

Parameters

ParameterType
parentCtx?UniverRenderingContext

Returns

void

Overrides

ThinScene.render

Defined in

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


requestRender()

requestRender(parentCtx?): Promise<unknown>

Parameters

ParameterType
parentCtx?UniverRenderingContext

Returns

Promise<unknown>

Defined in

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


resetCursor()

resetCursor(): void

Returns

void

Overrides

ThinScene.resetCursor

Defined in

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


resize()

resize(width?, height?): Scene

Parameters

ParameterType
width?number
height?number

Returns

Scene

Defined in

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


scale()

scale(scaleX?, scaleY?): Scene

Set scale, and then emit event to update Viewport scroll state.

Parameters

ParameterType
scaleX?number
scaleY?number

Returns

Scene

Scene

Defined in

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


scaleBy()

scaleBy(scaleX?, scaleY?): Scene

current scale plus offset, relative

Parameters

ParameterType
scaleX?number
scaleY?number

Returns

Scene

Defined in

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


setCursor()

setCursor(val): void

Parameters

ParameterType
valCURSOR_TYPE

Returns

void

Overrides

ThinScene.setCursor

Defined in

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


setDefaultCursor()

setDefaultCursor(val): void

Parameters

ParameterType
valCURSOR_TYPE

Returns

void

Defined in

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


setObjectBehavior()

setObjectBehavior(o): void

Set Scene as object parent, if object has no parent.

Parameters

ParameterType
oBaseObject

Returns

void

Overrides

ThinScene.setObjectBehavior

Defined in

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


setScaleValue()

setScaleValue(scaleX, scaleY): void

Parameters

ParameterType
scaleXnumber
scaleYnumber

Returns

void

Defined in

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


transformByState()

transformByState(state): void

Reset canvas size and update scroll

Parameters

ParameterType
stateISceneTransformState

Returns

void

Defined in

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


triggerDblclick()

triggerDblclick(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Overrides

ThinScene.triggerDblclick

Defined in

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


triggerDragEnter()

triggerDragEnter(evt): boolean

Parameters

ParameterType
evtIDragEvent

Returns

boolean

Overrides

ThinScene.triggerDragEnter

Defined in

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


triggerDragLeave()

triggerDragLeave(evt): boolean

Parameters

ParameterType
evtIDragEvent

Returns

boolean

Overrides

ThinScene.triggerDragLeave

Defined in

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


triggerDragOver()

triggerDragOver(evt): boolean

Parameters

ParameterType
evtIDragEvent

Returns

boolean

Overrides

ThinScene.triggerDragOver

Defined in

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


triggerDrop()

triggerDrop(evt): boolean

Parameters

ParameterType
evtIDragEvent

Returns

boolean

Overrides

ThinScene.triggerDrop

Defined in

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


triggerKeyDown()

triggerKeyDown(evt): void

Parameters

ParameterType
evtIKeyboardEvent

Returns

void

Overrides

ThinScene.triggerKeyDown

Defined in

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


triggerKeyUp()

triggerKeyUp(evt): void

Parameters

ParameterType
evtIKeyboardEvent

Returns

void

Overrides

ThinScene.triggerKeyUp

Defined in

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


triggerMouseWheel()

triggerMouseWheel(evt): boolean

Parameters

ParameterType
evtIWheelEvent

Returns

boolean

Overrides

ThinScene.triggerMouseWheel

Defined in

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


triggerPointerDown()

triggerPointerDown(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Overrides

ThinScene.triggerPointerDown

Defined in

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


triggerPointerEnter()

triggerPointerEnter(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Overrides

ThinScene.triggerPointerEnter

Defined in

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


triggerPointerLeave()

triggerPointerLeave(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Overrides

ThinScene.triggerPointerLeave

Defined in

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


triggerPointerMove()

triggerPointerMove(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Overrides

ThinScene.triggerPointerMove

Defined in

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


triggerPointerOut()

triggerPointerOut(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Overrides

ThinScene.triggerPointerOut

Defined in

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


triggerPointerOver()

triggerPointerOver(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Overrides

ThinScene.triggerPointerOver

Defined in

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


triggerPointerUp()

triggerPointerUp(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Overrides

ThinScene.triggerPointerUp

Defined in

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


triggerTripleClick()

triggerTripleClick(evt): boolean

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

boolean

Overrides

ThinScene.triggerTripleClick

Defined in

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


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