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

Function PosWithInfo

static/editor.md/lib/codemirror/lib/codemirror.js:2769–2774  ·  view source on GitHub ↗
(line, ch, outside, xRel)

Source from the content-addressed store, hash-verified

2767 // is true, that means the coordinates lie outside the line's
2768 // vertical range.
2769 function PosWithInfo(line, ch, outside, xRel) {
2770 var pos = Pos(line, ch);
2771 pos.xRel = xRel;
2772 if (outside) pos.outside = true;
2773 return pos;
2774 }
2775
2776 // Compute the character position closest to the given coordinates.
2777 // 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