()
| 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 |
no test coverage detected
searching dependent graphs…