bpmn-js 16.4.0 → 17.0.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.
- package/dist/assets/diagram-js.css +1 -10
- package/dist/bpmn-modeler.development.js +198 -3114
- package/dist/bpmn-modeler.production.min.js +48 -52
- package/dist/bpmn-navigated-viewer.development.js +5 -25
- package/dist/bpmn-navigated-viewer.production.min.js +5 -5
- package/dist/bpmn-viewer.development.js +5 -29
- package/dist/bpmn-viewer.production.min.js +5 -5
- package/lib/Modeler.js +0 -2
- package/lib/draw/BpmnRenderer.js +1 -1
- package/lib/features/context-pad/ContextPadProvider.js +1 -2
- package/lib/features/modeling/ElementFactory.js +4 -0
- package/lib/features/modeling/behavior/DataInputAssociationBehavior.js +1 -1
- package/lib/features/modeling/cmd/AddLaneHandler.js +93 -10
- package/lib/model/Types.d.ts +1 -0
- package/lib/model/Types.ts +1 -0
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-viewer
|
|
2
|
+
* bpmn-js - bpmn-viewer v17.0.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: 2024-
|
|
11
|
+
* Date: 2024-02-06
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -3516,7 +3516,7 @@
|
|
|
3516
3516
|
});
|
|
3517
3517
|
|
|
3518
3518
|
return drawPath(parentGfx, pathData, {
|
|
3519
|
-
fill:
|
|
3519
|
+
fill: getFillColor(event, defaultFillColor, attrs.fill),
|
|
3520
3520
|
stroke: getStrokeColor(event, defaultStrokeColor, attrs.stroke),
|
|
3521
3521
|
strokeWidth: 1
|
|
3522
3522
|
});
|
|
@@ -6762,10 +6762,6 @@
|
|
|
6762
6762
|
return event.originalEvent || event.srcEvent;
|
|
6763
6763
|
}
|
|
6764
6764
|
|
|
6765
|
-
function isMac() {
|
|
6766
|
-
return (/mac/i).test(navigator.platform);
|
|
6767
|
-
}
|
|
6768
|
-
|
|
6769
6765
|
/**
|
|
6770
6766
|
* @param {MouseEvent} event
|
|
6771
6767
|
* @param {string} button
|
|
@@ -6798,26 +6794,6 @@
|
|
|
6798
6794
|
return isButton(event, 1);
|
|
6799
6795
|
}
|
|
6800
6796
|
|
|
6801
|
-
/**
|
|
6802
|
-
* @param {MouseEvent} event
|
|
6803
|
-
*
|
|
6804
|
-
* @return {boolean}
|
|
6805
|
-
*/
|
|
6806
|
-
function hasPrimaryModifier(event) {
|
|
6807
|
-
var originalEvent = getOriginal(event) || event;
|
|
6808
|
-
|
|
6809
|
-
if (!isPrimaryButton(event)) {
|
|
6810
|
-
return false;
|
|
6811
|
-
}
|
|
6812
|
-
|
|
6813
|
-
// Use cmd as primary modifier key for mac OS
|
|
6814
|
-
if (isMac()) {
|
|
6815
|
-
return originalEvent.metaKey;
|
|
6816
|
-
} else {
|
|
6817
|
-
return originalEvent.ctrlKey;
|
|
6818
|
-
}
|
|
6819
|
-
}
|
|
6820
|
-
|
|
6821
6797
|
/**
|
|
6822
6798
|
* @param {MouseEvent} event
|
|
6823
6799
|
*
|
|
@@ -7938,8 +7914,8 @@
|
|
|
7938
7914
|
var isSelected = selection.isSelected(element),
|
|
7939
7915
|
isMultiSelect = selection.get().length > 1;
|
|
7940
7916
|
|
|
7941
|
-
// Add to selection if
|
|
7942
|
-
var add =
|
|
7917
|
+
// Add to selection if SHIFT pressed
|
|
7918
|
+
var add = hasSecondaryModifier(event);
|
|
7943
7919
|
|
|
7944
7920
|
if (isSelected && isMultiSelect) {
|
|
7945
7921
|
if (add) {
|