@maptiler/sdk 3.11.0 → 3.11.1-rc.1

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.
@@ -11,20 +11,21 @@ import Pi from "events";
11
11
  import { Language as Ri, getLanguageInfoFromCode as jn, config as xr, MapStyle as dt, mapStylePresetList as kr, expandMapStyle as Oi, MapStyleVariant as zi, ReferenceMapStyle as Fi, toLanguageInfo as Dn, getLanguageInfoFromFlag as $i, geolocation as Un } from "@maptiler/client";
12
12
  import { MapStyle as cd, MapStyleVariant as pd, ReferenceMapStyle as fd, ServiceError as dd, areSameLanguages as hd, bufferToPixelDataBrowser as md, canParsePixelData as yd, circumferenceAtLatitude as gd, coordinates as vd, data as bd, elevation as wd, expandMapStyle as Sd, geocoding as xd, geolocation as kd, getAutoLanguage as Ld, getBufferToPixelDataParser as Ed, getLanguageInfoFromCode as Cd, getLanguageInfoFromFlag as Ad, getLanguageInfoFromKey as Td, getTileCache as Id, isLanguageInfo as _d, mapStylePresetList as Md, math as Pd, misc as Rd, staticMaps as Od, styleToStyle as zd, toLanguageInfo as Fd } from "@maptiler/client";
13
13
  import { v4 as Xa } from "uuid";
14
- window.requestIdleCallback = window.requestIdleCallback || function(r) {
15
- var e = Date.now();
16
- return setTimeout(function() {
17
- r({
18
- didTimeout: !1,
19
- timeRemaining: function() {
20
- return Math.max(0, 50 - (Date.now() - e));
21
- }
22
- });
23
- }, 1);
24
- };
25
- window.cancelIdleCallback = window.cancelIdleCallback || function(r) {
26
- clearTimeout(r);
27
- };
14
+ (function() {
15
+ typeof window > "u" || (window.requestIdleCallback = window.requestIdleCallback || function(r) {
16
+ const e = Date.now();
17
+ return setTimeout(function() {
18
+ r({
19
+ didTimeout: !1,
20
+ timeRemaining: function() {
21
+ return Math.max(0, 50 - (Date.now() - e));
22
+ }
23
+ });
24
+ }, 1);
25
+ }, window.cancelIdleCallback = window.cancelIdleCallback || function(r) {
26
+ clearTimeout(r);
27
+ });
28
+ })();
28
29
  let Ni = class extends k.Marker {
29
30
  addTo(e) {
30
31
  return super.addTo(e);
@@ -15099,7 +15100,7 @@ class uf {
15099
15100
  }
15100
15101
  }
15101
15102
  function wi() {
15102
- return "3.11.0";
15103
+ return "3.11.1-rc.1";
15103
15104
  }
15104
15105
  const cf = k.Map, pf = k.Marker, ff = k.Popup, df = k.Style, hf = k.CanvasSource, mf = k.GeoJSONSource, yf = k.ImageSource, gf = k.RasterTileSource, vf = k.RasterDEMTileSource, bf = k.VectorTileSource, wf = k.VideoSource, Sf = k.NavigationControl, xf = k.GeolocateControl, kf = k.AttributionControl, Lf = k.LogoControl, Ef = k.ScaleControl, Cf = k.FullscreenControl, Af = k.TerrainControl, Tf = k.BoxZoomHandler, If = k.ScrollZoomHandler, _f = k.CooperativeGesturesHandler, Mf = k.KeyboardHandler, Pf = k.TwoFingersTouchPitchHandler, Rf = k.MapWheelEvent, Of = k.MapTouchEvent, zf = k.MapMouseEvent, Ff = k.config, $f = k.getVersion, {
15105
15106
  setRTLTextPlugin: Nf,