MCPcopy Index your code
hub / github.com/plotly/plotly.js / dZoom

Function dZoom

src/plots/cartesian/dragbox.js:1144–1147  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

1142// d<0 is expanding (cursor is off the plot, axis end moves
1143// nonlinearly so you can expand far)
1144function dZoom(d) {
1145 return 1 - ((d >= 0) ? Math.min(d, 0.9) :
1146 1 / (1 / Math.max(d, -0.3) + 3.222));
1147}
1148
1149function getDragCursor(nsew, dragmode, isMainDrag) {
1150 if(!nsew) return 'pointer';

Callers 1

dzFunction · 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…