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

Function getShift

src/plots/cartesian/dragbox.js:1034–1036  ·  view source on GitHub ↗
(ax, scaleFactor, from)

Source from the content-addressed store, hash-verified

1032 }
1033
1034 function getShift(ax, scaleFactor, from) {
1035 return ax._length * (1 - scaleFactor) * FROM_TL[from || ax.constraintoward || 'middle'];
1036 }
1037
1038 return dragger;
1039}

Callers 2

updateSubplotsFunction · 0.85
scaleAndGetShiftFunction · 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…