mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-18 03:47:22 +00:00
docs: correct JSDoc for MockEvents
This commit is contained in:
parent
7f47ff7d48
commit
289c074ecc
@ -13,7 +13,7 @@ import {
|
|||||||
* specified canvas local coordinates.
|
* specified canvas local coordinates.
|
||||||
*
|
*
|
||||||
* @param {Point} point of the event local the canvas (closure)
|
* @param {Point} point of the event local the canvas (closure)
|
||||||
* @param {Object} data
|
* @param {Object} [data]
|
||||||
*
|
*
|
||||||
* @return {Event} event, scoped to the given canvas
|
* @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) {
|
export function createEvent(target, position, data) {
|
||||||
|
|
||||||
return getBpmnJS().invoke(function(eventBus) {
|
return getBpmnJS().invoke(function(eventBus) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user