* fix: docs: lint error

* chore: publish

* fix: 移除triangle

* chore: publish
This commit is contained in:
@thinkinggis 2022-12-28 15:53:23 +08:00 committed by GitHub
parent 67098b82e8
commit 5f489e55c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 71 additions and 71 deletions

View File

@ -16,7 +16,7 @@
"registry": "https://registry.npmjs.org"
}
},
"version": "2.12.0",
"version": "2.12.2",
"npmClient": "yarn",
"useWorkspaces": true,
"publishConfig": {

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-component",
"version": "2.12.0",
"version": "2.12.2",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -26,8 +26,8 @@
"author": "lzxue",
"license": "ISC",
"dependencies": {
"@antv/l7-core": "2.12.0",
"@antv/l7-utils": "2.12.0",
"@antv/l7-core": "2.12.2",
"@antv/l7-utils": "2.12.2",
"@babel/runtime": "^7.7.7",
"eventemitter3": "^4.0.0",
"inversify": "^5.0.1",
@ -36,7 +36,7 @@
"supercluster": "^7.0.0"
},
"devDependencies": {
"@antv/l7-test-utils": "2.12.0",
"@antv/l7-test-utils": "2.12.2",
"gcoord": "^0.3.2",
"less": "^4.1.3"
},

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-core",
"version": "2.12.0",
"version": "2.12.2",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -25,7 +25,7 @@
"license": "ISC",
"dependencies": {
"@antv/async-hook": "^2.2.9",
"@antv/l7-utils": "2.12.0",
"@antv/l7-utils": "2.12.2",
"@babel/runtime": "^7.7.7",
"@turf/helpers": "^6.1.4",
"ajv": "^6.10.2",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7",
"version": "2.12.0",
"version": "2.12.2",
"description": "A Large-scale WebGL-powered Geospatial Data Visualization",
"main": "lib/index.js",
"module": "es/index.js",
@ -26,13 +26,13 @@
"author": "antv",
"license": "MIT",
"dependencies": {
"@antv/l7-component": "2.12.0",
"@antv/l7-core": "2.12.0",
"@antv/l7-layers": "2.12.0",
"@antv/l7-maps": "2.12.0",
"@antv/l7-scene": "2.12.0",
"@antv/l7-source": "2.12.0",
"@antv/l7-utils": "2.12.0",
"@antv/l7-component": "2.12.2",
"@antv/l7-core": "2.12.2",
"@antv/l7-layers": "2.12.2",
"@antv/l7-maps": "2.12.2",
"@antv/l7-scene": "2.12.2",
"@antv/l7-source": "2.12.2",
"@antv/l7-utils": "2.12.2",
"@babel/runtime": "^7.7.7"
},
"gitHead": "684ba4eb806a798713496d3fc0b4d1e17517dc31",

View File

@ -1,2 +1,2 @@
const version = '2.12.0';
const version = '2.12.2';
export { version };

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-layers",
"version": "2.12.0",
"version": "2.12.2",
"description": "L7's collection of built-in layers",
"main": "lib/index.js",
"module": "es/index.js",
@ -27,10 +27,10 @@
"license": "ISC",
"dependencies": {
"@antv/async-hook": "^2.2.9",
"@antv/l7-core": "2.12.0",
"@antv/l7-maps": "2.12.0",
"@antv/l7-source": "2.12.0",
"@antv/l7-utils": "2.12.0",
"@antv/l7-core": "2.12.2",
"@antv/l7-maps": "2.12.2",
"@antv/l7-source": "2.12.2",
"@antv/l7-utils": "2.12.2",
"@babel/runtime": "^7.7.7",
"@mapbox/martini": "^0.2.0",
"@turf/clone": "^6.5.0",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-map",
"version": "2.12.0",
"version": "2.12.2",
"description": "l7 map",
"keywords": [],
"author": "thinkinggis <lzx199065@gmail.com>",
@ -39,7 +39,7 @@
},
"homepage": "https://github.com/antvis/L7#readme",
"dependencies": {
"@antv/l7-utils": "2.12.0",
"@antv/l7-utils": "2.12.2",
"@babel/runtime": "^7.7.7",
"@mapbox/point-geometry": "^0.1.0",
"@mapbox/unitbezier": "^0.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-maps",
"version": "2.12.0",
"version": "2.12.2",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -27,9 +27,9 @@
"license": "ISC",
"dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1",
"@antv/l7-core": "2.12.0",
"@antv/l7-map": "2.12.0",
"@antv/l7-utils": "2.12.0",
"@antv/l7-core": "2.12.2",
"@antv/l7-map": "2.12.2",
"@antv/l7-utils": "2.12.2",
"@babel/runtime": "^7.7.7",
"@types/amap-js-api": "^1.4.6",
"@types/mapbox-gl": "^1.11.2",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-mini",
"version": "2.12.0",
"version": "2.12.2",
"description": "A Large-scale WebGL-powered Geospatial Data Visualization",
"main": "lib/index.js",
"module": "es/index.js",
@ -25,11 +25,11 @@
"author": "antv",
"license": "MIT",
"dependencies": {
"@antv/l7-core": "2.12.0",
"@antv/l7-layers": "2.12.0",
"@antv/l7-maps": "2.12.0",
"@antv/l7-scene": "2.12.0",
"@antv/l7-utils": "2.12.0",
"@antv/l7-core": "2.12.2",
"@antv/l7-layers": "2.12.2",
"@antv/l7-maps": "2.12.2",
"@antv/l7-scene": "2.12.2",
"@antv/l7-utils": "2.12.2",
"@babel/runtime": "^7.7.7"
},
"gitHead": "684ba4eb806a798713496d3fc0b4d1e17517dc31",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-renderer",
"version": "2.12.0",
"version": "2.12.2",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -25,12 +25,12 @@
"author": "xiaoiver",
"license": "ISC",
"devDependencies": {
"@antv/l7-test-utils": "2.12.0",
"@antv/l7-test-utils": "2.12.2",
"gl": "^5.0.3"
},
"dependencies": {
"@antv/l7-core": "2.12.0",
"@antv/l7-utils": "2.12.0",
"@antv/l7-core": "2.12.2",
"@antv/l7-utils": "2.12.2",
"@babel/runtime": "^7.7.7",
"inversify": "^5.0.1",
"l7regl": "^0.0.20",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-scene",
"version": "2.12.0",
"version": "2.12.2",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -23,12 +23,12 @@
"author": "xiaoiver",
"license": "ISC",
"dependencies": {
"@antv/l7-component": "2.12.0",
"@antv/l7-core": "2.12.0",
"@antv/l7-layers": "2.12.0",
"@antv/l7-maps": "2.12.0",
"@antv/l7-renderer": "2.12.0",
"@antv/l7-utils": "2.12.0",
"@antv/l7-component": "2.12.2",
"@antv/l7-core": "2.12.2",
"@antv/l7-layers": "2.12.2",
"@antv/l7-maps": "2.12.2",
"@antv/l7-renderer": "2.12.2",
"@antv/l7-utils": "2.12.2",
"@babel/runtime": "^7.7.7",
"eventemitter3": "^4.0.7",
"inversify": "^5.0.1",
@ -36,7 +36,7 @@
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
"@antv/l7-test-utils": "2.12.0"
"@antv/l7-test-utils": "2.12.2"
},
"gitHead": "684ba4eb806a798713496d3fc0b4d1e17517dc31",
"publishConfig": {

View File

@ -1,7 +1,7 @@
{
"private": true,
"name": "@antv/l7-site",
"version": "2.12.0",
"version": "2.12.2",
"description": "L7 sites deployed on gh-pages",
"keywords": [
"antv",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-source",
"version": "2.12.0",
"version": "2.12.2",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -25,8 +25,8 @@
"license": "ISC",
"dependencies": {
"@antv/async-hook": "^2.2.9",
"@antv/l7-core": "2.12.0",
"@antv/l7-utils": "2.12.0",
"@antv/l7-core": "2.12.2",
"@antv/l7-utils": "2.12.2",
"@babel/runtime": "^7.7.7",
"@mapbox/geojson-rewind": "^0.5.2",
"@mapbox/vector-tile": "^1.3.1",

View File

@ -1,7 +1,7 @@
{
"private": true,
"name": "@antv/l7-test-utils",
"version": "2.12.0",
"version": "2.12.2",
"description": "Now Im the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin letters to relatives / Embellishin my elegance and eloquence / But the elephant is in the room / The truth is in ya face when ya hear the British cannons go / BOOM",
"keywords": [],
"author": "lzxue <lzx199065@gmail.com>",
@ -39,9 +39,9 @@
"url": "https://github.com/antvis/L7/issues"
},
"devDependencies": {
"@antv/l7-map": "2.12.0",
"@antv/l7-maps": "2.12.0",
"@antv/l7-scene": "2.12.0",
"@antv/l7-map": "2.12.2",
"@antv/l7-maps": "2.12.2",
"@antv/l7-scene": "2.12.2",
"gl": "^5.0.3",
"l7regl": "^0.0.20"
},

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-three",
"version": "2.12.0",
"version": "2.12.2",
"description": "three for L7 ",
"keywords": [
"3D",
@ -44,7 +44,7 @@
},
"homepage": "https://github.com/antvis/L7#readme",
"dependencies": {
"@antv/l7": "2.12.0",
"@antv/l7": "2.12.2",
"@babel/runtime": "^7.7.7",
"inversify": "^5.0.1",
"reflect-metadata": "^0.1.13",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-utils",
"version": "2.12.0",
"version": "2.12.2",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",

View File

@ -63,25 +63,25 @@ export function PointFillTriangulation(feature: IEncodeFeature) {
}
export function polygonFillTriangulation(feature: IEncodeFeature) {
const { coordinates, version } = feature;
const { coordinates } = feature;
const flattengeo = earcut.flatten(coordinates as number[][][]);
const { vertices, dimensions, holes } = flattengeo;
if (version !== 'GAODE2.x') {
for (let i = 0; i < vertices.length; i += dimensions) {
const mer = project_mercator(vertices[i + 0], vertices[i + 1]);
vertices[i] = mer[0];
vertices[i + 1] = mer[1];
}
}
// if (version !== 'GAODE2.x') {
// for (let i = 0; i < vertices.length; i += dimensions) {
// const mer = project_mercator(vertices[i + 0], vertices[i + 1]);
// vertices[i] = mer[0];
// vertices[i + 1] = mer[1];
// }
// }
// https://github.com/mapbox/earcut/issues/159
const triangles = earcut(vertices, holes, dimensions);
if (version !== 'GAODE2.x') {
for (let i = 0; i < vertices.length; i += dimensions) {
const ll = mercator_lnglat(vertices[i + 0], vertices[i + 1]);
vertices[i] = ll[0];
vertices[i + 1] = ll[1];
}
}
// if (version !== 'GAODE2.x') {
// for (let i = 0; i < vertices.length; i += dimensions) {
// const ll = mercator_lnglat(vertices[i + 0], vertices[i + 1]);
// vertices[i] = ll[0];
// vertices[i + 1] = ll[1];
// }
// }
return {
indices: triangles,