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

Function measureChar

tools/pythonauto/static/codemirrorepl/codemirror.js:1500–1502  ·  view source on GitHub ↗
(cm, line, ch, bias)

Source from the content-addressed store, hash-verified

1498 // Get a {top, bottom, left, right} box (in line-local coordinates)
1499 // for a given character.
1500 function measureChar(cm, line, ch, bias) {
1501 return measureCharPrepared(cm, prepareMeasureForLine(cm, line), ch, bias);
1502 }
1503
1504 // Find a line view that corresponds to the given line number.
1505 function findViewForLine(cm, lineN) {

Callers 2

adjustContentWidthFunction · 0.70
charCoordsFunction · 0.70

Calls 2

measureCharPreparedFunction · 0.85
prepareMeasureForLineFunction · 0.85

Tested by

no test coverage detected