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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-navigated-viewer v18.7.0
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-09-23
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, -10, borderRadius ],
1950
+ [ 'a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, borderRadius ],
1940
1951
  [ 'l', borderRadius * 2 - width, 0 ],
1941
- [ 'a', borderRadius, borderRadius, 0, 0, 1, -10, -10 ],
1952
+ [ 'a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, -borderRadius ],
1942
1953
  [ 'l', 0, borderRadius * 2 - height ],
1943
- [ 'a', borderRadius, borderRadius, 0, 0, 1, borderRadius, -10 ],
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
  }