@arenarium/maps 1.0.189 → 1.0.191

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/api.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";var E=Object.defineProperty;var v=(d,o,n)=>o in d?E(d,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):d[o]=n;var a=(d,o,n)=>v(d,typeof o!="symbol"?o+"":o,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./states-Dj48QyzN.cjs");class B{constructor(o,n,s){a(this,"x");a(this,"y");a(this,"width");a(this,"height");a(this,"zoom");a(this,"angles");a(this,"expanded");a(this,"angle");a(this,"bounds");const r=b.Mercator.project(n.lat,n.lng,o.mapSize);this.x=r.x,this.y=r.y,this.width=n.width+2*n.margin,this.height=n.height+2*n.margin,this.zoom=s[0],this.angles=s[1].map(c=>[c[0],b.Angles.DEGREES[c[1]]]),this.expanded=!1,this.angle=0,this.bounds=void 0}getBounds(o,n){let s=b.Rectangle.getOffsets(this.width,this.height,n),r=-s.x,c=this.width-r,u=-s.y,f=this.height-u;return{x:this.x,y:this.y,distances:{left:r/o,right:c/o,top:u/o,bottom:f/o}}}}function M(d,o,n){var f;if(o.length!=n.length)throw new Error("Data and states length must be the same");const s=new Array(o.length);for(let i=0;i<o.length;i++){const g=n[i];if(isNaN(g[0]))throw new Error("State zoom is not a number");if(g[1]==null||g[1].length==0)throw new Error("State angles is empty");if(g[0]!=g[1][0][0])throw new Error("State expand zoom and start angles zoom are not the same");const l=new B(d,o[i],n[i]);s[i]=l}const r=d.zoomMin,c=d.zoomMax,u=1/d.zoomScale;for(let i=r;i<=c;i+=u){const g=Math.pow(2,i);for(let l=0;l<s.length;l++){const t=s[l];if(t.expanded=t.zoom<i,t.expanded==!1)continue;const h=(f=t.angles.findLast(e=>e[0]<i))==null?void 0:f[1];if(h==null)throw new Error("Angle not found");t.angle=h,t.bounds=t.getBounds(g,h)}for(let l=0;l<s.length;l++){const t=s[l];if(t.bounds!=null)for(let h=l+1;h<s.length;h++){const e=s[h];if(e.bounds!=null&&b.Bounds.areOverlaping(t.bounds,e.bounds)){console.log("OVERLAP",i,t,o[l],e,o[h]);const m=t.bounds.x-t.bounds.distances.left,x=t.bounds.x+t.bounds.distances.right,w=t.bounds.y-t.bounds.distances.top,y=t.bounds.y+t.bounds.distances.bottom;console.log(`B1: (${m}, ${w}), (${m}, ${y}), (${x}, ${w}), (${x}, ${y}), (${t.bounds.x}, ${t.bounds.y})`,t.angle);const $=e.bounds.x-e.bounds.distances.left,z=e.bounds.x+e.bounds.distances.right,S=e.bounds.y-e.bounds.distances.top,p=e.bounds.y+e.bounds.distances.bottom;throw console.log(`B2: (${$}, ${S}), (${$}, ${p}), (${z}, ${S}), (${z}, ${p}), (${e.bounds.x}, ${e.bounds.y})`,e.angle),new Error("Bounds overlaping")}}}}}exports.getStates=b.getStates;exports.testStates=M;
1
+ "use strict";var E=Object.defineProperty;var v=(d,o,n)=>o in d?E(d,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):d[o]=n;var a=(d,o,n)=>v(d,typeof o!="symbol"?o+"":o,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./states-C618H9PS.cjs");class B{constructor(o,n,s){a(this,"x");a(this,"y");a(this,"width");a(this,"height");a(this,"zoom");a(this,"angles");a(this,"expanded");a(this,"angle");a(this,"bounds");const r=b.Mercator.project(n.lat,n.lng,o.mapSize);this.x=r.x,this.y=r.y,this.width=n.width+2*n.margin,this.height=n.height+2*n.margin,this.zoom=s[0],this.angles=s[1].map(c=>[c[0],b.Angles.DEGREES[c[1]]]),this.expanded=!1,this.angle=0,this.bounds=void 0}getBounds(o,n){let s=b.Rectangle.getOffsets(this.width,this.height,n),r=-s.x,c=this.width-r,u=-s.y,f=this.height-u;return{x:this.x,y:this.y,distances:{left:r/o,right:c/o,top:u/o,bottom:f/o}}}}function M(d,o,n){var f;if(o.length!=n.length)throw new Error("Data and states length must be the same");const s=new Array(o.length);for(let i=0;i<o.length;i++){const g=n[i];if(isNaN(g[0]))throw new Error("State zoom is not a number");if(g[1]==null||g[1].length==0)throw new Error("State angles is empty");if(g[0]!=g[1][0][0])throw new Error("State expand zoom and start angles zoom are not the same");const l=new B(d,o[i],n[i]);s[i]=l}const r=d.zoomMin,c=d.zoomMax,u=1/d.zoomScale;for(let i=r;i<=c;i+=u){const g=Math.pow(2,i);for(let l=0;l<s.length;l++){const t=s[l];if(t.expanded=t.zoom<i,t.expanded==!1)continue;const h=(f=t.angles.findLast(e=>e[0]<i))==null?void 0:f[1];if(h==null)throw new Error("Angle not found");t.angle=h,t.bounds=t.getBounds(g,h)}for(let l=0;l<s.length;l++){const t=s[l];if(t.bounds!=null)for(let h=l+1;h<s.length;h++){const e=s[h];if(e.bounds!=null&&b.Bounds.areOverlaping(t.bounds,e.bounds)){console.log("OVERLAP",i,t,o[l],e,o[h]);const m=t.bounds.x-t.bounds.distances.left,x=t.bounds.x+t.bounds.distances.right,w=t.bounds.y-t.bounds.distances.top,y=t.bounds.y+t.bounds.distances.bottom;console.log(`B1: (${m}, ${w}), (${m}, ${y}), (${x}, ${w}), (${x}, ${y}), (${t.bounds.x}, ${t.bounds.y})`,t.angle);const $=e.bounds.x-e.bounds.distances.left,z=e.bounds.x+e.bounds.distances.right,S=e.bounds.y-e.bounds.distances.top,p=e.bounds.y+e.bounds.distances.bottom;throw console.log(`B2: (${$}, ${S}), (${$}, ${p}), (${z}, ${S}), (${z}, ${p}), (${e.bounds.x}, ${e.bounds.y})`,e.angle),new Error("Bounds overlaping")}}}}}exports.getStates=b.getStates;exports.testStates=M;
package/dist/api.d.ts CHANGED
@@ -2,6 +2,8 @@ import { z } from 'zod';
2
2
 
3
3
  export declare function getStates(parameters: MapTooltipStatesParameters, data: Array<MapTooltipStateInput>): MapTooltipState[];
4
4
 
5
+ declare type MapProviderParameters = z.infer<typeof mapProviderParametersSchema>;
6
+
5
7
  declare const mapProviderParametersSchema: z.ZodObject<{
6
8
  mapSize: z.ZodNumber;
7
9
  zoomMin: z.ZodNumber;
@@ -49,9 +51,26 @@ declare const mapTooltipStateInputSchema: z.ZodObject<{
49
51
  margin: number;
50
52
  }>;
51
53
 
54
+ declare const mapTooltipStateParametersSchema: z.ZodObject<{
55
+ mapSize: z.ZodNumber;
56
+ zoomMin: z.ZodNumber;
57
+ zoomMax: z.ZodNumber;
58
+ zoomScale: z.ZodNumber;
59
+ }, "strip", z.ZodTypeAny, {
60
+ mapSize: number;
61
+ zoomMin: number;
62
+ zoomMax: number;
63
+ zoomScale: number;
64
+ }, {
65
+ mapSize: number;
66
+ zoomMin: number;
67
+ zoomMax: number;
68
+ zoomScale: number;
69
+ }>;
70
+
52
71
  declare const mapTooltipStateSchema: z.ZodTuple<[z.ZodNumber, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">], null>;
53
72
 
54
- export declare type MapTooltipStatesParameters = z.infer<typeof mapProviderParametersSchema>;
73
+ export declare type MapTooltipStatesParameters = z.infer<typeof mapTooltipStateParametersSchema>;
55
74
 
56
75
  export declare type MapTooltipStatesRequest = z.infer<typeof mapTooltipStatesRequestSchema>;
57
76
 
@@ -134,6 +153,6 @@ declare const mapTooltipStatesRequestSchema: z.ZodObject<{
134
153
  }[];
135
154
  }>;
136
155
 
137
- export declare function testStates(parameters: MapTooltipStatesParameters, inputs: MapTooltipStateInput[], states: MapTooltipState[]): void;
156
+ export declare function testStates(parameters: MapProviderParameters, inputs: MapTooltipStateInput[], states: MapTooltipState[]): void;
138
157
 
139
158
  export { }
package/dist/api.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var E = Object.defineProperty;
2
2
  var S = (d, t, n) => t in d ? E(d, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : d[t] = n;
3
3
  var l = (d, t, n) => S(d, typeof t != "symbol" ? t + "" : t, n);
4
- import { B as v, M as B, A, R as M } from "./states-DJiLxlPa.js";
5
- import { g as G } from "./states-DJiLxlPa.js";
4
+ import { B as v, M as B, A, R as M } from "./states-CQ1aDpNu.js";
5
+ import { g as G } from "./states-CQ1aDpNu.js";
6
6
  class R {
7
7
  constructor(t, n, e) {
8
8
  l(this, "x");
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty;var y=(r,e,t)=>e in r?m(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var l=(r,e,t)=>y(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=class n{constructor(e,t,s,o){l(this,"parameters",n.Parameters);l(this,"MapClass");l(this,"MapMarkerClass");l(this,"map");this.MapClass=e,this.MapMarkerClass=t,this.map=new this.MapClass(s,{...o})}getMap(){return this.map}getContainer(){return this.map.getDiv()}getZoom(){return this.map.getZoom()??NaN}getBounds(){const e=this.map.getBounds();if(e==null)return{sw:{lat:NaN,lng:NaN},ne:{lat:NaN,lng:NaN}};const t=e.getSouthWest(),s=e.getNorthEast();return{sw:{lat:t.lat(),lng:t.lng()},ne:{lat:s.lat(),lng:s.lng()}}}panBy(e,t){this.map.panBy(e,t)}createMarker(e,t,s,o){const a=new this.MapMarkerClass({position:{lat:t,lng:s},content:e,zIndex:o});return{instance:a,inserted:()=>a.map!=null&&a.map==this.map,insert:()=>a.map=this.map,remove:()=>a.map=void 0,update:p=>a.zIndex=p}}};l(n,"Parameters",{mapSize:256,zoomMin:0,zoomMax:22,zoomScale:10});let i=n;const g=[{elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{saturation:-100},{lightness:-10}]},{featureType:"landscape",stylers:[{lightness:30}]},{featureType:"road",elementType:"geometry",stylers:[{saturation:-100}]}],h=[{elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{saturation:-100}]},{elementType:"geometry",stylers:[{lightness:-45}]},{elementType:"labels.text.fill",stylers:[{lightness:-100}]},{elementType:"labels.text.stroke",stylers:[{lightness:-15}]},{featureType:"water",elementType:"geometry",stylers:[{lightness:-50}]}];exports.GoogleMapDarkStyle=h;exports.GoogleMapLightStyle=g;exports.GoogleMapsProvider=i;
1
+ "use strict";var i=Object.defineProperty;var p=(s,e,t)=>e in s?i(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var l=(s,e,t)=>p(s,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class m{constructor(e,t,a,n){l(this,"MapClass");l(this,"MapMarkerClass");l(this,"map");l(this,"options");this.MapClass=e,this.MapMarkerClass=t,this.options=n,this.map=new this.MapClass(a,{...n})}getParameters(){return{mapSize:256,zoomMin:this.options.minZoom??0,zoomMax:this.options.maxZoom??24,zoomScale:10}}getMap(){return this.map}getContainer(){return this.map.getDiv()}getZoom(){return this.map.getZoom()??NaN}getBounds(){const e=this.map.getBounds();if(e==null)return{sw:{lat:NaN,lng:NaN},ne:{lat:NaN,lng:NaN}};const t=e.getSouthWest(),a=e.getNorthEast();return{sw:{lat:t.lat(),lng:t.lng()},ne:{lat:a.lat(),lng:a.lng()}}}panBy(e,t){this.map.panBy(e,t)}createMarker(e,t,a,n){const o=new this.MapMarkerClass({position:{lat:t,lng:a},content:e,zIndex:n});return{instance:o,inserted:()=>o.map!=null&&o.map==this.map,insert:()=>o.map=this.map,remove:()=>o.map=void 0,update:r=>o.zIndex=r}}}const g=[{elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{saturation:-100},{lightness:-10}]},{featureType:"landscape",stylers:[{lightness:30}]},{featureType:"road",elementType:"geometry",stylers:[{saturation:-100}]}],y=[{elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{saturation:-100}]},{elementType:"geometry",stylers:[{lightness:-45}]},{elementType:"labels.text.fill",stylers:[{lightness:-100}]},{elementType:"labels.text.stroke",stylers:[{lightness:-15}]},{featureType:"water",elementType:"geometry",stylers:[{lightness:-50}]}];exports.GoogleMapDarkStyle=y;exports.GoogleMapLightStyle=g;exports.GoogleMapsProvider=m;
package/dist/google.d.ts CHANGED
@@ -65,12 +65,12 @@ declare interface GoogleMapsMarkerClass {
65
65
  }
66
66
 
67
67
  export declare class GoogleMapsProvider implements MapProvider {
68
- static Parameters: MapProviderParameters;
69
- parameters: MapProviderParameters;
70
68
  private MapClass;
71
69
  private MapMarkerClass;
72
70
  private map;
71
+ private options;
73
72
  constructor(mapClass: GoogleMapsClass, mapMarkerClass: GoogleMapsMarkerClass, container: HTMLElement, options: google.maps.MapOptions);
73
+ getParameters(): MapProviderParameters;
74
74
  getMap(): google.maps.Map;
75
75
  getContainer(): HTMLElement;
76
76
  getZoom(): number;
@@ -166,7 +166,7 @@ declare const mapProviderParametersSchema: z.ZodObject<{
166
166
  }>;
167
167
 
168
168
  declare const mapProviderSchema: z.ZodObject<{
169
- parameters: z.ZodObject<{
169
+ getParameters: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodObject<{
170
170
  mapSize: z.ZodNumber;
171
171
  zoomMin: z.ZodNumber;
172
172
  zoomMax: z.ZodNumber;
@@ -181,7 +181,7 @@ declare const mapProviderSchema: z.ZodObject<{
181
181
  zoomMin: number;
182
182
  zoomMax: number;
183
183
  zoomScale: number;
184
- }>;
184
+ }>>;
185
185
  getContainer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodEffects<z.ZodAny, HTMLElement, any>>;
186
186
  getZoom: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodNumber>;
187
187
  getBounds: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodObject<{
@@ -245,7 +245,7 @@ declare const mapProviderSchema: z.ZodObject<{
245
245
  instance?: any;
246
246
  }>>;
247
247
  }, "strip", z.ZodTypeAny, {
248
- parameters: {
248
+ getParameters: (...args: unknown[]) => {
249
249
  mapSize: number;
250
250
  zoomMin: number;
251
251
  zoomMax: number;
@@ -272,7 +272,7 @@ declare const mapProviderSchema: z.ZodObject<{
272
272
  instance?: any;
273
273
  };
274
274
  }, {
275
- parameters: {
275
+ getParameters: (...args: unknown[]) => {
276
276
  mapSize: number;
277
277
  zoomMin: number;
278
278
  zoomMax: number;
package/dist/google.es.js CHANGED
@@ -1,16 +1,24 @@
1
- var m = Object.defineProperty;
2
- var y = (l, e, t) => e in l ? m(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
3
- var n = (l, e, t) => y(l, typeof e != "symbol" ? e + "" : e, t);
4
- const r = class r {
5
- constructor(e, t, s, i) {
6
- n(this, "parameters", r.Parameters);
7
- n(this, "MapClass");
8
- n(this, "MapMarkerClass");
9
- n(this, "map");
10
- this.MapClass = e, this.MapMarkerClass = t, this.map = new this.MapClass(s, {
11
- ...i
1
+ var i = Object.defineProperty;
2
+ var p = (s, e, t) => e in s ? i(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
+ var l = (s, e, t) => p(s, typeof e != "symbol" ? e + "" : e, t);
4
+ class g {
5
+ constructor(e, t, a, o) {
6
+ l(this, "MapClass");
7
+ l(this, "MapMarkerClass");
8
+ l(this, "map");
9
+ l(this, "options");
10
+ this.MapClass = e, this.MapMarkerClass = t, this.options = o, this.map = new this.MapClass(a, {
11
+ ...o
12
12
  });
13
13
  }
14
+ getParameters() {
15
+ return {
16
+ mapSize: 256,
17
+ zoomMin: this.options.minZoom ?? 0,
18
+ zoomMax: this.options.maxZoom ?? 24,
19
+ zoomScale: 10
20
+ };
21
+ }
14
22
  getMap() {
15
23
  return this.map;
16
24
  }
@@ -23,31 +31,24 @@ const r = class r {
23
31
  getBounds() {
24
32
  const e = this.map.getBounds();
25
33
  if (e == null) return { sw: { lat: NaN, lng: NaN }, ne: { lat: NaN, lng: NaN } };
26
- const t = e.getSouthWest(), s = e.getNorthEast();
27
- return { sw: { lat: t.lat(), lng: t.lng() }, ne: { lat: s.lat(), lng: s.lng() } };
34
+ const t = e.getSouthWest(), a = e.getNorthEast();
35
+ return { sw: { lat: t.lat(), lng: t.lng() }, ne: { lat: a.lat(), lng: a.lng() } };
28
36
  }
29
37
  panBy(e, t) {
30
38
  this.map.panBy(e, t);
31
39
  }
32
- createMarker(e, t, s, i) {
33
- const a = new this.MapMarkerClass({ position: { lat: t, lng: s }, content: e, zIndex: i });
40
+ createMarker(e, t, a, o) {
41
+ const n = new this.MapMarkerClass({ position: { lat: t, lng: a }, content: e, zIndex: o });
34
42
  return {
35
- instance: a,
36
- inserted: () => a.map != null && a.map == this.map,
37
- insert: () => a.map = this.map,
38
- remove: () => a.map = void 0,
39
- update: (p) => a.zIndex = p
43
+ instance: n,
44
+ inserted: () => n.map != null && n.map == this.map,
45
+ insert: () => n.map = this.map,
46
+ remove: () => n.map = void 0,
47
+ update: (r) => n.zIndex = r
40
48
  };
41
49
  }
42
- };
43
- n(r, "Parameters", {
44
- mapSize: 256,
45
- zoomMin: 0,
46
- zoomMax: 22,
47
- zoomScale: 10
48
- });
49
- let o = r;
50
- const h = [
50
+ }
51
+ const y = [
51
52
  {
52
53
  elementType: "labels.icon",
53
54
  stylers: [
@@ -83,7 +84,7 @@ const h = [
83
84
  }
84
85
  ]
85
86
  }
86
- ], u = [
87
+ ], h = [
87
88
  {
88
89
  elementType: "labels.icon",
89
90
  stylers: [
@@ -134,7 +135,7 @@ const h = [
134
135
  }
135
136
  ];
136
137
  export {
137
- u as GoogleMapDarkStyle,
138
- h as GoogleMapLightStyle,
139
- o as GoogleMapsProvider
138
+ h as GoogleMapDarkStyle,
139
+ y as GoogleMapLightStyle,
140
+ g as GoogleMapsProvider
140
141
  };
package/dist/index.d.ts CHANGED
@@ -192,7 +192,8 @@ declare const mapProviderMarkerSchema: z.ZodObject<{
192
192
  instance?: any;
193
193
  }>;
194
194
  declare const mapProviderSchema: z.ZodObject<{
195
- parameters: z.ZodObject<{
195
+ getParameters: z.ZodFunction<z.ZodTuple<[
196
+ ], z.ZodUnknown>, z.ZodObject<{
196
197
  mapSize: z.ZodNumber;
197
198
  zoomMin: z.ZodNumber;
198
199
  zoomMax: z.ZodNumber;
@@ -207,7 +208,7 @@ declare const mapProviderSchema: z.ZodObject<{
207
208
  zoomMin: number;
208
209
  zoomMax: number;
209
210
  zoomScale: number;
210
- }>;
211
+ }>>;
211
212
  getContainer: z.ZodFunction<z.ZodTuple<[
212
213
  ], z.ZodUnknown>, z.ZodEffects<z.ZodAny, HTMLElement, any>>;
213
214
  getZoom: z.ZodFunction<z.ZodTuple<[
@@ -287,7 +288,7 @@ declare const mapProviderSchema: z.ZodObject<{
287
288
  instance?: any;
288
289
  }>>;
289
290
  }, "strip", z.ZodTypeAny, {
290
- parameters: {
291
+ getParameters: (...args: unknown[]) => {
291
292
  mapSize: number;
292
293
  zoomMin: number;
293
294
  zoomMax: number;
@@ -314,7 +315,7 @@ declare const mapProviderSchema: z.ZodObject<{
314
315
  instance?: any;
315
316
  };
316
317
  }, {
317
- parameters: {
318
+ getParameters: (...args: unknown[]) => {
318
319
  mapSize: number;
319
320
  zoomMin: number;
320
321
  zoomMax: number;
@@ -344,7 +345,7 @@ declare const mapProviderSchema: z.ZodObject<{
344
345
  export type MapBounds = z.infer<typeof mapBoundsSchema>;
345
346
  export type MapProvider = z.infer<typeof mapProviderSchema>;
346
347
  export type MapProviderMarker = z.infer<typeof mapProviderMarkerSchema>;
347
- type MapProviderParameters = z.infer<typeof mapProviderParametersSchema>;
348
+ export type MapProviderParameters = z.infer<typeof mapProviderParametersSchema>;
348
349
  declare const mapMarkerSchema: z.ZodObject<{
349
350
  id: z.ZodString;
350
351
  rank: z.ZodNumber;
@@ -537,6 +538,22 @@ declare const mapTooltipStateSchema: z.ZodTuple<[
537
538
  z.ZodNumber
538
539
  ], null>, "many">
539
540
  ], null>;
541
+ declare const mapTooltipStateParametersSchema: z.ZodObject<{
542
+ mapSize: z.ZodNumber;
543
+ zoomMin: z.ZodNumber;
544
+ zoomMax: z.ZodNumber;
545
+ zoomScale: z.ZodNumber;
546
+ }, "strip", z.ZodTypeAny, {
547
+ mapSize: number;
548
+ zoomMin: number;
549
+ zoomMax: number;
550
+ zoomScale: number;
551
+ }, {
552
+ mapSize: number;
553
+ zoomMin: number;
554
+ zoomMax: number;
555
+ zoomScale: number;
556
+ }>;
540
557
  declare const mapTooltipStateInputSchema: z.ZodObject<{
541
558
  id: z.ZodString;
542
559
  rank: z.ZodNumber;
@@ -642,6 +659,7 @@ declare const mapTooltipStatesRequestSchema: z.ZodObject<{
642
659
  }>;
643
660
  export type MapTooltipState = z.infer<typeof mapTooltipStateSchema>;
644
661
  export type MapTooltipStateInput = z.infer<typeof mapTooltipStateInputSchema>;
662
+ export type MapTooltipStatesParameters = z.infer<typeof mapTooltipStateParametersSchema>;
645
663
  export type MapTooltipStatesRequest = z.infer<typeof mapTooltipStatesRequestSchema>;
646
664
  export declare class MapManager {
647
665
  private provider;
@@ -673,12 +691,11 @@ export interface MaplibreMarkerClass {
673
691
  new (options: maplibregl.MarkerOptions): maplibregl.Marker;
674
692
  }
675
693
  export declare class MaplibreProvider implements MapProvider {
676
- static Parameters: MapProviderParameters;
677
- parameters: MapProviderParameters;
678
694
  private MapClass;
679
695
  private MapMarkerClass;
680
696
  private map;
681
697
  constructor(mapClass: MaplibreMapClass, mapMarkerClass: MaplibreMarkerClass, options: maplibregl.MapOptions);
698
+ getParameters(): MapProviderParameters;
682
699
  getMap(): maplibregl.Map;
683
700
  getContainer(): HTMLElement;
684
701
  getZoom(): number;
@@ -695,12 +712,11 @@ export interface MapboxMarkerClass {
695
712
  new (options: MarkerOptions): Marker;
696
713
  }
697
714
  export declare class MapboxProvider implements MapProvider {
698
- static Parameters: MapProviderParameters;
699
- parameters: MapProviderParameters;
700
715
  private MapClass;
701
716
  private MapMarkerClass;
702
717
  private map;
703
718
  constructor(mapClass: MapboxMapClass, mapMarkerClass: MapboxMarkerClass, options: MapOptions);
719
+ getParameters(): MapProviderParameters;
704
720
  getMap(): Map$1;
705
721
  getContainer(): HTMLElement;
706
722
  getZoom(): number;
@@ -715,12 +731,12 @@ export interface GoogleMapsMarkerClass {
715
731
  new (options: google.maps.marker.AdvancedMarkerElementOptions): google.maps.marker.AdvancedMarkerElement;
716
732
  }
717
733
  export declare class GoogleMapsProvider implements MapProvider {
718
- static Parameters: MapProviderParameters;
719
- parameters: MapProviderParameters;
720
734
  private MapClass;
721
735
  private MapMarkerClass;
722
736
  private map;
737
+ private options;
723
738
  constructor(mapClass: GoogleMapsClass, mapMarkerClass: GoogleMapsMarkerClass, container: HTMLElement, options: google.maps.MapOptions);
739
+ getParameters(): MapProviderParameters;
724
740
  getMap(): google.maps.Map;
725
741
  getContainer(): HTMLElement;
726
742
  getZoom(): number;
@@ -782,13 +798,9 @@ export declare const GoogleMapDarkStyle: ({
782
798
  lightness: number;
783
799
  }[];
784
800
  })[];
785
- export declare function getStates(parameters: MapProviderParameters, data: Array<MapTooltipStateInput>): MapTooltipState[];
801
+ export declare function getStates(parameters: MapTooltipStatesParameters, data: Array<MapTooltipStateInput>): MapTooltipState[];
786
802
  export declare function testStates(parameters: MapProviderParameters, inputs: MapTooltipStateInput[], states: MapTooltipState[]): void;
787
803
 
788
- export {
789
- MapProviderParameters as MapTooltipStatesParameters,
790
- };
791
-
792
804
  export as namespace arenarium;
793
805
 
794
806
  export {};