vis-core 0.30.0-beta.53 → 0.30.0-beta.55

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.30.0-beta.53";
1
+ declare const _default: "0.30.0-beta.55";
2
2
  export default _default;
@@ -19,3 +19,4 @@ export declare const findAdcodeInfoByName: (name: string) => {
19
19
  c: number[];
20
20
  b: number[];
21
21
  } | undefined;
22
+ export declare const getAdcodeShowLevel: (adcode: number, fix?: boolean) => string | undefined;
@@ -1,3 +1,4 @@
1
+ import { findAdcodeInfo } from "../all/json";
1
2
  import Base, { type BaseOptions } from "../base";
2
3
  import leadObjs from "./objects";
3
4
  import type ContinentsBg from "./objects/ContinentsBg";
@@ -8,7 +9,6 @@ import { type ExtrudePolygon, type Group, MeshLineMaterial } from 'gl-draw/dist/
8
9
  import { getProjection } from 'gl-draw/dist/utils';
9
10
  import * as THREE from 'three';
10
11
  import City from './city';
11
- import { findAdcodeInfo } from './utils';
12
12
  type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
13
13
  export interface MapOptions extends BaseOptions {
14
14
  adcode: number;
@@ -168,7 +168,7 @@ export default class extends Base {
168
168
  initSettingsObj: Record<string, any>;
169
169
  handleSetting(key: string, value: any): Promise<any>;
170
170
  init(): Promise<void>;
171
- initCityVis(adcode: number, grey?: boolean): Promise<City | null>;
171
+ initCityVis(adcode: number, grey?: boolean): Promise<City>;
172
172
  initCityOnMap(adcode: number): Promise<void>;
173
173
  initVisBg(): Promise<void>;
174
174
  initVis(adcode: number): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.30.0-beta.53",
3
+ "version": "0.30.0-beta.55",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5174 bundler-dev",
6
6
  "build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
@@ -1,2 +0,0 @@
1
- export { extendsAdcodeAll, findAdcodeInfo, findAdcodeInfoByName, } from "../all/json";
2
- export declare const getAdcodeShowLevel: (adcode: number, fix?: boolean) => string | undefined;