bpmn-js 18.30.0 → 18.31.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-viewer v18.30.0
2
+ * bpmn-js - bpmn-viewer v18.31.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: 2026-09-23
11
+ * Date: 2026-10-01
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -5363,7 +5363,7 @@
5363
5363
  textBBox.width = fitLine ? textBBox.width : 0;
5364
5364
 
5365
5365
  // try to fit
5366
- if (fitLine === ' ' || fitLine === '' || textBBox.width < Math.round(maxWidth) || fitLine.length < 2) {
5366
+ if (fitLine === ' ' || fitLine === '' || textBBox.width <= maxWidth || fitLine.length < 2) {
5367
5367
  return fit(lines, fitLine, originalLine, textBBox);
5368
5368
  }
5369
5369
 
@@ -13886,7 +13886,7 @@
13886
13886
  function prependTo(newNode, parentNode, siblingNode) {
13887
13887
  var node = siblingNode || parentNode.firstChild;
13888
13888
 
13889
- // do not prepend node to itself to prevent IE from crashing
13889
+ // do not prepend node to itself
13890
13890
  // https://github.com/bpmn-io/bpmn-js/issues/746
13891
13891
  if (newNode === node) {
13892
13892
  return;