bpmn-js 18.30.0 → 18.30.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.30.0
2
+ * bpmn-js - bpmn-modeler v18.30.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-09-23
11
+ * Date: 2026-09-24
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -22144,7 +22144,7 @@
22144
22144
  textBBox.width = fitLine ? textBBox.width : 0;
22145
22145
 
22146
22146
  // try to fit
22147
- if (fitLine === ' ' || fitLine === '' || textBBox.width < Math.round(maxWidth) || fitLine.length < 2) {
22147
+ if (fitLine === ' ' || fitLine === '' || textBBox.width <= maxWidth || fitLine.length < 2) {
22148
22148
  return fit(lines, fitLine, originalLine, textBBox);
22149
22149
  }
22150
22150