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

Function boxIsAfter

external/.scrollLibs.js:4129–4131  ·  view source on GitHub ↗
(box, x, y, left)

Source from the content-addressed store, hash-verified

4127 // Returns true if the given side of a box is after the given
4128 // coordinates, in top-to-bottom, left-to-right order.
4129 function boxIsAfter(box, x, y, left) {
4130 return box.bottom <= y ? false : box.top > y ? true : (left ? box.left : box.right) > x
4131 }
4132
4133 function coordsCharInner(cm, lineObj, lineNo$$1, x, y) {
4134 // Move y into line-local coordinate space

Callers 2

coordsCharInnerFunction · 0.85
coordsBidiPartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected