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.
25 lines • 749 B
JavaScript
/**
*
*/
export default class Touch {
/**
* Constructor.
*
* @param [touchInit] Touch init.
*/
constructor(touchInit) {
this.identifier = touchInit.identifier;
this.target = touchInit.target;
this.clientX = touchInit.clientX ?? 0;
this.clientY = touchInit.clientY ?? 0;
this.screenX = touchInit.screenX ?? 0;
this.screenY = touchInit.screenY ?? 0;
this.pageX = touchInit.pageX ?? 0;
this.pageY = touchInit.pageY ?? 0;
this.radiusX = touchInit.radiusX ?? 0;
this.radiusY = touchInit.radiusY ?? 0;
this.rotationAngle = touchInit.rotationAngle ?? 0;
this.force = touchInit.force ?? 0;
}
}
//# sourceMappingURL=Touch.js.map