meo-skia-canvas
    Preparing search index...

    Type Alias MouseEventProps

    Payload shared by the mouse events, following the DOM's names.

    🧪 Not in the HTML Canvas standard.

    type MouseEventProps = {
        altKey: boolean;
        button: number;
        buttons: number;
        ctrlKey: boolean;
        metaKey: boolean;
        pageX: number;
        pageY: number;
        shiftKey: boolean;
        x: number;
        y: number;
    }
    Index
    altKey: boolean

    Whether Alt / Option was held.

    button: number

    Which button changed state: 0 left, 1 middle, 2 right.

    buttons: number

    Bitmask of the buttons currently held.

    ctrlKey: boolean

    Whether Control was held.

    metaKey: boolean

    Whether Command / Windows was held.

    pageX: number

    Cursor position in untransformed window coordinates, which differs from x whenever the canvas is being scaled to fit.

    pageY: number

    Cursor position in window coordinates, vertically.

    shiftKey: boolean

    Whether Shift was held.

    x: number

    Cursor position in canvas coordinates, with the window's fit undone.

    y: number

    Cursor position in canvas coordinates, vertically.