@arenarium/maps 1.0.123 → 1.0.125
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 +74 -16
- package/dist/index.js +2 -750
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
import { Map as MapLibre, MapOptions } from 'maplibre-gl';
|
|
4
3
|
import { z } from 'zod';
|
|
5
4
|
|
|
6
5
|
declare const mapConfigurationSchema: z.ZodObject<{
|
|
@@ -58,13 +57,14 @@ declare const mapConfigurationSchema: z.ZodObject<{
|
|
|
58
57
|
} | undefined;
|
|
59
58
|
}>;
|
|
60
59
|
export type MapConfiguration = z.infer<typeof mapConfigurationSchema>;
|
|
61
|
-
declare const mapPopupDataSchema: z.ZodObject<{
|
|
60
|
+
declare const mapPopupDataSchema: z.ZodEffects<z.ZodObject<{
|
|
62
61
|
id: z.ZodString;
|
|
63
62
|
rank: z.ZodNumber;
|
|
64
63
|
lat: z.ZodNumber;
|
|
65
64
|
lng: z.ZodNumber;
|
|
66
65
|
width: z.ZodNumber;
|
|
67
66
|
height: z.ZodNumber;
|
|
67
|
+
padding: z.ZodNumber;
|
|
68
68
|
}, "strip", z.ZodTypeAny, {
|
|
69
69
|
id: string;
|
|
70
70
|
rank: number;
|
|
@@ -72,6 +72,7 @@ declare const mapPopupDataSchema: z.ZodObject<{
|
|
|
72
72
|
lng: number;
|
|
73
73
|
width: number;
|
|
74
74
|
height: number;
|
|
75
|
+
padding: number;
|
|
75
76
|
}, {
|
|
76
77
|
id: string;
|
|
77
78
|
rank: number;
|
|
@@ -79,6 +80,23 @@ declare const mapPopupDataSchema: z.ZodObject<{
|
|
|
79
80
|
lng: number;
|
|
80
81
|
width: number;
|
|
81
82
|
height: number;
|
|
83
|
+
padding: number;
|
|
84
|
+
}>, {
|
|
85
|
+
id: string;
|
|
86
|
+
rank: number;
|
|
87
|
+
lat: number;
|
|
88
|
+
lng: number;
|
|
89
|
+
width: number;
|
|
90
|
+
height: number;
|
|
91
|
+
padding: number;
|
|
92
|
+
}, {
|
|
93
|
+
id: string;
|
|
94
|
+
rank: number;
|
|
95
|
+
lat: number;
|
|
96
|
+
lng: number;
|
|
97
|
+
width: number;
|
|
98
|
+
height: number;
|
|
99
|
+
padding: number;
|
|
82
100
|
}>;
|
|
83
101
|
declare const mapPopupStateSchema: z.ZodTuple<[
|
|
84
102
|
z.ZodNumber,
|
|
@@ -91,13 +109,14 @@ declare const mapPopupContentCallbackSchema: z.ZodFunction<z.ZodTuple<[
|
|
|
91
109
|
z.ZodString
|
|
92
110
|
], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>;
|
|
93
111
|
declare const mapPopupSchema: z.ZodObject<{
|
|
94
|
-
data: z.ZodObject<{
|
|
112
|
+
data: z.ZodEffects<z.ZodObject<{
|
|
95
113
|
id: z.ZodString;
|
|
96
114
|
rank: z.ZodNumber;
|
|
97
115
|
lat: z.ZodNumber;
|
|
98
116
|
lng: z.ZodNumber;
|
|
99
117
|
width: z.ZodNumber;
|
|
100
118
|
height: z.ZodNumber;
|
|
119
|
+
padding: z.ZodNumber;
|
|
101
120
|
}, "strip", z.ZodTypeAny, {
|
|
102
121
|
id: string;
|
|
103
122
|
rank: number;
|
|
@@ -105,6 +124,23 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
105
124
|
lng: number;
|
|
106
125
|
width: number;
|
|
107
126
|
height: number;
|
|
127
|
+
padding: number;
|
|
128
|
+
}, {
|
|
129
|
+
id: string;
|
|
130
|
+
rank: number;
|
|
131
|
+
lat: number;
|
|
132
|
+
lng: number;
|
|
133
|
+
width: number;
|
|
134
|
+
height: number;
|
|
135
|
+
padding: number;
|
|
136
|
+
}>, {
|
|
137
|
+
id: string;
|
|
138
|
+
rank: number;
|
|
139
|
+
lat: number;
|
|
140
|
+
lng: number;
|
|
141
|
+
width: number;
|
|
142
|
+
height: number;
|
|
143
|
+
padding: number;
|
|
108
144
|
}, {
|
|
109
145
|
id: string;
|
|
110
146
|
rank: number;
|
|
@@ -112,6 +148,7 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
112
148
|
lng: number;
|
|
113
149
|
width: number;
|
|
114
150
|
height: number;
|
|
151
|
+
padding: number;
|
|
115
152
|
}>;
|
|
116
153
|
state: z.ZodTuple<[
|
|
117
154
|
z.ZodNumber,
|
|
@@ -142,6 +179,7 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
142
179
|
lng: number;
|
|
143
180
|
width: number;
|
|
144
181
|
height: number;
|
|
182
|
+
padding: number;
|
|
145
183
|
};
|
|
146
184
|
state: [
|
|
147
185
|
number,
|
|
@@ -162,6 +200,7 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
162
200
|
lng: number;
|
|
163
201
|
width: number;
|
|
164
202
|
height: number;
|
|
203
|
+
padding: number;
|
|
165
204
|
};
|
|
166
205
|
state: [
|
|
167
206
|
number,
|
|
@@ -177,13 +216,14 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
177
216
|
}>;
|
|
178
217
|
declare const mapPopupStatesRequestSchema: z.ZodObject<{
|
|
179
218
|
key: z.ZodString;
|
|
180
|
-
data: z.ZodArray<z.ZodObject<{
|
|
219
|
+
data: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
181
220
|
id: z.ZodString;
|
|
182
221
|
rank: z.ZodNumber;
|
|
183
222
|
lat: z.ZodNumber;
|
|
184
223
|
lng: z.ZodNumber;
|
|
185
224
|
width: z.ZodNumber;
|
|
186
225
|
height: z.ZodNumber;
|
|
226
|
+
padding: z.ZodNumber;
|
|
187
227
|
}, "strip", z.ZodTypeAny, {
|
|
188
228
|
id: string;
|
|
189
229
|
rank: number;
|
|
@@ -191,6 +231,7 @@ declare const mapPopupStatesRequestSchema: z.ZodObject<{
|
|
|
191
231
|
lng: number;
|
|
192
232
|
width: number;
|
|
193
233
|
height: number;
|
|
234
|
+
padding: number;
|
|
194
235
|
}, {
|
|
195
236
|
id: string;
|
|
196
237
|
rank: number;
|
|
@@ -198,6 +239,23 @@ declare const mapPopupStatesRequestSchema: z.ZodObject<{
|
|
|
198
239
|
lng: number;
|
|
199
240
|
width: number;
|
|
200
241
|
height: number;
|
|
242
|
+
padding: number;
|
|
243
|
+
}>, {
|
|
244
|
+
id: string;
|
|
245
|
+
rank: number;
|
|
246
|
+
lat: number;
|
|
247
|
+
lng: number;
|
|
248
|
+
width: number;
|
|
249
|
+
height: number;
|
|
250
|
+
padding: number;
|
|
251
|
+
}, {
|
|
252
|
+
id: string;
|
|
253
|
+
rank: number;
|
|
254
|
+
lat: number;
|
|
255
|
+
lng: number;
|
|
256
|
+
width: number;
|
|
257
|
+
height: number;
|
|
258
|
+
padding: number;
|
|
201
259
|
}>, "many">;
|
|
202
260
|
}, "strip", z.ZodTypeAny, {
|
|
203
261
|
data: {
|
|
@@ -207,6 +265,7 @@ declare const mapPopupStatesRequestSchema: z.ZodObject<{
|
|
|
207
265
|
lng: number;
|
|
208
266
|
width: number;
|
|
209
267
|
height: number;
|
|
268
|
+
padding: number;
|
|
210
269
|
}[];
|
|
211
270
|
key: string;
|
|
212
271
|
}, {
|
|
@@ -217,6 +276,7 @@ declare const mapPopupStatesRequestSchema: z.ZodObject<{
|
|
|
217
276
|
lng: number;
|
|
218
277
|
width: number;
|
|
219
278
|
height: number;
|
|
279
|
+
padding: number;
|
|
220
280
|
}[];
|
|
221
281
|
key: string;
|
|
222
282
|
}>;
|
|
@@ -225,15 +285,22 @@ export type MapPopupState = z.infer<typeof mapPopupStateSchema>;
|
|
|
225
285
|
export type MapPopupContentCallback = z.infer<typeof mapPopupContentCallbackSchema>;
|
|
226
286
|
export type MapPopup = z.infer<typeof mapPopupSchema>;
|
|
227
287
|
export type MapPopupStatesRequest = z.infer<typeof mapPopupStatesRequestSchema>;
|
|
228
|
-
export
|
|
288
|
+
export interface MapLibreClass {
|
|
289
|
+
new (options: maplibregl.MapOptions): maplibregl.Map;
|
|
290
|
+
}
|
|
291
|
+
export interface MapLibreMarkerClass {
|
|
292
|
+
new (options: maplibregl.MarkerOptions): maplibregl.Marker;
|
|
293
|
+
}
|
|
229
294
|
export declare class MapManager {
|
|
230
|
-
private
|
|
295
|
+
private MapClass;
|
|
296
|
+
private MapMarkerClass;
|
|
231
297
|
private map;
|
|
232
298
|
private mapConfiguration;
|
|
233
299
|
private mapPopupDataArray;
|
|
234
300
|
private mapPopupDataMap;
|
|
235
301
|
private mapPopupDataUpdating;
|
|
236
|
-
constructor(
|
|
302
|
+
constructor(mapClass: MapLibreClass, mapMarkerClass: MapLibreMarkerClass, options: maplibregl.MapOptions);
|
|
303
|
+
get maplibre(): import("maplibre-gl").Map;
|
|
237
304
|
setConfiguration(configuration: MapConfiguration | null): void;
|
|
238
305
|
setColors(primary: string, background: string, text: string): void;
|
|
239
306
|
updatePopups(popups: MapPopup[]): Promise<void>;
|
|
@@ -251,15 +318,6 @@ export declare class MapManager {
|
|
|
251
318
|
}
|
|
252
319
|
export declare const MapDarkStyle: maplibregl.StyleSpecification;
|
|
253
320
|
export declare const MapStyleLight: maplibregl.StyleSpecification;
|
|
254
|
-
export declare function mountMap(options: MapOptions): {
|
|
255
|
-
map: MapLibre;
|
|
256
|
-
manager: MapManager;
|
|
257
|
-
unmount: () => Promise<void>;
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
export {
|
|
261
|
-
MapLibre,
|
|
262
|
-
};
|
|
263
321
|
|
|
264
322
|
export as namespace arenarium;
|
|
265
323
|
|