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

Function PosWithInfo

static/mergely/lib/codemirror.js:2875–2880  ·  view source on GitHub ↗
(line, ch, outside, xRel)

Source from the content-addressed store, hash-verified

2873 // is true, that means the coordinates lie outside the line's
2874 // vertical range.
2875 function PosWithInfo(line, ch, outside, xRel) {
2876 var pos = Pos(line, ch);
2877 pos.xRel = xRel;
2878 if (outside) pos.outside = true;
2879 return pos;
2880 }
2881
2882 // Compute the character position closest to the given coordinates.
2883 // Input must be lineSpace-local ("div" coordinate system).

Callers 2

coordsCharFunction · 0.70
coordsCharInnerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected