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.
- package/dist/bpmn-modeler.development.js +494 -462
- package/dist/bpmn-modeler.production.min.js +3 -3
- package/dist/bpmn-navigated-viewer.development.js +38 -16
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +38 -16
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/draw/BpmnRenderer.js +36 -14
- package/lib/features/copy-paste/ModdleCopy.js +42 -31
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-navigated-viewer v18.6.
|
|
2
|
+
* bpmn-js - bpmn-navigated-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-
|
|
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
|
|
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: -
|
|
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: -
|
|
3700
|
+
compensation: -7,
|
|
3701
3701
|
loop: 0,
|
|
3702
|
-
adhoc:
|
|
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
|
-
|
|
3707
|
+
taskMarkers.push('CompensationMarker');
|
|
3712
3708
|
}
|
|
3713
3709
|
|
|
3714
3710
|
if (is$1(semantic, 'bpmn:AdHocSubProcess')) {
|
|
3715
|
-
|
|
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
|
-
|
|
3736
|
+
taskMarkers.push('LoopMarker');
|
|
3725
3737
|
}
|
|
3726
3738
|
|
|
3727
3739
|
if (isSequential === false) {
|
|
3728
|
-
|
|
3740
|
+
taskMarkers.push('ParallelMarker');
|
|
3729
3741
|
}
|
|
3730
3742
|
|
|
3731
3743
|
if (isSequential === true) {
|
|
3732
|
-
|
|
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 = {}) {
|