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

Function visualLineNo

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

Source from the content-addressed store, hash-verified

1572 // Get the line number of the start of the visual line that the
1573 // given line number is part of.
1574 function visualLineNo(doc, lineN) {
1575 var line = getLine(doc, lineN), vis = visualLine(line);
1576 if (line == vis) { return lineN }
1577 return lineNo(vis)
1578 }
1579
1580 // Get the line number of the start of the next visual line after
1581 // the given line.

Callers 3

regChangeFunction · 0.85
viewCuttingPointFunction · 0.85
updateDisplayIfNeededFunction · 0.85

Calls 3

getLineFunction · 0.85
visualLineFunction · 0.85
lineNoFunction · 0.85

Tested by

no test coverage detected