plotly.js
Version:
The open source javascript graphing library that powers plotly
26 lines (21 loc) • 675 B
JavaScript
function clearOutlineControllers(gd) {
var zoomLayer = gd._fullLayout._zoomlayer;
if(zoomLayer) {
zoomLayer.selectAll('.outline-controllers').remove();
}
}
function clearOutline(gd) {
var zoomLayer = gd._fullLayout._zoomlayer;
if(zoomLayer) {
// until we get around to persistent selections, remove the outline
// here. The selection itself will be removed when the plot redraws
// at the end.
zoomLayer.selectAll('.select-outline').remove();
}
gd._fullLayout._outlining = false;
}
module.exports = {
clearOutlineControllers: clearOutlineControllers,
clearOutline: clearOutline
};
;