API Reference
@univerjs
@univerjs/engine-render
interfaces
Iwheelevent

@univerjs/engine-render v0.4.2Docs


Interface: IWheelEvent

Native friendly interface for WheelEvent Object

Extends

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
AT_TARGETreadonly2-IMouseEvent.AT_TARGETnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8226
BUBBLING_PHASEreadonly3-IMouseEvent.BUBBLING_PHASEnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8227
CAPTURING_PHASEreadonly1-IMouseEvent.CAPTURING_PHASEnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8225
NONEreadonly0-IMouseEvent.NONEnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8224
altKeypublicbooleanStatus of Alt key being pressedIMouseEvent.altKeysubmodules/univer/packages/engine-render/src/basics/i-events.ts:189 (opens in a new tab)
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 Reference (opens in a new tab)IMouseEvent.bubblesnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8121
buttonpublicnumberValue of single mouse button pressedIMouseEvent.buttonsubmodules/univer/packages/engine-render/src/basics/i-events.ts:194 (opens in a new tab)
buttonspublicnumberValue of all mouse buttons pressedIMouseEvent.buttonssubmodules/univer/packages/engine-render/src/basics/i-events.ts:199 (opens in a new tab)
cancelBubblepublicbooleanDeprecated MDN Reference (opens in a new tab)IMouseEvent.cancelBubblenode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8127
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 Reference (opens in a new tab)IMouseEvent.cancelablenode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8133
clientXpublicnumberCurrent X coordinateIMouseEvent.clientXsubmodules/univer/packages/engine-render/src/basics/i-events.ts:204 (opens in a new tab)
clientYpublicnumberCurrent Y coordinateIMouseEvent.clientYsubmodules/univer/packages/engine-render/src/basics/i-events.ts:209 (opens in a new tab)
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 Reference (opens in a new tab)IMouseEvent.composednode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8139
ctrlKeypublicbooleanStatus of Ctrl key being pressedIMouseEvent.ctrlKeysubmodules/univer/packages/engine-render/src/basics/i-events.ts:214 (opens in a new tab)
currentStatepublicNullable<number>Current state of given inputIMouseEvent.currentStatesubmodules/univer/packages/engine-render/src/basics/i-events.ts:122 (opens in a new tab)
currentTargetreadonlynull | EventTargetReturns the object whose event listener's callback is currently being invoked. MDN Reference (opens in a new tab)IMouseEvent.currentTargetnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8145
defaultPreventedreadonlybooleanReturns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. MDN Reference (opens in a new tab)IMouseEvent.defaultPreventednode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8151
deltaModepublicnumberUnits for delta value-submodules/univer/packages/engine-render/src/basics/i-events.ts:322 (opens in a new tab)
deltaXpublicnumberHorizontal scroll delta-submodules/univer/packages/engine-render/src/basics/i-events.ts:327 (opens in a new tab)
deltaYpublicnumber--submodules/univer/packages/engine-render/src/basics/i-events.ts:332 (opens in a new tab)
deltaZpublicnumberZ-Axis scroll delta-submodules/univer/packages/engine-render/src/basics/i-events.ts:337 (opens in a new tab)
detailreadonlynumberMDN Reference (opens in a new tab)IMouseEvent.detailnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:22847
deviceTypepublicDeviceTypeDevice typeIMouseEvent.deviceTypesubmodules/univer/packages/engine-render/src/basics/i-events.ts:110 (opens in a new tab)
eventPhasereadonlynumberReturns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. MDN Reference (opens in a new tab)IMouseEvent.eventPhasenode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8157
inputIndexpublicnumberDevice slotIMouseEvent.inputIndexsubmodules/univer/packages/engine-render/src/basics/i-events.ts:114 (opens in a new tab)
isTrustedreadonlybooleanReturns true if event was dispatched by the user agent, and false otherwise. MDN Reference (opens in a new tab)IMouseEvent.isTrustednode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8163
layerXreadonlynumberMDN Reference (opens in a new tab)IMouseEvent.layerXnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:15875
layerYreadonlynumberMDN Reference (opens in a new tab)IMouseEvent.layerYnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:15877
metaKeypublicbooleanStatus of Meta key (eg. Windows key) being pressedIMouseEvent.metaKeysubmodules/univer/packages/engine-render/src/basics/i-events.ts:219 (opens in a new tab)
movementXpublicnumberDelta of movement on X axisIMouseEvent.movementXsubmodules/univer/packages/engine-render/src/basics/i-events.ts:224 (opens in a new tab)
movementYpublicnumberDelta of movement on Y axisIMouseEvent.movementYsubmodules/univer/packages/engine-render/src/basics/i-events.ts:229 (opens in a new tab)
mozMovementX?publicnumberDelta of movement on X axisIMouseEvent.mozMovementXsubmodules/univer/packages/engine-render/src/basics/i-events.ts:234 (opens in a new tab)
mozMovementY?publicnumberDelta of movement on Y axisIMouseEvent.mozMovementYsubmodules/univer/packages/engine-render/src/basics/i-events.ts:239 (opens in a new tab)
msMovementX?publicanyDelta of movement on X axisIMouseEvent.msMovementXsubmodules/univer/packages/engine-render/src/basics/i-events.ts:244 (opens in a new tab)
msMovementY?publicanyDelta of movement on Y axi sIMouseEvent.msMovementYsubmodules/univer/packages/engine-render/src/basics/i-events.ts:249 (opens in a new tab)
offsetXpublicnumberCurrent coordinate of X within containerIMouseEvent.offsetXsubmodules/univer/packages/engine-render/src/basics/i-events.ts:254 (opens in a new tab)
offsetYpublicnumberCurrent coordinate of Y within containerIMouseEvent.offsetYsubmodules/univer/packages/engine-render/src/basics/i-events.ts:259 (opens in a new tab)
pageXreadonlynumberMDN Reference (opens in a new tab)IMouseEvent.pageXnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:15889
pageYreadonlynumberMDN Reference (opens in a new tab)IMouseEvent.pageYnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:15891
previousStatepublicNullable<number>Previous state of given inputIMouseEvent.previousStatesubmodules/univer/packages/engine-render/src/basics/i-events.ts:118 (opens in a new tab)
relatedTargetreadonlynull | EventTargetMDN Reference (opens in a new tab)IMouseEvent.relatedTargetnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:15893
returnValuepublicbooleanDeprecated MDN Reference (opens in a new tab)IMouseEvent.returnValuenode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8169
screenXreadonlynumberMDN Reference (opens in a new tab)IMouseEvent.screenXnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:15895
screenYreadonlynumberMDN Reference (opens in a new tab)IMouseEvent.screenYnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:15897
shiftKeypublicbooleanStatus of Shift key being pressedIMouseEvent.shiftKeysubmodules/univer/packages/engine-render/src/basics/i-events.ts:264 (opens in a new tab)
srcElementreadonlynull | EventTargetDeprecated MDN Reference (opens in a new tab)IMouseEvent.srcElementnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8175
targetreadonlynull | EventTargetReturns the object to which event is dispatched (its target). MDN Reference (opens in a new tab)IMouseEvent.targetnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8181
timeStampreadonlynumberReturns the event's timestamp as the number of milliseconds measured relative to the time origin. MDN Reference (opens in a new tab)IMouseEvent.timeStampnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8187
typereadonlystringReturns the type of event, e.g. "click", "hashchange", or "submit". MDN Reference (opens in a new tab)IMouseEvent.typenode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8193
viewreadonlynull | WindowMDN Reference (opens in a new tab)IMouseEvent.viewnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:22849
webkitMovementX?publicanyDelta of movement on X axisIMouseEvent.webkitMovementXsubmodules/univer/packages/engine-render/src/basics/i-events.ts:269 (opens in a new tab)
webkitMovementY?publicanyDelta of movement on Y axisIMouseEvent.webkitMovementYsubmodules/univer/packages/engine-render/src/basics/i-events.ts:274 (opens in a new tab)
wheelDelta?publicnumberWheelDelta (From MouseWheel Event)-submodules/univer/packages/engine-render/src/basics/i-events.ts:342 (opens in a new tab)
whichreadonlynumberDeprecated MDN Reference (opens in a new tab)IMouseEvent.whichnode_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:22855
xpublicnumberAlias of clientXIMouseEvent.xsubmodules/univer/packages/engine-render/src/basics/i-events.ts:279 (opens in a new tab)
ypublicnumberAlias of clientYIMouseEvent.ysubmodules/univer/packages/engine-render/src/basics/i-events.ts:284 (opens in a new tab)

Methods

composedPath()

composedPath(undefined)

composedPath(): EventTarget[]

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 (opens in a new tab)

Returns

EventTarget[]

Inherited from

IMouseEvent.composedPath

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8199

composedPath(undefined)

composedPath(): EventTarget[]

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 (opens in a new tab)

Returns

EventTarget[]

Inherited from

IMouseEvent.composedPath

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:2523


getModifierState()

getModifierState(keyArg): boolean

MDN Reference (opens in a new tab)

Parameters

ParameterType
keyArgstring

Returns

boolean

Inherited from

IMouseEvent.getModifierState

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:15905


initEvent()

initEvent(type, bubbles, cancelable)

initEvent(
   type, 
   bubbles?, 
   cancelable?): void
Parameters
ParameterType
typestring
bubbles?boolean
cancelable?boolean
Returns

void

Deprecated

MDN Reference (opens in a new tab)

Inherited from

IMouseEvent.initEvent

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8205

initEvent(type, bubbles, cancelable)

initEvent(
   type, 
   bubbles?, 
   cancelable?): void
Parameters
ParameterType
typestring
bubbles?boolean
cancelable?boolean
Returns

void

Deprecated

MDN Reference (opens in a new tab)

Inherited from

IMouseEvent.initEvent

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:2529


initMouseEvent()

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

Parameters

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

Returns

void

Deprecated

MDN Reference (opens in a new tab)

Inherited from

IMouseEvent.initMouseEvent

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:15911


initUIEvent()

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

Parameters

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

Returns

void

Deprecated

MDN Reference (opens in a new tab)

Inherited from

IMouseEvent.initUIEvent

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:22861


preventDefault()

preventDefault(undefined)

preventDefault(): void

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 (opens in a new tab)

Returns

void

Inherited from

IMouseEvent.preventDefault

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8211

preventDefault(undefined)

preventDefault(): void

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 (opens in a new tab)

Returns

void

Inherited from

IMouseEvent.preventDefault

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:2535


stopImmediatePropagation()

stopImmediatePropagation(undefined)

stopImmediatePropagation(): void

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 (opens in a new tab)

Returns

void

Inherited from

IMouseEvent.stopImmediatePropagation

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8217

stopImmediatePropagation(undefined)

stopImmediatePropagation(): void

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 (opens in a new tab)

Returns

void

Inherited from

IMouseEvent.stopImmediatePropagation

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:2541


stopPropagation()

stopPropagation(undefined)

stopPropagation(): void

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

MDN Reference (opens in a new tab)

Returns

void

Inherited from

IMouseEvent.stopPropagation

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.dom.d.ts:8223

stopPropagation(undefined)

stopPropagation(): void

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

MDN Reference (opens in a new tab)

Returns

void

Inherited from

IMouseEvent.stopPropagation

Defined in

node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.webworker.d.ts:2547


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