MCPcopy Create free account
hub / github.com/breck7/scroll / rightPad

Method rightPad

external/.scrollLibs.js:15781–15785  ·  view source on GitHub ↗
(padCharacter = " ")

Source from the content-addressed store, hash-verified

15779 return this
15780 }
15781 rightPad(padCharacter = " ") {
15782 const newWidth = this.getMaxLineWidth()
15783 this.topDownArray.forEach(particle => particle._rightPad(newWidth, padCharacter))
15784 return this
15785 }
15786 lengthen(numberOfLines) {
15787 let linesToAdd = numberOfLines - this.numberOfLines
15788 while (linesToAdd > 0) {

Callers 1

toSideBySideMethod · 0.80

Calls 3

getMaxLineWidthMethod · 0.95
forEachMethod · 0.80
_rightPadMethod · 0.80

Tested by

no test coverage detected