Skip to content

Commit

Permalink
chore: update package
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Apr 21, 2020
1 parent 17e9f5d commit 4e5ace2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 37 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ script:
- yarn lint
- yarn test
- yarn build
- yarn bundle

notifications:
webhooks: https://oapi.dingtalk.com/robot/send?access_token=2dacc76d8b1ea8bcdc792b50f103d13efdba9ef53ec0caeb70631bc3add56118
8 changes: 0 additions & 8 deletions build/bundle.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
// @ts-ignore
export * from '@antv/l7';
// import * as L7 from '@antv/l7';
// export default L7;

// import { Scene } from '@antv/l7';
// // export { Scene };
// export default {
// Scene,
// };
21 changes: 2 additions & 19 deletions examples/polygon/fill/demo/province.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const scene = new Scene({
});
scene.on('loaded', () => {
fetch(
'https://gw.alipayobjects.com/os/bmw-prod/1981b358-28d8-4a2f-9c74-a857d5925ef1.json' // 获取行政区划P噢利用
//'https://gw.alipayobjects.com/os/bmw-prod/1981b358-28d8-4a2f-9c74-a857d5925ef1.json' // 获取行政区划P噢利用
'https://gw.alipayobjects.com/os/bmw-prod/d6da7ac1-8b4f-4a55-93ea-e81aa08f0cf3.json'
)
.then(res => res.json())
.then(data => {
Expand Down Expand Up @@ -49,24 +50,6 @@ scene.on('loaded', () => {
scene.addLayer(chinaPolygonLayer);
scene.addLayer(layer2);
});

fetch(
'https://gw.alipayobjects.com/os/basement_prod/ba8fa803-a8c3-4c67-b806-fe1c444546bd.json' // 国界线
).then(res => res.json())
.then(data => {
const boundaries = new LineLayer({
zIndex: 2
})
.source(data)
.color('rgb(93,112,146)')
.size(0.6)
.style({
opacity: 1
});

scene.addLayer(boundaries);
});

fetch(
'https://gw.alipayobjects.com/os/bmw-prod/c4a6aa9d-8923-4193-a695-455fd8f6638c.json' // 标注数据
).then(res => res.json())
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"@rollup/plugin-alias": "^2.2.0",
"@rollup/plugin-commonjs": "^11.0.0",
"@rollup/plugin-commonjs": "11.0.1",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-node-resolve": "^6.0.0",
"@storybook/react": "^5.1.9",
"@turf/turf": "^5.1.6",
"@types/dat.gui": "^0.7.1",
"@types/enzyme": "^3.1.14",
"@types/enzyme-adapter-react-16": "^1.0.3",
Expand Down Expand Up @@ -115,7 +116,6 @@
"tslint-plugin-prettier": "^1.3.0",
"tslint-react": "^3.6.0",
"typescript": "^3.7.0-beta",
"@turf/turf": "^5.1.6",
"webpack": "^4.17.1",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.7",
Expand Down
1 change: 1 addition & 0 deletions packages/l7/demo/circle.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"#A1EDB8",
"#CEF8D6"
])
.active(true)
.style({
opacity: 1.0
});
Expand Down
1 change: 1 addition & 0 deletions packages/l7/demo/text.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"#A1EDB8",
"#CEF8D6"
])
.active(true)
.style({
opacity: 1.0
});
Expand Down
14 changes: 6 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2866,15 +2866,13 @@
dependencies:
slash "^3.0.0"

"@rollup/plugin-commonjs@^11.0.0":
version "11.1.0"
resolved "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-11.1.0.tgz#60636c7a722f54b41e419e1709df05c7234557ef"
integrity sha512-Ycr12N3ZPN96Fw2STurD21jMqzKwL9QuFhms3SD7KKRK7oaXUsBU9Zt0jL/rOPHiPYisI21/rXGO3jr9BnLHUA==
"@rollup/[email protected].1":
version "11.0.1"
resolved "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-11.0.1.tgz#6056a6757286901cc6c1599123e6680a78cad6c2"
integrity sha512-SaVUoaLDg3KnIXC5IBNIspr1APTYDzk05VaYcI6qz+0XX3ZlSCwAkfAhNSOxfd5GAdcm/63Noi4TowOY9MpcDg==
dependencies:
"@rollup/pluginutils" "^3.0.8"
commondir "^1.0.1"
estree-walker "^1.0.1"
glob "^7.1.2"
"@rollup/pluginutils" "^3.0.0"
estree-walker "^0.6.1"
is-reference "^1.1.2"
magic-string "^0.25.2"
resolve "^1.11.0"
Expand Down

0 comments on commit 4e5ace2

Please sign in to comment.