MCPcopy
hub / github.com/witheve/Eve / lineIsHidden

Function lineIsHidden

src/codemirror.js:6630–6640  ·  view source on GitHub ↗
(doc, line)

Source from the content-addressed store, hash-verified

6628 // are part of a visual line that starts with another line, or when
6629 // they are entirely covered by collapsed, non-widget span.
6630 function lineIsHidden(doc, line) {
6631 var sps = sawCollapsedSpans && line.markedSpans;
6632 if (sps) for (var sp, i = 0; i < sps.length; ++i) {
6633 sp = sps[i];
6634 if (!sp.marker.collapsed) continue;
6635 if (sp.from == null) return true;
6636 if (sp.marker.widgetNode) continue;
6637 if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp))
6638 return true;
6639 }
6640 }
6641 function lineIsHiddenInner(doc, line, span) {
6642 if (span.to == null) {
6643 var end = span.marker.find(1, true);

Callers 6

estimateHeightFunction · 0.85
LineViewFunction · 0.85
codemirror.jsFile · 0.85
markTextFunction · 0.85
visualLineEndNoFunction · 0.85
addLineWidgetFunction · 0.85

Calls 1

lineIsHiddenInnerFunction · 0.85

Tested by

no test coverage detected