forked from qwerty/tupali
45 lines
17 KiB
JavaScript
45 lines
17 KiB
JavaScript
/*
|
|
Highcharts JS v8.1.0 (2020-05-05)
|
|
|
|
Marker clusters module for Highcharts
|
|
|
|
(c) 2010-2019 Wojciech Chmiel
|
|
|
|
License: www.highcharts.com/license
|
|
*/
|
|
(function(r){"object"===typeof module&&module.exports?(r["default"]=r,module.exports=r):"function"===typeof define&&define.amd?define("highcharts/modules/marker-clusters",["highcharts"],function(x){r(x);r.Highcharts=x;return r}):r("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(r){function x(r,x,v,H){r.hasOwnProperty(x)||(r[x]=H.apply(null,v))}r=r?r._modules:{};x(r,"modules/marker-clusters.src.js",[r["parts/Globals.js"],r["parts/Point.js"],r["parts/Utilities.js"]],function(r,x,v){function H(a){var b=
|
|
a.length,d=0,f=0,c;for(c=0;c<b;c++)d+=a[c].x,f+=a[c].y;return{x:d/b,y:f/b}}function O(a,b){var d=[];d.length=b;a.clusters.forEach(function(a){a.data.forEach(function(a){d[a.dataIndex]=a})});a.noise.forEach(function(a){d[a.data[0].dataIndex]=a.data[0]});return d}function P(a,b,d,f,c){a.point&&(f&&a.point.graphic&&(a.point.graphic.show(),a.point.graphic.attr({opacity:b}).animate({opacity:1},d)),c&&a.point.dataLabel&&(a.point.dataLabel.show(),a.point.dataLabel.attr({opacity:b}).animate({opacity:1},d)))}
|
|
function Q(a,b,d){a.point&&(b&&a.point.graphic&&a.point.graphic.hide(),d&&a.point.dataLabel&&a.point.dataLabel.hide())}function Y(a){a&&R(a,function(a){a.point&&a.point.destroy&&a.point.destroy()})}function K(a,b,d,f){P(a,f,d,!0,!0);b.forEach(function(a){a.point&&a.point.destroy&&a.point.destroy()})}var I=this&&this.__read||function(a,b){var d="function"===typeof Symbol&&a[Symbol.iterator];if(!d)return a;a=d.call(a);var f,c=[];try{for(;(void 0===b||0<b--)&&!(f=a.next()).done;)c.push(f.value)}catch(h){var k=
|
|
{error:h}}finally{try{f&&!f.done&&(d=a["return"])&&d.call(a)}finally{if(k)throw k.error;}}return c};"";var A=v.addEvent,S=v.animObject,B=v.defined,T=v.error,U=v.isArray,L=v.isFunction,M=v.isObject,D=v.isNumber,N=v.merge,R=v.objectEach,V=v.relativeLength,F=v.syncTimeout;v=r.Series;var w=r.seriesTypes.scatter,Z=r.SVGRenderer,W=v.prototype.generatePoints,X=0,G=[],C={enabled:!1,allowOverlap:!0,animation:{duration:500},drillToCluster:!0,minimumClusterSize:2,layoutAlgorithm:{gridSize:50,distance:40,kmeansThreshold:100},
|
|
marker:{symbol:"cluster",radius:15,lineWidth:0,lineColor:"#ffffff"},dataLabels:{enabled:!0,format:"{point.clusterPointsAmount}",verticalAlign:"middle",align:"center",style:{color:"contrast"},inside:!0}};(r.defaultOptions.plotOptions||{}).series=N((r.defaultOptions.plotOptions||{}).series,{cluster:C,tooltip:{clusterFormat:"<span>Clustered points: {point.clusterPointsAmount}</span><br/>"}});Z.prototype.symbols.cluster=function(a,b,d,f){d/=2;f/=2;var c=this.arc(a+d,b+f,d-4,f-4,{start:.5*Math.PI,end:2.5*
|
|
Math.PI,open:!1});var k=this.arc(a+d,b+f,d-3,f-3,{start:.5*Math.PI,end:2.5*Math.PI,innerR:d-2,open:!1});return this.arc(a+d,b+f,d-1,f-1,{start:.5*Math.PI,end:2.5*Math.PI,innerR:d,open:!1}).concat(k,c)};w.prototype.animateClusterPoint=function(a){var b=this.xAxis,d=this.yAxis,f=this.chart,c=S((this.options.cluster||{}).animation),k=c.duration||500,h=(this.markerClusterInfo||{}).pointsState,m=(h||{}).newState,t=(h||{}).oldState,g=[],l=h=0,p=0,q=!1,u=!1;if(t&&m){var e=m[a.stateId];l=b.toPixels(e.x)-
|
|
f.plotLeft;p=d.toPixels(e.y)-f.plotTop;if(1===e.parentsId.length){a=(m||{})[a.stateId].parentsId[0];var n=t[a];e.point&&e.point.graphic&&n&&n.point&&n.point.plotX&&n.point.plotY&&n.point.plotX!==e.point.plotX&&n.point.plotY!==e.point.plotY&&(a=e.point.graphic.getBBox(),h=a.width/2,e.point.graphic.attr({x:n.point.plotX-h,y:n.point.plotY-h}),e.point.graphic.animate({x:l-e.point.graphic.radius,y:p-e.point.graphic.radius},c,function(){u=!0;n.point&&n.point.destroy&&n.point.destroy()}),e.point.dataLabel&&
|
|
e.point.dataLabel.alignAttr&&n.point.dataLabel&&n.point.dataLabel.alignAttr&&(e.point.dataLabel.attr({x:n.point.dataLabel.alignAttr.x,y:n.point.dataLabel.alignAttr.y}),e.point.dataLabel.animate({x:e.point.dataLabel.alignAttr.x,y:e.point.dataLabel.alignAttr.y},c)))}else 0===e.parentsId.length?(Q(e,!0,!0),F(function(){P(e,.1,c,!0,!0)},k/2)):(Q(e,!0,!0),e.parentsId.forEach(function(a){t&&t[a]&&(n=t[a],g.push(n),n.point&&n.point.graphic&&(q=!0,n.point.graphic.show(),n.point.graphic.animate({x:l-n.point.graphic.radius,
|
|
y:p-n.point.graphic.radius,opacity:.4},c,function(){u=!0;K(e,g,c,.7)}),n.point.dataLabel&&-9999!==n.point.dataLabel.y&&e.point&&e.point.dataLabel&&e.point.dataLabel.alignAttr&&(n.point.dataLabel.show(),n.point.dataLabel.animate({x:e.point.dataLabel.alignAttr.x,y:e.point.dataLabel.alignAttr.y,opacity:.4},c))))}),F(function(){u||K(e,g,c,.85)},k),q||F(function(){K(e,g,c,.1)},k/2))}};w.prototype.getGridOffset=function(){var a=this.chart,b=this.xAxis,d=this.yAxis;b=this.dataMinX&&this.dataMaxX?b.reversed?
|
|
b.toPixels(this.dataMaxX):b.toPixels(this.dataMinX):a.plotLeft;a=this.dataMinY&&this.dataMaxY?d.reversed?d.toPixels(this.dataMinY):d.toPixels(this.dataMaxY):a.plotTop;return{plotLeft:b,plotTop:a}};w.prototype.getScaledGridSize=function(a){var b=this.xAxis,d=!0,f=1,c=1;a=a.processedGridSize||C.layoutAlgorithm.gridSize;this.gridValueSize||(this.gridValueSize=Math.abs(b.toValue(a)-b.toValue(0)));b=b.toPixels(this.gridValueSize)-b.toPixels(0);for(b=+(a/b).toFixed(14);d&&1!==b;){var k=Math.pow(2,f);.75<
|
|
b&&1.25>b?d=!1:b>=1/k&&b<1/k*2?(d=!1,c=k):b<=k&&b>k/2&&(d=!1,c=1/k);f++}return a/c/b};w.prototype.getRealExtremes=function(){var a=this.chart,b=this.xAxis,d=this.yAxis;var f=b?b.toValue(a.plotLeft):0;b=b?b.toValue(a.plotLeft+a.plotWidth):0;var c=d?d.toValue(a.plotTop):0;a=d?d.toValue(a.plotTop+a.plotHeight):0;f>b&&(f=I([f,b],2),b=f[0],f=f[1]);c>a&&(c=I([c,a],2),a=c[0],c=c[1]);return{minX:f,maxX:b,minY:c,maxY:a}};w.prototype.onDrillToCluster=function(a){(a.point||a.target).firePointEvent("drillToCluster",
|
|
a,function(a){var b=a.point||a.target,f=b.series.xAxis,c=b.series.yAxis,k=b.series.chart;if((b.series.options.cluster||{}).drillToCluster&&b.clusteredData){var h=b.clusteredData.map(function(a){return a.x}).sort(function(a,b){return a-b});var m=b.clusteredData.map(function(a){return a.y}).sort(function(a,b){return a-b});b=h[0];var t=h[h.length-1];h=m[0];var g=m[m.length-1];m=Math.abs(.1*(t-b));var l=Math.abs(.1*(g-h));k.pointer.zoomX=!0;k.pointer.zoomY=!0;b>t&&(t=I([t,b],2),b=t[0],t=t[1]);h>g&&(g=
|
|
I([g,h],2),h=g[0],g=g[1]);k.zoom({originalEvent:a,xAxis:[{axis:f,min:b-m,max:t+m}],yAxis:[{axis:c,min:h-l,max:g+l}]})}})};w.prototype.getClusterDistancesFromPoint=function(a,b,d){var f=this.xAxis,c=this.yAxis,k=[],h;for(h=0;h<a.length;h++){var m=Math.sqrt(Math.pow(f.toPixels(b)-f.toPixels(a[h].posX),2)+Math.pow(c.toPixels(d)-c.toPixels(a[h].posY),2));k.push({clusterIndex:h,distance:m})}return k.sort(function(a,b){return a.distance-b.distance})};w.prototype.getPointsState=function(a,b,d){b=b?O(b,d):
|
|
[];d=O(a,d);var f={},c;G=[];a.clusters.forEach(function(a){f[a.stateId]={x:a.x,y:a.y,id:a.stateId,point:a.point,parentsId:[]}});a.noise.forEach(function(a){f[a.stateId]={x:a.x,y:a.y,id:a.stateId,point:a.point,parentsId:[]}});for(c=0;c<d.length;c++){a=d[c];var k=b[c];a&&k&&a.parentStateId&&k.parentStateId&&f[a.parentStateId]&&-1===f[a.parentStateId].parentsId.indexOf(k.parentStateId)&&(f[a.parentStateId].parentsId.push(k.parentStateId),-1===G.indexOf(k.parentStateId)&&G.push(k.parentStateId))}return f};
|
|
w.prototype.markerClusterAlgorithms={grid:function(a,b,d,f){var c=this.xAxis,k=this.yAxis,h={},m=this.getGridOffset(),t;f=this.getScaledGridSize(f);for(t=0;t<a.length;t++){var g=c.toPixels(a[t])-m.plotLeft;var l=k.toPixels(b[t])-m.plotTop;g=Math.floor(g/f);l=Math.floor(l/f);l=l+"-"+g;h[l]||(h[l]=[]);h[l].push({dataIndex:d[t],x:a[t],y:b[t]})}return h},kmeans:function(a,b,d,f){var c=[],k=[],h={},m=f.processedDistance||C.layoutAlgorithm.distance,t=f.iterations,g=0,l=!0,p=0,q=0;var u=[];var e;f.processedGridSize=
|
|
f.processedDistance;p=this.markerClusterAlgorithms?this.markerClusterAlgorithms.grid.call(this,a,b,d,f):{};for(e in p)1<p[e].length&&(u=H(p[e]),c.push({posX:u.x,posY:u.y,oldX:0,oldY:0,startPointsLen:p[e].length,points:[]}));for(;l;){c.map(function(a){a.points.length=0;return a});for(l=k.length=0;l<a.length;l++)p=a[l],q=b[l],u=this.getClusterDistancesFromPoint(c,p,q),u.length&&u[0].distance<m?c[u[0].clusterIndex].points.push({x:p,y:q,dataIndex:d[l]}):k.push({x:p,y:q,dataIndex:d[l]});for(e=0;e<c.length;e++)1===
|
|
c[e].points.length&&(u=this.getClusterDistancesFromPoint(c,c[e].points[0].x,c[e].points[0].y),u[1].distance<m&&(c[u[1].clusterIndex].points.push(c[e].points[0]),c[u[0].clusterIndex].points.length=0));l=!1;for(e=0;e<c.length;e++)if(u=H(c[e].points),c[e].oldX=c[e].posX,c[e].oldY=c[e].posY,c[e].posX=u.x,c[e].posY=u.y,c[e].posX>c[e].oldX+1||c[e].posX<c[e].oldX-1||c[e].posY>c[e].oldY+1||c[e].posY<c[e].oldY-1)l=!0;t&&(l=g<t-1);g++}c.forEach(function(a,b){h["cluster"+b]=a.points});k.forEach(function(a,b){h["noise"+
|
|
b]=[a]});return h},optimizedKmeans:function(a,b,d,f){var c=this.xAxis,k=this.yAxis,h=f.processedDistance||C.layoutAlgorithm.gridSize,m={},t=this.getRealExtremes(),g=(this.options.cluster||{}).marker,l,p,q;!this.markerClusterInfo||this.initMaxX&&this.initMaxX<t.maxX||this.initMinX&&this.initMinX>t.minX||this.initMaxY&&this.initMaxY<t.maxY||this.initMinY&&this.initMinY>t.minY?(this.initMaxX=t.maxX,this.initMinX=t.minX,this.initMaxY=t.maxY,this.initMinY=t.minY,m=this.markerClusterAlgorithms?this.markerClusterAlgorithms.kmeans.call(this,
|
|
a,b,d,f):{},this.baseClusters=null):(this.baseClusters||(this.baseClusters={clusters:this.markerClusterInfo.clusters,noise:this.markerClusterInfo.noise}),this.baseClusters.clusters.forEach(function(a){a.pointsOutside=[];a.pointsInside=[];a.data.forEach(function(b){p=Math.sqrt(Math.pow(c.toPixels(b.x)-c.toPixels(a.x),2)+Math.pow(k.toPixels(b.y)-k.toPixels(a.y),2));q=a.clusterZone&&a.clusterZone.marker&&a.clusterZone.marker.radius?a.clusterZone.marker.radius:g&&g.radius?g.radius:C.marker.radius;l=0<=
|
|
h-q?h-q:q;p>q+l&&B(a.pointsOutside)?a.pointsOutside.push(b):B(a.pointsInside)&&a.pointsInside.push(b)});a.pointsInside.length&&(m[a.id]=a.pointsInside);a.pointsOutside.forEach(function(b,f){m[a.id+"_noise"+f]=[b]})}),this.baseClusters.noise.forEach(function(a){m[a.id]=a.data}));return m}};w.prototype.preventClusterCollisions=function(a){var b=this.xAxis,d=this.yAxis,f=I(a.key.split("-").map(parseFloat),2),c=f[0],k=f[1],h=a.gridSize,m=a.groupedData,t=a.defaultRadius,g=a.clusterRadius,l=k*h,p=c*h,q=
|
|
b.toPixels(a.x),u=d.toPixels(a.y);f=[];var e=0,n=0,r=(this.options.cluster||{}).marker,J=(this.options.cluster||{}).zones,v=this.getGridOffset(),w,x,z,A,D,F,G;q-=v.plotLeft;u-=v.plotTop;for(z=1;5>z;z++){var E=z%2?-1:1;var y=3>z?-1:1;E=Math.floor((q+E*g)/h);y=Math.floor((u+y*g)/h);E=[y+"-"+E,y+"-"+k,c+"-"+E];for(y=0;y<E.length;y++)-1===f.indexOf(E[y])&&E[y]!==a.key&&f.push(E[y])}f.forEach(function(a){if(m[a]){m[a].posX||(F=H(m[a]),m[a].posX=F.x,m[a].posY=F.y);w=b.toPixels(m[a].posX||0)-v.plotLeft;
|
|
x=d.toPixels(m[a].posY||0)-v.plotTop;var f=I(a.split("-").map(parseFloat),2);D=f[0];A=f[1];if(J)for(e=m[a].length,z=0;z<J.length;z++)e>=J[z].from&&e<=J[z].to&&(n=B((J[z].marker||{}).radius)?J[z].marker.radius||0:r&&r.radius?r.radius:C.marker.radius);1<m[a].length&&0===n&&r&&r.radius?n=r.radius:1===m[a].length&&(n=t);G=g+n;n=0;A!==k&&Math.abs(q-w)<G&&(q=0>A-k?l+g:l+h-g);D!==c&&Math.abs(u-x)<G&&(u=0>D-c?p+g:p+h-g)}});f=b.toValue(q+v.plotLeft);y=d.toValue(u+v.plotTop);m[a.key].posX=f;m[a.key].posY=y;
|
|
return{x:f,y:y}};w.prototype.isValidGroupedDataObject=function(a){var b=!1,d;if(!M(a))return!1;R(a,function(a){b=!0;if(U(a)&&a.length)for(d=0;d<a.length;d++){if(!M(a[d])||!a[d].x||!a[d].y){b=!1;break}}else b=!1});return b};w.prototype.getClusteredData=function(a,b){var d=[],f=[],c=[],k=[],h=[],m=0,t=Math.max(2,b.minimumClusterSize||2),g,l;if(L(b.layoutAlgorithm.type)&&!this.isValidGroupedDataObject(a))return T("Highcharts marker-clusters module: The custom algorithm result is not valid!",!1,this.chart),
|
|
!1;for(l in a)if(a[l].length>=t){var p=a[l];var q=Math.random().toString(36).substring(2,7)+"-"+X++;var u=p.length;if(b.zones)for(g=0;g<b.zones.length;g++)if(u>=b.zones[g].from&&u<=b.zones[g].to){var e=b.zones[g];e.zoneIndex=g;var n=b.zones[g].marker;var r=b.zones[g].className}var v=H(p);"grid"!==b.layoutAlgorithm.type||b.allowOverlap?v={x:v.x,y:v.y}:(g=this.options.marker||{},v=this.preventClusterCollisions({x:v.x,y:v.y,key:l,groupedData:a,gridSize:this.getScaledGridSize(b.layoutAlgorithm),defaultRadius:g.radius||
|
|
3+(g.lineWidth||0),clusterRadius:n&&n.radius?n.radius:(b.marker||{}).radius||C.marker.radius}));for(g=0;g<u;g++)p[g].parentStateId=q;c.push({x:v.x,y:v.y,id:l,stateId:q,index:m,data:p,clusterZone:e,clusterZoneClassName:r});d.push(v.x);f.push(v.y);h.push({options:{formatPrefix:"cluster",dataLabels:b.dataLabels,marker:N(b.marker,{states:b.states},n||{})}});if(this.options.data&&this.options.data.length)for(g=0;g<u;g++)M(this.options.data[p[g].dataIndex])&&(p[g].options=this.options.data[p[g].dataIndex]);
|
|
m++;n=null}else for(g=0;g<a[l].length;g++)p=a[l][g],q=Math.random().toString(36).substring(2,7)+"-"+X++,u=((this.options||{}).data||[])[p.dataIndex],d.push(p.x),f.push(p.y),p.parentStateId=q,k.push({x:p.x,y:p.y,id:l,stateId:q,index:m,data:a[l]}),q=u&&"object"===typeof u&&!U(u)?N(u,{x:p.x,y:p.y}):{userOptions:u,x:p.x,y:p.y},h.push({options:q}),m++;return{clusters:c,noise:k,groupedXData:d,groupedYData:f,groupMap:h}};w.prototype.destroyClusteredData=function(){(this.markerClusterSeriesData||[]).forEach(function(a){a&&
|
|
a.destroy&&a.destroy()});this.markerClusterSeriesData=null};w.prototype.hideClusteredData=function(){var a=this.markerClusterSeriesData,b=((this.markerClusterInfo||{}).pointsState||{}).oldState||{},d=G.map(function(a){return(b[a].point||{}).id||""});(a||[]).forEach(function(a){a&&-1!==d.indexOf(a.id)?(a.graphic&&a.graphic.hide(),a.dataLabel&&a.dataLabel.hide()):a&&a.destroy&&a.destroy()})};w.prototype.generatePoints=function(){var a=this,b=a.chart,d=a.xAxis,f=a.yAxis,c=a.options.cluster,k=a.getRealExtremes(),
|
|
h=[],m=[],t=[],g,l,p,q;if(c&&c.enabled&&a.xData&&a.yData&&!b.polar){var u=c.layoutAlgorithm.type;var e=c.layoutAlgorithm;e.processedGridSize=V(e.gridSize||C.layoutAlgorithm.gridSize,b.plotWidth);e.processedDistance=V(e.distance||C.layoutAlgorithm.distance,b.plotWidth);b=e.kmeansThreshold||C.layoutAlgorithm.kmeansThreshold;d=Math.abs(d.toValue(e.processedGridSize/2)-d.toValue(0));f=Math.abs(f.toValue(e.processedGridSize/2)-f.toValue(0));for(q=0;q<a.xData.length;q++){if(!a.dataMaxX)if(B(n)&&B(g)&&B(r)&&
|
|
B(l))D(a.yData[q])&&D(r)&&D(l)&&(n=Math.max(a.xData[q],n),g=Math.min(a.xData[q],g),r=Math.max(a.yData[q]||r,r),l=Math.min(a.yData[q]||l,l));else{var n=g=a.xData[q];var r=l=a.yData[q]}a.xData[q]>=k.minX-d&&a.xData[q]<=k.maxX+d&&(a.yData[q]||k.minY)>=k.minY-f&&(a.yData[q]||k.maxY)<=k.maxY+f&&(h.push(a.xData[q]),m.push(a.yData[q]),t.push(q))}B(n)&&B(g)&&D(r)&&D(l)&&(a.dataMaxX=n,a.dataMinX=g,a.dataMaxY=r,a.dataMinY=l);k=L(u)?u:a.markerClusterAlgorithms?u&&a.markerClusterAlgorithms[u]?a.markerClusterAlgorithms[u]:
|
|
h.length<b?a.markerClusterAlgorithms.kmeans:a.markerClusterAlgorithms.grid:function(){return!1};e=(h=k.call(this,h,m,t,e))?a.getClusteredData(h,c):h;c.animation&&a.markerClusterInfo&&a.markerClusterInfo.pointsState&&a.markerClusterInfo.pointsState.oldState?(Y(a.markerClusterInfo.pointsState.oldState),h=a.markerClusterInfo.pointsState.newState):h={};m=a.xData.length;t=a.markerClusterInfo;e&&(a.processedXData=e.groupedXData,a.processedYData=e.groupedYData,a.hasGroupedData=!0,a.markerClusterInfo=e,a.groupMap=
|
|
e.groupMap);W.apply(this);e&&a.markerClusterInfo&&((a.markerClusterInfo.clusters||[]).forEach(function(b){p=a.points[b.index];p.isCluster=!0;p.clusteredData=b.data;p.clusterPointsAmount=b.data.length;b.point=p;A(p,"click",a.onDrillToCluster)}),(a.markerClusterInfo.noise||[]).forEach(function(b){b.point=a.points[b.index]}),c.animation&&a.markerClusterInfo&&(a.markerClusterInfo.pointsState={oldState:h,newState:a.getPointsState(e,t,m)}),c.animation?this.hideClusteredData():this.destroyClusteredData(),
|
|
this.markerClusterSeriesData=this.hasGroupedData?this.points:null)}else W.apply(this)};A(r.Chart,"render",function(){(this.series||[]).forEach(function(a){if(a.markerClusterInfo){var b=((a.markerClusterInfo||{}).pointsState||{}).oldState;(a.options.cluster||{}).animation&&a.markerClusterInfo&&0===a.chart.pointer.pinchDown.length&&"pan"!==(a.xAxis.eventArgs||{}).trigger&&b&&Object.keys(b).length&&(a.markerClusterInfo.clusters.forEach(function(b){a.animateClusterPoint(b)}),a.markerClusterInfo.noise.forEach(function(b){a.animateClusterPoint(b)}))}})});
|
|
A(x,"update",function(){if(this.dataGroup)return T("Highcharts marker-clusters module: Running `Point.update` when point belongs to clustered series is not supported.",!1,this.series.chart),!1});A(v,"destroy",w.prototype.destroyClusteredData);A(v,"afterRender",function(){var a=(this.options.cluster||{}).drillToCluster;this.markerClusterInfo&&this.markerClusterInfo.clusters&&this.markerClusterInfo.clusters.forEach(function(b){b.point&&b.point.graphic&&(b.point.graphic.addClass("highcharts-cluster-point"),
|
|
a&&b.point&&(b.point.graphic.css({cursor:"pointer"}),b.point.dataLabel&&b.point.dataLabel.css({cursor:"pointer"})),B(b.clusterZone)&&b.point.graphic.addClass(b.clusterZoneClassName||"highcharts-cluster-zone-"+b.clusterZone.zoneIndex))})});A(x,"drillToCluster",function(a){var b=(((a.point||a.target).series.options.cluster||{}).events||{}).drillToCluster;L(b)&&b.call(this,a)});A(r.Axis,"setExtremes",function(){var a=this.chart,b=0,d;a.series.forEach(function(a){a.markerClusterInfo&&(d=S((a.options.cluster||
|
|
{}).animation),b=d.duration||0)});F(function(){a.tooltip&&a.tooltip.destroy()},b)})});x(r,"masters/modules/marker-clusters.src.js",[],function(){})});
|
|
//# sourceMappingURL=marker-clusters.js.map
|