mirror of https://gitee.com/antv-l7/antv-l7
fix(source): import supercluster
This commit is contained in:
parent
8e4b4d31ae
commit
e69f860045
|
@ -1,5 +1,5 @@
|
||||||
import Interaction from './base';
|
import Interaction from './base';
|
||||||
import throttle from '@antv/util/src/throttle.js';
|
import { throttle } from '@antv/util';
|
||||||
export default class Hash extends Interaction {
|
export default class Hash extends Interaction {
|
||||||
constructor(cfg) {
|
constructor(cfg) {
|
||||||
super({
|
super({
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import Supercluster from 'supercluster';
|
import Supercluster from 'supercluster/dist/supercluster';
|
||||||
export function cluster(data, option) {
|
export function cluster(data, option) {
|
||||||
const { radius = 80, maxZoom = 18, minZoom = 0, field, zoom = 2 } = option;
|
const { radius = 80, maxZoom = 18, minZoom = 0, field, zoom = 2 } = option;
|
||||||
if (data.pointIndex) {
|
if (data.pointIndex) {
|
||||||
|
|
Loading…
Reference in New Issue