vis-core 0.28.26 → 0.28.27

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.28.26";
1
+ declare const _default: "0.28.27";
2
2
  export default _default;
@@ -1,14 +1,14 @@
1
- import { BaseObject, Lead } from 'gl-draw';
2
- import Base, { BaseOptions } from "../base";
3
- import { getProjection } from 'gl-draw/dist/utils';
4
- import type { FeatureCollection, Polygon, MultiPolygon } from 'geojson';
5
- import City from './city';
6
- import { MeshLineMaterial, Group, ExtrudePolygon, Line } from 'gl-draw/dist/objects';
7
1
  import { findAdcodeInfo } from "../all/json";
8
- import * as THREE from 'three';
2
+ import Base, { BaseOptions } from "../base";
9
3
  import leadObjs from "./objects";
10
- import PlaneMap from "./objects/PlaneMap";
11
4
  import ContinentsBg from "./objects/ContinentsBg";
5
+ import PlaneMap from "./objects/PlaneMap";
6
+ import type { FeatureCollection, MultiPolygon, Polygon } from 'geojson';
7
+ import { BaseObject, Lead } from 'gl-draw';
8
+ import { ExtrudePolygon, Group, Line, MeshLineMaterial } from 'gl-draw/dist/objects';
9
+ import { getProjection } from 'gl-draw/dist/utils';
10
+ import * as THREE from 'three';
11
+ import City from './city';
12
12
  type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
13
13
  export interface MapOptions extends BaseOptions {
14
14
  adcode: number;
@@ -261,11 +261,21 @@ export default class extends Base {
261
261
  }): Promise<void>;
262
262
  handleLookBack(duration?: number): Promise<void>;
263
263
  compareLocations(currentO: any[], destinationO: any[]): number[];
264
- setAdcode({ adcodes, duration }: {
264
+ setAdcode({ adcodes, duration, }: {
265
265
  adcodes: number[];
266
266
  duration?: number;
267
267
  }): Promise<void>;
268
268
  setPadding(padding: number[], fitTo?: boolean, enableTransition?: boolean): void;
269
+ findAdcodeInfo(adcode: number): {
270
+ adcode: number;
271
+ lng: number;
272
+ lat: number;
273
+ name: string;
274
+ level: string;
275
+ parent: number;
276
+ c: number[];
277
+ b: number[];
278
+ } | undefined;
269
279
  dispose(): void;
270
280
  }
271
281
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.28.26",
3
+ "version": "0.28.27",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",