gis-common 4.2.9 → 4.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts
CHANGED
|
@@ -1,63 +1,66 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
export {};
|
|
2
|
+
declare global {
|
|
3
|
+
type Coordinate = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
z?: number;
|
|
7
|
+
};
|
|
8
|
+
type LngLat = {
|
|
9
|
+
lng: number;
|
|
10
|
+
lat: number;
|
|
11
|
+
alt?: number;
|
|
12
|
+
};
|
|
13
|
+
type GeoJSONPoint = {
|
|
14
|
+
type: 'Point';
|
|
15
|
+
coordinates: Array<number>;
|
|
16
|
+
};
|
|
17
|
+
type GeoJSONMultiPoint = {
|
|
18
|
+
type: 'MultiPoint';
|
|
19
|
+
coordinates: Array<Array<number>>;
|
|
20
|
+
};
|
|
21
|
+
type GeoJSONLineString = {
|
|
22
|
+
type: 'LineString';
|
|
23
|
+
coordinates: Array<Array<number>>;
|
|
24
|
+
};
|
|
25
|
+
type GeoJSONMultiLineString = {
|
|
26
|
+
type: 'MultiLineString';
|
|
27
|
+
coordinates: Array<Array<Array<number>>>;
|
|
28
|
+
};
|
|
29
|
+
type GeoJSONPolygon = {
|
|
30
|
+
type: 'Polygon';
|
|
31
|
+
coordinates: Array<Array<Array<number>>>;
|
|
32
|
+
};
|
|
33
|
+
type GeoJSONMultiPolygon = {
|
|
34
|
+
type: 'MultiPolygon';
|
|
35
|
+
coordinates: Array<Array<Array<Array<number>>>>;
|
|
36
|
+
};
|
|
37
|
+
type GeoJSONLineStringFeature = {
|
|
38
|
+
type: 'Feature';
|
|
39
|
+
geometry: GeoJSONLineString;
|
|
40
|
+
properties: any;
|
|
41
|
+
};
|
|
42
|
+
type GeoJSONMultiStringLineFeature = {
|
|
43
|
+
type: 'Feature';
|
|
44
|
+
geometry: GeoJSONMultiLineString;
|
|
45
|
+
properties: any;
|
|
46
|
+
};
|
|
47
|
+
type GeoJSONPolygonFeature = {
|
|
48
|
+
type: 'Feature';
|
|
49
|
+
geometry: GeoJSONPolygon;
|
|
50
|
+
properties: any;
|
|
51
|
+
};
|
|
52
|
+
type GeoJSONMultiPolygonFeature = {
|
|
53
|
+
type: 'Feature';
|
|
54
|
+
geometry: GeoJSONMultiPolygon;
|
|
55
|
+
properties: any;
|
|
56
|
+
};
|
|
57
|
+
type GeoJSONFeature = {
|
|
58
|
+
type: 'Feature';
|
|
59
|
+
geometry: GeoJSONPoint | GeoJSONMultiPoint | GeoJSONLineString | GeoJSONMultiLineString | GeoJSONPolygon | GeoJSONMultiPolygon;
|
|
60
|
+
properties: any;
|
|
61
|
+
};
|
|
62
|
+
type GeoJSONCollection = {
|
|
63
|
+
type: 'FeatureCollection';
|
|
64
|
+
features: GeoJSONFeature[];
|
|
65
|
+
};
|
|
66
|
+
}
|
package/dist/utils/GeoUtil.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gis-common",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.11",
|
|
4
4
|
"author": "Guo.Yan <luv02@vip.qq.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
|
-
"types": "dist/
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
16
|
"import": "./dist/gis-common.es.js",
|