MCPcopy
hub / github.com/witheve/Eve / PosWithInfo

Function PosWithInfo

src/codemirror.js:2883–2888  ·  view source on GitHub ↗
(line, ch, outside, xRel)

Source from the content-addressed store, hash-verified

2881 // is true, that means the coordinates lie outside the line's
2882 // vertical range.
2883 function PosWithInfo(line, ch, outside, xRel) {
2884 var pos = Pos(line, ch);
2885 pos.xRel = xRel;
2886 if (outside) pos.outside = true;
2887 return pos;
2888 }
2889
2890 // Compute the character position closest to the given coordinates.
2891 // Input must be lineSpace-local ("div" coordinate system).

Callers 2

coordsCharFunction · 0.85
coordsCharInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected