camunda-bpmn-js 3.5.0 → 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13377,13 +13377,14 @@
13377
13377
  *
13378
13378
  * @param {SVGElement} visual The graphical element.
13379
13379
  * @param {ShapeLike} element The shape.
13380
+ * @param {Object} attrs Optional attributes.
13380
13381
  *
13381
13382
  * @return {SVGElement}
13382
13383
  */
13383
- GraphicsFactory.prototype.drawShape = function(visual, element) {
13384
+ GraphicsFactory.prototype.drawShape = function(visual, element, attrs = {}) {
13384
13385
  var eventBus = this._eventBus;
13385
13386
 
13386
- return eventBus.fire('render.shape', { gfx: visual, element: element });
13387
+ return eventBus.fire('render.shape', { gfx: visual, element, attrs });
13387
13388
  };
13388
13389
 
13389
13390
  /**
@@ -13404,13 +13405,14 @@
13404
13405
  *
13405
13406
  * @param {SVGElement} visual The graphical element.
13406
13407
  * @param {ConnectionLike} element The connection.
13408
+ * @param {Object} attrs Optional attributes.
13407
13409
  *
13408
13410
  * @return {SVGElement}
13409
13411
  */
13410
- GraphicsFactory.prototype.drawConnection = function(visual, element) {
13412
+ GraphicsFactory.prototype.drawConnection = function(visual, element, attrs = {}) {
13411
13413
  var eventBus = this._eventBus;
13412
13414
 
13413
- return eventBus.fire('render.connection', { gfx: visual, element: element });
13415
+ return eventBus.fire('render.connection', { gfx: visual, element, attrs });
13414
13416
  };
13415
13417
 
13416
13418
  /**
@@ -23759,7 +23761,7 @@
23759
23761
  // pinch to zoom is mapped to wheel + ctrlKey = true
23760
23762
  // in modern browsers (!)
23761
23763
 
23762
- var isZoom = event.ctrlKey;
23764
+ var isZoom = event.ctrlKey || (isMac() && event.metaKey);
23763
23765
 
23764
23766
  var isHorizontalScroll = event.shiftKey;
23765
23767