MCPcopy
hub / github.com/csev/py4e / coords

Function coords

tools/pythonauto/static/codemirrorepl/codemirror.js:1293–1295  ·  view source on GitHub ↗
(ch, bias)

Source from the content-addressed store, hash-verified

1291 var lineLen = lineObj.text.length;
1292 var start, end;
1293 function coords(ch, bias) {
1294 return charCoords(cm, Pos(line, ch), "div", lineObj, bias);
1295 }
1296
1297 iterateBidiSections(getOrder(lineObj), fromArg || 0, toArg == null ? lineLen : toArg, function(from, to, dir) {
1298 var leftPos = coords(from, "left"), rightPos, left, right;

Callers 1

drawForLineFunction · 0.70

Calls 2

PosFunction · 0.85
charCoordsFunction · 0.70

Tested by

no test coverage detected