bpmn-js 18.33.0 → 18.33.1

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-modeler v18.33.0
2
+ * bpmn-js - bpmn-modeler v18.33.1
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: 2026-11-16
11
+ * Date: 2026-11-20
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -19609,6 +19609,7 @@
19609
19609
  var markerIds = new Ids$1();
19610
19610
 
19611
19611
  var ELEMENT_LABEL_DISTANCE$1 = 10,
19612
+ MESSAGE_FLOW_MARKER_HEIGHT = 14,
19612
19613
  INNER_OUTER_DIST = 3,
19613
19614
  PARTICIPANT_STROKE_WIDTH = 1.5,
19614
19615
  TASK_BORDER_RADIUS = 10,
@@ -21349,24 +21350,27 @@
21349
21350
  messageAttrs.stroke = fill;
21350
21351
  }
21351
21352
 
21352
- var message = drawPath(parentGfx, markerPathData, messageAttrs);
21353
+ drawPath(parentGfx, markerPathData, messageAttrs);
21353
21354
 
21354
21355
  var messageRef = semantic.get('messageRef'),
21355
- name = messageRef.get('name');
21356
+ name = messageRef.get('name') || '';
21356
21357
 
21357
- var label = renderLabel(parentGfx, name, {
21358
+ var labelAttrs = {
21358
21359
  align: 'center-top',
21359
21360
  fitBox: true,
21360
21361
  style: {
21361
21362
  fill: stroke
21362
21363
  }
21363
- });
21364
+ };
21365
+
21366
+ var label = renderLabel(parentGfx, name, labelAttrs);
21364
21367
 
21365
- var messageBounds = message.getBBox(),
21366
- labelBounds = label.getBBox();
21368
+ // use text metrics rather than DOM bounds, which are
21369
+ // not available if the graphics are not visible
21370
+ var labelWidth = textRenderer.getDimensions(name, labelAttrs).width;
21367
21371
 
21368
- var translateX = midPoint.x - labelBounds.width / 2,
21369
- translateY = midPoint.y + messageBounds.height / 2 + ELEMENT_LABEL_DISTANCE$1;
21372
+ var translateX = midPoint.x - labelWidth / 2,
21373
+ translateY = midPoint.y + MESSAGE_FLOW_MARKER_HEIGHT / 2 + ELEMENT_LABEL_DISTANCE$1;
21370
21374
 
21371
21375
  transform(label, translateX, translateY, 0);
21372
21376
  }
@@ -39355,6 +39359,13 @@
39355
39359
  outgoingConnection = modeling.connect(
39356
39360
  shape, target, { type: targetFlow.type, waypoints: waypointsAfter }
39357
39361
  );
39362
+
39363
+ var di = getDi(targetFlow),
39364
+ stroke = di && (di.get('color:border-color') || di.get('bioc:stroke'));
39365
+
39366
+ if (stroke) {
39367
+ modeling.setColor([ outgoingConnection ], { stroke: stroke });
39368
+ }
39358
39369
  }
39359
39370
  }
39360
39371