@univerjs/engine-render v0.5.4
Interface: IMouseEvent
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:184
Native friendly interface for MouseEvent Object
Extends
IUIEvent
.MouseEvent
Extended by
Properties
Property | Modifier | Type | Description | Overrides | Inherited from | Defined in |
---|---|---|---|---|---|---|
altKey | public | boolean | Status of Alt key being pressed | MouseEvent.altKey | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:189 |
AT_TARGET | readonly | 2 | - | - | IUIEvent .AT_TARGET | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8602 |
bubbles | readonly | boolean | Returns 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 | - | IUIEvent .bubbles | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8497 |
BUBBLING_PHASE | readonly | 3 | - | - | IUIEvent .BUBBLING_PHASE | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8603 |
button | public | number | Value of single mouse button pressed | MouseEvent.button | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:194 |
buttons | public | number | Value of all mouse buttons pressed | MouseEvent.buttons | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:199 |
cancelable | readonly | boolean | Returns 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 | - | IUIEvent .cancelable | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8509 |
cancelBubble | public | boolean | Deprecated MDN Reference | - | IUIEvent .cancelBubble | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8503 |
CAPTURING_PHASE | readonly | 1 | - | - | IUIEvent .CAPTURING_PHASE | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8601 |
clientX | public | number | Current X coordinate | MouseEvent.clientX | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:204 |
clientY | public | number | Current Y coordinate | MouseEvent.clientY | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:209 |
composed | readonly | boolean | Returns 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 | - | IUIEvent .composed | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8515 |
ctrlKey | public | boolean | Status of Ctrl key being pressed | MouseEvent.ctrlKey | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:214 |
currentState | public | Nullable <number > | Current state of given input | - | IUIEvent .currentState | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:122 |
currentTarget | readonly | null | EventTarget | Returns the object whose event listener’s callback is currently being invoked. MDN Reference | - | IUIEvent .currentTarget | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8521 |
defaultPrevented | readonly | boolean | Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. MDN Reference | - | IUIEvent .defaultPrevented | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8527 |
detail | readonly | number | MDN Reference | - | IUIEvent .detail | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:23192 |
deviceType | public | DeviceType | Device type | - | IUIEvent .deviceType | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:110 |
eventPhase | readonly | number | Returns the event’s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. MDN Reference | - | IUIEvent .eventPhase | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8533 |
inputIndex | public | number | Device slot | - | IUIEvent .inputIndex | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:114 |
isTrusted | readonly | boolean | Returns true if event was dispatched by the user agent, and false otherwise. MDN Reference | - | IUIEvent .isTrusted | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8539 |
layerX | readonly | number | MDN Reference | - | MouseEvent.layerX | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16167 |
layerY | readonly | number | MDN Reference | - | MouseEvent.layerY | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16169 |
metaKey | public | boolean | Status of Meta key (eg. Windows key) being pressed | MouseEvent.metaKey | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:219 |
movementX | public | number | Delta of movement on X axis | MouseEvent.movementX | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:224 |
movementY | public | number | Delta of movement on Y axis | MouseEvent.movementY | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:229 |
mozMovementX? | public | number | Delta of movement on X axis | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:234 |
mozMovementY? | public | number | Delta of movement on Y axis | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:239 |
msMovementX? | public | any | Delta of movement on X axis | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:244 |
msMovementY? | public | any | Delta of movement on Y axi s | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:249 |
NONE | readonly | 0 | - | - | IUIEvent .NONE | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8600 |
offsetX | public | number | Current coordinate of X within container | MouseEvent.offsetX | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:254 |
offsetY | public | number | Current coordinate of Y within container | MouseEvent.offsetY | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:259 |
pageX | readonly | number | MDN Reference | - | MouseEvent.pageX | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16181 |
pageY | readonly | number | MDN Reference | - | MouseEvent.pageY | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16183 |
previousState | public | Nullable <number > | Previous state of given input, for what???, nobody read this value. | - | IUIEvent .previousState | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:118 |
relatedTarget | readonly | null | EventTarget | MDN Reference | - | MouseEvent.relatedTarget | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16185 |
returnValue | public | boolean | Deprecated MDN Reference | - | IUIEvent .returnValue | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8545 |
screenX | readonly | number | MDN Reference | - | MouseEvent.screenX | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16187 |
screenY | readonly | number | MDN Reference | - | MouseEvent.screenY | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16189 |
shiftKey | public | boolean | Status of Shift key being pressed | MouseEvent.shiftKey | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:264 |
srcElement | readonly | null | EventTarget | Deprecated MDN Reference | - | IUIEvent .srcElement | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8551 |
target | readonly | null | EventTarget | Returns the object to which event is dispatched (its target). MDN Reference | - | IUIEvent .target | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8557 |
timeStamp | readonly | number | Returns the event’s timestamp as the number of milliseconds measured relative to the time origin. MDN Reference | - | IUIEvent .timeStamp | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8563 |
type | readonly | string | Returns the type of event, e.g. “click”, “hashchange”, or “submit”. MDN Reference | - | IUIEvent .type | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8569 |
view | readonly | null | Window | MDN Reference | - | IUIEvent .view | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:23194 |
webkitMovementX? | public | any | Delta of movement on X axis | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:269 |
webkitMovementY? | public | any | Delta of movement on Y axis | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:274 |
which | readonly | number | Deprecated MDN Reference | - | IUIEvent .which | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:23200 |
x | public | number | Alias of clientX | MouseEvent.x | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:279 |
y | public | number | Alias of clientY | MouseEvent.y | - | packages/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.
Returns
EventTarget
[]
Inherited from
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.
Returns
EventTarget
[]
Inherited from
getModifierState()
getModifierState(keyArg): boolean
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:16197
Parameters
Parameter | Type |
---|---|
keyArg | string |
Returns
boolean
Inherited from
MouseEvent.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
Parameter | Type |
---|---|
type | string |
bubbles ? | boolean |
cancelable ? | boolean |
Returns
void
Deprecated
Inherited from
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
Parameter | Type |
---|---|
type | string |
bubbles ? | boolean |
cancelable ? | boolean |
Returns
void
Deprecated
Inherited from
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
Parameter | Type |
---|---|
typeArg | string |
canBubbleArg | boolean |
cancelableArg | boolean |
viewArg | Window |
detailArg | number |
screenXArg | number |
screenYArg | number |
clientXArg | number |
clientYArg | number |
ctrlKeyArg | boolean |
altKeyArg | boolean |
shiftKeyArg | boolean |
metaKeyArg | boolean |
buttonArg | number |
relatedTargetArg | null | EventTarget |
Returns
void
Deprecated
Inherited from
MouseEvent.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
Parameter | Type |
---|---|
typeArg | string |
bubblesArg ? | boolean |
cancelableArg ? | boolean |
viewArg ? | null | Window |
detailArg ? | number |
Returns
void
Deprecated
Inherited from
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.
Returns
void
Inherited from
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.
Returns
void
Inherited from
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.
Returns
void
Inherited from
IUIEvent
.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.
Returns
void
Inherited from
IUIEvent
.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.
Returns
void
Inherited from
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.
Returns
void