@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.cjs CHANGED
@@ -8538,6 +8538,7 @@ function fitTextToNode(label, nodeWidth, nodeHeight) {
8538
8538
  if (camelLines.length <= maxLines && camelLines.every((l) => l.length <= maxCharsPerLine)) {
8539
8539
  return { lines: camelLines, fontSize };
8540
8540
  }
8541
+ if (fontSize > MIN_NODE_FONT_SIZE) continue;
8541
8542
  const hardLines = [];
8542
8543
  for (const line7 of camelLines) {
8543
8544
  if (line7.length <= maxCharsPerLine) {