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

Method getMaxLineWidth

external/.scrollLibs.js:15765–15772  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15763 return result
15764 }
15765 getMaxLineWidth() {
15766 let maxWidth = 0
15767 for (let particle of this.getTopDownArrayIterator()) {
15768 const lineWidth = particle.getLine().length
15769 if (lineWidth > maxWidth) maxWidth = lineWidth
15770 }
15771 return maxWidth
15772 }
15773 toParticle() {
15774 return new Particle(this.toString())
15775 }

Callers 1

rightPadMethod · 0.95

Calls 2

getLineMethod · 0.45

Tested by

no test coverage detected