@arenarium/maps 1.0.59 → 1.0.61
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 +11 -17
- package/dist/index.js +33 -33
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -346,38 +346,32 @@ declare const mapEventMoveHandlerSchema: z.ZodFunction<z.ZodTuple<[
|
|
|
346
346
|
}>
|
|
347
347
|
], z.ZodUnknown>, z.ZodVoid>;
|
|
348
348
|
declare const mapEventClickHandlerSchema: z.ZodFunction<z.ZodTuple<[
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
349
|
+
z.ZodObject<{
|
|
350
|
+
lat: z.ZodNumber;
|
|
351
|
+
lng: z.ZodNumber;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
lat: number;
|
|
354
|
+
lng: number;
|
|
355
|
+
}, {
|
|
356
|
+
lat: number;
|
|
357
|
+
lng: number;
|
|
358
|
+
}>
|
|
356
359
|
], z.ZodUnknown>, z.ZodVoid>;
|
|
357
360
|
export interface EventPayloadMap {
|
|
358
361
|
idle: null;
|
|
359
362
|
move: MapPosition;
|
|
360
|
-
click:
|
|
361
|
-
popup_click: string;
|
|
362
|
-
loading_start: null;
|
|
363
|
-
loading_end: null;
|
|
363
|
+
click: MapCoordinate;
|
|
364
364
|
}
|
|
365
365
|
export interface EventHandlerMap {
|
|
366
366
|
idle: MapEventIdleHandler;
|
|
367
367
|
move: MapEventMoveHandler;
|
|
368
368
|
click: MapEventClickHandler;
|
|
369
|
-
popup_click: MapEventPopupClickHandler;
|
|
370
|
-
loading_start: MapEventLoadingStartHandler;
|
|
371
|
-
loading_end: MapEventLoadingEndHandler;
|
|
372
369
|
}
|
|
373
370
|
export type EventId = keyof EventHandlerMap;
|
|
374
371
|
export type EventHandler<E extends EventId> = (payload: EventPayloadMap[E]) => void;
|
|
375
372
|
export type MapEventIdleHandler = z.infer<typeof mapEventIdleHandlerSchema>;
|
|
376
373
|
export type MapEventMoveHandler = z.infer<typeof mapEventMoveHandlerSchema>;
|
|
377
374
|
export type MapEventClickHandler = z.infer<typeof mapEventClickHandlerSchema>;
|
|
378
|
-
export type MapEventPopupClickHandler = z.infer<typeof mapEventPopupClickHandlerSchema>;
|
|
379
|
-
export type MapEventLoadingStartHandler = z.infer<typeof mapEventLoadingStartHandlerSchema>;
|
|
380
|
-
export type MapEventLoadingEndHandler = z.infer<typeof mapEventLoadingEndHandlerSchema>;
|
|
381
375
|
declare const mapPopupDataSchema: z.ZodObject<{
|
|
382
376
|
id: z.ZodString;
|
|
383
377
|
rank: z.ZodNumber;
|