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-viewer v15.1.2
2
+ * bpmn-js - bpmn-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() :
@@ -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