Module

x/evt/lib/index.ts

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.MouseEvent
implements UIEvent
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { MouseEvent } = dom;

Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown.

Properties

readonly
altKey: boolean
readonly
button: number
readonly
buttons: number
readonly
clientX: number
readonly
clientY: number
readonly
ctrlKey: boolean
readonly
metaKey: boolean
readonly
movementX: number
readonly
movementY: number
readonly
offsetX: number
readonly
offsetY: number
readonly
pageX: number
readonly
pageY: number
readonly
relatedTarget: EventTarget | null
readonly
screenX: number
readonly
screenY: number
readonly
shiftKey: boolean
readonly
x: number
readonly
y: number

Methods

getModifierState(keyArg: string): boolean
initMouseEvent(
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: EventTarget | null,
): void