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

Function lineIsHidden

samples/common/codehighlight/codemirror.js:1594–1604  ·  view source on GitHub ↗
(doc, line)

Source from the content-addressed store, hash-verified

1592 // are part of a visual line that starts with another line, or when
1593 // they are entirely covered by collapsed, non-widget span.
1594 function lineIsHidden(doc, line) {
1595 var sps = sawCollapsedSpans && line.markedSpans;
1596 if (sps) { for (var sp = (void 0), i = 0; i < sps.length; ++i) {
1597 sp = sps[i];
1598 if (!sp.marker.collapsed) { continue }
1599 if (sp.from == null) { return true }
1600 if (sp.marker.widgetNode) { continue }
1601 if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp))
1602 { return true }
1603 } }
1604 }
1605 function lineIsHiddenInner(doc, line, span) {
1606 if (span.to == null) {
1607 var end = span.marker.find(1, true);

Callers 6

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

Calls 1

lineIsHiddenInnerFunction · 0.85

Tested by

no test coverage detected