Merge branch 'master' into fix_storybook

This commit is contained in:
thinkinggis 2020-05-27 15:08:29 +08:00
commit 6a6fa222a3
18 changed files with 64 additions and 49 deletions

View File

@ -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);
```

View File

@ -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);
```

View File

@ -14,7 +14,7 @@
"message": "chore: publish"
}
},
"version": "2.2.8",
"version": "2.2.9",
"npmClient": "yarn",
"useWorkspaces": true,
"publishConfig": {

View File

@ -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",

View File

@ -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",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-district",
"version": "2.2.8",
"version": "2.2.9",
"description": "L7 district moudules",
"keywords": [],
"author": "thinkinggis <lzx199065@gmail.com>",
@ -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",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-draw",
"version": "2.2.8",
"version": "2.2.9",
"description": "L7 Draw moudules",
"keywords": [],
"author": "thinkinggis <lzx199065@gmail.com>",
@ -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",

View File

@ -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",

View File

@ -1,2 +1,2 @@
const version = '2.2.8';
const version = '2.2.9';
export { version };

View File

@ -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",

View File

@ -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",

View File

@ -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"
},

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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"

View File

@ -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",

View File

@ -30,7 +30,12 @@ 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({
layer
.source(data)
.color('#fff')
.shape('name', 'text')
.size(16)
.style({
opacity: 1.0,
});
scene.addLayer(layer);