mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-21 06:53:17 +08:00
Add logs
This commit is contained in:
parent
b3ce56c7fc
commit
a379cd02e7
@ -41,6 +41,8 @@ function splitWordToFitWidthRecursion(
|
|||||||
usedChars: string[],
|
usedChars: string[],
|
||||||
remainingChars: string[]
|
remainingChars: string[]
|
||||||
): [string, string] {
|
): [string, string] {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.error({ usedChars, remainingChars });
|
||||||
if (remainingChars.length === 0) {
|
if (remainingChars.length === 0) {
|
||||||
return [usedChars.join(''), ''];
|
return [usedChars.join(''), ''];
|
||||||
}
|
}
|
||||||
@ -62,6 +64,8 @@ function splitLineToFitWidthRecursion(
|
|||||||
lines: string[] = [],
|
lines: string[] = [],
|
||||||
newLine = ''
|
newLine = ''
|
||||||
): string[] {
|
): string[] {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.error({ words, lines, newLine });
|
||||||
// Return if there is nothing left to split
|
// Return if there is nothing left to split
|
||||||
if (words.length === 0) {
|
if (words.length === 0) {
|
||||||
// If there is a new line, add it to the lines
|
// If there is a new line, add it to the lines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user