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}
@@ -7347,15 +7347,20 @@
7347
7347
 
7348
7348
  var self = this;
7349
7349
 
7350
- function createOutline(gfx, element) {
7350
+ /**
7351
+ * @param {SVGElement} gfx
7352
+ *
7353
+ * @return {SVGElement} outline
7354
+ */
7355
+ function createOutline(gfx) {
7351
7356
  var outline = create$1('rect');
7352
7357
 
7353
7358
  attr$1(outline, assign$1({
7354
- x: - self.offset,
7355
- y: - self.offset,
7359
+ x: 0,
7360
+ y: 0,
7356
7361
  rx: 4,
7357
- width: element.width + self.offset * 2,
7358
- height: element.height + self.offset * 2
7362
+ width: 100,
7363
+ height: 100
7359
7364
  }, OUTLINE_STYLE));
7360
7365
 
7361
7366
  return outline;
@@ -7370,12 +7375,11 @@
7370
7375
  var outline = query('.djs-outline', gfx);
7371
7376
 
7372
7377
  if (!outline) {
7373
- outline = self.getOutline(element) || createOutline(gfx, element);
7378
+ outline = self.getOutline(element) || createOutline();
7374
7379
  append(gfx, outline);
7375
-
7376
- } else {
7377
- self.updateShapeOutline(outline, element);
7378
7380
  }
7381
+
7382
+ self.updateShapeOutline(outline, element);
7379
7383
  });
7380
7384
 
7381
7385
  eventBus.on([ 'connection.added', 'connection.changed' ], function(event) {
@@ -7385,7 +7389,7 @@
7385
7389
  var outline = query('.djs-outline', gfx);
7386
7390
 
7387
7391
  if (!outline) {
7388
- outline = createOutline(gfx, element);
7392
+ outline = createOutline();
7389
7393
  append(gfx, outline);
7390
7394
  }
7391
7395
 
@@ -7429,7 +7433,7 @@
7429
7433
  *
7430
7434
  * @param {SVGElement} outline
7431
7435
  * @param {Element} connection
7432
- **/
7436
+ */
7433
7437
  Outline.prototype.updateConnectionOutline = function(outline, connection) {
7434
7438
  var bbox = getBBox(connection);
7435
7439