@arenarium/maps 1.0.38 → 1.0.39
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 +79 -3
- package/dist/index.js +34 -34
- package/package.json +3 -5
package/dist/index.d.ts
CHANGED
|
@@ -95,6 +95,56 @@ declare const mapOptionsSchema: z.ZodObject<{
|
|
|
95
95
|
text: string;
|
|
96
96
|
};
|
|
97
97
|
}>;
|
|
98
|
+
events: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
onLoading: z.ZodOptional<z.ZodFunction<z.ZodTuple<[
|
|
100
|
+
], z.ZodUnknown>, z.ZodVoid>>;
|
|
101
|
+
onLoaded: z.ZodOptional<z.ZodFunction<z.ZodTuple<[
|
|
102
|
+
], z.ZodUnknown>, z.ZodVoid>>;
|
|
103
|
+
onMapIdle: z.ZodOptional<z.ZodFunction<z.ZodTuple<[
|
|
104
|
+
], z.ZodUnknown>, z.ZodVoid>>;
|
|
105
|
+
onMapMove: z.ZodOptional<z.ZodFunction<z.ZodTuple<[
|
|
106
|
+
z.ZodObject<{
|
|
107
|
+
lat: z.ZodNumber;
|
|
108
|
+
lng: z.ZodNumber;
|
|
109
|
+
zoom: z.ZodNumber;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
lat: number;
|
|
112
|
+
lng: number;
|
|
113
|
+
zoom: number;
|
|
114
|
+
}, {
|
|
115
|
+
lat: number;
|
|
116
|
+
lng: number;
|
|
117
|
+
zoom: number;
|
|
118
|
+
}>
|
|
119
|
+
], z.ZodUnknown>, z.ZodVoid>>;
|
|
120
|
+
onMapClick: z.ZodOptional<z.ZodFunction<z.ZodTuple<[
|
|
121
|
+
], z.ZodUnknown>, z.ZodVoid>>;
|
|
122
|
+
onPopupClick: z.ZodOptional<z.ZodFunction<z.ZodTuple<[
|
|
123
|
+
z.ZodString
|
|
124
|
+
], z.ZodUnknown>, z.ZodVoid>>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
onLoading?: ((...args: unknown[]) => void) | undefined;
|
|
127
|
+
onLoaded?: ((...args: unknown[]) => void) | undefined;
|
|
128
|
+
onMapIdle?: ((...args: unknown[]) => void) | undefined;
|
|
129
|
+
onMapMove?: ((args_0: {
|
|
130
|
+
lat: number;
|
|
131
|
+
lng: number;
|
|
132
|
+
zoom: number;
|
|
133
|
+
}, ...args: unknown[]) => void) | undefined;
|
|
134
|
+
onMapClick?: ((...args: unknown[]) => void) | undefined;
|
|
135
|
+
onPopupClick?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
onLoading?: ((...args: unknown[]) => void) | undefined;
|
|
138
|
+
onLoaded?: ((...args: unknown[]) => void) | undefined;
|
|
139
|
+
onMapIdle?: ((...args: unknown[]) => void) | undefined;
|
|
140
|
+
onMapMove?: ((args_0: {
|
|
141
|
+
lat: number;
|
|
142
|
+
lng: number;
|
|
143
|
+
zoom: number;
|
|
144
|
+
}, ...args: unknown[]) => void) | undefined;
|
|
145
|
+
onMapClick?: ((...args: unknown[]) => void) | undefined;
|
|
146
|
+
onPopupClick?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
147
|
+
}>>;
|
|
98
148
|
}, "strip", z.ZodTypeAny, {
|
|
99
149
|
container: string;
|
|
100
150
|
position: {
|
|
@@ -112,6 +162,18 @@ declare const mapOptionsSchema: z.ZodObject<{
|
|
|
112
162
|
text: string;
|
|
113
163
|
};
|
|
114
164
|
};
|
|
165
|
+
events?: {
|
|
166
|
+
onLoading?: ((...args: unknown[]) => void) | undefined;
|
|
167
|
+
onLoaded?: ((...args: unknown[]) => void) | undefined;
|
|
168
|
+
onMapIdle?: ((...args: unknown[]) => void) | undefined;
|
|
169
|
+
onMapMove?: ((args_0: {
|
|
170
|
+
lat: number;
|
|
171
|
+
lng: number;
|
|
172
|
+
zoom: number;
|
|
173
|
+
}, ...args: unknown[]) => void) | undefined;
|
|
174
|
+
onMapClick?: ((...args: unknown[]) => void) | undefined;
|
|
175
|
+
onPopupClick?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
176
|
+
} | undefined;
|
|
115
177
|
}, {
|
|
116
178
|
container: string;
|
|
117
179
|
position: {
|
|
@@ -129,6 +191,18 @@ declare const mapOptionsSchema: z.ZodObject<{
|
|
|
129
191
|
text: string;
|
|
130
192
|
};
|
|
131
193
|
};
|
|
194
|
+
events?: {
|
|
195
|
+
onLoading?: ((...args: unknown[]) => void) | undefined;
|
|
196
|
+
onLoaded?: ((...args: unknown[]) => void) | undefined;
|
|
197
|
+
onMapIdle?: ((...args: unknown[]) => void) | undefined;
|
|
198
|
+
onMapMove?: ((args_0: {
|
|
199
|
+
lat: number;
|
|
200
|
+
lng: number;
|
|
201
|
+
zoom: number;
|
|
202
|
+
}, ...args: unknown[]) => void) | undefined;
|
|
203
|
+
onMapClick?: ((...args: unknown[]) => void) | undefined;
|
|
204
|
+
onPopupClick?: ((args_0: string, ...args: unknown[]) => void) | undefined;
|
|
205
|
+
} | undefined;
|
|
132
206
|
}>;
|
|
133
207
|
declare const mapPopupSchema: z.ZodObject<{
|
|
134
208
|
id: z.ZodString;
|
|
@@ -212,14 +286,16 @@ export declare namespace MapComponent {
|
|
|
212
286
|
type SetPopupsFunction = (popups: Types.Popup[]) => void;
|
|
213
287
|
}
|
|
214
288
|
export interface MapComponent {
|
|
215
|
-
zoomIn: () => void;
|
|
216
|
-
zoomOut: () => void;
|
|
217
289
|
getCenter: () => {
|
|
218
290
|
lat: number;
|
|
219
291
|
lng: number;
|
|
220
292
|
};
|
|
221
|
-
|
|
293
|
+
setCenter: (lat: number, lng: number) => void;
|
|
222
294
|
getZoom: () => number;
|
|
295
|
+
setZoom: (zoom: number) => void;
|
|
296
|
+
getBounds: () => MapComponent.Bounds;
|
|
297
|
+
zoomIn: () => void;
|
|
298
|
+
zoomOut: () => void;
|
|
223
299
|
getTheme: () => MapTheme;
|
|
224
300
|
setTheme: (theme: MapTheme) => void;
|
|
225
301
|
setPopupsContentCallback: (callback: MapComponent.PopupContentCallback) => void;
|