chore(legacy-plugin-chart-map-box): bump supercluster to v8 (#30305)

This commit is contained in:
Birk Skyum
2024-09-26 05:18:14 +02:00
committed by GitHub
parent 20b1eabb9b
commit 0fdcd8b27e
3 changed files with 33 additions and 27 deletions

View File

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import supercluster from 'supercluster';
import Supercluster from 'supercluster';
import { DEFAULT_POINT_RADIUS, DEFAULT_MAX_ZOOM } from './MapBox';
const NOOP = () => {};
@@ -72,7 +72,7 @@ export default function transformProps(chartProps) {
/* eslint-enable no-param-reassign */
};
}
const clusterer = supercluster(opts);
const clusterer = new Supercluster(opts);
clusterer.load(geoJSON.features);
return {