vis-core 0.30.0-beta.51 → 0.30.0-beta.52
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/index.d.ts +3 -1
- package/dist/index.js +11 -11
- package/dist/index.module.js +75 -128
- package/dist/version.d.ts +1 -1
- package/dist/vis/all/json/index.d.ts +32385 -1
- package/dist/vis/index.d.ts +0 -1
- package/dist/vis/map/MapManager.d.ts +11 -2
- package/dist/vis/map/index.d.ts +4 -26
- package/dist/vis/map/utils.d.ts +2 -0
- package/package.json +1 -1
package/dist/vis/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare class MapManager {
|
|
|
36
36
|
private groups;
|
|
37
37
|
private eventHandlers;
|
|
38
38
|
private areaCloseTimer;
|
|
39
|
-
static
|
|
39
|
+
static findAdcodeInfoByName: (name: string) => {
|
|
40
40
|
adcode: number;
|
|
41
41
|
lng: number;
|
|
42
42
|
lat: number;
|
|
@@ -57,6 +57,16 @@ export declare class MapManager {
|
|
|
57
57
|
c: number[];
|
|
58
58
|
b: number[];
|
|
59
59
|
} | undefined;
|
|
60
|
+
static extendsAdcodeAll: (obj: {
|
|
61
|
+
adcode: number;
|
|
62
|
+
lng: number;
|
|
63
|
+
lat: number;
|
|
64
|
+
name: string;
|
|
65
|
+
level: string;
|
|
66
|
+
parent: number;
|
|
67
|
+
c: number[];
|
|
68
|
+
b: number[];
|
|
69
|
+
}) => void;
|
|
60
70
|
constructor(config: MapManagerConfig);
|
|
61
71
|
/**
|
|
62
72
|
* 设置事件处理器
|
|
@@ -122,4 +132,3 @@ export declare class MapManager {
|
|
|
122
132
|
*/
|
|
123
133
|
dispose(): void;
|
|
124
134
|
}
|
|
125
|
-
export declare function proposedRaycast(raycaster: any, intersects: any): void;
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { findAdcodeInfo } from "../all/json";
|
|
2
1
|
import Base, { type BaseOptions } from "../base";
|
|
3
2
|
import leadObjs from "./objects";
|
|
4
3
|
import type ContinentsBg from "./objects/ContinentsBg";
|
|
5
4
|
import type PlaneMap from "./objects/PlaneMap";
|
|
6
5
|
import type { FeatureCollection, MultiPolygon, Polygon } from 'geojson';
|
|
7
6
|
import { type BaseObject, type Lead } from 'gl-draw';
|
|
8
|
-
import { type ExtrudePolygon, type Group,
|
|
7
|
+
import { type ExtrudePolygon, type Group, MeshLineMaterial } from 'gl-draw/dist/objects';
|
|
9
8
|
import { getProjection } from 'gl-draw/dist/utils';
|
|
10
9
|
import * as THREE from 'three';
|
|
11
10
|
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;
|
|
@@ -16,7 +16,6 @@ export interface MapOptions extends BaseOptions {
|
|
|
16
16
|
parentBg?: boolean | number;
|
|
17
17
|
parentBgDepth?: number;
|
|
18
18
|
topSegments?: number;
|
|
19
|
-
fixCity?: Record<number, number>;
|
|
20
19
|
continentsBg?: boolean;
|
|
21
20
|
continentsBgDepth?: number;
|
|
22
21
|
clickOusideBack?: boolean;
|
|
@@ -92,7 +91,7 @@ export default class extends Base {
|
|
|
92
91
|
Lathe: typeof import("../all/objects/Lathe").default;
|
|
93
92
|
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
94
93
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
95
|
-
Line: typeof Line;
|
|
94
|
+
Line: typeof import("gl-draw/dist/objects").Line;
|
|
96
95
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
97
96
|
ExtrudePolygon: typeof ExtrudePolygon;
|
|
98
97
|
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
@@ -104,27 +103,6 @@ export default class extends Base {
|
|
|
104
103
|
};
|
|
105
104
|
lead: Lead<typeof leadObjs>;
|
|
106
105
|
options: Required<MapCityOptions>;
|
|
107
|
-
static getAdcodeShowLevel: (adcode: number, fix?: boolean) => string | undefined;
|
|
108
|
-
static findAdcodeInfo: (adcode: number) => {
|
|
109
|
-
adcode: number;
|
|
110
|
-
lng: number;
|
|
111
|
-
lat: number;
|
|
112
|
-
name: string;
|
|
113
|
-
level: string;
|
|
114
|
-
parent: number;
|
|
115
|
-
c: number[];
|
|
116
|
-
b: number[];
|
|
117
|
-
} | undefined;
|
|
118
|
-
static findNameInfo: (name: string) => {
|
|
119
|
-
adcode: number;
|
|
120
|
-
lng: number;
|
|
121
|
-
lat: number;
|
|
122
|
-
name: string;
|
|
123
|
-
level: string;
|
|
124
|
-
parent: number;
|
|
125
|
-
c: number[];
|
|
126
|
-
b: number[];
|
|
127
|
-
} | undefined;
|
|
128
106
|
mapHistory: {
|
|
129
107
|
map: PlaneMap;
|
|
130
108
|
mapInfo: NonNullable<ReturnType<typeof findAdcodeInfo>>;
|
|
@@ -173,7 +151,7 @@ export default class extends Base {
|
|
|
173
151
|
b: number[];
|
|
174
152
|
};
|
|
175
153
|
get mapArea(): ExtrudePolygon[];
|
|
176
|
-
get mapLine(): Line[];
|
|
154
|
+
get mapLine(): import("gl-draw/dist/objects").Line[];
|
|
177
155
|
get adcodes(): number[];
|
|
178
156
|
activePlaneMap: PlaneMap | null;
|
|
179
157
|
isAnimating: boolean;
|