camunda-bpmn-js 3.9.0 → 3.10.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.
@@ -1974,7 +1974,7 @@
1974
1974
  /**
1975
1975
  * Get width and height from element or overrides.
1976
1976
  *
1977
- * @param {Dimensions|Rect|Shape} bounds
1977
+ * @param {Dimensions|Rect|ShapeLike} bounds
1978
1978
  * @param {Object} overrides
1979
1979
  *
1980
1980
  * @returns {Dimensions}
@@ -1989,7 +1989,7 @@
1989
1989
  /**
1990
1990
  * Get width from element or overrides.
1991
1991
  *
1992
- * @param {Dimensions|Rect|Shape} bounds
1992
+ * @param {Dimensions|Rect|ShapeLike} bounds
1993
1993
  * @param {Object} overrides
1994
1994
  *
1995
1995
  * @returns {number}
@@ -2001,7 +2001,7 @@
2001
2001
  /**
2002
2002
  * Get height from element or overrides.
2003
2003
  *
2004
- * @param {Dimensions|Rect|Shape} bounds
2004
+ * @param {Dimensions|Rect|ShapeLike} bounds
2005
2005
  * @param {Object} overrides
2006
2006
  *
2007
2007
  * @returns {number}
@@ -7357,15 +7357,20 @@
7357
7357
 
7358
7358
  var self = this;
7359
7359
 
7360
- function createOutline(gfx, element) {
7360
+ /**
7361
+ * @param {SVGElement} gfx
7362
+ *
7363
+ * @return {SVGElement} outline
7364
+ */
7365
+ function createOutline(gfx) {
7361
7366
  var outline = create$1('rect');
7362
7367
 
7363
7368
  attr$1(outline, assign$1({
7364
- x: - self.offset,
7365
- y: - self.offset,
7369
+ x: 0,
7370
+ y: 0,
7366
7371
  rx: 4,
7367
- width: element.width + self.offset * 2,
7368
- height: element.height + self.offset * 2
7372
+ width: 100,
7373
+ height: 100
7369
7374
  }, OUTLINE_STYLE));
7370
7375
 
7371
7376
  return outline;
@@ -7380,12 +7385,11 @@
7380
7385
  var outline = query('.djs-outline', gfx);
7381
7386
 
7382
7387
  if (!outline) {
7383
- outline = self.getOutline(element) || createOutline(gfx, element);
7388
+ outline = self.getOutline(element) || createOutline();
7384
7389
  append(gfx, outline);
7385
-
7386
- } else {
7387
- self.updateShapeOutline(outline, element);
7388
7390
  }
7391
+
7392
+ self.updateShapeOutline(outline, element);
7389
7393
  });
7390
7394
 
7391
7395
  eventBus.on([ 'connection.added', 'connection.changed' ], function(event) {
@@ -7395,7 +7399,7 @@
7395
7399
  var outline = query('.djs-outline', gfx);
7396
7400
 
7397
7401
  if (!outline) {
7398
- outline = createOutline(gfx, element);
7402
+ outline = createOutline();
7399
7403
  append(gfx, outline);
7400
7404
  }
7401
7405
 
@@ -7439,7 +7443,7 @@
7439
7443
  *
7440
7444
  * @param {SVGElement} outline
7441
7445
  * @param {Element} connection
7442
- **/
7446
+ */
7443
7447
  Outline.prototype.updateConnectionOutline = function(outline, connection) {
7444
7448
  var bbox = getBBox(connection);
7445
7449