mirror of https://gitee.com/antv-l7/antv-l7
chore: publish
This commit is contained in:
parent
b1d60a888c
commit
d5e11774b7
|
@ -35,8 +35,7 @@ const control = new L7.Draw.DrawControl(scene, option);
|
|||
|
||||
#### scene
|
||||
|
||||
scene 对象, 绘制控件需要传入scene实例
|
||||
|
||||
scene 对象, 绘制控件需要传入 scene 实例
|
||||
|
||||
#### options
|
||||
|
||||
|
|
|
@ -65,21 +65,22 @@ layer.source(data);
|
|||
```javascript
|
||||
layer.setData(data);
|
||||
```
|
||||
|
||||
### 方法
|
||||
|
||||
#### getClustersLeaves(cluster_id)
|
||||
|
||||
聚合图使用,获取聚合节点的原始数据
|
||||
|
||||
参数:
|
||||
id 聚合节点的 cluster_id
|
||||
参数:
|
||||
id 聚合节点的 cluster_id
|
||||
|
||||
```javascript
|
||||
layer.on('click', (e) => {
|
||||
console.log(source.getClustersLeaves(e.feature.cluster_id));
|
||||
});
|
||||
layer.on('click', (e) => {
|
||||
console.log(source.getClustersLeaves(e.feature.cluster_id));
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
### 方法
|
||||
|
||||
#### getClustersLeaves(cluster_id)
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"message": "chore: publish"
|
||||
}
|
||||
},
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"publishConfig": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7-component",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
@ -24,8 +24,8 @@
|
|||
"author": "lzxue",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@antv/l7-core": "^2.2.1",
|
||||
"@antv/l7-utils": "^2.2.1",
|
||||
"@antv/l7-core": "2.2.2",
|
||||
"@antv/l7-utils": "2.2.2",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"eventemitter3": "^4.0.0",
|
||||
"inversify": "^5.0.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7-core",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
@ -23,7 +23,7 @@
|
|||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@antv/async-hook": "^2.1.0",
|
||||
"@antv/l7-utils": "^2.2.1",
|
||||
"@antv/l7-utils": "2.2.2",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"@mapbox/tiny-sdf": "^1.1.1",
|
||||
"ajv": "^6.10.2",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7-draw",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "L7 Draw moudules",
|
||||
"keywords": [],
|
||||
"author": "thinkinggis <lzx199065@gmail.com>",
|
||||
|
@ -35,7 +35,7 @@
|
|||
"test": "jest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antv/l7": "^2.2.1",
|
||||
"@antv/l7": "2.2.2",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"@turf/circle": "^6.0.1",
|
||||
"@turf/distance": "^6.0.1",
|
||||
|
|
|
@ -78,11 +78,11 @@ export default abstract class DrawFeature extends DrawMode {
|
|||
this.drawLayer.enableSelect();
|
||||
}
|
||||
|
||||
public getData() {
|
||||
public getData(): FeatureCollection {
|
||||
return this.source.getData();
|
||||
}
|
||||
|
||||
public removeAllData() {
|
||||
public removeAllData(): void {
|
||||
this.source.removeAllFeatures();
|
||||
this.currentFeature = null;
|
||||
this.drawLayer.hide();
|
||||
|
|
|
@ -11,7 +11,7 @@ export default class DrawSource {
|
|||
this.data.features.push(feature);
|
||||
}
|
||||
|
||||
public getData() {
|
||||
public getData(): FeatureCollection {
|
||||
const features = cloneDeep(this.data.features).map((feature: Feature) => {
|
||||
feature.properties = {
|
||||
id: feature?.properties?.id,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "A Large-scale WebGL-powered Geospatial Data Visualization",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
@ -24,12 +24,12 @@
|
|||
"author": "antv",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@antv/l7-component": "^2.2.1",
|
||||
"@antv/l7-core": "^2.2.1",
|
||||
"@antv/l7-layers": "^2.2.1",
|
||||
"@antv/l7-maps": "^2.2.1",
|
||||
"@antv/l7-scene": "^2.2.1",
|
||||
"@antv/l7-utils": "^2.2.1",
|
||||
"@antv/l7-component": "2.2.2",
|
||||
"@antv/l7-core": "2.2.2",
|
||||
"@antv/l7-layers": "2.2.2",
|
||||
"@antv/l7-maps": "2.2.2",
|
||||
"@antv/l7-scene": "2.2.2",
|
||||
"@antv/l7-utils": "2.2.2",
|
||||
"@babel/runtime": "^7.7.7"
|
||||
},
|
||||
"gitHead": "532ade40831b35b04a677b351d092e54c00613d8",
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
const version = '2.2.1';
|
||||
const version = '2.2.2';
|
||||
export { version };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7-layers",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "L7's collection of built-in layers",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
@ -23,9 +23,9 @@
|
|||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@antv/async-hook": "^2.1.0",
|
||||
"@antv/l7-core": "^2.2.1",
|
||||
"@antv/l7-source": "^2.2.1",
|
||||
"@antv/l7-utils": "^2.2.1",
|
||||
"@antv/l7-core": "2.2.2",
|
||||
"@antv/l7-source": "2.2.2",
|
||||
"@antv/l7-utils": "2.2.2",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"@mapbox/martini": "^0.1.0",
|
||||
"@turf/meta": "^6.0.2",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7-maps",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
@ -25,8 +25,8 @@
|
|||
"author": "xiaoiver",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@antv/l7-core": "^2.2.1",
|
||||
"@antv/l7-utils": "^2.2.1",
|
||||
"@antv/l7-core": "2.2.2",
|
||||
"@antv/l7-utils": "2.2.2",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"@types/amap-js-api": "^1.4.6",
|
||||
"gl-matrix": "^3.1.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7-react",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
@ -24,8 +24,8 @@
|
|||
"author": "lzxue",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@antv/l7": "^2.2.1",
|
||||
"@antv/l7-maps": "^2.2.1",
|
||||
"@antv/l7": "2.2.2",
|
||||
"@antv/l7-maps": "2.2.2",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"load-styles": "^2.0.0"
|
||||
},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7-renderer",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
@ -25,7 +25,7 @@
|
|||
"gl": "^4.4.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@antv/l7-core": "^2.2.1",
|
||||
"@antv/l7-core": "2.2.2",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"inversify": "^5.0.1",
|
||||
"lodash": "^4.17.15",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7-scene",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
@ -22,11 +22,11 @@
|
|||
"author": "xiaoiver",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@antv/l7-component": "^2.2.1",
|
||||
"@antv/l7-core": "^2.2.1",
|
||||
"@antv/l7-maps": "^2.2.1",
|
||||
"@antv/l7-renderer": "^2.2.1",
|
||||
"@antv/l7-utils": "^2.2.1",
|
||||
"@antv/l7-component": "2.2.2",
|
||||
"@antv/l7-core": "2.2.2",
|
||||
"@antv/l7-maps": "2.2.2",
|
||||
"@antv/l7-renderer": "2.2.2",
|
||||
"@antv/l7-utils": "2.2.2",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"inversify": "^5.0.1",
|
||||
"mapbox-gl": "^1.2.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7-source",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
@ -25,8 +25,8 @@
|
|||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@antv/async-hook": "^2.1.0",
|
||||
"@antv/l7-core": "^2.2.1",
|
||||
"@antv/l7-utils": "^2.2.1",
|
||||
"@antv/l7-core": "2.2.2",
|
||||
"@antv/l7-utils": "2.2.2",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"@mapbox/geojson-rewind": "^0.4.0",
|
||||
"@turf/helpers": "^6.1.4",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7-three",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "three for L7 ",
|
||||
"keywords": [
|
||||
"3D",
|
||||
|
@ -43,7 +43,7 @@
|
|||
},
|
||||
"homepage": "https://github.com/antvis/L7#readme",
|
||||
"dependencies": {
|
||||
"@antv/l7": "^2.2.1",
|
||||
"@antv/l7": "2.2.2",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"rollup": "^2.3.3",
|
||||
"rollup-plugin-less": "^1.1.2"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@antv/l7-utils",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
|
Loading…
Reference in New Issue