Sha256: 03e8fd08d804787a86a048f0ae018be2f1d14c66e925c1744d1b1d91c94c0e51

Contents?: true

Size: 1.1 KB

Versions: 20

Compression:

Stored size: 1.1 KB

Contents

"use strict";

const { mixin } = require("../../utils");
const EventModifierMixinImpl = require("./EventModifierMixin-impl").implementation;
const UIEventImpl = require("./UIEvent-impl").implementation;

const MouseEventInit = require("../generated/MouseEventInit");

class MouseEventImpl extends UIEventImpl {
  initMouseEvent(
    type,
    bubbles,
    cancelable,
    view,
    detail,
    screenX,
    screenY,
    clientX,
    clientY,
    ctrlKey,
    altKey,
    shiftKey,
    metaKey,
    button,
    relatedTarget
  ) {
    if (this._dispatchFlag) {
      return;
    }

    this.initUIEvent(type, bubbles, cancelable, view, detail);
    this.screenX = screenX;
    this.screenY = screenY;
    this.clientX = clientX;
    this.clientY = clientY;
    this.ctrlKey = ctrlKey;
    this.altKey = altKey;
    this.shiftKey = shiftKey;
    this.metaKey = metaKey;
    this.button = button;
    this.relatedTarget = relatedTarget;
  }
}
mixin(MouseEventImpl.prototype, EventModifierMixinImpl.prototype);
MouseEventImpl.defaultInit = MouseEventInit.convert(undefined);

module.exports = {
  implementation: MouseEventImpl
};

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
appmap-0.72.2 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.72.1 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.72.0 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.71.0 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.70.2 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.70.1 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.70.0 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.69.0 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.68.2 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.68.1 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.68.0 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.67.1 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.67.0 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.66.2 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.66.1 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.66.0 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.65.1 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.65.0 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.64.0 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
appmap-0.63.0 ./node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js