bpmn-js 13.2.1 → 13.2.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 v13.2.1
2
+ * bpmn-js - bpmn-modeler v13.2.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: 2023-07-03
11
+ * Date: 2023-07-07
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -44546,7 +44546,7 @@
44546
44546
  // internal labels for tasks and collapsed call activities,
44547
44547
  // sub processes and participants
44548
44548
  if (isAny(element, [ 'bpmn:Task', 'bpmn:CallActivity' ]) ||
44549
- isCollapsedPool(element) ||
44549
+ isCollapsedPool$1(element) ||
44550
44550
  isCollapsedSubProcess(element)) {
44551
44551
 
44552
44552
  assign$1(bounds, {
@@ -44696,7 +44696,7 @@
44696
44696
  return is$1(element, 'bpmn:SubProcess') && isExpanded(element);
44697
44697
  }
44698
44698
 
44699
- function isCollapsedPool(element) {
44699
+ function isCollapsedPool$1(element) {
44700
44700
  return is$1(element, 'bpmn:Participant') && !isExpanded(element);
44701
44701
  }
44702
44702
 
@@ -53507,14 +53507,33 @@
53507
53507
  BpmnSpaceTool.prototype.calculateAdjustments = function(elements, axis, delta, start) {
53508
53508
  var adjustments = SpaceTool.prototype.calculateAdjustments.call(this, elements, axis, delta, start);
53509
53509
 
53510
- // do not resize text annotations
53510
+ // do not resize:
53511
+ //
53512
+ // * text annotations (horizontally/vertically)
53513
+ // * empty pools (vertically)
53511
53514
  adjustments.resizingShapes = adjustments.resizingShapes.filter(function(shape) {
53512
- return !is$1(shape, 'bpmn:TextAnnotation');
53515
+
53516
+ if (is$1(shape, 'bpmn:TextAnnotation')) {
53517
+ return false;
53518
+ }
53519
+
53520
+ if (axis === 'y' && isCollapsedPool(shape)) {
53521
+ return false;
53522
+ }
53523
+
53524
+ return true;
53513
53525
  });
53514
53526
 
53515
53527
  return adjustments;
53516
53528
  };
53517
53529
 
53530
+
53531
+ // helpers ///////////
53532
+
53533
+ function isCollapsedPool(shape) {
53534
+ return is$1(shape, 'bpmn:Participant') && !getBusinessObject(shape).processRef;
53535
+ }
53536
+
53518
53537
  var SpaceToolModule = {
53519
53538
  __depends__: [ SpaceToolModule$1 ],
53520
53539
  spaceTool: [ 'type', BpmnSpaceTool ]