bpmn-js 14.1.3 → 14.2.0

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-viewer v14.1.3
2
+ * bpmn-js - bpmn-viewer v14.2.0
3
3
  *
4
4
  * Copyright (c) 2014-present, camunda Services GmbH
5
5
  *
@@ -2587,9 +2587,8 @@
2587
2587
  transform$1(gfx, rotate);
2588
2588
  }
2589
2589
 
2590
- function createCommonjsModule(fn) {
2591
- var module = { exports: {} };
2592
- return fn(module, module.exports), module.exports;
2590
+ function createCommonjsModule(fn, module) {
2591
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
2593
2592
  }
2594
2593
 
2595
2594
  var hat_1 = createCommonjsModule(function (module) {
@@ -2657,16 +2656,12 @@
2657
2656
  };
2658
2657
  });
2659
2658
 
2660
- /**
2661
- * @typedef { [ number, number ] | [ number, number, number ] } Seed
2662
- */
2663
-
2664
2659
  /**
2665
2660
  * Create a new id generator / cache instance.
2666
2661
  *
2667
2662
  * You may optionally provide a seed that is used internally.
2668
2663
  *
2669
- * @param {Seed} [seed]
2664
+ * @param {Seed} seed
2670
2665
  */
2671
2666
  function Ids(seed) {
2672
2667
  if (!(this instanceof Ids)) {
@@ -13372,13 +13367,14 @@
13372
13367
  *
13373
13368
  * @param {SVGElement} visual The graphical element.
13374
13369
  * @param {ShapeLike} element The shape.
13370
+ * @param {Object} attrs Optional attributes.
13375
13371
  *
13376
13372
  * @return {SVGElement}
13377
13373
  */
13378
- GraphicsFactory.prototype.drawShape = function(visual, element) {
13374
+ GraphicsFactory.prototype.drawShape = function(visual, element, attrs = {}) {
13379
13375
  var eventBus = this._eventBus;
13380
13376
 
13381
- return eventBus.fire('render.shape', { gfx: visual, element: element });
13377
+ return eventBus.fire('render.shape', { gfx: visual, element, attrs });
13382
13378
  };
13383
13379
 
13384
13380
  /**
@@ -13399,13 +13395,14 @@
13399
13395
  *
13400
13396
  * @param {SVGElement} visual The graphical element.
13401
13397
  * @param {ConnectionLike} element The connection.
13398
+ * @param {Object} attrs Optional attributes.
13402
13399
  *
13403
13400
  * @return {SVGElement}
13404
13401
  */
13405
- GraphicsFactory.prototype.drawConnection = function(visual, element) {
13402
+ GraphicsFactory.prototype.drawConnection = function(visual, element, attrs = {}) {
13406
13403
  var eventBus = this._eventBus;
13407
13404
 
13408
- return eventBus.fire('render.connection', { gfx: visual, element: element });
13405
+ return eventBus.fire('render.connection', { gfx: visual, element, attrs });
13409
13406
  };
13410
13407
 
13411
13408
  /**