MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / getWrappedLineExtent

Function getWrappedLineExtent

static/libs/codemirror.js:6833–6837  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

6831 var mv = function (pos, dir) { return moveCharLogically(line, pos instanceof Pos ? pos.ch : pos, dir); };
6832 var prep;
6833 var getWrappedLineExtent = function (ch) {
6834 if (!cm.options.lineWrapping) { return {begin: 0, end: line.text.length} }
6835 prep = prep || prepareMeasureForLine(cm, line);
6836 return wrappedLineExtentChar(cm, line, prep, ch)
6837 };
6838 var wrappedLineExtent = getWrappedLineExtent(start.sticky == "before" ? mv(start, -1) : start.ch);
6839
6840 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