src/charts/donut.js
function handleMouseOut(el, d, chartWidth, chartHeight) {
            cleanLegend();

            // When there is a fixed highlighted slice,
            // we will always highlight it and render legend
            if (highlightedSlice && hasFixedHighlightedSlice && !hasLastHoverSliceHighlighted) {
                drawLegend(highlightedSlice.__data__);
                tweenGrowth(highlightedSlice, externalRadius);
            }

            // When the current slice is not the highlighted, or there isn't a fixed highlighted slice and it is the highlighted
            // we will shrink the slice
            if (el !== highlightedSlice || (!hasFixedHighlightedSlice && el === highlightedSlice) ) {
                tweenGrowth(el, externalRadius - radiusHoverOffset, pieHoverTransitionDuration);
            }

            if (hasLastHoverSliceHighlighted) {
                drawLegend(el.__data__);
                tweenGrowth(el, externalRadius);
                lastHighlightedSlice = el;
            }

            dispatcher.call('customMouseOut', el, d, d3Selection.mouse(el), [chartWidth, chartHeight]);
        }
function handleMouseOut(el, d, chartWidth, chartHeight) {
            cleanLegend();

            // When there is a fixed highlighted slice,
            // we will always highlight it and render legend
            if (highlightedSlice && hasFixedHighlightedSlice && !hasLastHoverSliceHighlighted) {
                drawLegend(highlightedSlice.__data__);
                tweenGrowth(highlightedSlice, externalRadius);
            }

            // When the current slice is not the highlighted, or there isn't a fixed highlighted slice and it is the highlighted
            // we will shrink the slice
            if (el !== highlightedSlice || (!hasFixedHighlightedSlice && el === highlightedSlice) ) {
                tweenGrowth(el, externalRadius - radiusHoverOffset, pieHoverTransitionDuration);
            }

            if (hasLastHoverSliceHighlighted) {
                drawLegend(el.__data__);
                tweenGrowth(el, externalRadius);
                lastHighlightedSlice = el;
            }

            dispatcher.call('customMouseOut', el, d, d3Selection.mouse(el), [chartWidth, chartHeight]);
        }
function handleMouseOut ( el , d , chartWidth , chartHeight ) { cleanLegend ( ) ; // When there is a fixed highlighted slice, // we will always highlight it and render legend if ( highlightedSlice && hasFixedHighlightedSlice && ! hasLastHoverSliceHighlighted ) { drawLegend ( highlightedSlice . __data__ ) ; tweenGrowth ( highlightedSlice , externalRadius ) ; } // When the current slice is not the highlighted, or there isn't a fixed highlighted slice and it is the highlighted // we will shrink the slice if ( el !== highlightedSlice || ( ! hasFixedHighlightedSlice && el === highlightedSlice ) ) { tweenGrowth ( el , externalRadius - radiusHoverOffset , pieHoverTransitionDuration ) ; } if ( hasLastHoverSliceHighlighted ) { drawLegend ( el . __data__ ) ; tweenGrowth ( el , externalRadius ) ; lastHighlightedSlice = el ; } dispatcher . call ( 'customMouseOut' , el , d , d3Selection . mouse ( el ) , [ chartWidth , chartHeight ] ) ; }
Handles a path mouse out
@return {void}
@private
Handles a path mouse out