vis-core 0.22.4 → 0.22.6

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.
@@ -0,0 +1,3 @@
1
+ import { union } from '@turf/turf';
2
+ declare const _default: (allGeometries: Parameters<typeof union>[0][]) => import("@turf/turf").Polygon | import("@turf/turf").MultiPolygon | import("@turf/turf").Feature<import("@turf/turf").Polygon | import("@turf/turf").MultiPolygon, import("@turf/turf").Properties> | null;
3
+ export default _default;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.22.4";
1
+ declare const _default: "0.22.6";
2
2
  export default _default;
@@ -0,0 +1,104 @@
1
+ export declare const chinaJson: {
2
+ type: string;
3
+ features: ({
4
+ type: string;
5
+ properties: {
6
+ adcode: number;
7
+ name: string;
8
+ center: number[];
9
+ centroid: number[];
10
+ childrenNum: number;
11
+ level: string;
12
+ parent: {
13
+ adcode: number;
14
+ };
15
+ subFeatureIndex: number;
16
+ acroutes: number[];
17
+ adchar?: undefined;
18
+ };
19
+ geometry: {
20
+ type: string;
21
+ coordinates: number[][][][];
22
+ };
23
+ } | {
24
+ type: string;
25
+ properties: {
26
+ adcode: number;
27
+ name: string;
28
+ center: number[];
29
+ childrenNum: number;
30
+ level: string;
31
+ parent: {
32
+ adcode: number;
33
+ };
34
+ subFeatureIndex: number;
35
+ acroutes: number[];
36
+ centroid?: undefined;
37
+ adchar?: undefined;
38
+ };
39
+ geometry: {
40
+ type: string;
41
+ coordinates: number[][][][];
42
+ };
43
+ } | {
44
+ type: string;
45
+ properties: {
46
+ adcode: number;
47
+ name: string;
48
+ center: number[];
49
+ centroid: number[];
50
+ childrenNum: number;
51
+ level: string;
52
+ parent: {
53
+ adcode: number;
54
+ };
55
+ subFeatureIndex: number;
56
+ acroutes: number[];
57
+ adchar?: undefined;
58
+ };
59
+ geometry: {
60
+ type: string;
61
+ coordinates: number[][][];
62
+ };
63
+ } | {
64
+ type: string;
65
+ properties: {
66
+ name: string;
67
+ adchar: string;
68
+ adcode: string;
69
+ center?: undefined;
70
+ centroid?: undefined;
71
+ childrenNum?: undefined;
72
+ level?: undefined;
73
+ parent?: undefined;
74
+ subFeatureIndex?: undefined;
75
+ acroutes?: undefined;
76
+ };
77
+ geometry: {
78
+ type: string;
79
+ coordinates: number[][][][];
80
+ };
81
+ })[];
82
+ };
83
+ export declare const chinaLiteJson: {
84
+ type: string;
85
+ features: {
86
+ type: string;
87
+ properties: {
88
+ adcode: number;
89
+ name: string;
90
+ center: number[];
91
+ centroid: number[];
92
+ childrenNum: number;
93
+ level: string;
94
+ parent: {
95
+ adcode: null;
96
+ };
97
+ };
98
+ geometry: {
99
+ type: string;
100
+ coordinates: number[][][][];
101
+ };
102
+ }[];
103
+ };
104
+ export declare const chinaBbox: number[];
@@ -0,0 +1,229 @@
1
+ export declare const continentsJson: Record<"Antarctica" | "Asia" | "Europe" | "Africa" | "Oceania" | "North America" | "South America", {
2
+ features: ({
3
+ type: string;
4
+ properties: {
5
+ NAME_CN: string;
6
+ NAME_CN_FULL: string;
7
+ ISO_A2: string;
8
+ ISO_A3: string;
9
+ CAPITAL: number[];
10
+ NAME: string;
11
+ CENTROID: number[];
12
+ ignore?: undefined;
13
+ };
14
+ geometry: {
15
+ type: string;
16
+ coordinates: number[][][];
17
+ };
18
+ } | {
19
+ type: string;
20
+ properties: {
21
+ NAME_CN: string;
22
+ NAME_CN_FULL: string;
23
+ ISO_A2: string;
24
+ ISO_A3: string;
25
+ CAPITAL: number[];
26
+ NAME: string;
27
+ CENTROID: number[];
28
+ ignore?: undefined;
29
+ };
30
+ geometry: {
31
+ type: string;
32
+ coordinates: number[][][][];
33
+ };
34
+ } | {
35
+ type: string;
36
+ properties: {
37
+ NAME_CN: string;
38
+ NAME_CN_FULL: string;
39
+ ISO_A2: string;
40
+ ISO_A3: string;
41
+ CENTROID: number[];
42
+ CAPITAL: number[];
43
+ NAME?: undefined;
44
+ ignore?: undefined;
45
+ };
46
+ geometry: {
47
+ type: string;
48
+ coordinates: number[][][];
49
+ };
50
+ } | {
51
+ type: string;
52
+ properties: {
53
+ NAME_CN: string;
54
+ NAME_CN_FULL: string;
55
+ ISO_A2: string;
56
+ ISO_A3: string;
57
+ CENTROID: number[];
58
+ CAPITAL: number[];
59
+ ignore: number;
60
+ NAME?: undefined;
61
+ };
62
+ geometry: {
63
+ type: string;
64
+ coordinates: number[][][];
65
+ };
66
+ } | {
67
+ type: string;
68
+ properties: {
69
+ NAME_CN: string;
70
+ NAME_CN_FULL: string;
71
+ ISO_A2: string;
72
+ ISO_A3: string;
73
+ CAPITAL: number[];
74
+ NAME: string;
75
+ CENTROID: number[];
76
+ ignore: number;
77
+ };
78
+ geometry: {
79
+ type: string;
80
+ coordinates: number[][][][];
81
+ };
82
+ } | {
83
+ type: string;
84
+ properties: {
85
+ NAME_CN: string;
86
+ NAME_CN_FULL: string;
87
+ ISO_A2: string;
88
+ ISO_A3: string;
89
+ CENTROID: number[];
90
+ CAPITAL: number[];
91
+ NAME?: undefined;
92
+ ignore?: undefined;
93
+ };
94
+ geometry: {
95
+ type: string;
96
+ coordinates: number[][][][];
97
+ };
98
+ } | {
99
+ type: string;
100
+ properties: {
101
+ NAME_CN: string;
102
+ NAME_CN_FULL: string;
103
+ ISO_A2: string;
104
+ ISO_A3: string;
105
+ CENTROID: number[];
106
+ CAPITAL: number[];
107
+ ignore: number;
108
+ NAME?: undefined;
109
+ };
110
+ geometry: {
111
+ type: string;
112
+ coordinates: number[][][][];
113
+ };
114
+ } | {
115
+ type: string;
116
+ properties: {
117
+ NAME_CN: string;
118
+ NAME_CN_FULL: string;
119
+ ISO_A2: string;
120
+ ISO_A3: string;
121
+ CAPITAL: number[];
122
+ NAME: string;
123
+ CENTROID: number[];
124
+ ignore: number;
125
+ };
126
+ geometry: {
127
+ type: string;
128
+ coordinates: number[][][];
129
+ };
130
+ })[];
131
+ type: string;
132
+ }>;
133
+ export declare const continentsLiteJson: {
134
+ Asia: {
135
+ type: string;
136
+ features: {
137
+ type: string;
138
+ properties: {};
139
+ geometry: {
140
+ type: string;
141
+ coordinates: number[][][][];
142
+ };
143
+ }[];
144
+ };
145
+ Europe: {
146
+ type: string;
147
+ features: {
148
+ type: string;
149
+ properties: {};
150
+ geometry: {
151
+ type: string;
152
+ coordinates: number[][][][];
153
+ };
154
+ }[];
155
+ };
156
+ Africa: {
157
+ type: string;
158
+ features: {
159
+ type: string;
160
+ properties: {};
161
+ geometry: {
162
+ type: string;
163
+ coordinates: number[][][][];
164
+ };
165
+ }[];
166
+ };
167
+ Oceania: {
168
+ type: string;
169
+ features: {
170
+ type: string;
171
+ properties: {};
172
+ geometry: {
173
+ type: string;
174
+ coordinates: number[][][][];
175
+ };
176
+ }[];
177
+ };
178
+ "North America": {
179
+ type: string;
180
+ features: {
181
+ type: string;
182
+ properties: {};
183
+ geometry: {
184
+ type: string;
185
+ coordinates: number[][][][];
186
+ };
187
+ }[];
188
+ };
189
+ "South America": {
190
+ type: string;
191
+ features: {
192
+ type: string;
193
+ properties: {};
194
+ geometry: {
195
+ type: string;
196
+ coordinates: number[][][][];
197
+ };
198
+ }[];
199
+ };
200
+ Antarctica: {
201
+ type: string;
202
+ features: {
203
+ type: string;
204
+ properties: {};
205
+ geometry: {
206
+ type: string;
207
+ coordinates: number[][][][];
208
+ };
209
+ }[];
210
+ };
211
+ };
212
+ export declare const continentsBbox: {
213
+ Asia: number[];
214
+ Europe: number[];
215
+ Africa: number[];
216
+ Oceania: number[];
217
+ "North America": number[];
218
+ "South America": number[];
219
+ Antarctica: number[];
220
+ };
221
+ export declare const continentsCentroid: {
222
+ Asia: number[];
223
+ Europe: number[];
224
+ Africa: number[];
225
+ Oceania: number[];
226
+ "North America": number[];
227
+ "South America": number[];
228
+ Antarctica: number[];
229
+ };
@@ -0,0 +1,269 @@
1
+ import type { FeatureCollection, Polygon, MultiPolygon } from 'geojson';
2
+ type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
3
+ export declare const worldJson: {
4
+ features: ({
5
+ type: string;
6
+ properties: {
7
+ NAME_CN: string;
8
+ NAME_CN_FULL: string;
9
+ ISO_A2: string;
10
+ ISO_A3: string;
11
+ CAPITAL: number[];
12
+ NAME: string;
13
+ CENTROID: number[];
14
+ ignore?: undefined;
15
+ };
16
+ geometry: {
17
+ type: string;
18
+ coordinates: number[][][];
19
+ };
20
+ } | {
21
+ type: string;
22
+ properties: {
23
+ NAME_CN: string;
24
+ NAME_CN_FULL: string;
25
+ ISO_A2: string;
26
+ ISO_A3: string;
27
+ CAPITAL: number[];
28
+ NAME: string;
29
+ CENTROID: number[];
30
+ ignore?: undefined;
31
+ };
32
+ geometry: {
33
+ type: string;
34
+ coordinates: number[][][][];
35
+ };
36
+ } | {
37
+ type: string;
38
+ properties: {
39
+ NAME_CN: string;
40
+ NAME_CN_FULL: string;
41
+ ISO_A2: string;
42
+ ISO_A3: string;
43
+ CENTROID: number[];
44
+ CAPITAL: number[];
45
+ NAME?: undefined;
46
+ ignore?: undefined;
47
+ };
48
+ geometry: {
49
+ type: string;
50
+ coordinates: number[][][];
51
+ };
52
+ } | {
53
+ type: string;
54
+ properties: {
55
+ NAME_CN: string;
56
+ NAME_CN_FULL: string;
57
+ ISO_A2: string;
58
+ ISO_A3: string;
59
+ CENTROID: number[];
60
+ CAPITAL: number[];
61
+ ignore: number;
62
+ NAME?: undefined;
63
+ };
64
+ geometry: {
65
+ type: string;
66
+ coordinates: number[][][];
67
+ };
68
+ } | {
69
+ type: string;
70
+ properties: {
71
+ NAME_CN: string;
72
+ NAME_CN_FULL: string;
73
+ ISO_A2: string;
74
+ ISO_A3: string;
75
+ CAPITAL: number[];
76
+ NAME: string;
77
+ CENTROID: number[];
78
+ ignore: number;
79
+ };
80
+ geometry: {
81
+ type: string;
82
+ coordinates: number[][][][];
83
+ };
84
+ } | {
85
+ type: string;
86
+ properties: {
87
+ NAME_CN: string;
88
+ NAME_CN_FULL: string;
89
+ ISO_A2: string;
90
+ ISO_A3: string;
91
+ CENTROID: number[];
92
+ CAPITAL: number[];
93
+ NAME?: undefined;
94
+ ignore?: undefined;
95
+ };
96
+ geometry: {
97
+ type: string;
98
+ coordinates: number[][][][];
99
+ };
100
+ } | {
101
+ type: string;
102
+ properties: {
103
+ NAME_CN: string;
104
+ NAME_CN_FULL: string;
105
+ ISO_A2: string;
106
+ ISO_A3: string;
107
+ CENTROID: number[];
108
+ CAPITAL: number[];
109
+ ignore: number;
110
+ NAME?: undefined;
111
+ };
112
+ geometry: {
113
+ type: string;
114
+ coordinates: number[][][][];
115
+ };
116
+ } | {
117
+ type: string;
118
+ properties: {
119
+ NAME_CN: string;
120
+ NAME_CN_FULL: string;
121
+ ISO_A2: string;
122
+ ISO_A3: string;
123
+ CAPITAL: number[];
124
+ NAME: string;
125
+ CENTROID: number[];
126
+ ignore: number;
127
+ };
128
+ geometry: {
129
+ type: string;
130
+ coordinates: number[][][];
131
+ };
132
+ })[];
133
+ type: string;
134
+ };
135
+ export declare const worldExclATAJson: {
136
+ features: ({
137
+ type: string;
138
+ properties: {
139
+ NAME_CN: string;
140
+ NAME_CN_FULL: string;
141
+ ISO_A2: string;
142
+ ISO_A3: string;
143
+ CAPITAL: number[];
144
+ NAME: string;
145
+ CENTROID: number[];
146
+ ignore?: undefined;
147
+ };
148
+ geometry: {
149
+ type: string;
150
+ coordinates: number[][][];
151
+ };
152
+ } | {
153
+ type: string;
154
+ properties: {
155
+ NAME_CN: string;
156
+ NAME_CN_FULL: string;
157
+ ISO_A2: string;
158
+ ISO_A3: string;
159
+ CAPITAL: number[];
160
+ NAME: string;
161
+ CENTROID: number[];
162
+ ignore?: undefined;
163
+ };
164
+ geometry: {
165
+ type: string;
166
+ coordinates: number[][][][];
167
+ };
168
+ } | {
169
+ type: string;
170
+ properties: {
171
+ NAME_CN: string;
172
+ NAME_CN_FULL: string;
173
+ ISO_A2: string;
174
+ ISO_A3: string;
175
+ CENTROID: number[];
176
+ CAPITAL: number[];
177
+ NAME?: undefined;
178
+ ignore?: undefined;
179
+ };
180
+ geometry: {
181
+ type: string;
182
+ coordinates: number[][][];
183
+ };
184
+ } | {
185
+ type: string;
186
+ properties: {
187
+ NAME_CN: string;
188
+ NAME_CN_FULL: string;
189
+ ISO_A2: string;
190
+ ISO_A3: string;
191
+ CENTROID: number[];
192
+ CAPITAL: number[];
193
+ ignore: number;
194
+ NAME?: undefined;
195
+ };
196
+ geometry: {
197
+ type: string;
198
+ coordinates: number[][][];
199
+ };
200
+ } | {
201
+ type: string;
202
+ properties: {
203
+ NAME_CN: string;
204
+ NAME_CN_FULL: string;
205
+ ISO_A2: string;
206
+ ISO_A3: string;
207
+ CAPITAL: number[];
208
+ NAME: string;
209
+ CENTROID: number[];
210
+ ignore: number;
211
+ };
212
+ geometry: {
213
+ type: string;
214
+ coordinates: number[][][][];
215
+ };
216
+ } | {
217
+ type: string;
218
+ properties: {
219
+ NAME_CN: string;
220
+ NAME_CN_FULL: string;
221
+ ISO_A2: string;
222
+ ISO_A3: string;
223
+ CENTROID: number[];
224
+ CAPITAL: number[];
225
+ NAME?: undefined;
226
+ ignore?: undefined;
227
+ };
228
+ geometry: {
229
+ type: string;
230
+ coordinates: number[][][][];
231
+ };
232
+ } | {
233
+ type: string;
234
+ properties: {
235
+ NAME_CN: string;
236
+ NAME_CN_FULL: string;
237
+ ISO_A2: string;
238
+ ISO_A3: string;
239
+ CENTROID: number[];
240
+ CAPITAL: number[];
241
+ ignore: number;
242
+ NAME?: undefined;
243
+ };
244
+ geometry: {
245
+ type: string;
246
+ coordinates: number[][][][];
247
+ };
248
+ } | {
249
+ type: string;
250
+ properties: {
251
+ NAME_CN: string;
252
+ NAME_CN_FULL: string;
253
+ ISO_A2: string;
254
+ ISO_A3: string;
255
+ CAPITAL: number[];
256
+ NAME: string;
257
+ CENTROID: number[];
258
+ ignore: number;
259
+ };
260
+ geometry: {
261
+ type: string;
262
+ coordinates: number[][][];
263
+ };
264
+ })[];
265
+ type: string;
266
+ };
267
+ export declare const worldExclATALiteJson: GeoJSON;
268
+ export declare const worldExclATABbox: number[];
269
+ export {};
@@ -15,6 +15,7 @@ export interface BaseOptions {
15
15
  disableInitShow?: boolean;
16
16
  editor?: boolean;
17
17
  logarithmicDepthBuffer?: boolean;
18
+ tier?: number;
18
19
  [key: string]: any;
19
20
  }
20
21
  export default class Base extends Event {