Skip to content

Commit

Permalink
Merge branch 'feat-layer-repaint' into 'master'
Browse files Browse the repository at this point in the history
Feat layer repaint

更新 supercluster 引入类型

See merge request !25
  • Loading branch information
lzxue committed Apr 10, 2019
2 parents 640e173 + ccc2dfd commit 3ed5337
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ $ npm run dev
$ npm run demos
```
visit online demo
http://site.alipay.net/datavis/L7/demos/index.html
https://antv.alipay.com/zh-cn/l7/1.x/demo/index.html

## How to Contribute
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"author": "https://github.com/orgs/antvis/people",
"license": "MIT",
"devDependencies": {
"@babel/cli": "~7.0.0",
"@babel/core": "~7.0.0",
"@babel/preset-env": "~7.1.0",
"@babel/cli": "^7.4.3",
"@babel/core": "~7.4.3",
"@babel/preset-env": "~7.4.3",
"babel-eslint": "~8.0.3",
"babel-loader": "~8.0.0",
"babel-plugin-transform-remove-strict-mode": "~0.0.2",
Expand Down Expand Up @@ -96,7 +96,7 @@
},
"dependencies": {
"@antv/g": "^3.1.3",
"@antv/util": "~1.2.5",
"@antv/util": "~2.0.1",
"@mapbox/tiny-sdf": "^1.1.0",
"@turf/bbox": "^6.0.1",
"@turf/clean-coords": "^6.0.1",
Expand Down
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
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Utils from '@antv/util';
import * as Utils from '@antv/util';

const Util = Utils.mix({}, Utils, {
assign: Utils.mix, // simple mix
Expand Down

0 comments on commit 3ed5337

Please sign in to comment.