docs(docs): add api

This commit is contained in:
thinkinggis 2019-11-20 14:14:30 +08:00
parent 57e4bb84a7
commit f054076290
41 changed files with 1346 additions and 232 deletions

View File

@ -2,5 +2,6 @@
title: Introduction
order: 0
redirect_from:
- /en/docs/api/
- /en/docs/api
---
# An open source large-scale geospatial data visualization analysis development framework powered by WebGL

View File

@ -2,5 +2,74 @@
title: 简介
order: 0
redirect_from:
- /zh/docs/api/
- /zh/docs/api
---
# L7 地理空间数据可视分析引擎
L7 是由蚂蚁金服 AntV 数据可视化团队推出的基于 WebGL 的开源大规模地理空间数据可视分析开发框架。L7 中的 L 代表 Location7 代表世界七大洲寓意能为全球位置数据提供可视分析的能力。L7 以图形符号学为理论基础,将抽象复杂的空间数据转化成 2D、3D 符号,通过颜色、大小、体积、纹理等视觉变量实现丰富的可视化表达。
<video id="video" controls="" preload="none" poster="https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*rjkiQLCoZxUAAAAAAAAAAABkARQnAQ">
<source id="mp4" src="https://gw.alipayobjects.com/mdn/antv_site/afts/file/A*viKwSJl2OGIAAAAAAAAAAABkARQnAQ"; type="video/map4">
<source id="webm" src="https://gw.alipayobjects.com/os/basement_prod/65d5dbe8-d78d-4c6b-9318-fa06b1456784.webm" type="video/webm">
<source id="ogv" src="http://media.w3.org/2010/05/sintel/trailer.ogv" type="video/ogg">
<p>Your user agent does not support the HTML5 Video element.</p>
</video>
## 核心特性
### 数据驱动可视化展示
数据驱动,从数到形,支持丰富的地图可视化类型,更好洞察数据。
### 2D3D 一体化的海量数据高性能渲染
百万级空间数据实时,动态渲染。
### 简单灵活的数据接入
支持CSVJSONgeojson等数据格式接入可以根据需求自定义数据格式无需复杂的空间数据转换。
### 多地图底图支持,支持离线内网部署
高德地图国内合法合规的地理底图Mapbox 满足国际化业务需求。
## 支持丰富的图表类型
### 点图层
- 气泡图
- 散点图
- 符号地图
- 3D柱状地图
- 聚合地图
- 复合图表地图
- 自定义Marker
### 线图层
- 路径地图
- 弧线支持2D弧线、3D弧线以及大圆航线
- 等值线
### 面图层
- 填充图
- 3D填充图
### 热力图
- 经典热力图
- 蜂窝热力图
- 网格热力图
### 栅格地图
- 图片
- Raster
## L7 2.0 Roadmap
![L7 Road Map](https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*3j9HTLTQT2MAAAAAAAAAAABkARQnAQ)
更多技术细节,详细进展,请关注 [GitHub](https://github.com/antvis/L7),欢迎大家来给点点 Star让更多人看到这个开源的项目。

View File

@ -40,14 +40,14 @@ const scene = new L7.Scene({
pitch: 0,
zoom: 12,
maxZoom:20,
minZoom:0,
minZoom:0
});
```
#### 根据map 实例创建Sence
_L7 基于高德地图3D模式开发的因此传入Map实例 __viewModes需要设置成3d_<br />_
L7 基于高德地图3D模式开发的因此传入Map实例 __viewModes需要设置成3d_<br />_
```javascript
var mapinstance = new AMap.Map('map',{
center: [ 120.19382669582967, 30.258134 ],

View File

@ -1,5 +1,5 @@
---
title: Map Control
title: sControl
order: 1
---
# control
@ -15,6 +15,7 @@ const baseControl = new L7.Control.Base(option);
#### option
 position: `string` 控件位置支持是个方位 `bottomright, topright, bottomleft, topleft`

View File

@ -1,5 +1,5 @@
---
title: 地图组件
title: Control
order: 3
---
# control

View File

@ -1,5 +1,5 @@
---
title: Map Marker
title: Marker
order: 3
---

View File

@ -1,5 +1,5 @@
---
title: 地图标注
title: Marker
order: 3
---

View File

@ -1,5 +1,5 @@
---
title: 地图信息框
title: popup
order: 0
---
# popup

View File

@ -1,4 +0,0 @@
---
title: 图层
order: 2
---

View File

@ -0,0 +1,4 @@
---
title: HeatmapLayer
order: 5
---

View File

@ -0,0 +1,4 @@
---
title: HeatmapLayer
order: 5
---

View File

@ -0,0 +1,4 @@
---
title: ImageLayer
order: 5
---

View File

@ -0,0 +1,4 @@
---
title: ImageLayer
order: 5
---

View File

@ -1,4 +1,4 @@
---
title: Map Layer
order: 2
order: 0
---

368
docs/API/layer/layer.zh.md Normal file
View File

@ -0,0 +1,368 @@
---
title: Layer
order: 0
---
# Layer
## 简介
L7 Layer 接口设计遵循图形语法,在可视表达上
语法示例
```javascript
new Layer(option)
.source()
.color()
.size()
.shape()
.style()
```
## 构造函数
## 配置项
### visable
图层是否可见   {bool } default true
### zIndex
 图层绘制顺序,数值越小优先绘制,可以控制图层绘制的上下层级 {int}   default 0
### minZoom
图层显示最小缩放等级0-18   {number}  default 0
### maxZoom
 图层显示最大缩放等级 0-18   {number}  default 18
## 鼠标事件
beta版当前不支持正式版会支持
```javascript
layer.on('click', (ev)=>{}); // 鼠标左键点击图层事件
layer.on('dblclick', (ev)=>{}); // 鼠标左键双击图层事件
layer.on('mousemove', (ev)=>{}); // 鼠标在图层上移动时触发
layer.on('mouseover', (ev)=>{}); // 鼠标移入图层要素内时触发
layer.on('mouseout', (ev)=>{}); // 鼠标移出图层要素时触发
layer.on('mouseup', (ev)=>{}); // 鼠标在图层上单击抬起时触发
layer.on('mousedown', (ev)=>{}); // 鼠标在图层上单击按下时触发
layer.on('mouseleave', (ev)=>{}); // 鼠标离开图层要素
layer.on('rightclick', (ev)=>{}); // 鼠标右键图层要素
```
## 方法
### source
数据源为layer设置数据 source(data,config)
- data {geojson|json|csv}
      源数据
- config  可选 数据源配置项
- parser 数据解析默认是解析层geojson
- transforms [transformtransform ]  数据处理转换 可设置多个
 parser和 transforms [见source文档](https://www.yuque.com/antv/l7/source)
```javascript
layer.source(data, {
parser: {
type: 'csv',
x: 'lng',
y: 'lat'
},
transforms:[
{
type: 'map',
callback:function(item){
const [x, y] = item.coordinates;
item.lat = item.lat*1;
item.lng = item.lng*1;
item.v = item.v *1;
item.coordinates = [x*1,y*1];
return item;
}
},
{
type: 'hexagon',
size: 6000,
field:'v',
method:'sum'
}
]
})
```
###
### scale
#### scale('field', scaleConfig)
(field: string, scaleConfig: object)
为指定的数据字段进行列定义,返回 layer 实例。
- `field` 字段名。
- `scaleConfig` 列定义配置,对象类型,可配置的属性如下:
```javascript
{
type: {string} // 指定数据类型可声明的类型为identity、linear、cat、time、timeCat、log、pow
}
```
### size
将数据值映射到图形的大小上的方法。
**注意:** 不同图层的 size 的含义有所差别:
- point 图形的 size 影响点的半径大小和高度;
- line, arc, path 中的 size 影响线的粗细,和高度;
- polygon size 影响的是高度
```javascript
pointLayer.size(10); // 常量
pointLayer.size('type'); // 使用字段映射到大小
pointLayer.size('type', [ 0, 10 ]); // 使用字段映射到大小,并指定最大值和最小值
pointLayer.size('type', (type) => { // 回调函数
if(type === 'a') {
return 10;
}
return 5;
});
```
#### size(value
传入数字常量,如 `pointLayer.size(20)`
#### size(field)
根据 field 字段的值映射大小,使用默认的`最大值 max:10` 和`最小值 min: 1`。
#### size(field, callback)
使用回调函数控制图形大小。
- `callback`: function 回调函数。
```javascript
pointLayer.size('age', (value) => {
if(value === 1) {
return 5;
}
return 10;
});
```
### color
将数据值映射到图形的颜色上的方法。
```javascript
layer.color('red'); // 常量颜色
layer.color('type'); // 对 type 字段进行映射,使用内置的颜色
layer.color('type', [ 'red', 'blue' ]) // 指定颜色
layer.color('type', (type) => { // 通过回调函数
if (type === 'a') {
return 'red';
}
return 'blue';
});
layer.color('type*value', (type, value) => { //多个参数,通过回调函数
if (type === 'a' && value > 100) {
return 'red';
}
return 'blue';
});
```
#### color(value)
参数:`value` string
只支持接收一个参数value 可以是:
- 映射至颜色属性的数据源字段名,如果数据源中不存在这个字段名的话,则按照常量进行解析,这个时候会使用 L7 默认提供的颜色。
- 也可以直接指定某一个具体的颜色值 color如 '#fff', 'white','rgba(255,0,0,0.5)' ,rgb(255,0,1) 等。
示例
```javascript
layer.color('name') // 映射数据字段
layer.color('white') // 指定颜色
```
#### color(field, colors)
参数:
- `field`: stringfield 为映射至颜色属性的数据源字段名,也支持指定多个参数。
-  `colors`: string | array | function
colors 的参数有以下情况: 如果为空,即未指定颜色的数组,那么使用内置的全局的颜色;如果需要指定颜色,则需要以数组格式传入,那么分类的颜色按照数组中的颜色确定。对于颜色的分配顺序。
```javascript
layer.color('name'); // 使用默认的颜色
layer.color('name', [ 'red', 'blue' ]); // 使用传入的指定颜色
```
- colors 如果是回调函数,则该回调函数的参数为对应字段的数值,具体使用如下,当 color 映射为多个字段时,参数按照字段声明的顺序传入:
```javascript
layer.color('gender', (value) => {
if(value === 1) {
return 'red'
}
return 'blue';
});
layer.color('gender*age', (gender, age) => {
if(age === 20 && gender ==' 男' ) {
return 'red'
}
return 'blue';
});
```
### shape
将数据值映射到图形的形状上的方法。
#### shape(shape)
参数`shape` string
只支持接收一个参数,指定几何图像对象绘制的形状。下表列出了不同的 图层 几何图形对象支持的 shape 形状
| layer类型 | shape类型 | 备注 |
| --- | --- | --- |
| point | 2d:point,circle, square, triangle,hexagon,image,text 3d:circle,triangle,hexagon,square | |
| line | line,arc, arc3d, greatcircle | |
| polygon | fill,line, extrude | |
#### shape(field, shapes)
#### shape(field, callback)
### style
用于配置几何体显示图像属性目前支持以下属性,其他属性会逐步开放
- fill
- opacity  设置透明度
- stroke 线填充颜色
- strokeWidth 线的宽度
```javascript
layer.style({
fill:'red',
opacity:0.8,
stroke:'white'
})
```
### filter
2.0 beta 版本还为支持,正式版本支持
数据过滤
#### filter(field,callback)
参数:
- field 数据源字段名,根据源数据字段过滤数据,也支持指定多个参数。
- callback 回调函数,回调函数的参数为对应字段的数值,具体使用如下,当 filter 映射为多个字段时,参数按照字段声明的顺序传入.显示数据返回true 需要过滤掉的返回false
```javascript
layer.filter('gender',(gender)=>{
if(gender==="男")
return true; // 显示男性的数据
else
return false; // 非男性将过滤掉
})
layer.filter('gender*age',(gender,age)=>{
if(gender === '男' && age < 20) // 根据年龄和性别过滤数据
return true;
else
return false;
})
```
### active
开启或者关闭 shape 对于鼠标 hover 时的响应效果L7 默认为各个 shape 内置了 active 效果 。
```javascript
layer.active(false); // 关闭默认响应
layer.active(true); // 开启默认响应
layer.active({fill:'red'});
```
### show
图层显示
```javascript
layer.show();
```
### hide
图层隐藏
```javascript
layer.hide();
```
### fitBounds
缩放到图层范围
```javascript
layer.fitBounds()
```
### setActive
- id 要素ID一般来自 click和 mousemove事件返回值
- color 指定高亮颜色
设置指定要素的
```javascript
layer.setActive(id,color)
```

View File

@ -0,0 +1,4 @@
---
title: LineLayer
order: 2
---

View File

@ -0,0 +1,4 @@
---
title: LineLayer
order: 2
---

View File

@ -0,0 +1,4 @@
---
title: PointLayer
order: 1
---

View File

@ -0,0 +1,4 @@
---
title: PointLayer
order: 1
---

View File

@ -0,0 +1,4 @@
---
title: PolygonLayer
order: 3
---

View File

@ -0,0 +1,4 @@
---
title: PolygonLayer
order: 3
---

View File

@ -0,0 +1,27 @@
---
title: geojson
order: 1
---
# geojson 数据介绍
## 简介
GeoJSON是一种对各种地理数据结构进行编码的格式。GeoJSON对象可以表示几何、特征或者特征集合。GeoJSON支持下面几何类型点、线、面、多点、多线、多面和几何集合。GeoJSON里的特征包含一个几何对象和其他属性特征集合表示一系列特征。
[geojson详细文档]()
## Geojson相关的JS库
### 地理统计分析工具
[turfjs](http://turfjs.org/):  地理数据计算处理统计分析的Javascript 库
### 在线工具:
[http://geojson.io/](http://geojson.io/)    可以在线查看绘制修改GeoJSON数据
[https://mapshaper.org/](https://mapshaper.org/) 可以查看较大的geojson还能够简化GeoJSON数据

View File

@ -0,0 +1,27 @@
---
title: geojson
order: 1
---
# geojson 数据介绍
## 简介
GeoJSON是一种对各种地理数据结构进行编码的格式。GeoJSON对象可以表示几何、特征或者特征集合。GeoJSON支持下面几何类型点、线、面、多点、多线、多面和几何集合。GeoJSON里的特征包含一个几何对象和其他属性特征集合表示一系列特征。
[geojson详细文档]()
## Geojson相关的JS库
### 地理统计分析工具
[turfjs](http://turfjs.org/):  地理数据计算处理统计分析的Javascript 库
### 在线工具:
[http://geojson.io/](http://geojson.io/)    可以在线查看绘制修改GeoJSON数据
[https://mapshaper.org/](https://mapshaper.org/) 可以查看较大的geojson还能够简化GeoJSON数据

View File

@ -0,0 +1,298 @@
---
title: Source
order: 0
---
# Source
### 概述
source 地理数据处理模块主要包含数据解析parser),和数据处理(transform);
**parser:**
不同数据类型处理成统一数据格式。矢量数据包括 GeoJON, CSVJson等不同数据格式栅格数据包括RasterImage数据。将来还会支持瓦片格式数据。
**transform**
数据转换,数据统计,网格布局,数据聚合等数据操作。
## API
### parser
空间数据分矢量数据和栅格数据两大类
- 矢量数据 支持 csvgeojsonjson 三种数据类型
- 栅格数据 支持 imageRaster
#### geojson
[geojson](https://www.yuque.com/antv/l7/dm2zll) 数据为默认数据格式,可以
不需要设置parser 参数
```javascript
layer.source(data)
```
#### json
json 不是标准的地理数据结构,因此需要设置对应的经纬度字段
**点数据**
x: 经度字段
y: 纬度字段
```javascript
const data = [{
lng:112.345,
lat:30.455,
value: 10
},{
 lng:114.345,
lat:31.455,
value: 10
 }
]
layer.source(
data,
{
parser: {
type:'json',
x:'lng',
y:'lat',
}
})
```
**线段数据**
type: json
这里的直线表示有两个点组成的线段,主要绘制弧线的时候比较常用,只需指定线段的起始点坐标
x:经度字段 起点经度
y:纬度字段 起点纬度
x1:经度字段 终点经度
y1:纬度字段 终点纬度
```javascript
const data = [{
lng1:112.345,
lat1:30.455,
  lng2:112.345,
lat2:30.455,
value: 10
},{
 lng1:114.345,
lat1:31.455,
  lng2:112.345,
lat2:30.455,
value: 10
 }
];
layer.source(
data,
{
parser:{
type:'json',
x:'lng1',
y:'lat1' ,
    x1:'lng1',
y1:'lat2' ,
}
}
})
```
**面数据**
需要指定coordinates 字段, coordinates据格式
**注意面数据 coord  是三层数据结构**
```javascript
[ {
type: "Polygon",
'geometryCoord': [
[
[
115.1806640625,
30.637912028341123
],
[
114.9609375,
29.152161283318915
],
[
117.79541015625001,
27.430289738862594
],
[
118.740234375,
29.420460341013133
],
[
117.46582031249999,
31.50362930577303
],
[
115.1806640625,
30.637912028341123
]
]
]
}
]
layer.source(data,{
parser:{
type:'json',
coordinates:'geometryCoord'
}
})
```
#### csv
线数据配置项同json数据类型
```javascript
layer.source(
data,
{
parser:{
type:'csv',
x:'lng1',
y:'lat1' ,
    x1:'lng1',
y1:'lat2' ,
}
})
```
**栅格数据类型****
#### image
 根据图片的经纬度范围,将图片添加到地图上。 配置项
-  type: image
-  extent: 图像的经纬度范围 []
```javascript
layer.source('https://gw.alipayobjects.com/zos/rmsportal/FnHFeFklTzKDdUESRNDv.jpg',{
parser:{
type:'image',
extent: [ 121.1680, 30.2828, 121.3840, 30.4219 ]
}
})
```
 
#### raster
栅格数据类型主要表示遥感数据类型data 栅格数据的二维矩阵数据parser 配置项
- type  raster
- width  数据宽度二维矩阵 columns 
- height 数据高度
- min 数据最大值
- max 数据最小值
- extent 经纬度范围
```javascript
source(values, {
parser: {
type: 'raster',
width: n,
height: m,
min: 0,
max: 8000,
extent: [ 73.482190241, 3.82501784112, 135.106618732, 57.6300459963 ]
}
})
```
### transforms
目前支持三种数据处理方法 mapgridhexagon transform配置项
- type 数据处理类型
-  tansform cfg  数据处理配置项
#### map
数据处理支持自定义callback函数
- callback:function 回调函数
```javascript
layer.source(data, {
transforms:[
{
type: 'map',
callback:function(item){
const [x, y] = item.coordinates;
item.lat = item.lat*1;
item.lng = item.lng*1;
item.v = item.v *1;
item.coordinates = [x*1,y*1];
return item;
}
},
```
#### grid
生成方格网布局,根据数据字段统计,主要在网格热力图中使用
-  type: 'grid',
-  size: 网格半径
-  field: 数据统计字段
-  method:聚合方法  count,max,min,sum,mean5个统计维度
```javascript
layer.source(data, {
transforms:[
{
type: 'grid',
size: 15000,
field:'v',
method:'sum'
}
]
}
```
#### hexagon
生成六边形网格布局,根据数据字段统计
-  type: 'hexagon',
-  size: 网格半径
-  field: 数据统计字段
-  method:聚合方法  count,max,min,sum,mean5个统计维度
```

View File

@ -0,0 +1,298 @@
---
title: Source
order: 0
---
# Source
### 概述
source 地理数据处理模块主要包含数据解析parser),和数据处理(transform);
**parser:**
不同数据类型处理成统一数据格式。矢量数据包括 GeoJON, CSVJson等不同数据格式栅格数据包括RasterImage数据。将来还会支持瓦片格式数据。
**transform:**
数据转换,数据统计,网格布局,数据聚合等数据操作。
## API
### parser
空间数据分矢量数据和栅格数据两大类
- 矢量数据 支持 csvgeojsonjson 三种数据类型
- 栅格数据 支持 imageRaster
#### geojson
[geojson](https://www.yuque.com/antv/l7/dm2zll) 数据为默认数据格式,可以
不需要设置parser 参数
```javascript
layer.source(data);
```
#### json
json 不是标准的地理数据结构,因此需要设置对应的经纬度字段
**点数据**
x: 经度字段
y: 纬度字段
```javascript
const data = [{
lng:112.345,
lat:30.455,
value: 10
},{
 lng:114.345,
lat:31.455,
value: 10
 }
]
layer.source(
data,
{
parser: {
type:'json',
x:'lng',
y:'lat',
}
})
```
**线段数据**
type: json
这里的直线表示有两个点组成的线段,主要绘制弧线的时候比较常用,只需指定线段的起始点坐标
x:经度字段 起点经度
y:纬度字段 起点纬度
x1:经度字段 终点经度
y1:纬度字段 终点纬度
```javascript
const data = [{
lng1:112.345,
lat1:30.455,
  lng2:112.345,
lat2:30.455,
value: 10
},{
 lng1:114.345,
lat1:31.455,
  lng2:112.345,
lat2:30.455,
value: 10
 }
];
layer.source(
data,
{
parser:{
type:'json',
x:'lng1',
y:'lat1' ,
    x1:'lng1',
y1:'lat2' ,
}
}
})
```
**面数据**
需要指定coordinates 字段, coordinates据格式
**注意面数据 coord  是三层数据结构**
```javascript
[ {
type: "Polygon",
'geometryCoord': [
[
[
115.1806640625,
30.637912028341123
],
[
114.9609375,
29.152161283318915
],
[
117.79541015625001,
27.430289738862594
],
[
118.740234375,
29.420460341013133
],
[
117.46582031249999,
31.50362930577303
],
[
115.1806640625,
30.637912028341123
]
]
]
}
];
layer.source(data,{
parser:{
type:'json',
coordinates:'geometryCoord'
}
});
```
#### csv
线数据配置项同json数据类型
```javascript
layer.source(
data,
{
parser:{
type:'csv',
x:'lng1',
y:'lat1' ,
    x1:'lng1',
y1:'lat2' ,
}
})
```
**栅格数据类型****
#### image
 根据图片的经纬度范围,将图片添加到地图上。 配置项
-  type: image
-  extent: 图像的经纬度范围 []
```javascript
layer.source('https://gw.alipayobjects.com/zos/rmsportal/FnHFeFklTzKDdUESRNDv.jpg',{
parser:{
type:'image',
extent: [ 121.1680, 30.2828, 121.3840, 30.4219 ]
}
});
```
 
#### raster
栅格数据类型主要表示遥感数据类型data 栅格数据的二维矩阵数据parser 配置项
- type  raster
- width  数据宽度二维矩阵 columns 
- height 数据高度
- min 数据最大值
- max 数据最小值
- extent 经纬度范围
```javascript
source(values, {
parser: {
type: 'raster',
width: n,
height: m,
min: 0,
max: 8000,
extent: [ 73.482190241, 3.82501784112, 135.106618732, 57.6300459963 ]
}
});
```
### transforms
目前支持三种数据处理方法 mapgridhexagon transform配置项
- type 数据处理类型
-  tansform cfg  数据处理配置项
#### map
数据处理支持自定义callback函数
- callback:function 回调函数
```javascript
layer.source(data, {
transforms:[
{
type: 'map',
callback:function(item){
const [x, y] = item.coordinates;
item.lat = item.lat*1;
item.lng = item.lng*1;
item.v = item.v *1;
item.coordinates = [x*1,y*1];
return item;
}
}
]
});
```
#### grid
生成方格网布局,根据数据字段统计,主要在网格热力图中使用
-  type: 'grid',
-  size: 网格半径
-  field: 数据统计字段
-  method:聚合方法  count,max,min,sum,mean5个统计维度
```javascript
layer.source(data, {
transforms:[
{
type: 'grid',
size: 15000,
field:'v',
method:'sum'
}
],
})
```
#### hexagon
生成六边形网格布局,根据数据字段统计
-  type: 'hexagon',
-  size: 网格半径
-  field: 数据统计字段
-  method:聚合方法  count,max,min,sum,mean5个统计维度
```

View File

@ -2,5 +2,5 @@
title: Gallery
order: 0
redirect_from:
- /en/examples/
- /en/examples
---

View File

@ -2,5 +2,5 @@
title: Gallery
order: 0
redirect_from:
- /zh/examples/
- /zh/examples
---

View File

@ -40,13 +40,6 @@ module.exports = {
// target: '_blank',
],
docs: [
{
slug: 'specification',
title: {
zh: '简介',
en: 'Introduction',
},
},
{
slug: 'manual/tutorial',
title: {
@ -55,7 +48,7 @@ module.exports = {
},
},
{
slug: 'API/L7',
slug: 'api/l7',
title: {
zh: '简介',
en: 'Introduction',
@ -63,13 +56,37 @@ module.exports = {
order:0,
},
{
slug: 'API/component',
slug: 'api/scene',
title: {
zh: '组件',
en: 'Component',
zh: 'Scene',
en: 'Scene',
},
order:1,
},
{
slug: 'api/layer',
title: {
zh: 'Layer',
en: 'layer',
},
order:2,
},
{
slug: 'api/source',
title: {
zh: 'source',
en: 'source',
},
order:3,
},
{
slug: 'api/component',
title: {
zh: 'Component',
en: 'Component',
},
order:4,
},
],
examples: [
{

View File

@ -109,7 +109,7 @@
"start": "NODE_ENV=site npm run site:develop",
"build_site": "NODE_ENV=site npm run site:build",
"site:develop": "gatsby develop --open -H 0.0.0.0",
"site:build": "npm run site:clean && gatsby build --prefix-paths",
"site:build": "npm run site:clean && NODE_ENV=site gatsby build --prefix-paths",
"site:clean": "gatsby clean",
"site:deploy": "NODE_ENV=site npm run site:build && gh-pages -d public",
"site:publish": "gh-pages -d public",

View File

@ -5,7 +5,7 @@ import { IModuleParams, IShaderModuleService } from './IShaderModuleService';
import common from '../../shaders/common.glsl';
import decode from '../../shaders/decode.glsl';
import light from '../../shaders/light.glsl';
import light from '../../shaders/light2.glsl';
import lighting from '../../shaders/lighting.glsl';
import pickingFrag from '../../shaders/picking.frag.glsl';
import pickingVert from '../../shaders/picking.vert.glsl';

View File

@ -7,17 +7,17 @@ float calc_lighting(vec4 pos) {
vec3 worldPos = vec3(pos * u_ModelMatrix);
vec3 worldNormal = vec3(vec4(a_Normal,1.0));
vec3 worldNormal = a_Normal;
// //cal light weight
vec3 viewDir = normalize(u_CameraPosition - worldPos);
vec3 lightDir = normalize(vec3(1, 10.5, 12));
vec3 lightDir = normalize(reverse_offset_normal(vec3(1, 10.5, 12)));
vec3 halfDir = normalize(viewDir+lightDir);
// //lambert
float lambert = dot(worldNormal, lightDir);
//specular
float specular = pow( max(0.0, dot(worldNormal, halfDir)), 32.0);
float specular = pow(max(0.0, dot(worldNormal, halfDir)), 32.0);
//sum to light weight
float lightWeight = ambientRatio + diffuseRatio * lambert + specularRatio * specular;

View File

@ -67,7 +67,7 @@ vec3 project_offset_normal(vec3 vector) {
// reverse Y
vec3 reverse_offset_normal(vec3 vector) {
if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) {
return vector * vec3(1.0,-1.0, 1.0);
return vector * vec3(1.0, -1.0, 1.0);
}
return vector;
}

View File

@ -21,7 +21,7 @@ void main() {
mat2 rotationMatrix = mat2(cos(u_angle), sin(u_angle), -sin(u_angle), cos(u_angle));
vec2 offset =(vec2(a_Position.xy * u_radius * rotationMatrix * u_coverage));
vec2 lnglat = unProjectFlat(a_Pos.xy + offset);
vec4 project_pos = project_position(vec4(lnglat, a_Position.z * a_Size, 1.0));
vec4 project_pos = project_position(vec4(lnglat, a_Position.z * project_pixel(a_Size), 1.0));
float lightWeight = calc_lighting(project_pos);
v_color =vec4(a_Color.rgb*lightWeight, a_Color.w);

View File

@ -8,8 +8,8 @@ import {
} from '@l7/core';
import BaseModel from '../../core/baseModel';
import { PointExtrudeTriangulation } from '../../core/triangulation';
import pointExtrudeVert from '../shaders/extrude3_vert.glsl';
import pointExtrudeFrag from '../shaders/extrude_frag.glsl';
import pointExtrudeVert from '../shaders/extrude_vert.glsl';
interface IPointLayerStyleOptions {
opacity: number;
}
@ -24,7 +24,7 @@ export default class ExtrudeModel extends BaseModel {
public buildModels(): IModel[] {
return [
this.layer.buildLayerModel({
moduleName: 'pointExtrude',
moduleName: 'pointExtrude2',
vertexShader: pointExtrudeVert,
fragmentShader: pointExtrudeFrag,
triangulation: PointExtrudeTriangulation,

View File

@ -0,0 +1,33 @@
precision highp float;
#define ambientRatio 0.5
#define diffuseRatio 0.3
#define specularRatio 0.2
attribute vec3 a_Position;
attribute vec3 a_Pos;
attribute vec4 a_Color;
attribute vec3 a_Size;
attribute vec3 a_Normal;
uniform mat4 u_ModelMatrix;
varying vec4 v_color;
#pragma include "projection"
#pragma include "light"
void main() {
vec3 size = a_Size * a_Position;
vec2 offset = project_pixel(size.xy);
vec4 project_pos = project_position(vec4(a_Pos.xy, 0, 1.0));
vec4 pos = vec4(project_pos.xy + offset, project_pixel(size.z), 1.0);
float lightWeight = calc_lighting(pos);
v_color =vec4(a_Color.rgb * lightWeight, a_Color.w);
gl_Position = project_common_position_to_clipspace(pos);
}

View File

@ -24,23 +24,7 @@ void main() {
vec4 project_pos = project_position(vec4(a_Pos.xy, 0, 1.0));
vec4 pos = vec4(project_pos.xy + offset, project_pixel(size.z), 1.0);
float lightWeight = calc_lighting(pos);
// vec3 worldPos = vec3(pos * u_ModelMatrix);
// vec3 worldNormal = vec3(vec4(a_Normal,1.0));
// // //cal light weight
// vec3 viewDir = normalize(u_CameraPosition - worldPos);
// vec3 lightDir = normalize(vec3(1, -10.5, 12));
// vec3 halfDir = normalize(viewDir+lightDir);
// // //lambert
// float lambert = dot(worldNormal, lightDir);
// //specular
// float specular = pow( max(0.0, dot(worldNormal, halfDir)), 32.0);
// //sum to light weight
// float lightWeight = ambientRatio + diffuseRatio * lambert + specularRatio * specular;
// float lightWeight = calc_lighting(pos);
v_color =vec4(a_Color.rgb*lightWeight, a_Color.w);

View File

@ -5,14 +5,28 @@
height: 100px !important;
}
.cover-image {
margin-top: 40px;
margin-left: 30px;
max-height: 600px;
margin-top: 60px;
height: 300px;
}
@media only screen and (max-height: 800px) {
@media only screen and (max-height: 599) and (max-width: 800px) {
.cover-image {
margin-top: 40px;
margin-left: 270px;
margin-left: 260px;
max-height: 400px;
}
}
@media only screen and (min-height: 599px) and (min-width:800px) {
.cover-image {
margin-top: 40px;
margin-left: 10px;
height: 600px;
}
}
@media only screen and (max-height: 599px) and (min-width:800px) {
.cover-image {
margin-top: 40px;
margin-left: 10px;
height: 600px;
}
}

File diff suppressed because one or more lines are too long

View File

@ -1,14 +1,13 @@
{
"L7 地理空间可视化引擎": "Geospatial Visualization
Analysis Framework",
"L7 地理空间数据可视分析引擎": "L7 Geospatial Visualization Analysis",
"地理空间数据可视化": "Geospatial Data Visualization Analysis Framework",
"L7 是由蚂蚁金服 AntV 数据可视化团队推出的基于WebGL的开源大规模地理空间数据可视分析开发框架。": "Large-scale WebGL-powered Geospatial data visualization analysis framework",
"架构上灵活可扩展":"Flexible and scalable",
"架构上灵活可扩展":"Flexible and Scalable",
"业务上简洁且通用":"Simple and Universal",
"可视化上酷炫动感":"Cool and Dynamic",
"支持地图底图,渲染引擎,图层自由定制、扩展,组合":"Support many basemap, many rendering engine, and layer free customization, extension, combination",
"以图形符号学地理设计体系理论基础,易用,易理解,专业,专注":"Base on Semiology of Graphics , easy to use, easy to understand, professional, focused",
"支持海量数据2D、3D动态可交互高性能渲染":"Support massive data, 2D, 3D, dynamic, interactive, high performance rendering",
"以图形符号学地理设计体系理论基础,易用、易理解、专业、专注":"Base on Semiology of Graphics , easy to use, easy to understand, professional, focused",
"支持海量数据2D、3D动态可交互高性能渲染":"Support multiple basemaps, rendering engines, layers can be customized, expanded and combined freely",
"蚂蚁数据可视化": "AntV",
"继续了解": "More",
"更新": "Update",

View File

@ -23,7 +23,7 @@ const IndexPage = () => {
'https://gw.alipayobjects.com/zos/basement_prod/0ccf4dcb-1bac-4f4e-8d8d-f1031c77c9c8.svg',
title: t('业务上简洁且通用'),
description: t(
'以图形符号学地理设计体系理论基础,易用,易理解,专业 专注',
'以图形符号学地理设计体系理论基础,易用、易理解、专业、专注',
),
},
{
@ -36,12 +36,12 @@ const IndexPage = () => {
const bannerButtons = [
{
text: t('图表示例'),
link: '/examples/point/basic',
link: `/${i18n.language}/examples/gallery/basic`,
type: 'primary',
},
{
text: t('下载使用'),
link: '/docs/API/L7',
link: `/${i18n.language}/docs/api/l7`,
},
];
@ -59,7 +59,7 @@ const IndexPage = () => {
logo:'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*gjBmT56SDgsAAAAAAAAAAABkARQnAQ',
title: t('浅色色板'),
description: t('一个个真实的数据可视化案例,复杂的地理数据,简单易用的API接口,让用户达到开箱即用的效果。'),
link: 'https://antvis.github.io/L7/zh/examples/gallery/basic',
link: `/${i18n.language}/examples/gallery/basic`,
image:
'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*8Pa8Toh3-OsAAAAAAAAAAABkARQnAQ',
},
@ -67,7 +67,7 @@ const IndexPage = () => {
logo:'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*gjBmT56SDgsAAAAAAAAAAABkARQnAQ',
title: t('深色色板'),
description: t('一个个真实的数据可视化案例,复杂的地理数据,简单易用的API接口,让用户达到开箱即用的效果.'),
link: 'https://antvis.github.io/L7/zh/examples/gallery/basic',
link: `/${i18n.language}/examples/gallery/basic`,
image:
'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*ryTVQ49K8SkAAAAAAAAAAABkARQnAQ',
}
@ -83,7 +83,7 @@ const IndexPage = () => {
src="https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*VcojS5aWhMYAAAAAAAAAAABkARQnAQ"
/>
}
title={t('L7 地理空间可视化引擎')}
title={t('L7 地理空间数据可视分析引擎')}
description={t(
'L7 是由蚂蚁金服 AntV 数据可视化团队推出的基于WebGL的开源大规模地理空间数据可视分析开发框架。',
)}

234
yarn.lock
View File

@ -89,9 +89,9 @@
wolfy87-eventemitter "~5.1.0"
"@antv/gatsby-theme-antv@^0.9.52":
version "0.9.69"
resolved "https://registry.npm.alibaba-inc.com/@antv/gatsby-theme-antv/download/@antv/gatsby-theme-antv-0.9.69.tgz#039e5b13ebf0c77ab28265b07566a98a2dd60489"
integrity sha1-A55bE+vwx3qygmWwdWapii3WBIk=
version "0.9.77"
resolved "https://registry.npm.alibaba-inc.com/@antv/gatsby-theme-antv/download/@antv/gatsby-theme-antv-0.9.77.tgz#5cec145937992759c1df3dce547a9a6054758620"
integrity sha1-XOwUWTeZJ1nB3z3OVHqaYFR1hiA=
dependencies:
"@babel/plugin-transform-modules-umd" "^7.2.0"
"@babel/preset-env" "^7.6.3"
@ -126,9 +126,10 @@
gatsby-plugin-manifest "^2.2.16"
gatsby-plugin-meta-redirect "^1.1.1"
gatsby-plugin-nprogress "^2.1.12"
gatsby-plugin-offline "^3.0.7"
gatsby-plugin-offline "^3.0.22"
gatsby-plugin-page-creator "^2.1.25"
gatsby-plugin-react-helmet "^3.1.7"
gatsby-plugin-remove-serviceworker "^1.0.0"
gatsby-plugin-remove-trailing-slashes "^2.1.9"
gatsby-plugin-sharp "^2.2.22"
gatsby-plugin-typescript "^2.1.8"
@ -173,6 +174,7 @@
slick-carousel "^1.8.1"
ts-jest "^24.1.0"
typescript "^3.6.3"
video-react "^0.14.1"
"@antv/gl-matrix@^2.7.1", "@antv/gl-matrix@~2.7.1":
version "2.7.1"
@ -3724,16 +3726,11 @@
dependencies:
"@types/lodash" "*"
"@types/lodash@*":
"@types/lodash@*", "@types/lodash@^4.14.138":
version "4.14.149"
resolved "https://registry.npm.alibaba-inc.com/@types/lodash/download/@types/lodash-4.14.149.tgz#1342d63d948c6062838fbf961012f74d4e638440"
integrity sha1-E0LWPZSMYGKDj7+WEBL3TU5jhEA=
"@types/lodash@^4.14.138":
version "4.14.148"
resolved "https://registry.npm.alibaba-inc.com/@types/lodash/download/@types/lodash-4.14.148.tgz#ffa2786721707b335c6aa1465e6d3d74016fbd3e"
integrity sha1-/6J4ZyFwezNcaqFGXm09dAFvvT4=
"@types/mapbox-gl@^0.54.3":
version "0.54.5"
resolved "https://registry.npm.alibaba-inc.com/@types/mapbox-gl/download/@types/mapbox-gl-0.54.5.tgz#d50285796cb9d3544121d9e2b5314da99f9774bf"
@ -3751,16 +3748,11 @@
resolved "https://registry.npm.alibaba-inc.com/@types/mkdirp/download/@types/mkdirp-0.3.29.tgz#7f2ad7ec55f914482fc9b1ec4bb1ae6028d46066"
integrity sha1-fyrX7FX5FEgvybHsS7GuYCjUYGY=
"@types/node@*", "@types/node@>= 8":
"@types/node@*", "@types/node@>= 8", "@types/node@^12.0.2", "@types/node@^12.7.3":
version "12.12.9"
resolved "https://registry.npm.alibaba-inc.com/@types/node/download/@types/node-12.12.9.tgz#0b5ae05516b757cbff2e82c04500190aef986c7b"
integrity sha1-C1rgVRa3V8v/LoLARQAZCu+YbHs=
"@types/node@^12.0.2", "@types/node@^12.7.3":
version "12.12.8"
resolved "https://registry.npm.alibaba-inc.com/@types/node/download/@types/node-12.12.8.tgz#dab418655af39ce2fa99286a0bed21ef8072ac9d"
integrity sha1-2rQYZVrznOL6mShqC+0h74ByrJ0=
"@types/node@^7.0.11":
version "7.10.9"
resolved "https://registry.npm.alibaba-inc.com/@types/node/download/@types/node-7.10.9.tgz#4343e3b009f8cf5e1ed685e36097b74b4101e880"
@ -4894,20 +4886,7 @@ autocomplete.js@0.36.0:
dependencies:
immediate "^3.2.3"
autoprefixer@^9.0.0, autoprefixer@^9.4.9:
version "9.7.1"
resolved "https://registry.npm.alibaba-inc.com/autoprefixer/download/autoprefixer-9.7.1.tgz#9ffc44c55f5ca89253d9bb7186cefb01ef57747f"
integrity sha1-n/xExV9cqJJT2btxhs77Ae9XdH8=
dependencies:
browserslist "^4.7.2"
caniuse-lite "^1.0.30001006"
chalk "^2.4.2"
normalize-range "^0.1.2"
num2fraction "^1.2.2"
postcss "^7.0.21"
postcss-value-parser "^4.0.2"
autoprefixer@^9.7.1:
autoprefixer@^9.0.0, autoprefixer@^9.4.9, autoprefixer@^9.7.1:
version "9.7.2"
resolved "https://registry.npm.alibaba-inc.com/autoprefixer/download/autoprefixer-9.7.2.tgz#26cf729fbb709323b40171a874304884dcceffed"
integrity sha1-Js9yn7twkyO0AXGodDBIhNzO/+0=
@ -6269,16 +6248,11 @@ caniuse-api@^3.0.0:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000844, caniuse-lite@^1.0.30001006, caniuse-lite@^1.0.30001010:
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000844, caniuse-lite@^1.0.30000989, caniuse-lite@^1.0.30001010:
version "1.0.30001010"
resolved "https://registry.npm.alibaba-inc.com/caniuse-lite/download/caniuse-lite-1.0.30001010.tgz#397a14034d384260453cc81994f494626d34b938"
integrity sha1-OXoUA004QmBFPMgZlPSUYm00uTg=
caniuse-lite@^1.0.30000989:
version "1.0.30001009"
resolved "https://registry.npm.alibaba-inc.com/caniuse-lite/download/caniuse-lite-1.0.30001009.tgz#69b77997b882a7aee6af24c8d7d2fa27ee41f348"
integrity sha1-abd5l7iCp67mryTI19L6J+5B80g=
capture-exit@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.alibaba-inc.com/capture-exit/download/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4"
@ -7106,9 +7080,9 @@ conventional-changelog-preset-loader@^2.1.1:
integrity sha1-WA+oqwLO8iwkKU0l5S18zSR6mmo=
conventional-changelog-writer@^4.0.6:
version "4.0.10"
resolved "https://registry.npm.alibaba-inc.com/conventional-changelog-writer/download/conventional-changelog-writer-4.0.10.tgz#39f6458cca62a8151b3ce582a57ff71fd2b0ff7a"
integrity sha1-OfZFjMpiqBUbPOWCpX/3H9Kw/3o=
version "4.0.11"
resolved "https://registry.npm.alibaba-inc.com/conventional-changelog-writer/download/conventional-changelog-writer-4.0.11.tgz#9f56d2122d20c96eb48baae0bf1deffaed1edba4"
integrity sha1-n1bSEi0gyW60i6rgvx3v+u0e26Q=
dependencies:
compare-func "^1.3.1"
conventional-commits-filter "^2.0.2"
@ -7116,7 +7090,7 @@ conventional-changelog-writer@^4.0.6:
handlebars "^4.4.0"
json-stringify-safe "^5.0.1"
lodash "^4.17.15"
meow "^4.0.0"
meow "^5.0.0"
semver "^6.0.0"
split "^1.0.0"
through2 "^3.0.0"
@ -7148,14 +7122,14 @@ conventional-commits-parser@^2.1.0:
trim-off-newlines "^1.0.0"
conventional-commits-parser@^3.0.3:
version "3.0.7"
resolved "https://registry.npm.alibaba-inc.com/conventional-commits-parser/download/conventional-commits-parser-3.0.7.tgz#55b6cde6a2d0b4a7ab399392777d527134a8d05c"
integrity sha1-VbbN5qLQtKerOZOSd31ScTSo0Fw=
version "3.0.8"
resolved "https://registry.npm.alibaba-inc.com/conventional-commits-parser/download/conventional-commits-parser-3.0.8.tgz#23310a9bda6c93c874224375e72b09fb275fe710"
integrity sha1-IzEKm9psk8h0IkN15ysJ+ydf5xA=
dependencies:
JSONStream "^1.0.4"
is-text-path "^1.0.1"
lodash "^4.17.15"
meow "^4.0.0"
meow "^5.0.0"
split2 "^2.0.0"
through2 "^3.0.0"
trim-off-newlines "^1.0.0"
@ -7857,28 +7831,28 @@ d3-color@1, d3-color@^1.4.0:
integrity sha1-icRamV7Xc7EzFPBkYN8m1gug7K8=
d3-dispatch@1:
version "1.0.5"
resolved "https://registry.npm.alibaba-inc.com/d3-dispatch/download/d3-dispatch-1.0.5.tgz#e25c10a186517cd6c82dd19ea018f07e01e39015"
integrity sha1-4lwQoYZRfNbILdGeoBjwfgHjkBU=
version "1.0.6"
resolved "https://registry.npm.alibaba-inc.com/d3-dispatch/download/d3-dispatch-1.0.6.tgz#00d37bcee4dd8cd97729dd893a0ac29caaba5d58"
integrity sha1-ANN7zuTdjNl3Kd2JOgrCnKq6XVg=
d3-dsv@^1.1.1:
version "1.1.1"
resolved "https://registry.npm.alibaba-inc.com/d3-dsv/download/d3-dsv-1.1.1.tgz#aaa830ecb76c4b5015572c647cc6441e3c7bb701"
integrity sha1-qqgw7LdsS1AVVyxkfMZEHjx7twE=
version "1.2.0"
resolved "https://registry.npm.alibaba-inc.com/d3-dsv/download/d3-dsv-1.2.0.tgz#9d5f75c3a5f8abd611f74d3f5847b0d4338b885c"
integrity sha1-nV91w6X4q9YR900/WEew1DOLiFw=
dependencies:
commander "2"
iconv-lite "0.4"
rw "1"
d3-ease@1, d3-ease@~1.0.3:
version "1.0.5"
resolved "https://registry.npm.alibaba-inc.com/d3-ease/download/d3-ease-1.0.5.tgz#8ce59276d81241b1b72042d6af2d40e76d936ffb"
integrity sha1-jOWSdtgSQbG3IELWry1A522Tb/s=
version "1.0.6"
resolved "https://registry.npm.alibaba-inc.com/d3-ease/download/d3-ease-1.0.6.tgz#ebdb6da22dfac0a22222f2d4da06f66c416a0ec0"
integrity sha1-69ttoi36wKIiIvLU2gb2bEFqDsA=
d3-format@1:
version "1.4.1"
resolved "https://registry.npm.alibaba-inc.com/d3-format/download/d3-format-1.4.1.tgz#c45f74b17c5a290c072a4ba7039dd19662cd5ce6"
integrity sha1-xF90sXxaKQwHKkunA53RlmLNXOY=
version "1.4.2"
resolved "https://registry.npm.alibaba-inc.com/d3-format/download/d3-format-1.4.2.tgz#2a8c0ebf500f315981c2110eaaf70b82f472cb2b"
integrity sha1-KowOv1APMVmBwhEOqvcLgvRyyys=
d3-hexbin@^0.2.2:
version "0.2.2"
@ -7886,9 +7860,9 @@ d3-hexbin@^0.2.2:
integrity sha1-nFg32s/UcasFM3qeke8Qv8T5iDE=
d3-interpolate@1:
version "1.3.2"
resolved "https://registry.npm.alibaba-inc.com/d3-interpolate/download/d3-interpolate-1.3.2.tgz#417d3ebdeb4bc4efcc8fd4361c55e4040211fd68"
integrity sha1-QX0+vetLxO/Mj9Q2HFXkBAIR/Wg=
version "1.3.3"
resolved "https://registry.npm.alibaba-inc.com/d3-interpolate/download/d3-interpolate-1.3.3.tgz#cef4ba06dfccebcc45e4ae9d4d836a931a945076"
integrity sha1-zvS6Bt/M68xF5K6dTYNqkxqUUHY=
dependencies:
d3-color "1"
@ -7911,14 +7885,14 @@ d3-scale@^3.1.0:
d3-time-format "2"
d3-selection@^1.0.2, d3-selection@^1.1.0:
version "1.4.0"
resolved "https://registry.npm.alibaba-inc.com/d3-selection/download/d3-selection-1.4.0.tgz#ab9ac1e664cf967ebf1b479cc07e28ce9908c474"
integrity sha1-q5rB5mTPln6/G0ecwH4ozpkIxHQ=
version "1.4.1"
resolved "https://registry.npm.alibaba-inc.com/d3-selection/download/d3-selection-1.4.1.tgz#98eedbbe085fbda5bafa2f9e3f3a2f4d7d622a98"
integrity sha1-mO7bvghfvaW6+i+ePzovTX1iKpg=
d3-time-format@2:
version "2.2.1"
resolved "https://registry.npm.alibaba-inc.com/d3-time-format/download/d3-time-format-2.2.1.tgz#971f66aae3b8fb268040494986f41512d4d4dca6"
integrity sha1-lx9mquO4+yaAQElJhvQVEtTU3KY=
version "2.2.2"
resolved "https://registry.npm.alibaba-inc.com/d3-time-format/download/d3-time-format-2.2.2.tgz#187597ffc6a0f37cb36bb7a1d7167cdc887ecda0"
integrity sha1-GHWX/8ag83yza7eh1xZ83Ih+zaA=
dependencies:
d3-time "1"
@ -7928,14 +7902,14 @@ d3-time@1:
integrity sha1-seGdMH2unJALflsl/8XcwkmooPE=
d3-timer@1, d3-timer@~1.0.6:
version "1.0.9"
resolved "https://registry.npm.alibaba-inc.com/d3-timer/download/d3-timer-1.0.9.tgz#f7bb8c0d597d792ff7131e1c24a36dd471a471ba"
integrity sha1-97uMDVl9eS/3Ex4cJKNt1HGkcbo=
version "1.0.10"
resolved "https://registry.npm.alibaba-inc.com/d3-timer/download/d3-timer-1.0.10.tgz#dfe76b8a91748831b13b6d9c793ffbd508dd9de5"
integrity sha1-3+dripF0iDGxO22ceT/71QjdneU=
d3-transition@^1.0.1:
version "1.2.0"
resolved "https://registry.npm.alibaba-inc.com/d3-transition/download/d3-transition-1.2.0.tgz#f538c0e21b2aa1f05f3e965f8567e81284b3b2b8"
integrity sha1-9TjA4hsqofBfPpZfhWfoEoSzsrg=
version "1.3.2"
resolved "https://registry.npm.alibaba-inc.com/d3-transition/download/d3-transition-1.3.2.tgz#a98ef2151be8d8600543434c1ca80140ae23b398"
integrity sha1-qY7yFRvo2GAFQ0NMHKgBQK4js5g=
dependencies:
d3-color "1"
d3-dispatch "1"
@ -8538,9 +8512,9 @@ dom-scroll-into-view@1.x, dom-scroll-into-view@^1.2.0, dom-scroll-into-view@^1.2
integrity sha1-6PNnMt0ImwIBqI14Fdw/iObWbH4=
dom-serializer@0:
version "0.2.1"
resolved "https://registry.npm.alibaba-inc.com/dom-serializer/download/dom-serializer-0.2.1.tgz#13650c850daffea35d8b626a4cfc4d3a17643fdb"
integrity sha1-E2UMhQ2v/qNdi2JqTPxNOhdkP9s=
version "0.2.2"
resolved "https://registry.npm.alibaba-inc.com/dom-serializer/download/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51"
integrity sha1-GvuB9TNxcXXUeGVd68XjMtn5u1E=
dependencies:
domelementtype "^2.0.1"
entities "^2.0.0"
@ -8744,9 +8718,9 @@ ee-first@1.1.1:
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
ejs@^2.6.1:
version "2.7.2"
resolved "https://registry.npm.alibaba-inc.com/ejs/download/ejs-2.7.2.tgz#749037c4c09bd57626a6140afbe6b7e650661614"
integrity sha1-dJA3xMCb1XYmphQK++a35lBmFhQ=
version "2.7.3"
resolved "https://registry.npm.alibaba-inc.com/ejs/download/ejs-2.7.3.tgz#4f437b3992ea0e0757f0ab8d7f29e42593498927"
integrity sha1-T0N7OZLqDgdX8KuNfynkJZNJiSc=
electron-to-chromium@^1.3.247, electron-to-chromium@^1.3.306, electron-to-chromium@^1.3.47:
version "1.3.306"
@ -10477,7 +10451,7 @@ fuse.js@^3.4.4:
resolved "https://registry.npm.alibaba-inc.com/fuse.js/download/fuse.js-3.4.5.tgz#8954fb43f9729bd5dbcb8c08f251db552595a7a6"
integrity sha1-iVT7Q/lym9Xby4wI8lHbVSWVp6Y=
gatsby-cli@^2.8.11, gatsby-cli@^2.8.12:
gatsby-cli@^2.8.12:
version "2.8.12"
resolved "https://registry.npm.alibaba-inc.com/gatsby-cli/download/gatsby-cli-2.8.12.tgz#e1d870a15258003b3ee6db68a24d5b6bc9d4368d"
integrity sha1-4dhwoVJYADs+5ttook1ba8nUNo0=
@ -10525,7 +10499,7 @@ gatsby-cli@^2.8.11, gatsby-cli@^2.8.12:
ink "^2.5.0"
ink-spinner "^3.0.1"
gatsby-core-utils@^1.0.19, gatsby-core-utils@^1.0.20:
gatsby-core-utils@^1.0.20:
version "1.0.20"
resolved "https://registry.npm.alibaba-inc.com/gatsby-core-utils/download/gatsby-core-utils-1.0.20.tgz#f4788c2591fa7165c87f0ee5e8edf664c91978ea"
integrity sha1-9HiMJZH6cWXIfw7l6O32ZMkZeOo=
@ -10594,20 +10568,13 @@ gatsby-plugin-copy-files@^1.0.3:
dependencies:
fs-extra "^4.0.0"
gatsby-plugin-google-analytics@^2.1.16:
gatsby-plugin-google-analytics@^2.1.16, gatsby-plugin-google-analytics@^2.1.27:
version "2.1.28"
resolved "https://registry.npm.alibaba-inc.com/gatsby-plugin-google-analytics/download/gatsby-plugin-google-analytics-2.1.28.tgz#3f3b5105a1d47e3f07b1d4a4383e5173f483534c"
integrity sha1-PztRBaHUfj8HsdSkOD5Rc/SDU0w=
dependencies:
"@babel/runtime" "^7.7.2"
gatsby-plugin-google-analytics@^2.1.27:
version "2.1.27"
resolved "https://registry.npm.alibaba-inc.com/gatsby-plugin-google-analytics/download/gatsby-plugin-google-analytics-2.1.27.tgz#adbf24bb971ce3fb67ecdc3dcec36b833ff70abc"
integrity sha1-rb8ku5cc4/tn7Nw9zsNrgz/3Crw=
dependencies:
"@babel/runtime" "^7.7.2"
gatsby-plugin-i18n@^1.0.1:
version "1.0.1"
resolved "https://registry.npm.alibaba-inc.com/gatsby-plugin-i18n/download/gatsby-plugin-i18n-1.0.1.tgz#573fb98b85654c29e0cda50740037061fa38e694"
@ -10657,7 +10624,7 @@ gatsby-plugin-nprogress@^2.1.12:
"@babel/runtime" "^7.7.2"
nprogress "^0.2.0"
gatsby-plugin-offline@^3.0.7:
gatsby-plugin-offline@^3.0.22:
version "3.0.22"
resolved "https://registry.npm.alibaba-inc.com/gatsby-plugin-offline/download/gatsby-plugin-offline-3.0.22.tgz#a8fb03e4d6abbd8cc14a03a9427424734675d484"
integrity sha1-qPsD5NarvYzBSgOpQnQkc0Z11IQ=
@ -10670,7 +10637,7 @@ gatsby-plugin-offline@^3.0.7:
lodash "^4.17.15"
workbox-build "^4.3.1"
gatsby-plugin-page-creator@^2.1.25, gatsby-plugin-page-creator@^2.1.30, gatsby-plugin-page-creator@^2.1.31:
gatsby-plugin-page-creator@^2.1.25, gatsby-plugin-page-creator@^2.1.31:
version "2.1.31"
resolved "https://registry.npm.alibaba-inc.com/gatsby-plugin-page-creator/download/gatsby-plugin-page-creator-2.1.31.tgz#21554d125d5bd333b5307ea12ece7da297a8eb89"
integrity sha1-IVVNEl1b0zO1MH6hLs59opeo64k=
@ -10690,6 +10657,11 @@ gatsby-plugin-react-helmet@^3.1.7:
dependencies:
"@babel/runtime" "^7.7.2"
gatsby-plugin-remove-serviceworker@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.alibaba-inc.com/gatsby-plugin-remove-serviceworker/download/gatsby-plugin-remove-serviceworker-1.0.0.tgz#9fb433bc8bd766e14e1d3711c4ac6f051e1dff7c"
integrity sha1-n7QzvIvXZuFOHTcRxKxvBR4d/3w=
gatsby-plugin-remove-trailing-slashes@^2.1.9:
version "2.1.14"
resolved "https://registry.npm.alibaba-inc.com/gatsby-plugin-remove-trailing-slashes/download/gatsby-plugin-remove-trailing-slashes-2.1.14.tgz#3895e8559f12e740284f70a45da0bdbdcab9a597"
@ -10823,7 +10795,7 @@ gatsby-source-github@^0.0.2:
lodash "~4.17.5"
yup "~0.24.1"
gatsby-telemetry@^1.1.37, gatsby-telemetry@^1.1.38:
gatsby-telemetry@^1.1.38:
version "1.1.38"
resolved "https://registry.npm.alibaba-inc.com/gatsby-telemetry/download/gatsby-telemetry-1.1.38.tgz#e8ac949565b87e37699ccbd067f55cc2fe62793e"
integrity sha1-6KyUlWW4fjdpnMvQZ/Vcwv5ieT4=
@ -10887,9 +10859,9 @@ gatsby-transformer-sharp@^2.2.14:
sharp "^0.23.2"
gatsby@^2.15.16:
version "2.17.17"
resolved "https://registry.npm.alibaba-inc.com/gatsby/download/gatsby-2.17.17.tgz#f0999ce134d9abc8f29fc783abe90f69d3b08269"
integrity sha1-8Jmc4TTZq8jyn8eDq+kPadOwgmk=
version "2.18.0"
resolved "https://registry.npm.alibaba-inc.com/gatsby/download/gatsby-2.18.0.tgz#d21e4f0f56006bff913c940e79732db4e42ea319"
integrity sha1-0h5PD1YAa/+RPJQOeXMttOQuoxk=
dependencies:
"@babel/code-frame" "^7.5.5"
"@babel/core" "^7.7.2"
@ -11024,9 +10996,9 @@ gatsby@^2.15.16:
yaml-loader "^0.5.0"
gatsby@^2.17.7:
version "2.17.15"
resolved "https://registry.npm.alibaba-inc.com/gatsby/download/gatsby-2.17.15.tgz#731e44f4292256889f374d434d56ace29ac2cfec"
integrity sha1-cx5E9CkiVoifN01DTVas4prCz+w=
version "2.17.17"
resolved "https://registry.npm.alibaba-inc.com/gatsby/download/gatsby-2.17.17.tgz#f0999ce134d9abc8f29fc783abe90f69d3b08269"
integrity sha1-8Jmc4TTZq8jyn8eDq+kPadOwgmk=
dependencies:
"@babel/code-frame" "^7.5.5"
"@babel/core" "^7.7.2"
@ -11088,13 +11060,13 @@ gatsby@^2.17.7:
flat "^4.1.0"
fs-exists-cached "1.0.0"
fs-extra "^8.1.0"
gatsby-cli "^2.8.11"
gatsby-core-utils "^1.0.19"
gatsby-cli "^2.8.12"
gatsby-core-utils "^1.0.20"
gatsby-graphiql-explorer "^0.2.28"
gatsby-link "^2.2.24"
gatsby-plugin-page-creator "^2.1.30"
gatsby-plugin-page-creator "^2.1.31"
gatsby-react-router-scroll "^2.1.16"
gatsby-telemetry "^1.1.37"
gatsby-telemetry "^1.1.38"
glob "^7.1.6"
got "8.3.2"
graphql "^14.5.8"
@ -11139,7 +11111,7 @@ gatsby@^2.17.7:
shallow-compare "^1.2.2"
sift "^5.1.0"
signal-exit "^3.0.2"
slash "^3.0.0"
slugify "^1.3.6"
socket.io "^2.3.0"
stack-trace "^0.0.10"
string-similarity "^1.2.2"
@ -11945,9 +11917,9 @@ handle-thing@^2.0.0:
integrity sha1-DgOWlf9QyT/CiFV9aW88HcZ3Z1Q=
handlebars@^4.1.2, handlebars@^4.4.0:
version "4.5.2"
resolved "https://registry.npm.alibaba-inc.com/handlebars/download/handlebars-4.5.2.tgz#5a4eb92ab5962ca3415ac188c86dc7f784f76a0f"
integrity sha1-Wk65KrWWLKNBWsGIyG3H94T3ag8=
version "4.5.3"
resolved "https://registry.npm.alibaba-inc.com/handlebars/download/handlebars-4.5.3.tgz#5cf75bd8714f7605713511a56be7c349becb0482"
integrity sha1-XPdb2HFPdgVxNRGla+fDSb7LBII=
dependencies:
neo-async "^2.6.0"
optimist "^0.6.1"
@ -12496,9 +12468,9 @@ humps@^2.0.1:
integrity sha1-3QLqYIG9BWjcXQcxhEY5V7qe+ao=
husky@^3.0.9:
version "3.0.9"
resolved "https://registry.npm.alibaba-inc.com/husky/download/husky-3.0.9.tgz#a2c3e9829bfd6b4957509a9500d2eef5dbfc8044"
integrity sha1-osPpgpv9a0lXUJqVANLu9dv8gEQ=
version "3.1.0"
resolved "https://registry.npm.alibaba-inc.com/husky/download/husky-3.1.0.tgz#5faad520ab860582ed94f0c1a77f0f04c90b57c0"
integrity sha1-X6rVIKuGBYLtlPDBp38PBMkLV8A=
dependencies:
chalk "^2.4.2"
ci-info "^2.0.0"
@ -18122,7 +18094,7 @@ postcss@^6.0.0, postcss@^6.0.1, postcss@^6.0.2, postcss@^6.0.23, postcss@^6.0.8:
source-map "^0.6.1"
supports-color "^5.4.0"
postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.21, postcss@^7.0.23, postcss@^7.0.5:
postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.13, postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.17, postcss@^7.0.18, postcss@^7.0.2, postcss@^7.0.23, postcss@^7.0.5, postcss@^7.0.6, postcss@^7.0.7:
version "7.0.23"
resolved "https://registry.npm.alibaba-inc.com/postcss/download/postcss-7.0.23.tgz#9f9759fad661b15964f3cfc3140f66f1e05eadc1"
integrity sha1-n5dZ+tZhsVlk88/DFA9m8eBercE=
@ -18131,15 +18103,6 @@ postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.21, postcss@^7.0.23, postcss@^7.0.5
source-map "^0.6.1"
supports-color "^6.1.0"
postcss@^7.0.13, postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.17, postcss@^7.0.18, postcss@^7.0.2, postcss@^7.0.6, postcss@^7.0.7:
version "7.0.21"
resolved "https://registry.npm.alibaba-inc.com/postcss/download/postcss-7.0.21.tgz#06bb07824c19c2021c5d056d5b10c35b989f7e17"
integrity sha1-BrsHgkwZwgIcXQVtWxDDW5iffhc=
dependencies:
chalk "^2.4.2"
source-map "^0.6.1"
supports-color "^6.1.0"
potpack@^1.0.1:
version "1.0.1"
resolved "https://registry.npm.alibaba-inc.com/potpack/download/potpack-1.0.1.tgz#d1b1afd89e4c8f7762865ec30bd112ab767e2ebf"
@ -18803,9 +18766,9 @@ rc-footer@^0.6.1:
classnames "^2.2.1"
rc-form@^2.4.10:
version "2.4.10"
resolved "https://registry.npm.alibaba-inc.com/rc-form/download/rc-form-2.4.10.tgz#8bf7260a4c9a1d5b82621cee5f82d8daa4ecb84e"
integrity sha1-i/cmCkyaHVuCYhzuX4LY2qTsuE4=
version "2.4.11"
resolved "https://registry.npm.alibaba-inc.com/rc-form/download/rc-form-2.4.11.tgz#61ee3ae579259684ae30f2c48f55f0f23a5d3d08"
integrity sha1-Ye465XklloSuMPLEj1Xw8jpdPQg=
dependencies:
async-validator "~1.11.3"
babel-runtime "6.x"
@ -19330,9 +19293,9 @@ react-hotkeys@2.0.0-pre4:
prop-types "^15.6.1"
react-i18next@^11.0.0, react-i18next@^11.0.1:
version "11.2.1"
resolved "https://registry.npm.alibaba-inc.com/react-i18next/download/react-i18next-11.2.1.tgz#a56d9f1f52d003eb4fa8f1c7d6752123827160f0"
integrity sha1-pW2fH1LQA+tPqPHH1nUhI4JxYPA=
version "11.2.2"
resolved "https://registry.npm.alibaba-inc.com/react-i18next/download/react-i18next-11.2.2.tgz#e5e55ae4187521b01b4eafe483dd96b280106670"
integrity sha1-5eVa5Bh1IbAbTq/kg92WsoAQZnA=
dependencies:
"@babel/runtime" "^7.3.1"
html-parse-stringify2 "2.0.1"
@ -19807,7 +19770,7 @@ redux-thunk@^2.3.0:
resolved "https://registry.npm.alibaba-inc.com/redux-thunk/download/redux-thunk-2.3.0.tgz#51c2c19a185ed5187aaa9a2d08b666d0d6467622"
integrity sha1-UcLBmhhe1Rh6qpotCLZm0NZGdiI=
redux@^4.0.4:
redux@^4.0.1, redux@^4.0.4:
version "4.0.4"
resolved "https://registry.npm.alibaba-inc.com/redux/download/redux-4.0.4.tgz#4ee1aeb164b63d6a1bcc57ae4aa0b6e6fa7a3796"
integrity sha1-TuGusWS2PWobzFeuSqC25vp6N5Y=
@ -20537,9 +20500,9 @@ rollup@^0.25.8:
source-map-support "^0.3.2"
rollup@^1.27.0:
version "1.27.0"
resolved "https://registry.npm.alibaba-inc.com/rollup/download/rollup-1.27.0.tgz#7afe0da89c967cec5ccea7e919da6c89a1a68666"
integrity sha1-ev4NqJyWfOxczqfpGdpsiaGmhmY=
version "1.27.2"
resolved "https://registry.npm.alibaba-inc.com/rollup/download/rollup-1.27.2.tgz#caf54a93df228bf7864f13dddcdb363d3e958509"
integrity sha1-yvVKk98ii/eGTxPd3Ns2PT6VhQk=
dependencies:
"@types/estree" "*"
"@types/node" "*"
@ -23527,6 +23490,17 @@ vfile@^3.0.0:
unist-util-stringify-position "^1.0.0"
vfile-message "^1.0.0"
video-react@^0.14.1:
version "0.14.1"
resolved "https://registry.npm.alibaba-inc.com/video-react/download/video-react-0.14.1.tgz#49ac7b19f1d039c0b3ebec82f81224bc2fa8bdf1"
integrity sha1-Sax7GfHQOcCz6+yC+BIkvC+ovfE=
dependencies:
"@babel/runtime" "^7.4.5"
classnames "^2.2.6"
lodash.throttle "^4.1.1"
prop-types "^15.7.2"
redux "^4.0.1"
viewport-mercator-project@^6.2.1:
version "6.2.2"
resolved "https://registry.npm.alibaba-inc.com/viewport-mercator-project/download/viewport-mercator-project-6.2.2.tgz#f524819ad53fcc009b46136a59f73461bfcf1604"
@ -24405,9 +24379,9 @@ yargs@^13.2.4, yargs@^13.3.0:
yargs-parser "^13.1.1"
yargs@^14.2.0:
version "14.2.0"
resolved "https://registry.npm.alibaba-inc.com/yargs/download/yargs-14.2.0.tgz#f116a9242c4ed8668790b40759b4906c276e76c3"
integrity sha1-8RapJCxO2GaHkLQHWbSQbCdudsM=
version "14.2.2"
resolved "https://registry.npm.alibaba-inc.com/yargs/download/yargs-14.2.2.tgz#2769564379009ff8597cdd38fba09da9b493c4b5"
integrity sha1-J2lWQ3kAn/hZfN04+6CdqbSTxLU=
dependencies:
cliui "^5.0.0"
decamelize "^1.2.0"