MCPcopy Create free account
hub / github.com/breck7/scroll / PosWithInfo

Function PosWithInfo

external/.scrollLibs.js:4058–4065  ·  view source on GitHub ↗
(line, ch, sticky, outside, xRel)

Source from the content-addressed store, hash-verified

4056 // is true, that means the coordinates lie outside the line's
4057 // vertical range.
4058 function PosWithInfo(line, ch, sticky, outside, xRel) {
4059 var pos = Pos(line, ch, sticky)
4060 pos.xRel = xRel
4061 if (outside) {
4062 pos.outside = true
4063 }
4064 return pos
4065 }
4066
4067 // Compute the character position closest to the given coordinates.
4068 // 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