happy-dom-without-node
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
27 lines • 613 B
JavaScript
import Event from './Event.js';
/**
*
*/
class UIEvent extends Event {
/**
* Constructor.
*
* @param type Event type.
* @param [eventInit] Event init.
*/
constructor(type, eventInit = null) {
super(type, eventInit);
this.layerX = 0;
this.layerY = 0;
this.pageX = 0;
this.pageY = 0;
this.detail = eventInit?.detail ?? 0;
this.view = eventInit?.view ?? null;
}
}
UIEvent.NONE = 0;
UIEvent.CAPTURING_PHASE = 1;
UIEvent.AT_TARGET = 2;
UIEvent.BUBBLING_PHASE = 3;
export default UIEvent;
//# sourceMappingURL=UIEvent.js.map