src/heatmap.js
function emitHeatmapCoordinates() {
        if(coordinates.length > 0) {
            ceddl.emitEvent('heatmap:update', {
                width: windowWidth,
                coordinates: coordinates.splice(0, coordinates.length)
            });
        }
        windowWidth = Math.round(parseInt(window.innerWidth, 10));
    }
function emitHeatmapCoordinates() {
        if(coordinates.length > 0) {
            ceddl.emitEvent('heatmap:update', {
                width: windowWidth,
                coordinates: coordinates.splice(0, coordinates.length)
            });
        }
        windowWidth = Math.round(parseInt(window.innerWidth, 10));
    }
function emitHeatmapCoordinates ( ) { if ( coordinates . length > 0 ) { ceddl . emitEvent ( 'heatmap:update' , { width : windowWidth , coordinates : coordinates . splice ( 0 , coordinates . length ) } ) ; } windowWidth = Math . round ( parseInt ( window . innerWidth , 10 ) ) ; }
Send data to ceddl and clear the current coordinates.
Send data to ceddl and clear the current coordinates .