MCPcopy Index your code
hub / github.com/csev/py4e / coords

Function coords

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

Source from the content-addressed store, hash-verified

836 var lineLen = lineObj.text.length;
837 var start, end;
838 function coords(ch, bias) {
839 return charCoords(cm, Pos(line, ch), "div", lineObj, bias);
840 }
841
842 iterateBidiSections(getOrder(lineObj), fromArg || 0, toArg == null ? lineLen : toArg, function(from, to, dir) {
843 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