MCPcopy
hub / github.com/DHTMLX/gantt / PosWithInfo

Function PosWithInfo

samples/common/codehighlight/codemirror.js:2694–2699  ·  view source on GitHub ↗
(line, ch, sticky, outside, xRel)

Source from the content-addressed store, hash-verified

2692 // is true, that means the coordinates lie outside the line's
2693 // vertical range.
2694 function PosWithInfo(line, ch, sticky, outside, xRel) {
2695 var pos = Pos(line, ch, sticky);
2696 pos.xRel = xRel;
2697 if (outside) { pos.outside = outside; }
2698 return pos
2699 }
2700
2701 // Compute the character position closest to the given coordinates.
2702 // 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