MCPcopy
hub / github.com/twitter/labella.js / overlapWithPoint

Method overlapWithPoint

src/core/node.js:33–36  ·  view source on GitHub ↗
(pos)

Source from the content-addressed store, hash-verified

31 }
32
33 overlapWithPoint(pos){
34 const halfWidth = this.width/2;
35 return (pos >= this.currentPos - halfWidth) && (pos <= this.currentPos + halfWidth);
36 }
37
38 positionBefore(node, buffer=0){
39 return node.currentLeft() - this.width/2 - buffer;

Callers 1

node.spec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected