You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/index.ts
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -552,6 +552,13 @@ function getFunctions(time: number = thisLayer.time) {
552
552
characterStep: number;
553
553
}
554
554
555
+
/**
556
+
*
557
+
* @param string The input string to add line breaks to
558
+
* @param maxCharacters The maximum characters in each line
559
+
* @param minWords The minimum number of words in a line
560
+
* @returns The given string with line breaks inserted, where each line has less than `maxCharacters`. If a line has less than the `minWords`, line breaks are inserted more often to avoid short lines.
561
+
*/
555
562
functionbreakWithoutOrphans(
556
563
string: string,
557
564
maxCharacters: number,
@@ -584,6 +591,10 @@ function getFunctions(time: number = thisLayer.time) {
0 commit comments