chore: update version 2.9.18 -> 2.9.19 (#1266)

* chore: update version 2.9.18 -> 2.9.19

* chore: 修改引用

* style: lint style
This commit is contained in:
YiQianYao 2022-08-02 19:23:40 +08:00 committed by GitHub
parent 6a04210de6
commit 6f8162fa36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 150 additions and 55 deletions

View File

@ -15,7 +15,7 @@
"registry": "https://registry.npmjs.org"
}
},
"version": "2.9.18",
"version": "2.9.19",
"npmClient": "yarn",
"useWorkspaces": true,
"publishConfig": {

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-component",
"version": "2.9.18",
"version": "2.9.19",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -25,8 +25,8 @@
"author": "lzxue",
"license": "ISC",
"dependencies": {
"@antv/l7-core": "2.9.18",
"@antv/l7-utils": "2.9.18",
"@antv/l7-core": "2.9.19",
"@antv/l7-utils": "2.9.19",
"@babel/runtime": "^7.7.7",
"eventemitter3": "^4.0.0",
"inversify": "^5.0.1",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-core",
"version": "2.9.18",
"version": "2.9.19",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -24,7 +24,7 @@
"license": "ISC",
"dependencies": {
"@antv/async-hook": "^2.1.0",
"@antv/l7-utils": "2.9.18",
"@antv/l7-utils": "2.9.19",
"@babel/runtime": "^7.7.7",
"ajv": "^6.10.2",
"element-resize-event": "^3.0.3",

View File

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

View File

@ -1,2 +1,2 @@
const version = '2.9.18';
const version = '2.9.19';
export { version };

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-layers",
"version": "2.9.18",
"version": "2.9.19",
"description": "L7's collection of built-in layers",
"main": "lib/index.js",
"module": "es/index.js",
@ -26,9 +26,9 @@
"author": "xiaoiver",
"license": "ISC",
"dependencies": {
"@antv/l7-core": "2.9.18",
"@antv/l7-source": "2.9.18",
"@antv/l7-utils": "2.9.18",
"@antv/l7-core": "2.9.19",
"@antv/l7-source": "2.9.19",
"@antv/l7-utils": "2.9.19",
"@babel/runtime": "^7.7.7",
"@mapbox/martini": "^0.2.0",
"@turf/helpers": "^6.1.4",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-map",
"version": "2.9.18",
"version": "2.9.19",
"description": "l7 map",
"keywords": [],
"author": "thinkinggis <lzx199065@gmail.com>",
@ -37,7 +37,7 @@
},
"homepage": "https://github.com/antvis/L7#readme",
"dependencies": {
"@antv/l7-utils": "2.9.18",
"@antv/l7-utils": "2.9.19",
"@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.9.18",
"version": "2.9.19",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -27,9 +27,9 @@
"license": "ISC",
"dependencies": {
"@amap/amap-jsapi-loader": "^0.0.3",
"@antv/l7-core": "2.9.18",
"@antv/l7-map": "2.9.18",
"@antv/l7-utils": "2.9.18",
"@antv/l7-core": "2.9.19",
"@antv/l7-map": "2.9.19",
"@antv/l7-utils": "2.9.19",
"@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.9.18",
"version": "2.9.19",
"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.9.18",
"@antv/l7-layers": "2.9.18",
"@antv/l7-maps": "2.9.18",
"@antv/l7-scene": "2.9.18",
"@antv/l7-utils": "2.9.18",
"@antv/l7-core": "2.9.19",
"@antv/l7-layers": "2.9.19",
"@antv/l7-maps": "2.9.19",
"@antv/l7-scene": "2.9.19",
"@antv/l7-utils": "2.9.19",
"@babel/runtime": "^7.7.7"
},
"gitHead": "684ba4eb806a798713496d3fc0b4d1e17517dc31",

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-renderer",
"version": "2.9.18",
"version": "2.9.19",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -26,7 +26,7 @@
"gl": "^4.4.0"
},
"dependencies": {
"@antv/l7-core": "2.9.18",
"@antv/l7-core": "2.9.19",
"@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.9.18",
"version": "2.9.19",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -23,12 +23,12 @@
"author": "xiaoiver",
"license": "ISC",
"dependencies": {
"@antv/l7-component": "2.9.18",
"@antv/l7-core": "2.9.18",
"@antv/l7-layers": "2.9.18",
"@antv/l7-maps": "2.9.18",
"@antv/l7-renderer": "2.9.18",
"@antv/l7-utils": "2.9.18",
"@antv/l7-component": "2.9.19",
"@antv/l7-core": "2.9.19",
"@antv/l7-layers": "2.9.19",
"@antv/l7-maps": "2.9.19",
"@antv/l7-renderer": "2.9.19",
"@antv/l7-utils": "2.9.19",
"@babel/runtime": "^7.7.7",
"inversify": "^5.0.1",
"mapbox-gl": "^1.2.1",

View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7-three",
"version": "2.9.18",
"version": "2.9.19",
"description": "three for L7 ",
"keywords": [
"3D",
@ -44,9 +44,9 @@
},
"homepage": "https://github.com/antvis/L7#readme",
"dependencies": {
"@antv/l7-core": "2.9.18",
"@antv/l7-layers": "2.9.18",
"@antv/l7-scene": "2.9.18",
"@antv/l7-core": "2.9.19",
"@antv/l7-layers": "2.9.19",
"@antv/l7-scene": "2.9.19",
"@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.9.18",
"version": "2.9.19",
"description": "",
"main": "lib/index.js",
"module": "es/index.js",
@ -28,8 +28,8 @@
"@turf/bbox-polygon": "^6.5.0",
"@turf/helpers": "^6.1.4",
"d3-color": "^1.4.0",
"web-worker-helper": "^0.0.3",
"earcut": "^2.2.1"
"earcut": "^2.2.1",
"web-worker-helper": "^0.0.3"
},
"devDependencies": {
"@types/d3-color": "^1.2.2",

View File

@ -1,4 +1,4 @@
import { IEncodeFeature, IVertexAttributeDescriptor } from '@antv/l7-core';
import { IEncodeFeature } from './interface';
export function a_Color(feature: IEncodeFeature, featureIdx: number) {
const { color } = feature;

View File

@ -0,0 +1,95 @@
type Color = [number, number, number, number];
export type Position = number[];
export interface IBuffer {
/**
* gl.bufferSubData
*/
subData(options: {
// 用于替换的数据
data: number[] | number[][] | Uint8Array | Uint16Array | Uint32Array;
// 原 Buffer 替换位置,单位为 byte
offset: number;
}): void;
/**
* gl.deleteBuffer
*/
destroy(): void;
}
export interface IAttributeInitializationOptions {
buffer: IBuffer;
/**
* vertexAttribPointer byte 0
*/
offset?: number;
stride?: number;
/**
* [1..4]
*/
size?: number;
/**
* [-1,1] [0,1] false
*/
normalized?: boolean;
/**
* gl.vertexAttribDivisorANGLE ANGLE_instanced_arrays
*/
divisor?: number;
}
export interface IBufferInitializationOptions {
data:
| number[]
| number[][]
| Uint8Array
| Uint16Array
| Uint32Array
| Float32Array;
/**
* gl.DRAW_STATIC | gl.DYNAMIC_DRAW | gl.STREAM_DRAW
*/
usage?: 35044 | 35048 | 35040;
/**
* gl.Float | gl.UNSIGNED_BYTE | ...
*/
type?: 5126 | 5121;
length?: number;
}
export interface IVertexAttributeDescriptor
extends Omit<IAttributeInitializationOptions, 'buffer'> {
/**
* attribute name in vertex shader
*/
name: string;
/**
* buffer
*/
buffer: IBufferInitializationOptions;
update?: (
feature: IEncodeFeature,
featureIdx: number,
vertex: number[],
attributeIdx: number,
normal: number[],
vertexIndex?: number,
) => number[];
}
export interface IEncodeFeature {
color?: Color;
size?: number | number[];
shape?: string | number;
pattern?: string;
id?: number;
coordinates: Position | Position[] | Position[][];
[key: string]: any;
}

View File

@ -1,6 +1,6 @@
import { IEncodeFeature, IVertexAttributeDescriptor } from '@antv/l7-core';
import { encodePickingColor } from '../color';
import { a_Color, a_filter, a_Position, a_vertexId } from './commonFeatureFunc';
import { IEncodeFeature, IVertexAttributeDescriptor } from './interface';
import { LineTriangulation as triangulation } from './triangulation';
export const lineModel = async ({

View File

@ -1,6 +1,6 @@
import { IEncodeFeature, IVertexAttributeDescriptor } from '@antv/l7-core';
import { encodePickingColor } from '../color';
import { a_Color, a_filter, a_Position, a_vertexId } from './commonFeatureFunc';
import { IEncodeFeature, IVertexAttributeDescriptor } from './interface';
import { PointFillTriangulation as triangulation } from './triangulation';
export const pointFillModel = async ({

View File

@ -1,6 +1,6 @@
import { IEncodeFeature, IVertexAttributeDescriptor } from '@antv/l7-core';
import { encodePickingColor } from '../color';
import { a_Color, a_filter, a_Position, a_vertexId } from './commonFeatureFunc';
import { IEncodeFeature, IVertexAttributeDescriptor } from './interface';
import { polygonFillTriangulation as triangulation } from './triangulation';
export const polygonFillModel = async ({

View File

@ -1,7 +1,7 @@
import { IEncodeFeature, IVertexAttributeDescriptor } from '@antv/l7-core';
import earcut from 'earcut';
import { calculateCentroid } from '../geo';
import ExtrudePolyline from './extrude_polyline';
import { IEncodeFeature } from './interface';
export function LineTriangulation(feature: IEncodeFeature) {
const { coordinates, originCoordinates, version } = feature;