@arenarium/maps 1.0.123 → 1.0.124

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 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<{
@@ -225,15 +224,22 @@ export type MapPopupState = z.infer<typeof mapPopupStateSchema>;
225
224
  export type MapPopupContentCallback = z.infer<typeof mapPopupContentCallbackSchema>;
226
225
  export type MapPopup = z.infer<typeof mapPopupSchema>;
227
226
  export type MapPopupStatesRequest = z.infer<typeof mapPopupStatesRequestSchema>;
228
- export type LibreMarkerCallback = (markerOptions: maplibregl.MarkerOptions) => maplibregl.Marker;
227
+ export interface MapLibreClass {
228
+ new (options: maplibregl.MapOptions): maplibregl.Map;
229
+ }
230
+ export interface MapLibreMarkerClass {
231
+ new (options: maplibregl.MarkerOptions): maplibregl.Marker;
232
+ }
229
233
  export declare class MapManager {
230
- private mapMarkerCallback;
234
+ private MapClass;
235
+ private MapMarkerClass;
231
236
  private map;
232
237
  private mapConfiguration;
233
238
  private mapPopupDataArray;
234
239
  private mapPopupDataMap;
235
240
  private mapPopupDataUpdating;
236
- constructor(map: MapLibre, mapMarkerCallback: LibreMarkerCallback);
241
+ constructor(mapClass: MapLibreClass, mapMarkerClass: MapLibreMarkerClass, options: maplibregl.MapOptions);
242
+ get maplibre(): import("maplibre-gl").Map;
237
243
  setConfiguration(configuration: MapConfiguration | null): void;
238
244
  setColors(primary: string, background: string, text: string): void;
239
245
  updatePopups(popups: MapPopup[]): Promise<void>;
@@ -251,15 +257,6 @@ export declare class MapManager {
251
257
  }
252
258
  export declare const MapDarkStyle: maplibregl.StyleSpecification;
253
259
  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
260
 
264
261
  export as namespace arenarium;
265
262