Merge pull request #664 from antvis/feat_padding

Feat padding
This commit is contained in:
@thinkinggis 2021-04-15 15:19:32 +08:00 committed by GitHub
commit bee72723d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 1679 additions and 1581 deletions

View File

@ -86,6 +86,12 @@ scene.addLayer(pointLayer);
- [Examples](https://l7.antv.vision/en/examples/gallery/basic) - [Examples](https://l7.antv.vision/en/examples/gallery/basic)
- [Contributor documentation](./.github/CONTRIBUTING.md) - [Contributor documentation](./.github/CONTRIBUTING.md)
## 🔗 Links
- [L7 React](https://github.com/antvis/L7-React)
- [L7 Boundary](https://github.com/antvis/L7-boundary)
- [L7 draw](https://github.com/antvis/L7-draw)
## ✅ License ## ✅ License
[MIT license](./LICENSE). [MIT license](./LICENSE).

View File

@ -120,6 +120,12 @@ scene.addLayer(pointLayer);
- [示例](https://l7.antv.vision/en/examples/gallery/basic) - [示例](https://l7.antv.vision/en/examples/gallery/basic)
- [贡献](./.github/CONTRIBUTING.md) - [贡献](./.github/CONTRIBUTING.md)
## 🔗 Links
- [L7 React](https://github.com/antvis/L7-React)
- [L7 Boundary](https://github.com/antvis/L7-boundary)
- [L7 draw](https://github.com/antvis/L7-draw)
## ✅ License ## ✅ License
[MIT license](./LICENSE). [MIT license](./LICENSE).

View File

@ -19,7 +19,7 @@ module.exports = api => {
[ [
'@babel/plugin-proposal-decorators', '@babel/plugin-proposal-decorators',
{ {
legacy: true legacy: true,
} }
], ],
[ [

View File

@ -542,6 +542,7 @@ layer.setSelect(id);
```javascript ```javascript
layer.on('click', (ev) => {}); // 鼠标左键点击图层事件 layer.on('click', (ev) => {}); // 鼠标左键点击图层事件
layer.on('mouseenter', (ev) => {}); // 鼠标进入图层要素
layer.on('mousemove', (ev) => {}); // 鼠标在图层上移动时触发 layer.on('mousemove', (ev) => {}); // 鼠标在图层上移动时触发
layer.on('mouseout', (ev) => {}); // 鼠标移出图层要素时触发 layer.on('mouseout', (ev) => {}); // 鼠标移出图层要素时触发
layer.on('mouseup', (ev) => {}); // 鼠标在图层上单击抬起时触发 layer.on('mouseup', (ev) => {}); // 鼠标在图层上单击抬起时触发

View File

@ -2,4 +2,4 @@
title: LineLayer title: LineLayer
order: 0 order: 0
--- ---
`markdown:docs/api/layer/line_layer/linelayer.zh.md` `markdown:docs/api/layer/line_layer/linelayer.en.md`

View File

@ -2,4 +2,4 @@
title: 数据 title: 数据
order: 2 order: 2
--- ---
`markdown:docs/tutorial/data.zh.md` `markdown:docs/tutorial/data.en.md`

View File

@ -2,4 +2,4 @@
title: 离线使用 title: 离线使用
order: 0 order: 0
--- ---
`markdown:docs/tutorial/map/offline.zh.md` `markdown:docs/tutorial/map/offline.en.md`

View File

@ -7,10 +7,10 @@
}, },
"devDependencies": { "devDependencies": {
"@antv/g2": "^3.5.9", "@antv/g2": "^3.5.9",
"@antv/gatsby-theme-antv": "^1.1.1",
"@antv/l7-district": "^2.2.46", "@antv/l7-district": "^2.2.46",
"@antv/l7-draw": "^2.3.40", "@antv/l7-draw": "^2.3.40",
"@antv/l7-react": "^2.2.37", "@antv/l7-react": "^2.2.37",
"@antv/gatsby-theme-antv": "^1.1.1",
"@babel/cli": "^7.6.4", "@babel/cli": "^7.6.4",
"@babel/core": "^7.6.4", "@babel/core": "^7.6.4",
"@babel/plugin-proposal-decorators": "^7.6.0", "@babel/plugin-proposal-decorators": "^7.6.0",
@ -23,6 +23,7 @@
"@babel/preset-env": "^7.5.5", "@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0", "@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.3.3", "@babel/preset-typescript": "^7.3.3",
"@babel/standalone": "^7.13.15",
"@commitlint/cli": "^8.1.0", "@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0", "@commitlint/config-conventional": "^8.1.0",
"@rollup/plugin-alias": "2.2.0", "@rollup/plugin-alias": "2.2.0",
@ -70,7 +71,7 @@
"eslint": "^6.6.0", "eslint": "^6.6.0",
"eslint-config-egg": "^7.5.1", "eslint-config-egg": "^7.5.1",
"eslint-plugin-html": "^6.0.0", "eslint-plugin-html": "^6.0.0",
"gatsby": "^2.19.15", "gatsby": "2.25.0",
"gatsby-plugin-google-analytics": "^2.1.27", "gatsby-plugin-google-analytics": "^2.1.27",
"gatsby-remark-prettier": "^1.0.0", "gatsby-remark-prettier": "^1.0.0",
"geotiff": "1.0.0-beta.10", "geotiff": "1.0.0-beta.10",
@ -131,7 +132,7 @@
}, },
"scripts": { "scripts": {
"start": "yarn run site:clean && yarn run site:develop", "start": "yarn run site:clean && yarn run site:develop",
"site:develop": "cross-env BABEL_ENV=site gatsby develop --open -H 0.0.0.0", "site:develop": "cross-env BABEL_ENV=site GATSBY_LOGGER=ink gatsby develop --open --host 127.0.0.1",
"site:build": "yarn run site:clean && cross-env BABEL_ENV=site gatsby build --prefix-paths", "site:build": "yarn run site:clean && cross-env BABEL_ENV=site gatsby build --prefix-paths",
"site:clean": "gatsby clean", "site:clean": "gatsby clean",
"site:deploy": "yarn run site:build && gh-pages -d public", "site:deploy": "yarn run site:build && gh-pages -d public",

3232
yarn.lock

File diff suppressed because it is too large Load Diff