function createCanvasEvent(position, data) {

  return getDiagramJS().invoke(function(canvas) {

    var target = canvas._svg;

    var clientRect = canvas._container.getBoundingClientRect();

    var absolutePosition = {
      x: position.x + clientRect.left,
      y: position.y + clientRect.top
    };

    return createEvent(target, absolutePosition, data);
  });
}
Create an event with global coordinates
computed based on the loaded diagrams canvas position and the
specified canvas local coordinates.

@param {Point} point of the event local the canvas (closure)
@param {Object} [data]

@return {Event} event, scoped to the given canvas