MCPcopy Create free account
hub / github.com/sql-js/sql.js / visualLine

Function visualLine

GUI/codemirror/lib/codemirror.js:5400–5405  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

5398 // visual line. This finds the start of the visual line that the
5399 // given line is part of (usually that is the line itself).
5400 function visualLine(line) {
5401 var merged;
5402 while (merged = collapsedSpanAtStart(line))
5403 line = merged.find(-1, true).line;
5404 return line;
5405 }
5406
5407 // Returns an array of logical lines that continue the visual line
5408 // started by the argument, or undefined if there are no such lines.

Callers 8

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

Calls 1

collapsedSpanAtStartFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…