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

Function coords

static/mergely/lib/codemirror.js:2360–2362  ·  view source on GitHub ↗
(ch, bias)

Source from the content-addressed store, hash-verified

2358 var lineLen = lineObj.text.length;
2359 var start, end;
2360 function coords(ch, bias) {
2361 return charCoords(cm, Pos(line, ch), "div", lineObj, bias);
2362 }
2363
2364 iterateBidiSections(getOrder(lineObj), fromArg || 0, toArg == null ? lineLen : toArg, function(from, to, dir) {
2365 var leftPos = coords(from, "left"), rightPos, left, right;

Callers 1

drawForLineFunction · 0.70

Calls 1

charCoordsFunction · 0.70

Tested by

no test coverage detected