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

Function LineView

static/editor.md/lib/codemirror/lib/codemirror.js:3104–3113  ·  view source on GitHub ↗
(doc, line, lineN)

Source from the content-addressed store, hash-verified

3102 // part of the document. A LineView may correspond to multiple
3103 // logical lines, if those are connected by collapsed ranges.
3104 function LineView(doc, line, lineN) {
3105 // The starting line
3106 this.line = line;
3107 // Continuing lines, if any
3108 this.rest = visualLineContinued(line);
3109 // Number of logical lines in this visual line
3110 this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;
3111 this.node = this.text = null;
3112 this.hidden = lineIsHidden(doc, line);
3113 }
3114
3115 // Create a range of LineView objects for the given lines.
3116 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