This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* EventRecorder | |
* @class | |
* @classdesc An EventRecorder can record and replay any event on any DOM node | |
* @param {string} [eventName=click] - Name of the events to record | |
* @param {class} [EventClass=MouseEvent] - The class that should be used to recreate the events | |
* @param {object} [context=self] - The context DOM element, the events should be fetched from | |
* @example | |
* // Create a recorder for click events | |
* const clickRecorder = new EventRecorder('click', MouseEvent, window); |