@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/cli.cjs +73 -73
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/initiative-status/renderer.ts +4 -1
package/package.json
CHANGED
|
@@ -186,7 +186,10 @@ function fitTextToNode(label: string, nodeWidth: number, nodeHeight: number): Fi
|
|
|
186
186
|
return { lines: camelLines, fontSize };
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
//
|
|
189
|
+
// If not at minimum font size yet, try shrinking before hard-breaking
|
|
190
|
+
if (fontSize > MIN_NODE_FONT_SIZE) continue;
|
|
191
|
+
|
|
192
|
+
// At minimum font size — hard-break as last resort
|
|
190
193
|
const hardLines: string[] = [];
|
|
191
194
|
for (const line of camelLines) {
|
|
192
195
|
if (line.length <= maxCharsPerLine) {
|