MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / PosWithInfo

Function PosWithInfo

static/libs/codemirror.js:2762–2767  ·  view source on GitHub ↗
(line, ch, sticky, outside, xRel)

Source from the content-addressed store, hash-verified

2760// is true, that means the coordinates lie outside the line's
2761// vertical range.
2762function PosWithInfo(line, ch, sticky, outside, xRel) {
2763 var pos = Pos(line, ch, sticky);
2764 pos.xRel = xRel;
2765 if (outside) { pos.outside = true; }
2766 return pos
2767}
2768
2769// Compute the character position closest to the given coordinates.
2770// Input must be lineSpace-local ("div" coordinate system).

Callers 2

coordsCharFunction · 0.85
coordsCharInnerFunction · 0.85

Calls 1

PosFunction · 0.85

Tested by

no test coverage detected