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

Function computeZoomUpdates

src/plots/cartesian/dragbox.js:434–446  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432 }
433
434 function computeZoomUpdates() {
435 updates = {};
436
437 // TODO: edit linked axes in zoomAxRanges and in dragTail
438 if(zoomMode === 'xy' || zoomMode === 'x') {
439 zoomAxRanges(xaxes, box.l / pw, box.r / pw, updates, links.xaxes);
440 updateMatchedAxRange('x', updates);
441 }
442 if(zoomMode === 'xy' || zoomMode === 'y') {
443 zoomAxRanges(yaxes, (ph - box.b) / ph, (ph - box.t) / ph, updates, links.yaxes);
444 updateMatchedAxRange('y', updates);
445 }
446 }
447
448 function zoomDone() {
449 computeZoomUpdates();

Callers 2

zoomMoveFunction · 0.70
zoomDoneFunction · 0.70

Calls 2

zoomAxRangesFunction · 0.85
updateMatchedAxRangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…