@diagrammo/dgmo 0.2.23 → 0.2.24

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.
package/dist/index.js CHANGED
@@ -8518,6 +8518,7 @@ function fitTextToNode(label, nodeWidth, nodeHeight) {
8518
8518
  if (camelLines.length <= maxLines && camelLines.every((l) => l.length <= maxCharsPerLine)) {
8519
8519
  return { lines: camelLines, fontSize };
8520
8520
  }
8521
+ if (fontSize > MIN_NODE_FONT_SIZE) continue;
8521
8522
  const hardLines = [];
8522
8523
  for (const line7 of camelLines) {
8523
8524
  if (line7.length <= maxCharsPerLine) {