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

Function Line

external/.scrollLibs.js:2782–2786  ·  view source on GitHub ↗
(text, markedSpans, estimateHeight)

Source from the content-addressed store, hash-verified

2780 // Line objects. These hold state related to a line, including
2781 // highlighting info (the styles array).
2782 var Line = function (text, markedSpans, estimateHeight) {
2783 this.text = text
2784 attachMarkedSpans(this, markedSpans)
2785 this.height = estimateHeight ? estimateHeight(this) : 1
2786 }
2787
2788 Line.prototype.lineNo = function () {
2789 return lineNo(this)

Callers

nothing calls this directly

Calls 2

attachMarkedSpansFunction · 0.85
estimateHeightFunction · 0.85

Tested by

no test coverage detected