MCPcopy Index your code
hub / github.com/witheve/Eve / coords

Function coords

src/codemirror.js:2368–2370  ·  view source on GitHub ↗
(ch, bias)

Source from the content-addressed store, hash-verified

2366 var lineLen = lineObj.text.length;
2367 var start, end;
2368 function coords(ch, bias) {
2369 return charCoords(cm, Pos(line, ch), "div", lineObj, bias);
2370 }
2371
2372 iterateBidiSections(getOrder(lineObj), fromArg || 0, toArg == null ? lineLen : toArg, function(from, to, dir) {
2373 var leftPos = coords(from, "left"), rightPos, left, right;

Callers 1

drawForLineFunction · 0.85

Calls 1

charCoordsFunction · 0.85

Tested by

no test coverage detected