bpmn-js 18.7.0 → 18.9.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/bpmn-modeler.development.js +522 -288
- package/dist/bpmn-modeler.production.min.js +36 -36
- package/dist/bpmn-navigated-viewer.development.js +23 -6
- package/dist/bpmn-navigated-viewer.production.min.js +5 -5
- package/dist/bpmn-viewer.development.js +23 -6
- package/dist/bpmn-viewer.production.min.js +5 -5
- package/lib/Modeler.js +2 -0
- package/lib/draw/BpmnRenderer.js +9 -2
- package/lib/features/copy-paste/ModdleCopy.js +2 -1
- package/lib/features/label-link/LabelLink.d.ts +27 -0
- package/lib/features/label-link/LabelLink.js +202 -0
- package/lib/features/label-link/index.d.ts +14 -0
- package/lib/features/label-link/index.js +15 -0
- package/lib/features/modeling/behavior/CreateDataObjectBehavior.js +3 -0
- package/lib/features/outline/OutlineProvider.js +15 -1
- package/lib/features/outline/index.d.ts +2 -2
- package/lib/features/outline/index.js +4 -4
- package/lib/util/LabelUtil.d.ts +9 -0
- package/lib/util/LabelUtil.js +11 -0
- package/package.json +2 -2
- package/test/util/svgHelpers.js +52 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-navigated-viewer v18.
|
|
2
|
+
* bpmn-js - bpmn-navigated-viewer v18.9.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: 2025-
|
|
11
|
+
* Date: 2025-11-18
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -821,6 +821,17 @@
|
|
|
821
821
|
return isObject(value) && has$1(value, 'waypoints');
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
+
/**
|
|
825
|
+
* Checks whether a value is an instance of Label.
|
|
826
|
+
*
|
|
827
|
+
* @param {any} value
|
|
828
|
+
*
|
|
829
|
+
* @return {boolean}
|
|
830
|
+
*/
|
|
831
|
+
function isLabel(value) {
|
|
832
|
+
return isObject(value) && has$1(value, 'labelTarget');
|
|
833
|
+
}
|
|
834
|
+
|
|
824
835
|
/**
|
|
825
836
|
* @typedef {import('diagram-js/lib/util/Types').Point} Point
|
|
826
837
|
* @typedef {import('diagram-js/lib/util/Types').Rect} Rect
|
|
@@ -1936,11 +1947,11 @@
|
|
|
1936
1947
|
[ 'l', width - borderRadius * 2, 0 ],
|
|
1937
1948
|
[ 'a', borderRadius, borderRadius, 0, 0, 1, borderRadius, borderRadius ],
|
|
1938
1949
|
[ 'l', 0, height - borderRadius * 2 ],
|
|
1939
|
-
[ 'a', borderRadius, borderRadius, 0, 0, 1, -
|
|
1950
|
+
[ 'a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, borderRadius ],
|
|
1940
1951
|
[ 'l', borderRadius * 2 - width, 0 ],
|
|
1941
|
-
[ 'a', borderRadius, borderRadius, 0, 0, 1, -
|
|
1952
|
+
[ 'a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, -borderRadius ],
|
|
1942
1953
|
[ 'l', 0, borderRadius * 2 - height ],
|
|
1943
|
-
[ 'a', borderRadius, borderRadius, 0, 0, 1, borderRadius, -
|
|
1954
|
+
[ 'a', borderRadius, borderRadius, 0, 0, 1, borderRadius, -borderRadius ],
|
|
1944
1955
|
[ 'z' ]
|
|
1945
1956
|
];
|
|
1946
1957
|
|
|
@@ -2790,7 +2801,8 @@
|
|
|
2790
2801
|
var ELEMENT_LABEL_DISTANCE = 10,
|
|
2791
2802
|
INNER_OUTER_DIST = 3,
|
|
2792
2803
|
PARTICIPANT_STROKE_WIDTH = 1.5,
|
|
2793
|
-
TASK_BORDER_RADIUS = 10
|
|
2804
|
+
TASK_BORDER_RADIUS = 10,
|
|
2805
|
+
EXTERNAL_LABEL_BORDER_RADIUS = 4;
|
|
2794
2806
|
|
|
2795
2807
|
var DEFAULT_OPACITY = 0.95,
|
|
2796
2808
|
FULL_OPACITY = 1,
|
|
@@ -5099,6 +5111,11 @@
|
|
|
5099
5111
|
* @return {string} path
|
|
5100
5112
|
*/
|
|
5101
5113
|
BpmnRenderer.prototype.getShapePath = function(shape) {
|
|
5114
|
+
|
|
5115
|
+
if (isLabel(shape)) {
|
|
5116
|
+
return getRoundRectPath(shape, EXTERNAL_LABEL_BORDER_RADIUS);
|
|
5117
|
+
}
|
|
5118
|
+
|
|
5102
5119
|
if (is$1(shape, 'bpmn:Event')) {
|
|
5103
5120
|
return getCirclePath(shape);
|
|
5104
5121
|
}
|