camunda-bpmn-js 5.14.2 → 5.16.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.
@@ -1935,11 +1935,11 @@
1935
1935
  [ 'l', width - borderRadius * 2, 0 ],
1936
1936
  [ 'a', borderRadius, borderRadius, 0, 0, 1, borderRadius, borderRadius ],
1937
1937
  [ 'l', 0, height - borderRadius * 2 ],
1938
- [ 'a', borderRadius, borderRadius, 0, 0, 1, -10, borderRadius ],
1938
+ [ 'a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, borderRadius ],
1939
1939
  [ 'l', borderRadius * 2 - width, 0 ],
1940
- [ 'a', borderRadius, borderRadius, 0, 0, 1, -10, -10 ],
1940
+ [ 'a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, -borderRadius ],
1941
1941
  [ 'l', 0, borderRadius * 2 - height ],
1942
- [ 'a', borderRadius, borderRadius, 0, 0, 1, borderRadius, -10 ],
1942
+ [ 'a', borderRadius, borderRadius, 0, 0, 1, borderRadius, -borderRadius ],
1943
1943
  [ 'z' ]
1944
1944
  ];
1945
1945
 
@@ -2736,7 +2736,8 @@
2736
2736
  var ELEMENT_LABEL_DISTANCE = 10,
2737
2737
  INNER_OUTER_DIST = 3,
2738
2738
  PARTICIPANT_STROKE_WIDTH = 1.5,
2739
- TASK_BORDER_RADIUS = 10;
2739
+ TASK_BORDER_RADIUS = 10,
2740
+ EXTERNAL_LABEL_BORDER_RADIUS = 4;
2740
2741
 
2741
2742
  var DEFAULT_OPACITY = 0.95,
2742
2743
  FULL_OPACITY = 1,
@@ -5045,6 +5046,11 @@
5045
5046
  * @return {string} path
5046
5047
  */
5047
5048
  BpmnRenderer.prototype.getShapePath = function(shape) {
5049
+
5050
+ if (isLabel(shape)) {
5051
+ return getRoundRectPath(shape, EXTERNAL_LABEL_BORDER_RADIUS);
5052
+ }
5053
+
5048
5054
  if (is$1(shape, 'bpmn:Event')) {
5049
5055
  return getCirclePath(shape);
5050
5056
  }