MCPcopy
hub / github.com/DHTMLX/gantt / LineView

Function LineView

samples/common/codehighlight/codemirror.js:1992–2001  ·  view source on GitHub ↗
(doc, line, lineN)

Source from the content-addressed store, hash-verified

1990 // part of the document. A LineView may correspond to multiple
1991 // logical lines, if those are connected by collapsed ranges.
1992 function LineView(doc, line, lineN) {
1993 // The starting line
1994 this.line = line;
1995 // Continuing lines, if any
1996 this.rest = visualLineContinued(line);
1997 // Number of logical lines in this visual line
1998 this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;
1999 this.node = this.text = null;
2000 this.hidden = lineIsHidden(doc, line);
2001 }
2002
2003 // Create a range of LineView objects for the given lines.
2004 function buildViewArray(cm, from, to) {

Callers

nothing calls this directly

Calls 4

visualLineContinuedFunction · 0.85
lineNoFunction · 0.85
lstFunction · 0.85
lineIsHiddenFunction · 0.85

Tested by

no test coverage detected