@univerjs/engine-render v0.5.4


Interface: IDragEvent

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:306

Native friendly interface for DragEvent Object

Extends

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
altKeypublicbooleanStatus of Alt key being pressedIMouseEvent.altKeypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:189
AT_TARGETreadonly2-IMouseEvent.AT_TARGETnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8602
bubblesreadonlybooleanReturns true or false depending on how event was initialized. True if event goes through its target’s ancestors in reverse tree order, and false otherwise. MDN ReferenceIMouseEvent.bubblesnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8497
BUBBLING_PHASEreadonly3-IMouseEvent.BUBBLING_PHASEnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8603
buttonpublicnumberValue of single mouse button pressedIMouseEvent.buttonpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:194
buttonspublicnumberValue of all mouse buttons pressedIMouseEvent.buttonspackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:199
cancelablereadonlybooleanReturns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. MDN ReferenceIMouseEvent.cancelablenode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8509
cancelBubblepublicbooleanDeprecated MDN ReferenceIMouseEvent.cancelBubblenode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8503
CAPTURING_PHASEreadonly1-IMouseEvent.CAPTURING_PHASEnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8601
clientXpublicnumberCurrent X coordinateIMouseEvent.clientXpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:204
clientYpublicnumberCurrent Y coordinateIMouseEvent.clientYpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:209
composedreadonlybooleanReturns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. MDN ReferenceIMouseEvent.composednode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8515
ctrlKeypublicbooleanStatus of Ctrl key being pressedIMouseEvent.ctrlKeypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:214
currentStatepublicNullable<number>Current state of given inputIMouseEvent.currentStatepackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:122
currentTargetreadonlynull | EventTargetReturns the object whose event listener’s callback is currently being invoked. MDN ReferenceIMouseEvent.currentTargetnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8521
dataTransferpublicDataTransferHolds the drag operation’s data-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:311
defaultPreventedreadonlybooleanReturns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. MDN ReferenceIMouseEvent.defaultPreventednode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8527
detailreadonlynumberMDN ReferenceIMouseEvent.detailnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:23192
deviceTypepublicDeviceTypeDevice typeIMouseEvent.deviceTypepackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:110
eventPhasereadonlynumberReturns the event’s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. MDN ReferenceIMouseEvent.eventPhasenode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8533
inputIndexpublicnumberDevice slotIMouseEvent.inputIndexpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:114
isTrustedreadonlybooleanReturns true if event was dispatched by the user agent, and false otherwise. MDN ReferenceIMouseEvent.isTrustednode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8539
layerXreadonlynumberMDN ReferenceIMouseEvent.layerXnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16167
layerYreadonlynumberMDN ReferenceIMouseEvent.layerYnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16169
metaKeypublicbooleanStatus of Meta key (eg. Windows key) being pressedIMouseEvent.metaKeypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:219
movementXpublicnumberDelta of movement on X axisIMouseEvent.movementXpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:224
movementYpublicnumberDelta of movement on Y axisIMouseEvent.movementYpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:229
mozMovementX?publicnumberDelta of movement on X axisIMouseEvent.mozMovementXpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:234
mozMovementY?publicnumberDelta of movement on Y axisIMouseEvent.mozMovementYpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:239
msMovementX?publicanyDelta of movement on X axisIMouseEvent.msMovementXpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:244
msMovementY?publicanyDelta of movement on Y axi sIMouseEvent.msMovementYpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:249
NONEreadonly0-IMouseEvent.NONEnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8600
offsetXpublicnumberCurrent coordinate of X within containerIMouseEvent.offsetXpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:254
offsetYpublicnumberCurrent coordinate of Y within containerIMouseEvent.offsetYpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:259
pageXreadonlynumberMDN ReferenceIMouseEvent.pageXnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16181
pageYreadonlynumberMDN ReferenceIMouseEvent.pageYnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16183
previousStatepublicNullable<number>Previous state of given input, for what???, nobody read this value.IMouseEvent.previousStatepackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:118
relatedTargetreadonlynull | EventTargetMDN ReferenceIMouseEvent.relatedTargetnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16185
returnValuepublicbooleanDeprecated MDN ReferenceIMouseEvent.returnValuenode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8545
screenXreadonlynumberMDN ReferenceIMouseEvent.screenXnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16187
screenYreadonlynumberMDN ReferenceIMouseEvent.screenYnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16189
shiftKeypublicbooleanStatus of Shift key being pressedIMouseEvent.shiftKeypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:264
srcElementreadonlynull | EventTargetDeprecated MDN ReferenceIMouseEvent.srcElementnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8551
targetreadonlynull | EventTargetReturns the object to which event is dispatched (its target). MDN ReferenceIMouseEvent.targetnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8557
timeStampreadonlynumberReturns the event’s timestamp as the number of milliseconds measured relative to the time origin. MDN ReferenceIMouseEvent.timeStampnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8563
typereadonlystringReturns the type of event, e.g. “click”, “hashchange”, or “submit”. MDN ReferenceIMouseEvent.typenode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8569
viewreadonlynull | WindowMDN ReferenceIMouseEvent.viewnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:23194
webkitMovementX?publicanyDelta of movement on X axisIMouseEvent.webkitMovementXpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:269
webkitMovementY?publicanyDelta of movement on Y axisIMouseEvent.webkitMovementYpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:274
whichreadonlynumberDeprecated MDN ReferenceIMouseEvent.whichnode_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:23200
xpublicnumberAlias of clientXIMouseEvent.xpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:279
ypublicnumberAlias of clientYIMouseEvent.ypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:284

Methods

composedPath()

Call Signature

composedPath(): EventTarget[]

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8575

Returns the invocation target objects of event’s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root’s mode is “closed” that are not reachable from event’s currentTarget.

MDN Reference

Returns

EventTarget[]

Inherited from

IMouseEvent.composedPath

Call Signature

composedPath(): EventTarget[]

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:2734

Returns the invocation target objects of event’s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root’s mode is “closed” that are not reachable from event’s currentTarget.

MDN Reference

Returns

EventTarget[]

Inherited from

IMouseEvent.composedPath


getModifierState()

getModifierState(keyArg): boolean

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16197

MDN Reference

Parameters

ParameterType
keyArgstring

Returns

boolean

Inherited from

IMouseEvent.getModifierState


initEvent()

Call Signature

initEvent(
   type, 
   bubbles?, 
   cancelable?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8581

Parameters
ParameterType
typestring
bubbles?boolean
cancelable?boolean
Returns

void

Deprecated

MDN Reference

Inherited from

IMouseEvent.initEvent

Call Signature

initEvent(
   type, 
   bubbles?, 
   cancelable?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:2740

Parameters
ParameterType
typestring
bubbles?boolean
cancelable?boolean
Returns

void

Deprecated

MDN Reference

Inherited from

IMouseEvent.initEvent


initMouseEvent()

initMouseEvent(
   typeArg, 
   canBubbleArg, 
   cancelableArg, 
   viewArg, 
   detailArg, 
   screenXArg, 
   screenYArg, 
   clientXArg, 
   clientYArg, 
   ctrlKeyArg, 
   altKeyArg, 
   shiftKeyArg, 
   metaKeyArg, 
   buttonArg, 
   relatedTargetArg): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16203

Parameters

ParameterType
typeArgstring
canBubbleArgboolean
cancelableArgboolean
viewArgWindow
detailArgnumber
screenXArgnumber
screenYArgnumber
clientXArgnumber
clientYArgnumber
ctrlKeyArgboolean
altKeyArgboolean
shiftKeyArgboolean
metaKeyArgboolean
buttonArgnumber
relatedTargetArgnull | EventTarget

Returns

void

Deprecated

MDN Reference

Inherited from

IMouseEvent.initMouseEvent


initUIEvent()

initUIEvent(
   typeArg, 
   bubblesArg?, 
   cancelableArg?, 
   viewArg?, 
   detailArg?): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:23206

Parameters

ParameterType
typeArgstring
bubblesArg?boolean
cancelableArg?boolean
viewArg?null | Window
detailArg?number

Returns

void

Deprecated

MDN Reference

Inherited from

IMouseEvent.initUIEvent


preventDefault()

Call Signature

preventDefault(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8587

If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.

MDN Reference

Returns

void

Inherited from

IMouseEvent.preventDefault

Call Signature

preventDefault(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:2746

If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.

MDN Reference

Returns

void

Inherited from

IMouseEvent.preventDefault


stopImmediatePropagation()

Call Signature

stopImmediatePropagation(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8593

Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.

MDN Reference

Returns

void

Inherited from

IMouseEvent.stopImmediatePropagation

Call Signature

stopImmediatePropagation(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:2752

Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.

MDN Reference

Returns

void

Inherited from

IMouseEvent.stopImmediatePropagation


stopPropagation()

Call Signature

stopPropagation(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8599

When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

MDN Reference

Returns

void

Inherited from

IMouseEvent.stopPropagation

Call Signature

stopPropagation(): void

Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:2758

When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

MDN Reference

Returns

void

Inherited from

IMouseEvent.stopPropagation