bpmn-js 18.6.0 → 18.6.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-viewer v18.6.0
2
+ * bpmn-js - bpmn-viewer v18.6.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: 2025-04-24
11
+ * Date: 2025-05-22
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -3671,7 +3671,7 @@
3671
3671
  taskMarkerRenderers[ type ](parentGfx, element, attrs);
3672
3672
  }
3673
3673
 
3674
- function renderTaskMarkers(parentGfx, element, taskMarkers, attrs = {}) {
3674
+ function renderTaskMarkers(parentGfx, element, taskMarkers = [], attrs = {}) {
3675
3675
  attrs = {
3676
3676
  fill: attrs.fill,
3677
3677
  stroke: attrs.stroke,
@@ -3681,14 +3681,14 @@
3681
3681
 
3682
3682
  var semantic = getBusinessObject(element);
3683
3683
 
3684
- var subprocess = taskMarkers && taskMarkers.includes('SubProcessMarker');
3684
+ var subprocess = taskMarkers.includes('SubProcessMarker');
3685
3685
 
3686
3686
  if (subprocess) {
3687
3687
  attrs = {
3688
3688
  ...attrs,
3689
3689
  seq: -21,
3690
3690
  parallel: -22,
3691
- compensation: -42,
3691
+ compensation: -25,
3692
3692
  loop: -18,
3693
3693
  adhoc: 10
3694
3694
  };
@@ -3697,22 +3697,22 @@
3697
3697
  ...attrs,
3698
3698
  seq: -5,
3699
3699
  parallel: -6,
3700
- compensation: -27,
3700
+ compensation: -7,
3701
3701
  loop: 0,
3702
- adhoc: 10
3702
+ adhoc: -8
3703
3703
  };
3704
3704
  }
3705
3705
 
3706
- forEach$1(taskMarkers, function(marker) {
3707
- renderTaskMarker(marker, parentGfx, element, attrs);
3708
- });
3709
-
3710
3706
  if (semantic.get('isForCompensation')) {
3711
- renderTaskMarker('CompensationMarker', parentGfx, element, attrs);
3707
+ taskMarkers.push('CompensationMarker');
3712
3708
  }
3713
3709
 
3714
3710
  if (is$1(semantic, 'bpmn:AdHocSubProcess')) {
3715
- renderTaskMarker('AdhocMarker', parentGfx, element, attrs);
3711
+ taskMarkers.push('AdhocMarker');
3712
+
3713
+ if (!subprocess) {
3714
+ assign$1(attrs, { compensation: attrs.compensation - 18 });
3715
+ }
3716
3716
  }
3717
3717
 
3718
3718
  var loopCharacteristics = semantic.get('loopCharacteristics'),
@@ -3720,18 +3720,40 @@
3720
3720
 
3721
3721
  if (loopCharacteristics) {
3722
3722
 
3723
+ assign$1(attrs, {
3724
+ compensation: attrs.compensation - 18,
3725
+ });
3726
+
3727
+ if (taskMarkers.includes('AdhocMarker')) {
3728
+ assign$1(attrs, {
3729
+ seq: -23,
3730
+ loop: -18,
3731
+ parallel: -24
3732
+ });
3733
+ }
3734
+
3723
3735
  if (isSequential === undefined) {
3724
- renderTaskMarker('LoopMarker', parentGfx, element, attrs);
3736
+ taskMarkers.push('LoopMarker');
3725
3737
  }
3726
3738
 
3727
3739
  if (isSequential === false) {
3728
- renderTaskMarker('ParallelMarker', parentGfx, element, attrs);
3740
+ taskMarkers.push('ParallelMarker');
3729
3741
  }
3730
3742
 
3731
3743
  if (isSequential === true) {
3732
- renderTaskMarker('SequentialMarker', parentGfx, element, attrs);
3744
+ taskMarkers.push('SequentialMarker');
3733
3745
  }
3734
3746
  }
3747
+
3748
+ if (taskMarkers.includes('CompensationMarker') && taskMarkers.length === 1) {
3749
+ assign$1(attrs, {
3750
+ compensation: -8
3751
+ });
3752
+ }
3753
+
3754
+ forEach$1(taskMarkers, function(marker) {
3755
+ renderTaskMarker(marker, parentGfx, element, attrs);
3756
+ });
3735
3757
  }
3736
3758
 
3737
3759
  function renderLabel(parentGfx, label, attrs = {}) {