vis-core 0.18.9 → 0.18.12
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/editor/command/SetSetting.d.ts +3 -3
- package/dist/editor/viewport.d.ts +2 -2
- package/dist/index.js +209 -209
- package/dist/index.module.js +4153 -4083
- package/dist/version.d.ts +1 -1
- package/dist/vis/map/config.d.ts +264 -0
- package/dist/vis/map/index.d.ts +3 -5
- package/dist/vis/map/objects/PlaneMap.d.ts +2 -0
- package/package.json +2 -1
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.18.
|
|
1
|
+
declare const _default: "0.18.12";
|
|
2
2
|
export default _default;
|
package/dist/vis/map/config.d.ts
CHANGED
|
@@ -1,6 +1,270 @@
|
|
|
1
1
|
export declare const IS_DEV: boolean;
|
|
2
2
|
export declare const bbox100000: number[];
|
|
3
3
|
export declare const bboxworld: number[];
|
|
4
|
+
export declare const countriesJson: {
|
|
5
|
+
type: string;
|
|
6
|
+
features: ({
|
|
7
|
+
type: string;
|
|
8
|
+
properties: {
|
|
9
|
+
NAME_CN: string;
|
|
10
|
+
NAME_CN_FULL: string;
|
|
11
|
+
ISO_A2: string;
|
|
12
|
+
ISO_A3: string;
|
|
13
|
+
CAPITAL: number[];
|
|
14
|
+
NAME: string;
|
|
15
|
+
CENTROID: number[];
|
|
16
|
+
ignore?: undefined;
|
|
17
|
+
};
|
|
18
|
+
geometry: {
|
|
19
|
+
type: string;
|
|
20
|
+
coordinates: number[][][];
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
type: string;
|
|
24
|
+
properties: {
|
|
25
|
+
NAME_CN: string;
|
|
26
|
+
NAME_CN_FULL: string;
|
|
27
|
+
ISO_A2: string;
|
|
28
|
+
ISO_A3: string;
|
|
29
|
+
CAPITAL: number[];
|
|
30
|
+
NAME: string;
|
|
31
|
+
CENTROID: number[];
|
|
32
|
+
ignore?: undefined;
|
|
33
|
+
};
|
|
34
|
+
geometry: {
|
|
35
|
+
type: string;
|
|
36
|
+
coordinates: number[][][][];
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
type: string;
|
|
40
|
+
properties: {
|
|
41
|
+
NAME_CN: string;
|
|
42
|
+
NAME_CN_FULL: string;
|
|
43
|
+
ISO_A2: string;
|
|
44
|
+
ISO_A3: string;
|
|
45
|
+
CENTROID: number[];
|
|
46
|
+
CAPITAL: number[];
|
|
47
|
+
NAME?: undefined;
|
|
48
|
+
ignore?: undefined;
|
|
49
|
+
};
|
|
50
|
+
geometry: {
|
|
51
|
+
type: string;
|
|
52
|
+
coordinates: number[][][];
|
|
53
|
+
};
|
|
54
|
+
} | {
|
|
55
|
+
type: string;
|
|
56
|
+
properties: {
|
|
57
|
+
NAME_CN: string;
|
|
58
|
+
NAME_CN_FULL: string;
|
|
59
|
+
ISO_A2: string;
|
|
60
|
+
ISO_A3: string;
|
|
61
|
+
CENTROID: number[];
|
|
62
|
+
CAPITAL: number[];
|
|
63
|
+
ignore: number;
|
|
64
|
+
NAME?: undefined;
|
|
65
|
+
};
|
|
66
|
+
geometry: {
|
|
67
|
+
type: string;
|
|
68
|
+
coordinates: number[][][];
|
|
69
|
+
};
|
|
70
|
+
} | {
|
|
71
|
+
type: string;
|
|
72
|
+
properties: {
|
|
73
|
+
NAME_CN: string;
|
|
74
|
+
NAME_CN_FULL: string;
|
|
75
|
+
ISO_A2: string;
|
|
76
|
+
ISO_A3: string;
|
|
77
|
+
CAPITAL: number[];
|
|
78
|
+
NAME: string;
|
|
79
|
+
CENTROID: number[];
|
|
80
|
+
ignore: number;
|
|
81
|
+
};
|
|
82
|
+
geometry: {
|
|
83
|
+
type: string;
|
|
84
|
+
coordinates: number[][][][];
|
|
85
|
+
};
|
|
86
|
+
} | {
|
|
87
|
+
type: string;
|
|
88
|
+
properties: {
|
|
89
|
+
NAME_CN: string;
|
|
90
|
+
NAME_CN_FULL: string;
|
|
91
|
+
ISO_A2: string;
|
|
92
|
+
ISO_A3: string;
|
|
93
|
+
CENTROID: number[];
|
|
94
|
+
CAPITAL: number[];
|
|
95
|
+
NAME?: undefined;
|
|
96
|
+
ignore?: undefined;
|
|
97
|
+
};
|
|
98
|
+
geometry: {
|
|
99
|
+
type: string;
|
|
100
|
+
coordinates: number[][][][];
|
|
101
|
+
};
|
|
102
|
+
} | {
|
|
103
|
+
type: string;
|
|
104
|
+
properties: {
|
|
105
|
+
NAME_CN: string;
|
|
106
|
+
NAME_CN_FULL: string;
|
|
107
|
+
ISO_A2: string;
|
|
108
|
+
ISO_A3: string;
|
|
109
|
+
CENTROID: number[];
|
|
110
|
+
CAPITAL: number[];
|
|
111
|
+
ignore: number;
|
|
112
|
+
NAME?: undefined;
|
|
113
|
+
};
|
|
114
|
+
geometry: {
|
|
115
|
+
type: string;
|
|
116
|
+
coordinates: number[][][][];
|
|
117
|
+
};
|
|
118
|
+
} | {
|
|
119
|
+
type: string;
|
|
120
|
+
properties: {
|
|
121
|
+
NAME_CN: string;
|
|
122
|
+
NAME_CN_FULL: string;
|
|
123
|
+
ISO_A2: string;
|
|
124
|
+
ISO_A3: string;
|
|
125
|
+
CAPITAL: number[];
|
|
126
|
+
NAME: string;
|
|
127
|
+
CENTROID: number[];
|
|
128
|
+
ignore: number;
|
|
129
|
+
};
|
|
130
|
+
geometry: {
|
|
131
|
+
type: string;
|
|
132
|
+
coordinates: number[][][];
|
|
133
|
+
};
|
|
134
|
+
})[];
|
|
135
|
+
};
|
|
136
|
+
export declare const countriesJsonExclATA: {
|
|
137
|
+
features: ({
|
|
138
|
+
type: string;
|
|
139
|
+
properties: {
|
|
140
|
+
NAME_CN: string;
|
|
141
|
+
NAME_CN_FULL: string;
|
|
142
|
+
ISO_A2: string;
|
|
143
|
+
ISO_A3: string;
|
|
144
|
+
CAPITAL: number[];
|
|
145
|
+
NAME: string;
|
|
146
|
+
CENTROID: number[];
|
|
147
|
+
ignore?: undefined;
|
|
148
|
+
};
|
|
149
|
+
geometry: {
|
|
150
|
+
type: string;
|
|
151
|
+
coordinates: number[][][];
|
|
152
|
+
};
|
|
153
|
+
} | {
|
|
154
|
+
type: string;
|
|
155
|
+
properties: {
|
|
156
|
+
NAME_CN: string;
|
|
157
|
+
NAME_CN_FULL: string;
|
|
158
|
+
ISO_A2: string;
|
|
159
|
+
ISO_A3: string;
|
|
160
|
+
CAPITAL: number[];
|
|
161
|
+
NAME: string;
|
|
162
|
+
CENTROID: number[];
|
|
163
|
+
ignore?: undefined;
|
|
164
|
+
};
|
|
165
|
+
geometry: {
|
|
166
|
+
type: string;
|
|
167
|
+
coordinates: number[][][][];
|
|
168
|
+
};
|
|
169
|
+
} | {
|
|
170
|
+
type: string;
|
|
171
|
+
properties: {
|
|
172
|
+
NAME_CN: string;
|
|
173
|
+
NAME_CN_FULL: string;
|
|
174
|
+
ISO_A2: string;
|
|
175
|
+
ISO_A3: string;
|
|
176
|
+
CENTROID: number[];
|
|
177
|
+
CAPITAL: number[];
|
|
178
|
+
NAME?: undefined;
|
|
179
|
+
ignore?: undefined;
|
|
180
|
+
};
|
|
181
|
+
geometry: {
|
|
182
|
+
type: string;
|
|
183
|
+
coordinates: number[][][];
|
|
184
|
+
};
|
|
185
|
+
} | {
|
|
186
|
+
type: string;
|
|
187
|
+
properties: {
|
|
188
|
+
NAME_CN: string;
|
|
189
|
+
NAME_CN_FULL: string;
|
|
190
|
+
ISO_A2: string;
|
|
191
|
+
ISO_A3: string;
|
|
192
|
+
CENTROID: number[];
|
|
193
|
+
CAPITAL: number[];
|
|
194
|
+
ignore: number;
|
|
195
|
+
NAME?: undefined;
|
|
196
|
+
};
|
|
197
|
+
geometry: {
|
|
198
|
+
type: string;
|
|
199
|
+
coordinates: number[][][];
|
|
200
|
+
};
|
|
201
|
+
} | {
|
|
202
|
+
type: string;
|
|
203
|
+
properties: {
|
|
204
|
+
NAME_CN: string;
|
|
205
|
+
NAME_CN_FULL: string;
|
|
206
|
+
ISO_A2: string;
|
|
207
|
+
ISO_A3: string;
|
|
208
|
+
CAPITAL: number[];
|
|
209
|
+
NAME: string;
|
|
210
|
+
CENTROID: number[];
|
|
211
|
+
ignore: number;
|
|
212
|
+
};
|
|
213
|
+
geometry: {
|
|
214
|
+
type: string;
|
|
215
|
+
coordinates: number[][][][];
|
|
216
|
+
};
|
|
217
|
+
} | {
|
|
218
|
+
type: string;
|
|
219
|
+
properties: {
|
|
220
|
+
NAME_CN: string;
|
|
221
|
+
NAME_CN_FULL: string;
|
|
222
|
+
ISO_A2: string;
|
|
223
|
+
ISO_A3: string;
|
|
224
|
+
CENTROID: number[];
|
|
225
|
+
CAPITAL: number[];
|
|
226
|
+
NAME?: undefined;
|
|
227
|
+
ignore?: undefined;
|
|
228
|
+
};
|
|
229
|
+
geometry: {
|
|
230
|
+
type: string;
|
|
231
|
+
coordinates: number[][][][];
|
|
232
|
+
};
|
|
233
|
+
} | {
|
|
234
|
+
type: string;
|
|
235
|
+
properties: {
|
|
236
|
+
NAME_CN: string;
|
|
237
|
+
NAME_CN_FULL: string;
|
|
238
|
+
ISO_A2: string;
|
|
239
|
+
ISO_A3: string;
|
|
240
|
+
CENTROID: number[];
|
|
241
|
+
CAPITAL: number[];
|
|
242
|
+
ignore: number;
|
|
243
|
+
NAME?: undefined;
|
|
244
|
+
};
|
|
245
|
+
geometry: {
|
|
246
|
+
type: string;
|
|
247
|
+
coordinates: number[][][][];
|
|
248
|
+
};
|
|
249
|
+
} | {
|
|
250
|
+
type: string;
|
|
251
|
+
properties: {
|
|
252
|
+
NAME_CN: string;
|
|
253
|
+
NAME_CN_FULL: string;
|
|
254
|
+
ISO_A2: string;
|
|
255
|
+
ISO_A3: string;
|
|
256
|
+
CAPITAL: number[];
|
|
257
|
+
NAME: string;
|
|
258
|
+
CENTROID: number[];
|
|
259
|
+
ignore: number;
|
|
260
|
+
};
|
|
261
|
+
geometry: {
|
|
262
|
+
type: string;
|
|
263
|
+
coordinates: number[][][];
|
|
264
|
+
};
|
|
265
|
+
})[];
|
|
266
|
+
type: string;
|
|
267
|
+
};
|
|
4
268
|
export declare const PENCIL_CONFIG: {
|
|
5
269
|
camera: {
|
|
6
270
|
near: number;
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export interface MapOptions extends BaseOptions {
|
|
|
33
33
|
showDistrict?: boolean;
|
|
34
34
|
showLabel?: boolean | 'lite';
|
|
35
35
|
lineWidth?: number;
|
|
36
|
+
lineOffset?: number;
|
|
36
37
|
extrudeLineWidth?: number;
|
|
37
38
|
extrudeLine?: boolean;
|
|
38
39
|
equirectangular?: boolean;
|
|
@@ -117,11 +118,7 @@ export default class extends Base {
|
|
|
117
118
|
meters: number;
|
|
118
119
|
extendsOptions: Record<string, any>;
|
|
119
120
|
setOptions(options: MapOptions): void;
|
|
120
|
-
initSettingsObj:
|
|
121
|
-
label: boolean;
|
|
122
|
-
labelLite: boolean;
|
|
123
|
-
shadowMap: boolean;
|
|
124
|
-
};
|
|
121
|
+
initSettingsObj: Record<string, any>;
|
|
125
122
|
handleSetting(key: string, value: any): Promise<any>;
|
|
126
123
|
init(): Promise<void>;
|
|
127
124
|
initVis(adcode: number): Promise<void>;
|
|
@@ -131,6 +128,7 @@ export default class extends Base {
|
|
|
131
128
|
setAreaColorByProperty(key: string, value: any, color: string, mix?: boolean): void;
|
|
132
129
|
setAreaEmissiveByProperty(key: string, value: any, color: string, intensity?: number): void;
|
|
133
130
|
setLineColorByProperty(key: string, value: any, color: string): void;
|
|
131
|
+
setLineWidthByProperty(key: string, value: any, width: number | 'origin'): void;
|
|
134
132
|
addAreaPlaneByProperty(key: string, value: any, options?: {
|
|
135
133
|
material?: THREE.Material;
|
|
136
134
|
lineMaterial?: MeshLineMaterial;
|
|
@@ -15,6 +15,7 @@ interface Options {
|
|
|
15
15
|
extrudeLineGeojson?: GeoJSON;
|
|
16
16
|
hasSide?: boolean;
|
|
17
17
|
depth?: number;
|
|
18
|
+
lineOffset?: number;
|
|
18
19
|
bbox?: number[];
|
|
19
20
|
bboxOffset?: number[];
|
|
20
21
|
curvatureResolution?: number;
|
|
@@ -43,6 +44,7 @@ export default class PlaneMap extends BaseObject {
|
|
|
43
44
|
setAreaColor(area: ExtrudePolygon, color: string): THREE.MeshStandardMaterial | undefined;
|
|
44
45
|
setAreaEmissive(area: ExtrudePolygon, color: string, intensity?: number): THREE.MeshStandardMaterial | undefined;
|
|
45
46
|
setLineColor(line: Line, color: string): MeshLineMaterial | undefined;
|
|
47
|
+
setLineWidth(line: Line, width: number | 'origin'): MeshLineMaterial | undefined;
|
|
46
48
|
addArea(geojson: GeoJSON, options: {
|
|
47
49
|
material: THREE.Material | THREE.Material[];
|
|
48
50
|
bbox?: number[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.12",
|
|
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,6 +51,7 @@
|
|
|
51
51
|
"stylelint-config-bundler": "^0.4.5",
|
|
52
52
|
"tailwind-config-bundler": "^0.4.6",
|
|
53
53
|
"three": "0.166.1",
|
|
54
|
+
"vite-plugin-javascript-obfuscator": "^3.1.0",
|
|
54
55
|
"vite-plugin-markdown": "^2.2.0",
|
|
55
56
|
"vue": "^3.4.33",
|
|
56
57
|
"vue-bundler": "^0.4.10",
|