MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / visualLine

Function visualLine

lib/web/CodeMirror/src/line/spans.js:254–259  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

252// visual line. This finds the start of the visual line that the
253// given line is part of (usually that is the line itself).
254export function visualLine(line) {
255 let merged
256 while (merged = collapsedSpanAtStart(line))
257 line = merged.find(-1, true).line
258 return line
259}
260
261export function visualLineEnd(line) {
262 let merged

Callers 9

drawSelectionRangeFunction · 0.90
Doc.jsFile · 0.90
clearMethod · 0.90
markTextFunction · 0.90
lineStartFunction · 0.90
visualLineNoFunction · 0.70
heightAtLineFunction · 0.70

Calls 2

collapsedSpanAtStartFunction · 0.70
findMethod · 0.45

Tested by

no test coverage detected