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

Function findMaxLine

samples/common/codehighlight/codemirror.js:1663–1675  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1661
1662 // Find the longest line in the document.
1663 function findMaxLine(cm) {
1664 var d = cm.display, doc = cm.doc;
1665 d.maxLine = getLine(doc, doc.first);
1666 d.maxLineLength = lineLength(d.maxLine);
1667 d.maxLineChanged = true;
1668 doc.iter(function (line) {
1669 var len = lineLength(line);
1670 if (len > d.maxLineLength) {
1671 d.maxLineLength = len;
1672 d.maxLine = line;
1673 }
1674 });
1675 }
1676
1677 // LINE DATA STRUCTURE
1678

Callers 3

endOperation_R1Function · 0.85
attachDocFunction · 0.85
wrappingChangedFunction · 0.85

Calls 2

getLineFunction · 0.85
lineLengthFunction · 0.85

Tested by

no test coverage detected