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

Function coords

static/editor.md/lib/codemirror/lib/codemirror.js:2257–2259  ·  view source on GitHub ↗
(ch, bias)

Source from the content-addressed store, hash-verified

2255 var lineLen = lineObj.text.length;
2256 var start, end;
2257 function coords(ch, bias) {
2258 return charCoords(cm, Pos(line, ch), "div", lineObj, bias);
2259 }
2260
2261 iterateBidiSections(getOrder(lineObj), fromArg || 0, toArg == null ? lineLen : toArg, function(from, to, dir) {
2262 var leftPos = coords(from, "left"), rightPos, left, right;

Callers 1

drawForLineFunction · 0.70

Calls 1

charCoordsFunction · 0.70

Tested by

no test coverage detected