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

Function getX

tools/pythonauto/static/codemirrorepl/codemirror.js:1795–1802  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

1793 var preparedMeasure = prepareMeasureForLine(cm, lineObj);
1794
1795 function getX(ch) {
1796 var sp = cursorCoords(cm, Pos(lineNo, ch), "line", lineObj, preparedMeasure);
1797 wrongLine = true;
1798 if (innerOff > sp.bottom) return sp.left - adjust;
1799 else if (innerOff < sp.top) return sp.left + adjust;
1800 else wrongLine = false;
1801 return sp.left;
1802 }
1803
1804 var bidi = getOrder(lineObj), dist = lineObj.text.length;
1805 var from = lineLeft(lineObj), to = lineRight(lineObj);

Callers 1

coordsCharInnerFunction · 0.70

Calls 2

PosFunction · 0.85
cursorCoordsFunction · 0.70

Tested by

no test coverage detected