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.
@@ -13388,13 +13388,14 @@
13388
13388
  *
13389
13389
  * @param {SVGElement} visual The graphical element.
13390
13390
  * @param {ShapeLike} element The shape.
13391
+ * @param {Object} attrs Optional attributes.
13391
13392
  *
13392
13393
  * @return {SVGElement}
13393
13394
  */
13394
- GraphicsFactory.prototype.drawShape = function(visual, element) {
13395
+ GraphicsFactory.prototype.drawShape = function(visual, element, attrs = {}) {
13395
13396
  var eventBus = this._eventBus;
13396
13397
 
13397
- return eventBus.fire('render.shape', { gfx: visual, element: element });
13398
+ return eventBus.fire('render.shape', { gfx: visual, element, attrs });
13398
13399
  };
13399
13400
 
13400
13401
  /**
@@ -13415,13 +13416,14 @@
13415
13416
  *
13416
13417
  * @param {SVGElement} visual The graphical element.
13417
13418
  * @param {ConnectionLike} element The connection.
13419
+ * @param {Object} attrs Optional attributes.
13418
13420
  *
13419
13421
  * @return {SVGElement}
13420
13422
  */
13421
- GraphicsFactory.prototype.drawConnection = function(visual, element) {
13423
+ GraphicsFactory.prototype.drawConnection = function(visual, element, attrs = {}) {
13422
13424
  var eventBus = this._eventBus;
13423
13425
 
13424
- return eventBus.fire('render.connection', { gfx: visual, element: element });
13426
+ return eventBus.fire('render.connection', { gfx: visual, element, attrs });
13425
13427
  };
13426
13428
 
13427
13429
  /**
@@ -23770,7 +23772,7 @@
23770
23772
  // pinch to zoom is mapped to wheel + ctrlKey = true
23771
23773
  // in modern browsers (!)
23772
23774
 
23773
- var isZoom = event.ctrlKey;
23775
+ var isZoom = event.ctrlKey || (isMac() && event.metaKey);
23774
23776
 
23775
23777
  var isHorizontalScroll = event.shiftKey;
23776
23778