X-Git-Url: https://git.kianting.info/?a=blobdiff_plain;f=src%2Flibclo%2FbreakLines.js;h=14a7836178190690f79c86f462067fa58022a4aa;hb=9548c51651d010ec8fd8fbf0213a2d7c60e051ce;hp=f194aa5657eb8cb9edc734418cb0fbe1afc95d13;hpb=ea033498d79b3a84b16e15ff2a218ac5ef5f70b5;p=clo diff --git a/src/libclo/breakLines.js b/src/libclo/breakLines.js index f194aa5..14a7836 100644 --- a/src/libclo/breakLines.js +++ b/src/libclo/breakLines.js @@ -88,8 +88,6 @@ class BreakLineAlgorithm { a = tmp; } } - console.log("~~~", lineWidth); - console.log(items[itemsLength - 2]); return a; } /** @@ -119,7 +117,6 @@ class BreakLineAlgorithm { this.totalCostAuxStorage[j] = returnCost; return returnCost; } - return returnCost; } /** * check the line cost of a line containing items[i..j] @@ -129,7 +126,8 @@ class BreakLineAlgorithm { * @param lineWidth line width */ lineCost(items, i, j, lineWidth) { - if (this.lineCostStorage[i] !== null && this.lineCostStorage[i][j] !== null) { + if (this.lineCostStorage[i][j] !== null) { + console.log("AA"); return this.lineCostStorage[i][j]; } if (!this.isBreakPoint(items[j])) {