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

Function boxIsAfter

samples/common/codehighlight/codemirror.js:2739–2741  ·  view source on GitHub ↗
(box, x, y, left)

Source from the content-addressed store, hash-verified

2737 // Returns true if the given side of a box is after the given
2738 // coordinates, in top-to-bottom, left-to-right order.
2739 function boxIsAfter(box, x, y, left) {
2740 return box.bottom <= y ? false : box.top > y ? true : (left ? box.left : box.right) > x
2741 }
2742
2743 function coordsCharInner(cm, lineObj, lineNo, x, y) {
2744 // 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