Skip to content

Commit

Permalink
fix(package): fix package fsevents version
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Dec 29, 2019
1 parent 4d96f4d commit 1b856b2
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 70 deletions.
12 changes: 6 additions & 6 deletions examples/gallery/basic/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,33 @@
"demos": [
{
"filename": "column_dark.js",
"title": "",
"title": "3D柱图深色",
"screenshot": "https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*7COqR4wCc6QAAAAAAAAAAABkARQnAQ"
},
{
"filename": "arcCircle.js",
"title": "",
"title": "弧线地图",
"screenshot": "https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*6Qm_QY69sBMAAAAAAAAAAABkARQnAQ"
},
{
"filename": "bus_dark.js",
"title": "",
"title": "公交线路深色",
"screenshot": "https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*j-P8RaJMEvAAAAAAAAAAAABkARQnAQ"
},
{
"filename": "light.js",
"title": "",
"title": "蜂窝图3D",
"screenshot": "https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*SLcGSbvZoEwAAAAAAAAAAABkARQnAQ"
},
{
"filename": "point.js",
"title": "",
"title": "海量点",
"screenshot": "https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*ypZCT6pqv84AAAAAAAAAAABkARQnAQ"
}
,
{
"filename": "normal.js",
"title": "",
"title": "亮度图",
"screenshot": "https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*xr8BQouXGvoAAAAAAAAAAABkARQnAQ"
}
]
Expand Down
42 changes: 0 additions & 42 deletions examples/line/line/demo/isoline.js

This file was deleted.

16 changes: 8 additions & 8 deletions examples/tutorial/data/demo/data_update.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ function pointOnCircle(angle) {
}]
};
}

scene.on('loaded', () => {
// animateMarker(0);
});
const layer = new PointLayer()
.source(pointOnCircle(0))
.shape('circle')
Expand All @@ -36,11 +40,7 @@ const layer = new PointLayer()
opacity: 1
});
scene.addLayer(layer);
function animateMarker(timestamp) {
layer.setData(pointOnCircle(timestamp / 1000));
requestAnimationFrame(animateMarker);
}
layer.on('inited', () => {
animateMarker(0);
});

// function animateMarker(timestamp) {
// layer.setData(pointOnCircle(timestamp / 1000));
// requestAnimationFrame(animateMarker);
// }
66 changes: 54 additions & 12 deletions examples/tutorial/map/demo/amapInstance.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,56 @@
import { Scene } from '@antv/l7';
import { Scene, PointLayer } from '@antv/l7';
import { GaodeMap } from '@antv/l7-maps';

const map = new AMap.Map('container', {
resizeEnable: true, // 是否监控地图容器尺寸变化
zoom: 11, // 初始化地图层级
center: [ 116.397428, 39.90923 ] // 初始化地图中心点
});
new Scene({
id: 'map',
map: new GaodeMap({
mapInstance: map
})
});
window.onLoad = function() {
const map = new AMap.Map('map', {
viewMode: '3D',
pitch: 0,
mapStyle: 'amap://styles/darkblue',
center: [ 121.435159, 31.256971 ],
zoom: 14.89,
minZoom: 10
});
const scene = new Scene({
id: 'map',
map: new GaodeMap({
mapInstance: map
})
});
fetch(
'https://gw.alipayobjects.com/os/basement_prod/893d1d5f-11d9-45f3-8322-ee9140d288ae.json'
)
.then(res => res.json())
.then(data => {
const pointLayer = new PointLayer()
.source(data, {
parser: {
type: 'json',
x: 'longitude',
y: 'latitude'
}
})
.shape('name', [
'circle',
'triangle',
'square',
'pentagon',
'hexagon',
'octogon',
'hexagram',
'rhombus',
'vesica'
])
.size('unit_price', [ 10, 25 ])
.color('name', [ '#5B8FF9', '#5CCEA1', '#5D7092', '#F6BD16', '#E86452' ])
.style({
opacity: 0.3,
strokeWidth: 2
});
scene.addLayer(pointLayer);
});
};
const url = 'https://webapi.amap.com/maps?v=1.4.15&key=15cd8a57710d40c9b7c0e3cc120f1200&callback=onLoad';
const jsapi = document.createElement('script');
jsapi.charset = 'utf-8';
jsapi.src = url;
document.head.appendChild(jsapi);
5 changes: 5 additions & 0 deletions examples/tutorial/map/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
"filename": "mapbox.js",
"title": "MapBox底图",
"screenshot": "https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*_SIYR50bbcoAAAAAAAAAAABkARQnAQ"
},
{
"filename": "amapInstance.js",
"title": "通过高德地图实例化",
"screenshot": "https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*_SIYR50bbcoAAAAAAAAAAABkARQnAQ"
}
]
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@
}
},
"resolutions": {
"../core-js": "3",
"**/**/fsevents": "^2.1.2"
"../core-js": "3"
},
"tnpm": {
"mode": "yarn"
Expand Down

0 comments on commit 1b856b2

Please sign in to comment.