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

Method displacement

src/core/node.js:25–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 displacement(){
26 return this.idealPos - this.currentPos;
27 }
28
29 overlapWithNode(node, buffer=0){
30 return this.distanceFrom(node) - buffer < 0;

Callers 8

metrics.jsFile · 0.80
metrics.spec.jsFile · 0.80
node.spec.jsFile · 0.80
iterFunction · 0.80
computeMetricsFunction · 0.80
eFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected