fix(source): import supercluster

This commit is contained in:
thinkinggis 2019-04-10 19:28:25 +08:00
parent 14b261c2bc
commit b00bcaf150
2 changed files with 2 additions and 2 deletions

View File

@ -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({

View File

@ -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) {