@arenarium/maps 1.3.2 → 1.3.3
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/main.js +3 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -3327,7 +3327,7 @@ function w(...t) {
|
|
|
3327
3327
|
};
|
|
3328
3328
|
}
|
|
3329
3329
|
var ui = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-90), /* @__PURE__ */ ht(90)), ci = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-180), /* @__PURE__ */ ht(180)), Ct = /* @__PURE__ */ H({ lat: ui, lng: ci }), fi = /* @__PURE__ */ H({ sw: Ct, ne: Ct }), za = /* @__PURE__ */ H({ bounds: fi, center: Ct, zoom: /* @__PURE__ */ P() }), Ye = /* @__PURE__ */ li((t) => t instanceof HTMLElement, "Must be an HTMLElement"), Oa = /* @__PURE__ */ H({ mapSize: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(1)), zoomMin: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), zoomMax: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), zoomScale: /* @__PURE__ */ wn([/* @__PURE__ */ ze(1), /* @__PURE__ */ ze(2), /* @__PURE__ */ ze(10)]) }), La = /* @__PURE__ */ H({ inserted: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ oi())), insert: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), remove: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), update: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ P()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())) }), or = /* @__PURE__ */ wn([/* @__PURE__ */ ze("idle"), /* @__PURE__ */ ze("move"), /* @__PURE__ */ ze("click")]), Fa = /* @__PURE__ */ H({ getParameters: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(Oa)), getContainer: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(Ye)), getZoom: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ P())), getBounds: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(fi)), getCenter: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(Ct)), getViewport: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(za)), panBy: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ P(), /* @__PURE__ */ P()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), createMarker: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([Ye, ui, ci, /* @__PURE__ */ P()])), /* @__PURE__ */ V(La)), subscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([or, /* @__PURE__ */ I()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), unsubscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([or, /* @__PURE__ */ I()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())) }), Jt = /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ ge(), Ye]))), Gt = /* @__PURE__ */ w(/* @__PURE__ */ H({ width: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), height: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), padding: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)) }), /* @__PURE__ */ ri((t) => Math.min(t.width, t.height) / t.padding >= 4, "Minimum of width or height must be greater than or equal to 4 * padding")), $a = /* @__PURE__ */ H({ background: /* @__PURE__ */ T(/* @__PURE__ */ ge()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0))), shadow: /* @__PURE__ */ T(/* @__PURE__ */ ge()) }), lr = /* @__PURE__ */ H({ background: /* @__PURE__ */ T(/* @__PURE__ */ ge()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0))), filter: /* @__PURE__ */ T(/* @__PURE__ */ ge()) }), Va = /* @__PURE__ */ H({ id: /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ gn(1)), rank: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), lat: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-90), /* @__PURE__ */ ht(90)), lng: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-180), /* @__PURE__ */ ht(180)), tooltip: /* @__PURE__ */ H({ element: Ye, style: /* @__PURE__ */ T(lr), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) }), pin: /* @__PURE__ */ T(/* @__PURE__ */ H({ element: /* @__PURE__ */ T(Ye), style: /* @__PURE__ */ T($a), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) })), popup: /* @__PURE__ */ T(/* @__PURE__ */ H({ element: Ye, style: /* @__PURE__ */ T(lr), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) })) }), ja = /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ ii(32)), Ua = /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ gn(1));
|
|
3330
|
-
const Ba = "1.3.
|
|
3330
|
+
const Ba = "1.3.2";
|
|
3331
3331
|
class Wa {
|
|
3332
3332
|
apiKey;
|
|
3333
3333
|
apiJwt;
|
|
@@ -3370,7 +3370,7 @@ class Wa {
|
|
|
3370
3370
|
return i.jwt && (this.apiJwt = i.jwt), i.states;
|
|
3371
3371
|
}
|
|
3372
3372
|
}
|
|
3373
|
-
const ur = "1.3.
|
|
3373
|
+
const ur = "1.3.2", Ha = "https://maps.api.arenarium.dev/auth", qa = "https://maps.api.arenarium.dev/log", cr = 500;
|
|
3374
3374
|
class hi {
|
|
3375
3375
|
apiKey;
|
|
3376
3376
|
mapProvider;
|
|
@@ -3512,7 +3512,7 @@ class hi {
|
|
|
3512
3512
|
}, a = (o, l) => {
|
|
3513
3513
|
if (l) return l;
|
|
3514
3514
|
const u = o.getBoundingClientRect();
|
|
3515
|
-
return { width: u.width, height: u.height, padding: Math.
|
|
3515
|
+
return { width: u.width, height: u.height, padding: Math.min(Math.round(Math.min(u.width, u.height) / 4), Vi) };
|
|
3516
3516
|
};
|
|
3517
3517
|
for (const o of r) {
|
|
3518
3518
|
const l = o.id, u = o.lat, c = o.lng, f = o.rank;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arenarium/maps",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "arenarium",
|
|
6
6
|
"description": "Visualize complex map markers clearly. A JavaScript library for effective display of map markers, compatible with MapLibre, Mapbox, and Google Maps.",
|