bpmn-js 17.9.1 → 17.9.2

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-modeler v17.9.1
2
+ * bpmn-js - bpmn-modeler v17.9.2
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: 2024-07-04
11
+ * Date: 2024-08-05
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -44748,9 +44748,16 @@
44748
44748
  hints.moveChildren = false;
44749
44749
  }
44750
44750
 
44751
- // apply same width and default height
44752
- newElement.width = element.width;
44753
- newElement.height = elementFactory.getDefaultSize(newElement).height;
44751
+ // apply same directionality
44752
+ var isHorizontalPool = isHorizontal$3(element);
44753
+ if (!getDi(element).isHorizontal) {
44754
+ getDi(newElement).isHorizontal = isHorizontalPool;
44755
+ }
44756
+
44757
+ // keep the existing size of the pool's direction to
44758
+ // prevent dangling message flows
44759
+ newElement.width = isHorizontalPool ? element.width : elementFactory.getDefaultSize(newElement).width;
44760
+ newElement.height = isHorizontalPool ? elementFactory.getDefaultSize(newElement).height : element.height;
44754
44761
  }
44755
44762
 
44756
44763
  if (!rules.allowed('shape.resize', { shape: newBusinessObject })) {
@@ -48436,10 +48443,17 @@
48436
48443
  }
48437
48444
 
48438
48445
  if (is$1(bo, 'bpmn:Participant')) {
48446
+ var isHorizontalPool = di.isHorizontal === undefined || di.isHorizontal === true;
48439
48447
  if (isExpanded(bo, di)) {
48440
- return { width: 600, height: 250 };
48448
+ if (isHorizontalPool) {
48449
+ return { width: 600, height: 250 };
48450
+ }
48451
+ return { width: 250, height: 600 };
48441
48452
  } else {
48442
- return { width: 400, height: 60 };
48453
+ if (isHorizontalPool) {
48454
+ return { width: 400, height: 60 };
48455
+ }
48456
+ return { width: 60, height: 400 };
48443
48457
  }
48444
48458
  }
48445
48459