MCPcopy Create free account
hub / github.com/TruthHun/BookStack / LineView

Function LineView

static/mergely/lib/codemirror.js:3213–3222  ·  view source on GitHub ↗
(doc, line, lineN)

Source from the content-addressed store, hash-verified

3211 // part of the document. A LineView may correspond to multiple
3212 // logical lines, if those are connected by collapsed ranges.
3213 function LineView(doc, line, lineN) {
3214 // The starting line
3215 this.line = line;
3216 // Continuing lines, if any
3217 this.rest = visualLineContinued(line);
3218 // Number of logical lines in this visual line
3219 this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;
3220 this.node = this.text = null;
3221 this.hidden = lineIsHidden(doc, line);
3222 }
3223
3224 // Create a range of LineView objects for the given lines.
3225 function buildViewArray(cm, from, to) {

Callers

nothing calls this directly

Calls 4

visualLineContinuedFunction · 0.70
lineNoFunction · 0.70
lstFunction · 0.70
lineIsHiddenFunction · 0.70

Tested by

no test coverage detected