vis-core 0.22.1 → 0.22.3

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/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.22.1";
1
+ declare const _default: "0.22.3";
2
2
  export default _default;
@@ -1,8 +1,5 @@
1
1
  import type { FeatureCollection, Polygon, MultiPolygon } from 'geojson';
2
2
  type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
3
- export declare const IS_DEV: boolean;
4
- export declare const bbox100000: number[];
5
- export declare const bboxworld: number[];
6
3
  export declare const countriesJson: {
7
4
  features: ({
8
5
  type: string;
@@ -268,6 +265,239 @@ export declare const countriesJsonExclATA: {
268
265
  type: string;
269
266
  };
270
267
  export declare const countriesJsonExclATALite: GeoJSON;
268
+ export declare const continents: Record<"Antarctica" | "Asia" | "Europe" | "Africa" | "Oceania" | "North America" | "South America", {
269
+ features: ({
270
+ type: string;
271
+ properties: {
272
+ NAME_CN: string;
273
+ NAME_CN_FULL: string;
274
+ ISO_A2: string;
275
+ ISO_A3: string;
276
+ CAPITAL: number[];
277
+ NAME: string;
278
+ CENTROID: number[];
279
+ ignore?: undefined;
280
+ };
281
+ geometry: {
282
+ type: string;
283
+ coordinates: number[][][];
284
+ };
285
+ } | {
286
+ type: string;
287
+ properties: {
288
+ NAME_CN: string;
289
+ NAME_CN_FULL: string;
290
+ ISO_A2: string;
291
+ ISO_A3: string;
292
+ CAPITAL: number[];
293
+ NAME: string;
294
+ CENTROID: number[];
295
+ ignore?: undefined;
296
+ };
297
+ geometry: {
298
+ type: string;
299
+ coordinates: number[][][][];
300
+ };
301
+ } | {
302
+ type: string;
303
+ properties: {
304
+ NAME_CN: string;
305
+ NAME_CN_FULL: string;
306
+ ISO_A2: string;
307
+ ISO_A3: string;
308
+ CENTROID: number[];
309
+ CAPITAL: number[];
310
+ NAME?: undefined;
311
+ ignore?: undefined;
312
+ };
313
+ geometry: {
314
+ type: string;
315
+ coordinates: number[][][];
316
+ };
317
+ } | {
318
+ type: string;
319
+ properties: {
320
+ NAME_CN: string;
321
+ NAME_CN_FULL: string;
322
+ ISO_A2: string;
323
+ ISO_A3: string;
324
+ CENTROID: number[];
325
+ CAPITAL: number[];
326
+ ignore: number;
327
+ NAME?: undefined;
328
+ };
329
+ geometry: {
330
+ type: string;
331
+ coordinates: number[][][];
332
+ };
333
+ } | {
334
+ type: string;
335
+ properties: {
336
+ NAME_CN: string;
337
+ NAME_CN_FULL: string;
338
+ ISO_A2: string;
339
+ ISO_A3: string;
340
+ CAPITAL: number[];
341
+ NAME: string;
342
+ CENTROID: number[];
343
+ ignore: number;
344
+ };
345
+ geometry: {
346
+ type: string;
347
+ coordinates: number[][][][];
348
+ };
349
+ } | {
350
+ type: string;
351
+ properties: {
352
+ NAME_CN: string;
353
+ NAME_CN_FULL: string;
354
+ ISO_A2: string;
355
+ ISO_A3: string;
356
+ CENTROID: number[];
357
+ CAPITAL: number[];
358
+ NAME?: undefined;
359
+ ignore?: undefined;
360
+ };
361
+ geometry: {
362
+ type: string;
363
+ coordinates: number[][][][];
364
+ };
365
+ } | {
366
+ type: string;
367
+ properties: {
368
+ NAME_CN: string;
369
+ NAME_CN_FULL: string;
370
+ ISO_A2: string;
371
+ ISO_A3: string;
372
+ CENTROID: number[];
373
+ CAPITAL: number[];
374
+ ignore: number;
375
+ NAME?: undefined;
376
+ };
377
+ geometry: {
378
+ type: string;
379
+ coordinates: number[][][][];
380
+ };
381
+ } | {
382
+ type: string;
383
+ properties: {
384
+ NAME_CN: string;
385
+ NAME_CN_FULL: string;
386
+ ISO_A2: string;
387
+ ISO_A3: string;
388
+ CAPITAL: number[];
389
+ NAME: string;
390
+ CENTROID: number[];
391
+ ignore: number;
392
+ };
393
+ geometry: {
394
+ type: string;
395
+ coordinates: number[][][];
396
+ };
397
+ })[];
398
+ type: string;
399
+ }>;
400
+ export declare const continentsLiteJson: {
401
+ Asia: {
402
+ type: string;
403
+ features: {
404
+ type: string;
405
+ properties: {
406
+ name: string;
407
+ };
408
+ geometry: {
409
+ type: string;
410
+ coordinates: number[][][][];
411
+ };
412
+ }[];
413
+ };
414
+ Europe: {
415
+ type: string;
416
+ features: {
417
+ type: string;
418
+ properties: {
419
+ name: string;
420
+ };
421
+ geometry: {
422
+ type: string;
423
+ coordinates: number[][][][];
424
+ };
425
+ }[];
426
+ };
427
+ Africa: {
428
+ type: string;
429
+ features: {
430
+ type: string;
431
+ properties: {
432
+ name: string;
433
+ };
434
+ geometry: {
435
+ type: string;
436
+ coordinates: number[][][][];
437
+ };
438
+ }[];
439
+ };
440
+ Oceania: {
441
+ type: string;
442
+ features: {
443
+ type: string;
444
+ properties: {
445
+ name: string;
446
+ };
447
+ geometry: {
448
+ type: string;
449
+ coordinates: number[][][][];
450
+ };
451
+ }[];
452
+ };
453
+ 'North America': {
454
+ type: string;
455
+ features: {
456
+ type: string;
457
+ properties: {
458
+ name: string;
459
+ };
460
+ geometry: {
461
+ type: string;
462
+ coordinates: number[][][][];
463
+ };
464
+ }[];
465
+ };
466
+ 'South America': {
467
+ type: string;
468
+ features: {
469
+ type: string;
470
+ properties: {
471
+ name: string;
472
+ };
473
+ geometry: {
474
+ type: string;
475
+ coordinates: number[][][][];
476
+ };
477
+ }[];
478
+ };
479
+ };
480
+ export declare const IS_DEV: boolean;
481
+ export declare const bbox100000: number[];
482
+ export declare const bboxworld: number[];
483
+ export declare const bboxcontinents: {
484
+ Asia: number[];
485
+ Europe: number[];
486
+ Africa: number[];
487
+ Oceania: number[];
488
+ 'North America': number[];
489
+ 'South America': number[];
490
+ Antarctica: number[];
491
+ };
492
+ export declare const centroidcontinents: {
493
+ Asia: number[];
494
+ Europe: number[];
495
+ Africa: number[];
496
+ Oceania: number[];
497
+ 'North America': number[];
498
+ 'South America': number[];
499
+ Antarctica: number[];
500
+ };
271
501
  export declare const PENCIL_CONFIG: {
272
502
  camera: {
273
503
  near: number;
@@ -16,6 +16,7 @@ export interface MapOptions extends BaseOptions {
16
16
  parentBgDepth?: number;
17
17
  parentBgTopSegments?: number;
18
18
  fixCity?: Record<number, number>;
19
+ continentType?: string;
19
20
  continentsBg?: boolean;
20
21
  continentsBgDepth?: number;
21
22
  clickOusideBack?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.22.1",
3
+ "version": "0.22.3",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version &&PUBLIC_EXCLUDE=public/city bundler",
@@ -51,7 +51,7 @@
51
51
  "prettier-config-bundler": "^0.4.3",
52
52
  "stylelint-config-bundler": "^0.4.5",
53
53
  "tailwind-config-bundler": "^0.4.6",
54
- "three": "^0.171.0",
54
+ "three": "^0.172.0",
55
55
  "vite-plugin-javascript-obfuscator": "^3.1.0",
56
56
  "vite-plugin-markdown": "^2.2.0",
57
57
  "vue": "^3.5.11",
@@ -66,7 +66,7 @@
66
66
  "crypto-js": "^4.2.0",
67
67
  "esus-lite": "^0.2.8",
68
68
  "events": "^3.3.0",
69
- "geojson-cn": "^0.1.29",
69
+ "geojson-cn": "^0.1.30",
70
70
  "gl-draw": "0.12.0",
71
71
  "jsrsasign": "^11.1.0",
72
72
  "lodash-es": "^4.17.21"