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

Function dragTail

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

Source from the content-addressed store, hash-verified

849
850 // dragTail - finish a drag event with a redraw
851 function dragTail() {
852 // put the subplot viewboxes back to default (Because we're going to)
853 // be repositioning the data in the relayout. But DON'T call
854 // ticksAndAnnotations again - it's unnecessary and would overwrite `updates`
855 updateSubplots([0, 0, pw, ph]);
856
857 // since we may have been redrawing some things during the drag, we may have
858 // accumulated MathJax promises - wait for them before we relayout.
859 Lib.syncOrAsync([
860 Plots.previousPromises,
861 function() {
862 gd._fullLayout._replotting = false;
863 Registry.call('_guiRelayout', gd, updates);
864 }
865 ], gd);
866 }
867
868 // updateSubplots - find all plot viewboxes that should be
869 // affected by this drag, and update them. look for all plots

Callers 2

zoomDoneFunction · 0.85
zoomWheelFunction · 0.85

Calls 1

updateSubplotsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…