X-Git-Url: https://git.kianting.info/?a=blobdiff_plain;f=src%2Flibclo%2FbreakLines.js;fp=src%2Flibclo%2FbreakLines.js;h=c7319be170a726b1e7d95b78e2bef42a1f1aa272;hb=714bbb4a64531268d17ca8f7ae60800ec2046a27;hp=14a7836178190690f79c86f462067fa58022a4aa;hpb=99e47c45312eae01a5c05fcaadda22657577c01d;p=clo diff --git a/src/libclo/breakLines.js b/src/libclo/breakLines.js index 14a7836..c7319be 100644 --- a/src/libclo/breakLines.js +++ b/src/libclo/breakLines.js @@ -34,6 +34,11 @@ 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, lineWidth) { let lineWidthFixed = lineWidth; this.totalCost(items, lineWidthFixed);