MCPcopy Index your code
hub / github.com/DHTMLX/gantt / getWrappedLineExtent

Function getWrappedLineExtent

samples/common/codehighlight/codemirror.js:6889–6893  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

6887 var mv = function (pos, dir) { return moveCharLogically(line, pos instanceof Pos ? pos.ch : pos, dir); };
6888 var prep;
6889 var getWrappedLineExtent = function (ch) {
6890 if (!cm.options.lineWrapping) { return {begin: 0, end: line.text.length} }
6891 prep = prep || prepareMeasureForLine(cm, line);
6892 return wrappedLineExtentChar(cm, line, prep, ch)
6893 };
6894 var wrappedLineExtent = getWrappedLineExtent(start.sticky == "before" ? mv(start, -1) : start.ch);
6895
6896 if (cm.doc.direction == "rtl" || part.level == 1) {

Callers 1

moveVisuallyFunction · 0.85

Calls 2

prepareMeasureForLineFunction · 0.85
wrappedLineExtentCharFunction · 0.85

Tested by

no test coverage detected