docs: correct JSDoc for MockEvents

This commit is contained in:
Nico Rehwaldt 2021-10-20 09:58:07 +02:00
parent 7f47ff7d48
commit c9a9f259fc
1 changed files with 10 additions and 2 deletions

View File

@ -13,7 +13,7 @@ import {
* specified canvas local coordinates.
*
* @param {Point} point of the event local the canvas (closure)
* @param {Object} data
* @param {Object} [data]
*
* @return {Event} event, scoped to the given canvas
*/
@ -34,7 +34,15 @@ export function createCanvasEvent(position, data) {
});
}
/**
* Create an Event
*
* @param {Element} target
* @param { { x: number, y: number } } position
* @param {any} [data]
*
* @return {Event}
*/
export function createEvent(target, position, data) {
return getBpmnJS().invoke(function(eventBus) {