@mappedin/marker-cluster 6.0.1-beta.42 → 6.0.1-beta.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/esm/index.js +1 -1
  2. package/package.json +2 -2
package/lib/esm/index.js CHANGED
@@ -1 +1 @@
1
- var et=Object.defineProperty;var rt=n=>{throw TypeError(n)};var ct=(n,t,r)=>t in n?et(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r;var i=(n,t)=>et(n,"name",{value:t,configurable:!0});var d=(n,t,r)=>ct(n,typeof t!="symbol"?t+"":t,r),st=(n,t,r)=>t.has(n)||rt("Cannot "+r);var e=(n,t,r)=>(st(n,t,"read from private field"),r?r.call(n):t.get(n)),a=(n,t,r)=>t.has(n)?rt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,r),f=(n,t,r,s)=>(st(n,t,"write to private field"),s?s.call(n,r):t.set(n,r),r);var h={env:{NODE_ENV:"production",npm_package_version:"6.0.1-beta.42"}};var S="[MappedinJS]";var mt={logState:h.env.NODE_ENV==="test"?3:0,log(...n){this.logState<=0&&console.log(S,...n)},warn(...n){this.logState<=1&&console.warn(S,...n)},error(...n){this.logState<=2&&console.error(S,...n)},assert(...n){console.assert(...n)},time(n){console.time(n)},timeEnd(n){console.timeEnd(n)},throw(n,t){throw new Error("".concat(S," ").concat(n),t)}},G=mt;var X=class X extends Error{};i(X,"InvalidTokenError");var q=X;q.prototype.name="InvalidTokenError";function nt(n,t,r=!1){let s=null,o=0;return function(...l){o++,o===1&&r===!0&&n(...l);let m=i(()=>{(!r||o>1)&&n(...l),s=null,o=0},"later");clearTimeout(s),s=setTimeout(m,t)}}i(nt,"debounce");var H=[0,4,6,8,10],W=i(()=>{let n=new Array(16).fill(0),t=Math.random()*4294967296;for(let s=0;s<n.length;s++)s>0&&(s&3)===0&&(t=Math.random()*4294967296),n[s]=t>>>((s&3)<<3)&255;let r=n.map(s=>s.toString(16).padStart(2,"0"));return r[6]="4"+r[6][1],r[8]=["8","9","a","b"].includes(r[7][0])?r[7]:"a"+r[7][1],H.map((s,o)=>r.slice(s,o===H.length-1?void 0:H[o+1]).join("")).join("-")},"randomId");var L=["red","blue","green","purple","orange","pink","brown","gray","black","magenta","cyan","silver","maroon","teal","aqua"],it=i((n,t,r)=>'<div style="background-color:'.concat(t,";color:white;width:").concat(r,"px;height:").concat(r,"px;border-radius:50%;text-align:center;line-height:").concat(r,"px;border:1px solid white;font-size:").concat(Math.floor(r*.7),'px;">').concat(n,"</div>"),"debugMarkerFn");import{Coordinate as ot}from"@mappedin/mappedin-js";var _=i(n=>parseFloat(n.toFixed(8)),"trimCoordValue"),at=i((n,t)=>{if(n.length===0)return new ot({latitude:0,longitude:0});let r=n.reduce((o,l)=>o+l.latitude,0)/n.length,s=n.reduce((o,l)=>o+l.longitude,0)/n.length;return new ot({latitude:_(r),longitude:_(s),floorId:t!=null?t:n[0].floorId})},"averageCoords"),ut=i((n,t)=>n.length===0?"":[...n.map(r=>r.id).sort(),_(t.latitude),_(t.longitude),t.floorId].filter(r=>r!=null).join("-"),"getClusterId"),lt=i((n,t)=>{if(t<=0)throw new Error("Buffer must be greater than 0");return{minX:n.x-t/2,minY:n.y-t/2,maxX:n.x+t/2,maxY:n.y+t/2}},"bufferPoint");import ft from"rbush";var B=i(n=>"".concat(n.x,",").concat(n.y),"serializePoint"),g,Z=class Z extends ft{constructor(){super(...arguments);a(this,g,new Map);d(this,"load",i(r=>{for(let s of r)e(this,g).set(B(s),s);return super.load(r)},"load"));d(this,"insert",i(r=>(e(this,g).set(B(r),r),super.insert(r)),"insert"));d(this,"remove",i(r=>(e(this,g).delete(B(r)),super.remove(r)),"remove"));d(this,"clear",i(()=>(e(this,g).clear(),super.clear()),"clear"));d(this,"peek",i(()=>e(this,g).values().next().value,"peek"));d(this,"has",i(r=>e(this,g).has(B(r)),"has"));d(this,"find",i(r=>{for(let s of e(this,g).values())if(r(s))return s},"find"));d(this,"toBBox",i(r=>({minX:r.x,minY:r.y,maxX:r.x,maxY:r.y}),"toBBox"));d(this,"compareMinX",i((r,s)=>r.x-s.x,"compareMinX"));d(this,"compareMinY",i((r,s)=>r.y-s.y,"compareMinY"));d(this,"equals",i((r,s)=>r.x===s.x&&r.y===s.y,"equals"))}get size(){return e(this,g).size}};g=new WeakMap,i(Z,"PointRBush");var w=Z;var N,b,M,y,x,V,R,Q=class Q{constructor(t){a(this,N);a(this,b,{threshold:100});a(this,M,new w);a(this,y,new Map);a(this,x,[]);a(this,V,i(()=>[...e(this,y).values()].map(t=>({...e(this,N).getScreenCoordinateFromCoordinate(t.target.anchorTarget),markerId:t.id})),"#getScreenCoordinates"));a(this,R,i(t=>{let r=[t];e(this,M).remove(t);let s=e(this,M).search(lt(t,e(this,b).threshold));if(s.length===0)return r;r.push(...s);for(let o of s)e(this,M).remove(o);return r},"#resolveNeighbours"));f(this,N,t)}setOptions(t){if(t.threshold!=null&&t.threshold<=0)throw new Error("Cluster threshold must be greater than 0");f(this,b,{...e(this,b),...t})}load(t){e(this,y).clear();for(let r of t)e(this,y).set(r.id,r)}getClusters(){var l;let t=e(this,V).call(this);e(this,M).clear(),e(this,M).load(t);let r=e(this,M),s=[],o=[];for(;r.size>0;){let m=(l=r.find(k=>e(this,x).includes(k)))!=null?l:r.peek();if(m==null)break;o.push(m);let dt=e(this,R).call(this,m).map(k=>e(this,y).get(k.markerId)).filter(k=>k!=null);s.push(dt)}return f(this,x,o),s}destroy(){e(this,y).clear(),e(this,M).clear(),f(this,x,[])}};N=new WeakMap,b=new WeakMap,M=new WeakMap,y=new WeakMap,x=new WeakMap,V=new WeakMap,R=new WeakMap,i(Q,"ScreenDistanceClustering");var C=Q;var E,p,c,u,A,D,F,$,Y,J,U,K,P,T,I,O,v,tt=class tt{constructor(t,r,s){d(this,"id",W());a(this,E);a(this,p);a(this,c);a(this,u,{singleMarkersById:new Map,clustersById:new Map,clusterMarkersByClusterId:new Map,debugMarkersByClusterId:new Map,debugColorsByClusterId:new Map});a(this,A);a(this,D);a(this,F,i(()=>[...e(this,u).singleMarkersById.values()],"#getMarkers"));a(this,$,i(t=>{e(this,p).updateState(t,{enabled:!1})},"#hideMarker"));a(this,Y,i(t=>{e(this,p).updateState(t,{enabled:!0})},"#showMarker"));a(this,J,i(()=>{let t=e(this,c).algorithm;return t.load(e(this,F).call(this)),t.getClusters()},"#getClusteredMarkers"));a(this,U,i(t=>{var s;let r=at(t.map(o=>o.target.anchorTarget),(s=e(this,c).floor)==null?void 0:s.id);return{id:ut(t,r),markers:t,center:r}},"#createCluster"));a(this,K,i(t=>{var o;let r=(o=e(this,u).debugColorsByClusterId.get(t.id))!=null?o:L[0],s=e(this,A).call(this,t);s!=null&&e(this,u).clusterMarkersByClusterId.set(t.id,s);for(let l of t.markers)e(this,c).debug&&(l.contentEl.style.outline="2px solid ".concat(r)),e(this,c).hideClusteredMarkers&&e(this,$).call(this,l);if(e(this,c).debug){(s==null?void 0:s.contentEl.firstChild)instanceof HTMLElement&&(s.contentEl.firstChild.style.opacity="0.25");let l=e(this,p).Markers.add(t.center,it(t.markers.length.toString(),r,20),{rank:"always-visible",zIndex:99});e(this,u).debugMarkersByClusterId.set(t.id,l)}},"#addClusterMarkers"));a(this,P,i(t=>{let r=e(this,u).clusterMarkersByClusterId.get(t.id);if(r!=null&&(e(this,p).Markers.remove(r),e(this,u).clusterMarkersByClusterId.delete(t.id)),e(this,c).debug){let s=e(this,u).debugMarkersByClusterId.get(t.id);s!=null&&(e(this,p).Markers.remove(s),e(this,u).debugMarkersByClusterId.delete(t.id))}for(let s of t.markers)e(this,Y).call(this,s)},"#removeClusterMarkers"));a(this,T,i(()=>{let t=new Map(e(this,u).clustersById),r=[],s=e(this,J).call(this);for(let o=0;o<s.length;o++){let l=s[o];if(l.length<e(this,c).minSize)continue;let m=e(this,U).call(this,l);e(this,u).clustersById.has(m.id)?t.delete(m.id):r.push(m)}for(let o of t.values())e(this,P).call(this,o),e(this,u).clustersById.delete(o.id),e(this,c).debug&&e(this,u).debugColorsByClusterId.delete(o.id);for(let o of r){if(e(this,c).debug){let l=L[Math.floor(Math.random()*L.length)];e(this,u).debugColorsByClusterId.set(o.id,l)}e(this,K).call(this,o),e(this,u).clustersById.set(o.id,o)}},"#updateImmediately"));a(this,I,i(()=>{e(this,c).debounce===0?e(this,T).call(this):e(this,D).call(this)},"#update"));a(this,O,i(()=>{e(this,I).call(this)},"#handleCameraChange"));a(this,v,i(()=>{e(this,T).call(this)},"#handleFocus"));d(this,"add",i(t=>{var r,s;if(e(this,c).floor==null)e(this,c).floor=(s=e(this,E).getById("floor",(r=t.target.anchorTarget.floorId)!=null?r:""))!=null?s:null;else if(e(this,c).floor.id!==t.target.anchorTarget.floorId)throw new Error("Cannot cluster markers on different floors!");e(this,u).singleMarkersById.set(t.id,t),e(this,I).call(this)},"add"));d(this,"remove",i(t=>{if(!e(this,u).singleMarkersById.has(t.id)){G.log("Cannot remove marker ".concat(t.id," because it is not in the cluster!"));return}e(this,u).singleMarkersById.delete(t.id),e(this,I).call(this)},"remove"));d(this,"has",i(t=>e(this,u).singleMarkersById.has(t.id),"has"));d(this,"destroy",i(()=>{e(this,c).algorithm.destroy(),e(this,p).off("camera-change",e(this,O)),window.removeEventListener("focus",e(this,v));for(let[,t]of e(this,u).clustersById)e(this,P).call(this,t);for(let t of Object.values(e(this,u)))if(t instanceof Map)t.clear();else throw new Error("Encountered unexpected data type in cache! Potentially failed to clean up MarkerCluster.")},"destroy"));var l,m;let o;if((s==null?void 0:s.algorithm)==null){let z=new C(t);z.setOptions((l=s==null?void 0:s.algorithmOptions)!=null?l:{}),o=z}else o=s.algorithm,o.setOptions((m=s==null?void 0:s.algorithmOptions)!=null?m:{});if(f(this,c,{floor:null,minSize:2,debounce:50,debug:!1,hideClusteredMarkers:!0,...s,algorithm:o}),f(this,p,t),f(this,E,Object.values(e(this,p).getMapData())[0]),e(this,E)==null)throw new Error("No map data found in MapView!");f(this,A,r),f(this,D,nt(e(this,T),e(this,c).debounce)),e(this,p).on("camera-change",e(this,O)),window.addEventListener("focus",e(this,v))}get clusters(){return[...e(this,u).clustersById.values()]}};E=new WeakMap,p=new WeakMap,c=new WeakMap,u=new WeakMap,A=new WeakMap,D=new WeakMap,F=new WeakMap,$=new WeakMap,Y=new WeakMap,J=new WeakMap,U=new WeakMap,K=new WeakMap,P=new WeakMap,T=new WeakMap,I=new WeakMap,O=new WeakMap,v=new WeakMap,i(tt,"MarkerCluster");var j=tt;export{j as MarkerCluster,w as PointRBush,C as ScreenDistanceClustering};
1
+ var te=Object.defineProperty;var re=n=>{throw TypeError(n)};var de=(n,e,r)=>e in n?te(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var i=(n,e)=>te(n,"name",{value:e,configurable:!0});var c=(n,e,r)=>de(n,typeof e!="symbol"?e+"":e,r),se=(n,e,r)=>e.has(n)||re("Cannot "+r);var t=(n,e,r)=>(se(n,e,"read from private field"),r?r.call(n):e.get(n)),a=(n,e,r)=>e.has(n)?re("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r),f=(n,e,r,s)=>(se(n,e,"write to private field"),s?s.call(n,r):e.set(n,r),r);var h={env:{NODE_ENV:"production",npm_package_version:"6.0.1-beta.44"}};var z="[MappedinJS]";var me={logState:h.env.NODE_ENV==="test"?3:0,log(...n){this.logState<=0&&console.log(z,...n)},warn(...n){this.logState<=1&&console.warn(z,...n)},error(...n){this.logState<=2&&console.error(z,...n)},assert(...n){console.assert(...n)},time(n){console.time(n)},timeEnd(n){console.timeEnd(n)}},O=me;var W=class W extends Error{};i(W,"InvalidTokenError");var G=W;G.prototype.name="InvalidTokenError";function ne(n,e,r=!1){let s=null,o=0;return function(...l){o++,o===1&&r===!0&&n(...l);let m=i(()=>{(!r||o>1)&&n(...l),s=null,o=0},"later");clearTimeout(s),s=setTimeout(m,e)}}i(ne,"debounce");var X=[0,4,6,8,10],H=i(()=>{let n=new Array(16).fill(0),e=Math.random()*4294967296;for(let s=0;s<n.length;s++)s>0&&(s&3)===0&&(e=Math.random()*4294967296),n[s]=e>>>((s&3)<<3)&255;let r=n.map(s=>s.toString(16).padStart(2,"0"));return r[6]="4"+r[6][1],r[8]=["8","9","a","b"].includes(r[7][0])?r[7]:"a"+r[7][1],X.map((s,o)=>r.slice(s,o===X.length-1?void 0:X[o+1]).join("")).join("-")},"randomId");var L=["red","blue","green","purple","orange","pink","brown","gray","black","magenta","cyan","silver","maroon","teal","aqua"],ie=i((n,e,r)=>'<div style="background-color:'.concat(e,";color:white;width:").concat(r,"px;height:").concat(r,"px;border-radius:50%;text-align:center;line-height:").concat(r,"px;border:1px solid white;font-size:").concat(Math.floor(r*.7),'px;">').concat(n,"</div>"),"debugMarkerFn");import{Coordinate as oe}from"@mappedin/mappedin-js";var _=i(n=>parseFloat(n.toFixed(8)),"trimCoordValue"),ae=i((n,e)=>{if(n.length===0)return new oe({latitude:0,longitude:0});let r=n.reduce((o,l)=>o+l.latitude,0)/n.length,s=n.reduce((o,l)=>o+l.longitude,0)/n.length;return new oe({latitude:_(r),longitude:_(s),floorId:e!=null?e:n[0].floorId})},"averageCoords"),ue=i((n,e)=>n.length===0?"":[...n.map(r=>r.id).sort(),_(e.latitude),_(e.longitude),e.floorId].filter(r=>r!=null).join("-"),"getClusterId"),le=i((n,e)=>{if(e<=0)throw new Error("Buffer must be greater than 0");return{minX:n.x-e/2,minY:n.y-e/2,maxX:n.x+e/2,maxY:n.y+e/2}},"bufferPoint");import fe from"rbush";var B=i(n=>"".concat(n.x,",").concat(n.y),"serializePoint"),g,Z=class Z extends fe{constructor(){super(...arguments);a(this,g,new Map);c(this,"load",i(r=>{for(let s of r)t(this,g).set(B(s),s);return super.load(r)},"load"));c(this,"insert",i(r=>(t(this,g).set(B(r),r),super.insert(r)),"insert"));c(this,"remove",i(r=>(t(this,g).delete(B(r)),super.remove(r)),"remove"));c(this,"clear",i(()=>(t(this,g).clear(),super.clear()),"clear"));c(this,"peek",i(()=>t(this,g).values().next().value,"peek"));c(this,"has",i(r=>t(this,g).has(B(r)),"has"));c(this,"find",i(r=>{for(let s of t(this,g).values())if(r(s))return s},"find"));c(this,"toBBox",i(r=>({minX:r.x,minY:r.y,maxX:r.x,maxY:r.y}),"toBBox"));c(this,"compareMinX",i((r,s)=>r.x-s.x,"compareMinX"));c(this,"compareMinY",i((r,s)=>r.y-s.y,"compareMinY"));c(this,"equals",i((r,s)=>r.x===s.x&&r.y===s.y,"equals"))}get size(){return t(this,g).size}};g=new WeakMap,i(Z,"PointRBush");var w=Z;var N,b,M,y,x,V,R,Q=class Q{constructor(e){a(this,N);a(this,b,{threshold:100});a(this,M,new w);a(this,y,new Map);a(this,x,[]);a(this,V,i(()=>[...t(this,y).values()].map(e=>({...t(this,N).getScreenCoordinateFromCoordinate(e.target.anchorTarget),markerId:e.id})),"#getScreenCoordinates"));a(this,R,i(e=>{let r=[e];t(this,M).remove(e);let s=t(this,M).search(le(e,t(this,b).threshold));if(s.length===0)return r;r.push(...s);for(let o of s)t(this,M).remove(o);return r},"#resolveNeighbours"));f(this,N,e)}setOptions(e){if(e.threshold!=null&&e.threshold<=0)throw new Error("Cluster threshold must be greater than 0");f(this,b,{...t(this,b),...e})}load(e){t(this,y).clear();for(let r of e)t(this,y).set(r.id,r)}getClusters(){var l;let e=t(this,V).call(this);t(this,M).clear(),t(this,M).load(e);let r=t(this,M),s=[],o=[];for(;r.size>0;){let m=(l=r.find(I=>t(this,x).includes(I)))!=null?l:r.peek();if(m==null)break;o.push(m);let ce=t(this,R).call(this,m).map(I=>t(this,y).get(I.markerId)).filter(I=>I!=null);s.push(ce)}return f(this,x,o),s}destroy(){t(this,y).clear(),t(this,M).clear(),f(this,x,[])}};N=new WeakMap,b=new WeakMap,M=new WeakMap,y=new WeakMap,x=new WeakMap,V=new WeakMap,R=new WeakMap,i(Q,"ScreenDistanceClustering");var C=Q;var E,p,d,u,A,D,F,$,Y,J,U,K,P,T,k,S,v,ee=class ee{constructor(e,r,s){c(this,"id",H());a(this,E);a(this,p);a(this,d);a(this,u,{singleMarkersById:new Map,clustersById:new Map,clusterMarkersByClusterId:new Map,debugMarkersByClusterId:new Map,debugColorsByClusterId:new Map});a(this,A);a(this,D);a(this,F,i(()=>[...t(this,u).singleMarkersById.values()],"#getMarkers"));a(this,$,i(e=>{t(this,p).updateState(e,{enabled:!1})},"#hideMarker"));a(this,Y,i(e=>{t(this,p).updateState(e,{enabled:!0})},"#showMarker"));a(this,J,i(()=>{let e=t(this,d).algorithm;return e.load(t(this,F).call(this)),e.getClusters()},"#getClusteredMarkers"));a(this,U,i(e=>{var s;let r=ae(e.map(o=>o.target.anchorTarget),(s=t(this,d).floor)==null?void 0:s.id);return{id:ue(e,r),markers:e,center:r}},"#createCluster"));a(this,K,i(e=>{var o;let r=(o=t(this,u).debugColorsByClusterId.get(e.id))!=null?o:L[0],s=t(this,A).call(this,e);s!=null&&t(this,u).clusterMarkersByClusterId.set(e.id,s);for(let l of e.markers)t(this,d).debug&&(l.contentEl.style.outline="2px solid ".concat(r)),t(this,d).hideClusteredMarkers&&t(this,$).call(this,l);if(t(this,d).debug){(s==null?void 0:s.contentEl.firstChild)instanceof HTMLElement&&(s.contentEl.firstChild.style.opacity="0.25");let l=t(this,p).Markers.add(e.center,ie(e.markers.length.toString(),r,20),{rank:"always-visible",zIndex:99});t(this,u).debugMarkersByClusterId.set(e.id,l)}},"#addClusterMarkers"));a(this,P,i(e=>{let r=t(this,u).clusterMarkersByClusterId.get(e.id);if(r!=null&&(t(this,p).Markers.remove(r),t(this,u).clusterMarkersByClusterId.delete(e.id)),t(this,d).debug){let s=t(this,u).debugMarkersByClusterId.get(e.id);s!=null&&(t(this,p).Markers.remove(s),t(this,u).debugMarkersByClusterId.delete(e.id))}for(let s of e.markers)t(this,Y).call(this,s)},"#removeClusterMarkers"));a(this,T,i(()=>{let e=new Map(t(this,u).clustersById),r=[],s=t(this,J).call(this);for(let o=0;o<s.length;o++){let l=s[o];if(l.length<t(this,d).minSize)continue;let m=t(this,U).call(this,l);t(this,u).clustersById.has(m.id)?e.delete(m.id):r.push(m)}for(let o of e.values())t(this,P).call(this,o),t(this,u).clustersById.delete(o.id),t(this,d).debug&&t(this,u).debugColorsByClusterId.delete(o.id);for(let o of r){if(t(this,d).debug){let l=L[Math.floor(Math.random()*L.length)];t(this,u).debugColorsByClusterId.set(o.id,l)}t(this,K).call(this,o),t(this,u).clustersById.set(o.id,o)}},"#updateImmediately"));a(this,k,i(()=>{t(this,d).debounce===0?t(this,T).call(this):t(this,D).call(this)},"#update"));a(this,S,i(()=>{t(this,k).call(this)},"#handleCameraChange"));a(this,v,i(()=>{t(this,T).call(this)},"#handleFocus"));c(this,"add",i(e=>{var r,s;if(t(this,d).floor==null)t(this,d).floor=(s=t(this,E).getById("floor",(r=e.target.anchorTarget.floorId)!=null?r:""))!=null?s:null;else if(t(this,d).floor.id!==e.target.anchorTarget.floorId)throw new Error("Cannot cluster markers on different floors!");t(this,u).singleMarkersById.set(e.id,e),t(this,k).call(this)},"add"));c(this,"remove",i(e=>{if(!t(this,u).singleMarkersById.has(e.id)){O.log("Cannot remove marker ".concat(e.id," because it is not in the cluster!"));return}t(this,u).singleMarkersById.delete(e.id),t(this,k).call(this)},"remove"));c(this,"has",i(e=>t(this,u).singleMarkersById.has(e.id),"has"));c(this,"destroy",i(()=>{t(this,d).algorithm.destroy(),t(this,p).off("camera-change",t(this,S)),window.removeEventListener("focus",t(this,v));for(let[,e]of t(this,u).clustersById)t(this,P).call(this,e);for(let e of Object.values(t(this,u)))if(e instanceof Map)e.clear();else throw new Error("Encountered unexpected data type in cache! Potentially failed to clean up MarkerCluster.")},"destroy"));var l,m;let o;if((s==null?void 0:s.algorithm)==null){let q=new C(e);q.setOptions((l=s==null?void 0:s.algorithmOptions)!=null?l:{}),o=q}else o=s.algorithm,o.setOptions((m=s==null?void 0:s.algorithmOptions)!=null?m:{});if(f(this,d,{floor:null,minSize:2,debounce:50,debug:!1,hideClusteredMarkers:!0,...s,algorithm:o}),f(this,p,e),f(this,E,Object.values(t(this,p).getMapData())[0]),t(this,E)==null)throw new Error("No map data found in MapView!");f(this,A,r),f(this,D,ne(t(this,T),t(this,d).debounce)),t(this,p).on("camera-change",t(this,S)),window.addEventListener("focus",t(this,v))}get clusters(){return[...t(this,u).clustersById.values()]}};E=new WeakMap,p=new WeakMap,d=new WeakMap,u=new WeakMap,A=new WeakMap,D=new WeakMap,F=new WeakMap,$=new WeakMap,Y=new WeakMap,J=new WeakMap,U=new WeakMap,K=new WeakMap,P=new WeakMap,T=new WeakMap,k=new WeakMap,S=new WeakMap,v=new WeakMap,i(ee,"MarkerCluster");var j=ee;export{j as MarkerCluster,w as PointRBush,C as ScreenDistanceClustering};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/marker-cluster",
3
- "version": "6.0.1-beta.42",
3
+ "version": "6.0.1-beta.44",
4
4
  "homepage": "https://developer.mappedin.com/",
5
5
  "private": false,
6
6
  "main": "lib/esm/index.js",
@@ -30,5 +30,5 @@
30
30
  "volta": {
31
31
  "extends": "../../package.json"
32
32
  },
33
- "gitHead": "e839267a471e8db3dabbc18328468d24dee9b1a0"
33
+ "gitHead": "e6979187574d48e80e62ae6797084dc06092e904"
34
34
  }