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}
@@ -7336,15 +7336,20 @@
7336
7336
 
7337
7337
  var self = this;
7338
7338
 
7339
- function createOutline(gfx, element) {
7339
+ /**
7340
+ * @param {SVGElement} gfx
7341
+ *
7342
+ * @return {SVGElement} outline
7343
+ */
7344
+ function createOutline(gfx) {
7340
7345
  var outline = create$1('rect');
7341
7346
 
7342
7347
  attr$1(outline, assign$1({
7343
- x: - self.offset,
7344
- y: - self.offset,
7348
+ x: 0,
7349
+ y: 0,
7345
7350
  rx: 4,
7346
- width: element.width + self.offset * 2,
7347
- height: element.height + self.offset * 2
7351
+ width: 100,
7352
+ height: 100
7348
7353
  }, OUTLINE_STYLE));
7349
7354
 
7350
7355
  return outline;
@@ -7359,12 +7364,11 @@
7359
7364
  var outline = query('.djs-outline', gfx);
7360
7365
 
7361
7366
  if (!outline) {
7362
- outline = self.getOutline(element) || createOutline(gfx, element);
7367
+ outline = self.getOutline(element) || createOutline();
7363
7368
  append(gfx, outline);
7364
-
7365
- } else {
7366
- self.updateShapeOutline(outline, element);
7367
7369
  }
7370
+
7371
+ self.updateShapeOutline(outline, element);
7368
7372
  });
7369
7373
 
7370
7374
  eventBus.on([ 'connection.added', 'connection.changed' ], function(event) {
@@ -7374,7 +7378,7 @@
7374
7378
  var outline = query('.djs-outline', gfx);
7375
7379
 
7376
7380
  if (!outline) {
7377
- outline = createOutline(gfx, element);
7381
+ outline = createOutline();
7378
7382
  append(gfx, outline);
7379
7383
  }
7380
7384
 
@@ -7418,7 +7422,7 @@
7418
7422
  *
7419
7423
  * @param {SVGElement} outline
7420
7424
  * @param {Element} connection
7421
- **/
7425
+ */
7422
7426
  Outline.prototype.updateConnectionOutline = function(outline, connection) {
7423
7427
  var bbox = getBBox(connection);
7424
7428