'use strict'; function removeTooltip(d, i, options, popoverTooltip) { var idVariable = options.idVariable; var xSelector = options.xSelector; var ySelector = options.ySelector; var tip = options.tip; var wrapper = options.wrapper; var height = options.height; var width = options.width; // Save the circle element (so not the voronoi which is triggering the hover event) // in a variable by using the unique class of the voronoi (idVariable) var elementSelector = void 0; if (typeof d.datum !== 'undefined' && typeof d.datum[idVariable] !== 'undefined') { elementSelector = '.marks.' + d.datum[idVariable]; } else { elementSelector = '.marks.' + d[idVariable]; } var element = void 0; if (typeof d.datum !== 'undefined' && typeof d.datum[idVariable] !== 'undefined') { element = d3.selectAll('.marks.' + d.datum[idVariable]); } else { element = d3.selectAll('.marks.' + d[idVariable]); } // Fade out the bright circle again element.style('fill-opacity', 0.3); //Hide tooltip if (typeof popoverTooltip !== 'undefined') { popoverTooltip.close(); } //Fade out guide lines, then remove them d3.selectAll(".guide").transition().duration(200).style("opacity", 0).remove(); } //function removeTooltip