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.
@@ -1,4 +1,3 @@
1
- import { Coordinate } from '../types';
2
1
  export default class CanvasDrawer {
3
2
  private context;
4
3
  constructor(el: HTMLElement | string);
package/dist/types.d.ts CHANGED
@@ -1,63 +1,66 @@
1
- export type Coordinate = {
2
- x: number;
3
- y: number;
4
- z?: number;
5
- };
6
- export type LngLat = {
7
- lng: number;
8
- lat: number;
9
- alt?: number;
10
- };
11
- export type GeoJSONPoint = {
12
- type: 'Point';
13
- coordinates: Array<number>;
14
- };
15
- export type GeoJSONMultiPoint = {
16
- type: 'MultiPoint';
17
- coordinates: Array<Array<number>>;
18
- };
19
- export type GeoJSONLineString = {
20
- type: 'LineString';
21
- coordinates: Array<Array<number>>;
22
- };
23
- export type GeoJSONMultiLineString = {
24
- type: 'MultiLineString';
25
- coordinates: Array<Array<Array<number>>>;
26
- };
27
- export type GeoJSONPolygon = {
28
- type: 'Polygon';
29
- coordinates: Array<Array<Array<number>>>;
30
- };
31
- export type GeoJSONMultiPolygon = {
32
- type: 'MultiPolygon';
33
- coordinates: Array<Array<Array<Array<number>>>>;
34
- };
35
- export type GeoJSONLineStringFeature = {
36
- type: 'Feature';
37
- geometry: GeoJSONLineString;
38
- properties: any;
39
- };
40
- export type GeoJSONMultiStringLineFeature = {
41
- type: 'Feature';
42
- geometry: GeoJSONMultiLineString;
43
- properties: any;
44
- };
45
- export type GeoJSONPolygonFeature = {
46
- type: 'Feature';
47
- geometry: GeoJSONPolygon;
48
- properties: any;
49
- };
50
- export type GeoJSONMultiPolygonFeature = {
51
- type: 'Feature';
52
- geometry: GeoJSONMultiPolygon;
53
- properties: any;
54
- };
55
- export type GeoJSONFeature = {
56
- type: 'Feature';
57
- geometry: GeoJSONPoint | GeoJSONMultiPoint | GeoJSONLineString | GeoJSONMultiLineString | GeoJSONPolygon | GeoJSONMultiPolygon;
58
- properties: any;
59
- };
60
- export type GeoJSONCollection = {
61
- type: 'FeatureCollection';
62
- features: GeoJSONFeature[];
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
+ }
@@ -1,4 +1,3 @@
1
- import { LngLat } from '../types';
2
1
  declare const _default: {
3
2
  assertEmpty(...arg: any[]): void;
4
3
  assertInteger(...arg: any[]): void;
@@ -1,4 +1,3 @@
1
- import { Coordinate, LngLat } from '../types';
2
1
  export default class {
3
2
  private static readonly PI;
4
3
  private static readonly XPI;
@@ -1,4 +1,3 @@
1
- import { Coordinate, GeoJSONFeature } from '../types';
2
1
  declare const _default: {
3
2
  /**
4
3
  * 获取GeoJSON要素的几何类型
@@ -1,4 +1,3 @@
1
- import { Coordinate, LngLat } from '../types';
2
1
  export default class {
3
2
  private static readonly toRadian;
4
3
  private static readonly R;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gis-common",
3
- "version": "4.2.9",
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/types.d.ts",
13
+ "types": "dist/index.d.ts",
14
14
  "exports": {
15
15
  ".": {
16
16
  "import": "./dist/gis-common.es.js",