MCPcopy Create free account
hub / github.com/TruthHun/BookStack / measureChar

Function measureChar

static/editor.md/lib/codemirror/lib/codemirror.js:2480–2482  ·  view source on GitHub ↗
(cm, line, ch, bias)

Source from the content-addressed store, hash-verified

2478 // Get a {top, bottom, left, right} box (in line-local coordinates)
2479 // for a given character.
2480 function measureChar(cm, line, ch, bias) {
2481 return measureCharPrepared(cm, prepareMeasureForLine(cm, line), ch, bias);
2482 }
2483
2484 // Find a line view that corresponds to the given line number.
2485 function findViewForLine(cm, lineN) {

Callers 2

charCoordsFunction · 0.70
endOperation_R2Function · 0.70

Calls 2

measureCharPreparedFunction · 0.70
prepareMeasureForLineFunction · 0.70

Tested by

no test coverage detected