MCPcopy Create free account
hub / github.com/TruthHun/BookStack / get

Function get

static/mergely/lib/codemirror.js:2832–2836  ·  view source on GitHub ↗
(ch, right)

Source from the content-addressed store, hash-verified

2830 lineObj = lineObj || getLine(cm.doc, pos.line);
2831 if (!preparedMeasure) preparedMeasure = prepareMeasureForLine(cm, lineObj);
2832 function get(ch, right) {
2833 var m = measureCharPrepared(cm, preparedMeasure, ch, right ? "right" : "left", varHeight);
2834 if (right) m.left = m.right; else m.right = m.left;
2835 return intoCoordSystem(cm, lineObj, m, context);
2836 }
2837 function getBidi(ch, partPos) {
2838 var part = order[partPos], right = part.level % 2;
2839 if (ch == bidiLeft(part) && partPos && part.level < order[partPos - 1].level) {

Callers 2

getBidiFunction · 0.70
cursorCoordsFunction · 0.70

Calls 2

measureCharPreparedFunction · 0.70
intoCoordSystemFunction · 0.70

Tested by

no test coverage detected