bpmn-js 15.1.2 → 15.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-navigated-viewer v15.1.2
2
+ * bpmn-js - bpmn-navigated-viewer v15.2.0
3
3
  *
4
4
  * Copyright (c) 2014-present, camunda Services GmbH
5
5
  *
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * Source Code: https://github.com/bpmn-io/bpmn-js
10
10
  *
11
- * Date: 2023-11-03
11
+ * Date: 2023-11-21
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -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