vis-core 0.18.11 → 0.18.13

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.18.11";
1
+ declare const _default: "0.18.13";
2
2
  export default _default;
@@ -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
+ features: ({
6
+ type: string;
7
+ properties: {
8
+ NAME_CN: string;
9
+ NAME_CN_FULL: string;
10
+ ISO_A2: string;
11
+ ISO_A3: string;
12
+ CAPITAL: number[];
13
+ NAME: string;
14
+ CENTROID: number[];
15
+ ignore?: undefined;
16
+ };
17
+ geometry: {
18
+ type: string;
19
+ coordinates: number[][][];
20
+ };
21
+ } | {
22
+ type: string;
23
+ properties: {
24
+ NAME_CN: string;
25
+ NAME_CN_FULL: string;
26
+ ISO_A2: string;
27
+ ISO_A3: string;
28
+ CAPITAL: number[];
29
+ NAME: string;
30
+ CENTROID: number[];
31
+ ignore?: undefined;
32
+ };
33
+ geometry: {
34
+ type: string;
35
+ coordinates: number[][][][];
36
+ };
37
+ } | {
38
+ type: string;
39
+ properties: {
40
+ NAME_CN: string;
41
+ NAME_CN_FULL: string;
42
+ ISO_A2: string;
43
+ ISO_A3: string;
44
+ CENTROID: number[];
45
+ CAPITAL: number[];
46
+ NAME?: undefined;
47
+ ignore?: undefined;
48
+ };
49
+ geometry: {
50
+ type: string;
51
+ coordinates: number[][][];
52
+ };
53
+ } | {
54
+ type: string;
55
+ properties: {
56
+ NAME_CN: string;
57
+ NAME_CN_FULL: string;
58
+ ISO_A2: string;
59
+ ISO_A3: string;
60
+ CENTROID: number[];
61
+ CAPITAL: number[];
62
+ ignore: number;
63
+ NAME?: undefined;
64
+ };
65
+ geometry: {
66
+ type: string;
67
+ coordinates: number[][][];
68
+ };
69
+ } | {
70
+ type: string;
71
+ properties: {
72
+ NAME_CN: string;
73
+ NAME_CN_FULL: string;
74
+ ISO_A2: string;
75
+ ISO_A3: string;
76
+ CAPITAL: number[];
77
+ NAME: string;
78
+ CENTROID: number[];
79
+ ignore: number;
80
+ };
81
+ geometry: {
82
+ type: string;
83
+ coordinates: number[][][][];
84
+ };
85
+ } | {
86
+ type: string;
87
+ properties: {
88
+ NAME_CN: string;
89
+ NAME_CN_FULL: string;
90
+ ISO_A2: string;
91
+ ISO_A3: string;
92
+ CENTROID: number[];
93
+ CAPITAL: number[];
94
+ NAME?: undefined;
95
+ ignore?: undefined;
96
+ };
97
+ geometry: {
98
+ type: string;
99
+ coordinates: number[][][][];
100
+ };
101
+ } | {
102
+ type: string;
103
+ properties: {
104
+ NAME_CN: string;
105
+ NAME_CN_FULL: string;
106
+ ISO_A2: string;
107
+ ISO_A3: string;
108
+ CENTROID: number[];
109
+ CAPITAL: number[];
110
+ ignore: number;
111
+ NAME?: undefined;
112
+ };
113
+ geometry: {
114
+ type: string;
115
+ coordinates: number[][][][];
116
+ };
117
+ } | {
118
+ type: string;
119
+ properties: {
120
+ NAME_CN: string;
121
+ NAME_CN_FULL: string;
122
+ ISO_A2: string;
123
+ ISO_A3: string;
124
+ CAPITAL: number[];
125
+ NAME: string;
126
+ CENTROID: number[];
127
+ ignore: number;
128
+ };
129
+ geometry: {
130
+ type: string;
131
+ coordinates: number[][][];
132
+ };
133
+ })[];
134
+ type: string;
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;
@@ -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.11",
3
+ "version": "0.18.13",
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",