MCPcopy Create free account
hub / github.com/plotly/plotly.js / snapOvershoot

Function snapOvershoot

src/traces/parcoords/axisbrush.js:11–11  ·  view source on GitHub ↗
(v, vAdjacent)

Source from the content-addressed store, hash-verified

9
10var snapRatio = c.bar.snapRatio;
11function snapOvershoot(v, vAdjacent) { return v * (1 - snapRatio) + vAdjacent * snapRatio; }
12
13var snapClose = c.bar.snapClose;
14function closeToCovering(v, vAdjacent) { return v * (1 - snapClose) + vAdjacent * snapClose; }

Callers 1

ordinalScaleSnapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…