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.
@@ -1985,7 +1985,7 @@
1985
1985
  /**
1986
1986
  * Get width and height from element or overrides.
1987
1987
  *
1988
- * @param {Dimensions|Rect|Shape} bounds
1988
+ * @param {Dimensions|Rect|ShapeLike} bounds
1989
1989
  * @param {Object} overrides
1990
1990
  *
1991
1991
  * @returns {Dimensions}
@@ -2000,7 +2000,7 @@
2000
2000
  /**
2001
2001
  * Get width from element or overrides.
2002
2002
  *
2003
- * @param {Dimensions|Rect|Shape} bounds
2003
+ * @param {Dimensions|Rect|ShapeLike} bounds
2004
2004
  * @param {Object} overrides
2005
2005
  *
2006
2006
  * @returns {number}
@@ -2012,7 +2012,7 @@
2012
2012
  /**
2013
2013
  * Get height from element or overrides.
2014
2014
  *
2015
- * @param {Dimensions|Rect|Shape} bounds
2015
+ * @param {Dimensions|Rect|ShapeLike} bounds
2016
2016
  * @param {Object} overrides
2017
2017
  *
2018
2018
  * @returns {number}
@@ -7368,15 +7368,20 @@
7368
7368
 
7369
7369
  var self = this;
7370
7370
 
7371
- function createOutline(gfx, element) {
7371
+ /**
7372
+ * @param {SVGElement} gfx
7373
+ *
7374
+ * @return {SVGElement} outline
7375
+ */
7376
+ function createOutline(gfx) {
7372
7377
  var outline = create$1('rect');
7373
7378
 
7374
7379
  attr$1(outline, assign$1({
7375
- x: - self.offset,
7376
- y: - self.offset,
7380
+ x: 0,
7381
+ y: 0,
7377
7382
  rx: 4,
7378
- width: element.width + self.offset * 2,
7379
- height: element.height + self.offset * 2
7383
+ width: 100,
7384
+ height: 100
7380
7385
  }, OUTLINE_STYLE));
7381
7386
 
7382
7387
  return outline;
@@ -7391,12 +7396,11 @@
7391
7396
  var outline = query('.djs-outline', gfx);
7392
7397
 
7393
7398
  if (!outline) {
7394
- outline = self.getOutline(element) || createOutline(gfx, element);
7399
+ outline = self.getOutline(element) || createOutline();
7395
7400
  append(gfx, outline);
7396
-
7397
- } else {
7398
- self.updateShapeOutline(outline, element);
7399
7401
  }
7402
+
7403
+ self.updateShapeOutline(outline, element);
7400
7404
  });
7401
7405
 
7402
7406
  eventBus.on([ 'connection.added', 'connection.changed' ], function(event) {
@@ -7406,7 +7410,7 @@
7406
7410
  var outline = query('.djs-outline', gfx);
7407
7411
 
7408
7412
  if (!outline) {
7409
- outline = createOutline(gfx, element);
7413
+ outline = createOutline();
7410
7414
  append(gfx, outline);
7411
7415
  }
7412
7416
 
@@ -7450,7 +7454,7 @@
7450
7454
  *
7451
7455
  * @param {SVGElement} outline
7452
7456
  * @param {Element} connection
7453
- **/
7457
+ */
7454
7458
  Outline.prototype.updateConnectionOutline = function(outline, connection) {
7455
7459
  var bbox = getBBox(connection);
7456
7460