Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/twitter/labella.js
/ overlapWithNode
Method
overlapWithNode
src/core/node.js:29–31 ·
view source on GitHub ↗
(node, buffer=0)
Source
from the content-addressed store, hash-verified
27
}
28
29
overlapWithNode(node, buffer=0){
30
return
this.distanceFrom(node) - buffer < 0;
31
}
32
33
overlapWithPoint(pos){
34
const
halfWidth = this.width/2;
Callers
4
metrics.js
File · 0.80
node.spec.js
File · 0.80
labella-extra.min.js
File · 0.80
labella-0.1.1.min.js
File · 0.80
Calls
1
distanceFrom
Method · 0.95
Tested by
no test coverage detected