MCPcopy
hub / github.com/witheve/Eve / get

Function get

src/codemirror.js:2840–2844  ·  view source on GitHub ↗
(ch, right)

Source from the content-addressed store, hash-verified

2838 lineObj = lineObj || getLine(cm.doc, pos.line);
2839 if (!preparedMeasure) preparedMeasure = prepareMeasureForLine(cm, lineObj);
2840 function get(ch, right) {
2841 var m = measureCharPrepared(cm, preparedMeasure, ch, right ? "right" : "left", varHeight);
2842 if (right) m.left = m.right; else m.right = m.left;
2843 return intoCoordSystem(cm, lineObj, m, context);
2844 }
2845 function getBidi(ch, partPos) {
2846 var part = order[partPos], right = part.level % 2;
2847 if (ch == bidiLeft(part) && partPos && part.level < order[partPos - 1].level) {

Callers 2

getBidiFunction · 0.70
cursorCoordsFunction · 0.70

Calls 2

measureCharPreparedFunction · 0.85
intoCoordSystemFunction · 0.85

Tested by

no test coverage detected