Skip to content

Commit

Permalink
fix(source): import supercluster
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Apr 10, 2019
1 parent 14b261c commit b00bcaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/interaction/hash.js
Original file line number Diff line number Diff line change
@@ -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({
Expand Down
2 changes: 1 addition & 1 deletion src/source/transform/cluster.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit b00bcaf

Please sign in to comment.