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

Function computeZoomUpdates

src/plots/polar/polar.js:1053–1061  ·  view source on GitHub ↗
(update)

Source from the content-addressed store, hash-verified

1051 }
1052
1053 function computeZoomUpdates(update) {
1054 var rl = radialAxis._rl;
1055 var m = (rl[1] - rl[0]) / (1 - innerRadius / radius) / radius;
1056 var newRng = [
1057 rl[0] + (r0 - innerRadius) * m,
1058 rl[0] + (r1 - innerRadius) * m
1059 ];
1060 update[_this.id + '.radialaxis.range'] = newRng;
1061 }
1062
1063 function zoomClick(numClicks, evt) {
1064 var clickMode = gd._fullLayout.clickmode;

Callers 2

applyZoomMoveFunction · 0.70
zoomDoneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…