From e69f8600450d255855ab55ee01fdf5ad3e64c6f2 Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Wed, 10 Apr 2019 19:28:25 +0800 Subject: [PATCH] fix(source): import supercluster --- src/interaction/hash.js | 2 +- src/source/transform/cluster.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interaction/hash.js b/src/interaction/hash.js index b06188a6f7..04b1bcb86d 100644 --- a/src/interaction/hash.js +++ b/src/interaction/hash.js @@ -1,5 +1,5 @@ import Interaction from './base'; -import throttle from '@antv/util/src/throttle.js'; +import { throttle } from '@antv/util'; export default class Hash extends Interaction { constructor(cfg) { super({ diff --git a/src/source/transform/cluster.js b/src/source/transform/cluster.js index 5a88bedd53..7385c32d92 100644 --- a/src/source/transform/cluster.js +++ b/src/source/transform/cluster.js @@ -1,4 +1,4 @@ -import Supercluster from 'supercluster'; +import Supercluster from 'supercluster/dist/supercluster'; export function cluster(data, option) { const { radius = 80, maxZoom = 18, minZoom = 0, field, zoom = 2 } = option; if (data.pointIndex) {