X-Git-Url: https://git.kianting.info/?a=blobdiff_plain;f=src%2Flibclo%2FbreakLines.ts;fp=src%2Flibclo%2FbreakLines.ts;h=f3f6a3c856d4765f12567409280db65161f5ea59;hb=714bbb4a64531268d17ca8f7ae60800ec2046a27;hp=7ab8c0d70bf0c68cd951a3feb89b3536722b345b;hpb=99e47c45312eae01a5c05fcaadda22657577c01d;p=clo diff --git a/src/libclo/breakLines.ts b/src/libclo/breakLines.ts index 7ab8c0d..f3f6a3c 100644 --- a/src/libclo/breakLines.ts +++ b/src/libclo/breakLines.ts @@ -49,7 +49,12 @@ export class BreakLineAlgorithm { return item.width; } } - + + /**segement node of one paragraph into lines. + * @args items: nodes of a line + * @args linewidth: the line width + * @returns segmented nodes into lines + */ segmentedNodes(items : BoxesItem[], lineWidth : number) : BoxesItem[][]{ let lineWidthFixed = lineWidth;