MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / get

Function get

static/js/codemirror/codemirror.js:1079–1083  ·  view source on GitHub ↗
(ch, right)

Source from the content-addressed store, hash-verified

1077 lineObj = lineObj || getLine(cm.doc, pos.line);
1078 if (!measurement) measurement = measureLine(cm, lineObj);
1079 function get(ch, right) {
1080 var m = measureChar(cm, lineObj, ch, measurement);
1081 if (right) m.left = m.right; else m.right = m.left;
1082 return intoCoordSystem(cm, lineObj, m, context);
1083 }
1084 var order = getOrder(lineObj), ch = pos.ch;
1085 if (!order) return get(ch);
1086 var main, other, linedir = order[0].level;

Callers 1

cursorCoordsFunction · 0.70

Calls 2

measureCharFunction · 0.85
intoCoordSystemFunction · 0.85

Tested by

no test coverage detected