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

Function get

static/editor.md/lib/codemirror/lib/codemirror.js:2726–2730  ·  view source on GitHub ↗
(ch, right)

Source from the content-addressed store, hash-verified

2724 lineObj = lineObj || getLine(cm.doc, pos.line);
2725 if (!preparedMeasure) preparedMeasure = prepareMeasureForLine(cm, lineObj);
2726 function get(ch, right) {
2727 var m = measureCharPrepared(cm, preparedMeasure, ch, right ? "right" : "left", varHeight);
2728 if (right) m.left = m.right; else m.right = m.left;
2729 return intoCoordSystem(cm, lineObj, m, context);
2730 }
2731 function getBidi(ch, partPos) {
2732 var part = order[partPos], right = part.level % 2;
2733 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