diff --git a/docs/api/layer/layer.en.md b/docs/api/layer/layer.en.md index 3953d4d5ce..54aabf1e2b 100644 --- a/docs/api/layer/layer.en.md +++ b/docs/api/layer/layer.en.md @@ -10,7 +10,12 @@ L7 Layer 接口设计遵循图形语法,所有图层都继承于该基类。 语法示例 ```javascript -const layer = new Layer(option).source().color().size().shape().style(); +const layer = new Layer(option) + .source() + .color() + .size() + .shape() + .style(); scene.addLayer(layer); ``` @@ -78,7 +83,7 @@ layer.source(data, { transforms: [ { type: 'map', - callback: function (item) { + callback: function(item) { const [x, y] = item.coordinates; item.lat = item.lat * 1; item.lng = item.lng * 1; diff --git a/docs/api/layer/layer.zh.md b/docs/api/layer/layer.zh.md index 0003c027d6..e0bf8abf2f 100644 --- a/docs/api/layer/layer.zh.md +++ b/docs/api/layer/layer.zh.md @@ -10,7 +10,12 @@ L7 Layer 接口设计遵循图形语法,所有图层都继承于该基类。 语法示例 ```javascript -const layer = new Layer(option).source().color().size().shape().style(); +const layer = new Layer(option) + .source() + .color() + .size() + .shape() + .style(); scene.addLayer(layer); ``` @@ -82,7 +87,7 @@ layer.source(data, { transforms: [ { type: 'map', - callback: function (item) { + callback: function(item) { const [x, y] = item.coordinates; item.lat = item.lat * 1; item.lng = item.lng * 1; diff --git a/lerna.json b/lerna.json index b5a28a995a..20e73307be 100644 --- a/lerna.json +++ b/lerna.json @@ -14,7 +14,7 @@ "message": "chore: publish" } }, - "version": "2.2.8", + "version": "2.2.9", "npmClient": "yarn", "useWorkspaces": true, "publishConfig": { diff --git a/packages/component/package.json b/packages/component/package.json index 643e7e4bb7..a5cab555c1 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-component", - "version": "2.2.8", + "version": "2.2.9", "description": "", "main": "lib/index.js", "module": "es/index.js", @@ -24,8 +24,8 @@ "author": "lzxue", "license": "ISC", "dependencies": { - "@antv/l7-core": "2.2.8", - "@antv/l7-utils": "2.2.8", + "@antv/l7-core": "2.2.9", + "@antv/l7-utils": "2.2.9", "@babel/runtime": "^7.7.7", "eventemitter3": "^4.0.0", "inversify": "^5.0.1", diff --git a/packages/core/package.json b/packages/core/package.json index 7b3c6323ef..4198b34422 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-core", - "version": "2.2.8", + "version": "2.2.9", "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.8", + "@antv/l7-utils": "2.2.9", "@babel/runtime": "^7.7.7", "@mapbox/tiny-sdf": "^1.1.1", "ajv": "^6.10.2", diff --git a/packages/district/package.json b/packages/district/package.json index 51110cadb5..5936e6d9f1 100644 --- a/packages/district/package.json +++ b/packages/district/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-district", - "version": "2.2.8", + "version": "2.2.9", "description": "L7 district moudules", "keywords": [], "author": "thinkinggis ", @@ -34,7 +34,7 @@ "test": "jest" }, "dependencies": { - "@antv/l7": "2.2.8", + "@antv/l7": "2.2.9", "@babel/runtime": "^7.7.7", "@turf/circle": "^6.0.1", "@turf/distance": "^6.0.1", diff --git a/packages/draw/package.json b/packages/draw/package.json index fe22bc189b..c7cb0fe2d5 100644 --- a/packages/draw/package.json +++ b/packages/draw/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-draw", - "version": "2.2.8", + "version": "2.2.9", "description": "L7 Draw moudules", "keywords": [], "author": "thinkinggis ", @@ -35,7 +35,7 @@ "test": "jest" }, "dependencies": { - "@antv/l7": "2.2.8", + "@antv/l7": "2.2.9", "@babel/runtime": "^7.7.7", "@turf/circle": "^6.0.1", "@turf/distance": "^6.0.1", diff --git a/packages/l7/package.json b/packages/l7/package.json index 42370284b9..23c2106dcf 100644 --- a/packages/l7/package.json +++ b/packages/l7/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7", - "version": "2.2.8", + "version": "2.2.9", "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.8", - "@antv/l7-core": "2.2.8", - "@antv/l7-layers": "2.2.8", - "@antv/l7-maps": "2.2.8", - "@antv/l7-scene": "2.2.8", - "@antv/l7-utils": "2.2.8", + "@antv/l7-component": "2.2.9", + "@antv/l7-core": "2.2.9", + "@antv/l7-layers": "2.2.9", + "@antv/l7-maps": "2.2.9", + "@antv/l7-scene": "2.2.9", + "@antv/l7-utils": "2.2.9", "@babel/runtime": "^7.7.7" }, "gitHead": "532ade40831b35b04a677b351d092e54c00613d8", diff --git a/packages/l7/src/version.ts b/packages/l7/src/version.ts index c41e9111f9..e99b047cb5 100644 --- a/packages/l7/src/version.ts +++ b/packages/l7/src/version.ts @@ -1,2 +1,2 @@ -const version = '2.2.8'; +const version = '2.2.9'; export { version }; diff --git a/packages/layers/package.json b/packages/layers/package.json index e29ef7e485..023dd9bbba 100644 --- a/packages/layers/package.json +++ b/packages/layers/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-layers", - "version": "2.2.8", + "version": "2.2.9", "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.8", - "@antv/l7-source": "2.2.8", - "@antv/l7-utils": "2.2.8", + "@antv/l7-core": "2.2.9", + "@antv/l7-source": "2.2.9", + "@antv/l7-utils": "2.2.9", "@babel/runtime": "^7.7.7", "@mapbox/martini": "^0.2.0", "@turf/meta": "^6.0.2", diff --git a/packages/maps/package.json b/packages/maps/package.json index f1663021aa..41f320d441 100644 --- a/packages/maps/package.json +++ b/packages/maps/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-maps", - "version": "2.2.8", + "version": "2.2.9", "description": "", "main": "lib/index.js", "module": "es/index.js", @@ -25,8 +25,8 @@ "author": "xiaoiver", "license": "ISC", "dependencies": { - "@antv/l7-core": "2.2.8", - "@antv/l7-utils": "2.2.8", + "@antv/l7-core": "2.2.9", + "@antv/l7-utils": "2.2.9", "@babel/runtime": "^7.7.7", "@types/amap-js-api": "^1.4.6", "antd": "4.2.5", diff --git a/packages/react/package.json b/packages/react/package.json index f4ee971345..9c6a9d0e61 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-react", - "version": "2.2.8", + "version": "2.2.9", "description": "", "main": "lib/index.js", "module": "es/index.js", @@ -24,8 +24,8 @@ "author": "lzxue", "license": "ISC", "dependencies": { - "@antv/l7": "2.2.8", - "@antv/l7-maps": "2.2.8", + "@antv/l7": "2.2.9", + "@antv/l7-maps": "2.2.9", "@babel/runtime": "^7.7.7", "load-styles": "^2.0.0" }, diff --git a/packages/renderer/package.json b/packages/renderer/package.json index 7023d59bb1..8446d916af 100644 --- a/packages/renderer/package.json +++ b/packages/renderer/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-renderer", - "version": "2.2.8", + "version": "2.2.9", "description": "", "main": "lib/index.js", "module": "es/index.js", @@ -25,7 +25,7 @@ "gl": "^4.4.0" }, "dependencies": { - "@antv/l7-core": "2.2.8", + "@antv/l7-core": "2.2.9", "@babel/runtime": "^7.7.7", "inversify": "^5.0.1", "lodash": "^4.17.15", diff --git a/packages/scene/package.json b/packages/scene/package.json index 92cd04c082..0a22421116 100644 --- a/packages/scene/package.json +++ b/packages/scene/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-scene", - "version": "2.2.8", + "version": "2.2.9", "description": "", "main": "lib/index.js", "module": "es/index.js", @@ -22,11 +22,11 @@ "author": "xiaoiver", "license": "ISC", "dependencies": { - "@antv/l7-component": "2.2.8", - "@antv/l7-core": "2.2.8", - "@antv/l7-maps": "2.2.8", - "@antv/l7-renderer": "2.2.8", - "@antv/l7-utils": "2.2.8", + "@antv/l7-component": "2.2.9", + "@antv/l7-core": "2.2.9", + "@antv/l7-maps": "2.2.9", + "@antv/l7-renderer": "2.2.9", + "@antv/l7-utils": "2.2.9", "@babel/runtime": "^7.7.7", "inversify": "^5.0.1", "mapbox-gl": "^1.2.1", diff --git a/packages/source/package.json b/packages/source/package.json index d9ada714cc..3f1a9476bb 100644 --- a/packages/source/package.json +++ b/packages/source/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-source", - "version": "2.2.8", + "version": "2.2.9", "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.8", - "@antv/l7-utils": "2.2.8", + "@antv/l7-core": "2.2.9", + "@antv/l7-utils": "2.2.9", "@babel/runtime": "^7.7.7", "@mapbox/geojson-rewind": "^0.4.0", "@turf/helpers": "^6.1.4", diff --git a/packages/three/package.json b/packages/three/package.json index a975a60d2b..7303b62a86 100644 --- a/packages/three/package.json +++ b/packages/three/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-three", - "version": "2.2.8", + "version": "2.2.9", "description": "three for L7 ", "keywords": [ "3D", @@ -43,7 +43,7 @@ }, "homepage": "https://github.com/antvis/L7#readme", "dependencies": { - "@antv/l7": "2.2.8", + "@antv/l7": "2.2.9", "@babel/runtime": "^7.7.7", "rollup": "^2.3.3", "rollup-plugin-less": "^1.1.2" diff --git a/packages/utils/package.json b/packages/utils/package.json index bd4a189006..523c22595c 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@antv/l7-utils", - "version": "2.2.8", + "version": "2.2.9", "description": "", "main": "lib/index.js", "module": "es/index.js", diff --git a/stories/Components/components/Zoom.tsx b/stories/Components/components/Zoom.tsx index 4bd12be5bb..372383b75e 100644 --- a/stories/Components/components/Zoom.tsx +++ b/stories/Components/components/Zoom.tsx @@ -30,9 +30,14 @@ export default class ZoomComponent extends React.Component { this.scene = scene; const layer = new PolygonLayer({}); - layer.source(data).color('#fff').shape('name', 'text').size(16).style({ - opacity: 1.0, - }); + layer + .source(data) + .color('#fff') + .shape('name', 'text') + .size(16) + .style({ + opacity: 1.0, + }); scene.addLayer(layer); const zoomControl = new Zoom({ position: 'bottomright',