@arenarium/maps 1.0.134 → 1.0.136

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.
@@ -1 +1 @@
1
- "use strict";var p=Object.defineProperty;var m=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var s=(a,e,t)=>m(a,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=class i{constructor(e,t,l,n){s(this,"parameters",i.Parameters);s(this,"MapClass");s(this,"MapMarkerClass");s(this,"map");this.MapClass=e,this.MapMarkerClass=t,this.map=new this.MapClass(l,{...n})}getMap(){return this.map}getContainer(){return this.map.getDiv()}getZoom(){return this.map.getZoom()??NaN}getWidth(){return this.map.getDiv().clientWidth}getHeight(){return this.map.getDiv().clientHeight}createMarker(e,t,l,n){const r=new this.MapMarkerClass({position:{lat:t,lng:l},content:e,zIndex:n});return{instance:r,inserted:()=>r.map!=null&&r.map==this.map,insert:()=>r.map=this.map,remove:()=>r.map=void 0}}};s(i,"Parameters",{mapSize:256,zoomMin:0,zoomMax:22,zoomScale:10});let o=i;const y=[{elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{saturation:-100},{lightness:-10}]},{featureType:"landscape",stylers:[{lightness:30}]},{featureType:"road",elementType:"geometry",stylers:[{saturation:-100}]}],g=[{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=g;exports.GoogleMapLightStyle=y;exports.GoogleMapsProvider=o;
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 a=(r,e,t)=>y(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=class i{constructor(e,t,l,n){a(this,"parameters",i.Parameters);a(this,"MapClass");a(this,"MapMarkerClass");a(this,"map");this.MapClass=e,this.MapMarkerClass=t,this.map=new this.MapClass(l,{...n})}getMap(){return this.map}getContainer(){return this.map.getDiv()}getZoom(){return this.map.getZoom()??NaN}getWidth(){return this.map.getDiv().clientWidth}getHeight(){return this.map.getDiv().clientHeight}createMarker(e,t,l,n){const s=new this.MapMarkerClass({position:{lat:t,lng:l},content:e,zIndex:n});return{instance:s,inserted:()=>s.map!=null&&s.map==this.map,insert:()=>s.map=this.map,remove:()=>s.map=void 0,update:p=>s.zIndex=p}}};a(i,"Parameters",{mapSize:256,zoomMin:0,zoomMax:22,zoomScale:10});let o=i;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=o;
package/dist/google.d.ts CHANGED
@@ -88,15 +88,18 @@ declare const mapProviderMarkerSchema: z.ZodObject<{
88
88
  inserted: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodBoolean>;
89
89
  insert: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
90
90
  remove: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
91
+ update: z.ZodFunction<z.ZodTuple<[z.ZodNumber], z.ZodUnknown>, z.ZodVoid>;
91
92
  }, "strip", z.ZodTypeAny, {
92
93
  inserted: (...args: unknown[]) => boolean;
93
94
  insert: (...args: unknown[]) => void;
94
95
  remove: (...args: unknown[]) => void;
96
+ update: (args_0: number, ...args: unknown[]) => void;
95
97
  instance?: any;
96
98
  }, {
97
99
  inserted: (...args: unknown[]) => boolean;
98
100
  insert: (...args: unknown[]) => void;
99
101
  remove: (...args: unknown[]) => void;
102
+ update: (args_0: number, ...args: unknown[]) => void;
100
103
  instance?: any;
101
104
  }>;
102
105
 
@@ -145,15 +148,18 @@ declare const mapProviderSchema: z.ZodObject<{
145
148
  inserted: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodBoolean>;
146
149
  insert: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
147
150
  remove: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
151
+ update: z.ZodFunction<z.ZodTuple<[z.ZodNumber], z.ZodUnknown>, z.ZodVoid>;
148
152
  }, "strip", z.ZodTypeAny, {
149
153
  inserted: (...args: unknown[]) => boolean;
150
154
  insert: (...args: unknown[]) => void;
151
155
  remove: (...args: unknown[]) => void;
156
+ update: (args_0: number, ...args: unknown[]) => void;
152
157
  instance?: any;
153
158
  }, {
154
159
  inserted: (...args: unknown[]) => boolean;
155
160
  insert: (...args: unknown[]) => void;
156
161
  remove: (...args: unknown[]) => void;
162
+ update: (args_0: number, ...args: unknown[]) => void;
157
163
  instance?: any;
158
164
  }>>;
159
165
  }, "strip", z.ZodTypeAny, {
@@ -171,6 +177,7 @@ declare const mapProviderSchema: z.ZodObject<{
171
177
  inserted: (...args: unknown[]) => boolean;
172
178
  insert: (...args: unknown[]) => void;
173
179
  remove: (...args: unknown[]) => void;
180
+ update: (args_0: number, ...args: unknown[]) => void;
174
181
  instance?: any;
175
182
  };
176
183
  }, {
@@ -188,6 +195,7 @@ declare const mapProviderSchema: z.ZodObject<{
188
195
  inserted: (...args: unknown[]) => boolean;
189
196
  insert: (...args: unknown[]) => void;
190
197
  remove: (...args: unknown[]) => void;
198
+ update: (args_0: number, ...args: unknown[]) => void;
191
199
  instance?: any;
192
200
  };
193
201
  }>;
package/dist/google.es.js CHANGED
@@ -1,12 +1,12 @@
1
- var m = Object.defineProperty;
2
- var o = (a, e, t) => e in a ? m(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var s = (a, e, t) => o(a, typeof e != "symbol" ? e + "" : e, t);
1
+ var o = Object.defineProperty;
2
+ var y = (r, e, t) => e in r ? o(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var a = (r, e, t) => y(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  const i = class i {
5
5
  constructor(e, t, l, n) {
6
- s(this, "parameters", i.Parameters);
7
- s(this, "MapClass");
8
- s(this, "MapMarkerClass");
9
- s(this, "map");
6
+ a(this, "parameters", i.Parameters);
7
+ a(this, "MapClass");
8
+ a(this, "MapMarkerClass");
9
+ a(this, "map");
10
10
  this.MapClass = e, this.MapMarkerClass = t, this.map = new this.MapClass(l, {
11
11
  ...n
12
12
  });
@@ -27,23 +27,24 @@ const i = class i {
27
27
  return this.map.getDiv().clientHeight;
28
28
  }
29
29
  createMarker(e, t, l, n) {
30
- const r = new this.MapMarkerClass({ position: { lat: t, lng: l }, content: e, zIndex: n });
30
+ const s = new this.MapMarkerClass({ position: { lat: t, lng: l }, content: e, zIndex: n });
31
31
  return {
32
- instance: r,
33
- inserted: () => r.map != null && r.map == this.map,
34
- insert: () => r.map = this.map,
35
- remove: () => r.map = void 0
32
+ instance: s,
33
+ inserted: () => s.map != null && s.map == this.map,
34
+ insert: () => s.map = this.map,
35
+ remove: () => s.map = void 0,
36
+ update: (m) => s.zIndex = m
36
37
  };
37
38
  }
38
39
  };
39
- s(i, "Parameters", {
40
+ a(i, "Parameters", {
40
41
  mapSize: 256,
41
42
  zoomMin: 0,
42
43
  zoomMax: 22,
43
44
  zoomScale: 10
44
45
  });
45
46
  let p = i;
46
- const h = [
47
+ const g = [
47
48
  {
48
49
  elementType: "labels.icon",
49
50
  stylers: [
@@ -79,7 +80,7 @@ const h = [
79
80
  }
80
81
  ]
81
82
  }
82
- ], g = [
83
+ ], c = [
83
84
  {
84
85
  elementType: "labels.icon",
85
86
  stylers: [
@@ -130,7 +131,7 @@ const h = [
130
131
  }
131
132
  ];
132
133
  export {
133
- g as GoogleMapDarkStyle,
134
- h as GoogleMapLightStyle,
134
+ c as GoogleMapDarkStyle,
135
+ g as GoogleMapLightStyle,
135
136
  p as GoogleMapsProvider
136
137
  };
package/dist/index.d.ts CHANGED
@@ -94,15 +94,20 @@ declare const mapProviderMarkerSchema: z.ZodObject<{
94
94
  ], z.ZodUnknown>, z.ZodVoid>;
95
95
  remove: z.ZodFunction<z.ZodTuple<[
96
96
  ], z.ZodUnknown>, z.ZodVoid>;
97
+ update: z.ZodFunction<z.ZodTuple<[
98
+ z.ZodNumber
99
+ ], z.ZodUnknown>, z.ZodVoid>;
97
100
  }, "strip", z.ZodTypeAny, {
98
101
  inserted: (...args: unknown[]) => boolean;
99
102
  insert: (...args: unknown[]) => void;
100
103
  remove: (...args: unknown[]) => void;
104
+ update: (args_0: number, ...args: unknown[]) => void;
101
105
  instance?: any;
102
106
  }, {
103
107
  inserted: (...args: unknown[]) => boolean;
104
108
  insert: (...args: unknown[]) => void;
105
109
  remove: (...args: unknown[]) => void;
110
+ update: (args_0: number, ...args: unknown[]) => void;
106
111
  instance?: any;
107
112
  }>;
108
113
  declare const mapProviderSchema: z.ZodObject<{
@@ -143,15 +148,20 @@ declare const mapProviderSchema: z.ZodObject<{
143
148
  ], z.ZodUnknown>, z.ZodVoid>;
144
149
  remove: z.ZodFunction<z.ZodTuple<[
145
150
  ], z.ZodUnknown>, z.ZodVoid>;
151
+ update: z.ZodFunction<z.ZodTuple<[
152
+ z.ZodNumber
153
+ ], z.ZodUnknown>, z.ZodVoid>;
146
154
  }, "strip", z.ZodTypeAny, {
147
155
  inserted: (...args: unknown[]) => boolean;
148
156
  insert: (...args: unknown[]) => void;
149
157
  remove: (...args: unknown[]) => void;
158
+ update: (args_0: number, ...args: unknown[]) => void;
150
159
  instance?: any;
151
160
  }, {
152
161
  inserted: (...args: unknown[]) => boolean;
153
162
  insert: (...args: unknown[]) => void;
154
163
  remove: (...args: unknown[]) => void;
164
+ update: (args_0: number, ...args: unknown[]) => void;
155
165
  instance?: any;
156
166
  }>>;
157
167
  }, "strip", z.ZodTypeAny, {
@@ -169,6 +179,7 @@ declare const mapProviderSchema: z.ZodObject<{
169
179
  inserted: (...args: unknown[]) => boolean;
170
180
  insert: (...args: unknown[]) => void;
171
181
  remove: (...args: unknown[]) => void;
182
+ update: (args_0: number, ...args: unknown[]) => void;
172
183
  instance?: any;
173
184
  };
174
185
  }, {
@@ -186,6 +197,7 @@ declare const mapProviderSchema: z.ZodObject<{
186
197
  inserted: (...args: unknown[]) => boolean;
187
198
  insert: (...args: unknown[]) => void;
188
199
  remove: (...args: unknown[]) => void;
200
+ update: (args_0: number, ...args: unknown[]) => void;
189
201
  instance?: any;
190
202
  };
191
203
  }>;
@@ -373,6 +385,80 @@ export declare class MapLibreProvider implements MapProvider {
373
385
  }
374
386
  export declare const MapLibreDarkStyle: maplibregl.StyleSpecification;
375
387
  export declare const MapLibreStyleLight: maplibregl.StyleSpecification;
388
+ export interface GoogleMapsClass {
389
+ new (container: HTMLElement, options: google.maps.MapOptions): google.maps.Map;
390
+ }
391
+ export interface GoogleMapsMarkerClass {
392
+ new (options: google.maps.marker.AdvancedMarkerElementOptions): google.maps.marker.AdvancedMarkerElement;
393
+ }
394
+ export declare class GoogleMapsProvider implements MapProvider {
395
+ static Parameters: MapProviderParameters;
396
+ parameters: MapProviderParameters;
397
+ private MapClass;
398
+ private MapMarkerClass;
399
+ private map;
400
+ constructor(mapClass: GoogleMapsClass, mapMarkerClass: GoogleMapsMarkerClass, container: HTMLElement, options: google.maps.MapOptions);
401
+ getMap(): google.maps.Map;
402
+ getContainer(): HTMLElement;
403
+ getZoom(): number;
404
+ getWidth(): number;
405
+ getHeight(): number;
406
+ createMarker(element: HTMLElement, lat: number, lng: number, zIndex: number): MapProviderMarker;
407
+ }
408
+ export declare const GoogleMapLightStyle: ({
409
+ elementType: string;
410
+ stylers: {
411
+ visibility: string;
412
+ }[];
413
+ featureType?: undefined;
414
+ } | {
415
+ stylers: ({
416
+ saturation: number;
417
+ lightness?: undefined;
418
+ } | {
419
+ lightness: number;
420
+ saturation?: undefined;
421
+ })[];
422
+ elementType?: undefined;
423
+ featureType?: undefined;
424
+ } | {
425
+ featureType: string;
426
+ stylers: {
427
+ lightness: number;
428
+ }[];
429
+ elementType?: undefined;
430
+ } | {
431
+ featureType: string;
432
+ elementType: string;
433
+ stylers: {
434
+ saturation: number;
435
+ }[];
436
+ })[];
437
+ export declare const GoogleMapDarkStyle: ({
438
+ elementType: string;
439
+ stylers: {
440
+ visibility: string;
441
+ }[];
442
+ featureType?: undefined;
443
+ } | {
444
+ stylers: {
445
+ saturation: number;
446
+ }[];
447
+ elementType?: undefined;
448
+ featureType?: undefined;
449
+ } | {
450
+ elementType: string;
451
+ stylers: {
452
+ lightness: number;
453
+ }[];
454
+ featureType?: undefined;
455
+ } | {
456
+ featureType: string;
457
+ elementType: string;
458
+ stylers: {
459
+ lightness: number;
460
+ }[];
461
+ })[];
376
462
 
377
463
  export as namespace arenarium;
378
464