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

Function visualLine

static/editor.md/lib/codemirror/lib/codemirror.js:6364–6369  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

6362 // visual line. This finds the start of the visual line that the
6363 // given line is part of (usually that is the line itself).
6364 function visualLine(line) {
6365 var merged;
6366 while (merged = collapsedSpanAtStart(line))
6367 line = merged.find(-1, true).line;
6368 return line;
6369 }
6370
6371 // Returns an array of logical lines that continue the visual line
6372 // started by the argument, or undefined if there are no such lines.

Callers 8

drawSelectionRangeFunction · 0.70
codemirror.jsFile · 0.70
markTextFunction · 0.70
visualLineNoFunction · 0.70
heightAtLineFunction · 0.70
lineStartFunction · 0.70

Calls 1

collapsedSpanAtStartFunction · 0.70

Tested by

no test coverage detected