@windycom/plugin-devtools 3.0.1 → 3.0.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.
Files changed (149) hide show
  1. package/README.md +1 -0
  2. package/package.json +1 -1
  3. package/types/client/Calendar.d.ts +104 -70
  4. package/types/client/Color.d.ts +25 -5
  5. package/types/client/DataTiler.d.ts +2 -2
  6. package/types/client/EcmwfProduct.d.ts +22 -0
  7. package/types/client/EventManager.d.ts +69 -0
  8. package/types/client/ExternalSveltePlugin.d.ts +4 -3
  9. package/types/client/GlBuffer.d.ts +45 -0
  10. package/types/client/GlMesh.d.ts +147 -0
  11. package/types/client/GlProgram.d.ts +41 -0
  12. package/types/client/GlRenderer.d.ts +95 -0
  13. package/types/client/GlTexture.d.ts +98 -0
  14. package/types/client/GlVertexArray.d.ts +38 -0
  15. package/types/client/IDB.d.ts +25 -4
  16. package/types/client/LabelsLayer.d.ts +69 -2
  17. package/types/client/Layer.d.ts +96 -26
  18. package/types/client/LayerClasses.d.ts +5 -0
  19. package/types/client/Metric.d.ts +31 -46
  20. package/types/client/MetricClasses.d.ts +1 -1
  21. package/types/client/Overlay.d.ts +5 -12
  22. package/types/client/OverlayClasses.d.ts +8 -0
  23. package/types/client/Particles.d.ts +1 -1
  24. package/types/client/Product.d.ts +38 -67
  25. package/types/client/ProductClasses.d.ts +51 -0
  26. package/types/client/RadarPlusProduct.d.ts +1 -1
  27. package/types/client/Renderer.d.ts +44 -19
  28. package/types/client/SatelliteProduct.d.ts +1 -1
  29. package/types/client/ShaderStorage.d.ts +25 -0
  30. package/types/client/StartupElementPlugin.d.ts +8 -0
  31. package/types/client/SveltePlugin.d.ts +5 -5
  32. package/types/client/SwitchableTileCache.d.ts +104 -0
  33. package/types/client/TileLayer.d.ts +12 -3
  34. package/types/client/TileLayerCustom.d.ts +51 -0
  35. package/types/client/TileLayerMulti.d.ts +53 -0
  36. package/types/client/TileLayerPreprocessorStandalone.d.ts +45 -0
  37. package/types/client/TileLayerRenderer.d.ts +24 -0
  38. package/types/client/TileLayerUtils.d.ts +43 -0
  39. package/types/client/TilePreprocessor.d.ts +27 -0
  40. package/types/client/TopoMap.d.ts +4 -4
  41. package/types/client/WindowPlugin.d.ts +7 -6
  42. package/types/client/appsFlyer.d.ts +2 -1
  43. package/types/client/baseMap.d.ts +12 -2
  44. package/types/client/broadcast.d.ts +1 -1
  45. package/types/client/cityLabels.d.ts +2 -3
  46. package/types/client/colorGradients.d.ts +4 -10
  47. package/types/client/colors.d.ts +1 -2
  48. package/types/client/css.test.d.ts +1 -0
  49. package/types/client/customProtocol.d.ts +11 -0
  50. package/types/client/d.ts.files/GlObj.d.ts +1 -5
  51. package/types/client/d.ts.files/Metric.d.ts +23 -2
  52. package/types/client/d.ts.files/alerts.d.ts +1 -0
  53. package/types/client/d.ts.files/broadcast.d.ts +31 -35
  54. package/types/client/d.ts.files/dataSpecifications.d.ts +82 -66
  55. package/types/client/d.ts.files/favs.d.ts +7 -18
  56. package/types/client/d.ts.files/glUtils.d.ts +71 -0
  57. package/types/client/d.ts.files/http.d.ts +4 -4
  58. package/types/client/d.ts.files/interpolatorTypes.d.ts +5 -5
  59. package/types/client/d.ts.files/lib.d.ts +1 -2
  60. package/types/client/d.ts.files/liveAlerts.d.ts +52 -0
  61. package/types/client/d.ts.files/mapUtils.d.ts +25 -0
  62. package/types/client/d.ts.files/outgoingMessages.d.ts +1 -1
  63. package/types/client/d.ts.files/plugin-params.d.ts +46 -24
  64. package/types/client/d.ts.files/plugins.d.ts +44 -31
  65. package/types/client/d.ts.files/rootScope.d.ts +2 -0
  66. package/types/client/d.ts.files/singleclick.d.ts +4 -2
  67. package/types/client/d.ts.files/startup.d.ts +7 -52
  68. package/types/client/d.ts.files/storage.d.ts +0 -11
  69. package/types/client/d.ts.files/user.d.ts +6 -1
  70. package/types/client/d.ts.files/webcams.d.ts +9 -2
  71. package/types/client/dataLoader.d.ts +2 -2
  72. package/types/client/detectDevice.d.ts +3 -0
  73. package/types/client/embed.d.ts +2 -7
  74. package/types/client/errorLogger.d.ts +20 -1
  75. package/types/client/externalPlugins.d.ts +5 -1
  76. package/types/client/fetch.d.ts +62 -5
  77. package/types/client/format.d.ts +12 -0
  78. package/types/client/glContextUtils.d.ts +9 -0
  79. package/types/client/glStatus.d.ts +7 -0
  80. package/types/client/glTileRender.d.ts +1 -7
  81. package/types/client/glUtils.d.ts +119 -0
  82. package/types/client/http.d.ts +0 -6
  83. package/types/client/idbConnection.d.ts +13 -0
  84. package/types/client/idbInstances.d.ts +118 -13
  85. package/types/client/landLayer.d.ts +3 -0
  86. package/types/client/layers.d.ts +5 -2
  87. package/types/client/legends.d.ts +1 -1
  88. package/types/client/lib.d.ts +11 -21
  89. package/types/client/liveAlerts.d.ts +2 -2
  90. package/types/client/location.d.ts +1 -1
  91. package/types/client/map.d.ts +94 -15
  92. package/types/client/mapUtils.d.ts +66 -0
  93. package/types/client/math.d.ts +14 -0
  94. package/types/client/mobile.d.ts +16 -41
  95. package/types/client/mobileUtils.d.ts +10 -0
  96. package/types/client/models.d.ts +2 -6
  97. package/types/client/overlays.d.ts +4 -3
  98. package/types/client/particleRenderers.d.ts +1 -1
  99. package/types/client/picker.d.ts +4 -8
  100. package/types/client/plugins.d.ts +0 -4
  101. package/types/client/products.d.ts +53 -2
  102. package/types/client/promo.d.ts +28 -5
  103. package/types/client/pushNotifications.d.ts +19 -1
  104. package/types/client/renderCtrl.d.ts +1 -1
  105. package/types/client/renderTile.d.ts +2 -2
  106. package/types/client/renderUtils.d.ts +21 -27
  107. package/types/client/renderers.d.ts +6 -9
  108. package/types/client/reverseName.d.ts +2 -1
  109. package/types/client/rhMessage.d.ts +1 -1
  110. package/types/client/rootScope.d.ts +17 -9
  111. package/types/client/router.d.ts +41 -9
  112. package/types/client/seoParser.d.ts +35 -0
  113. package/types/client/showableErrorsService.d.ts +10 -6
  114. package/types/client/singleclick.d.ts +1 -1
  115. package/types/client/startup.d.ts +48 -0
  116. package/types/client/startupUtils.d.ts +19 -0
  117. package/types/client/store.d.ts +20 -52
  118. package/types/client/subscription.d.ts +3 -26
  119. package/types/client/throttler.d.ts +32 -0
  120. package/types/client/tileHelpers.d.ts +35 -0
  121. package/types/client/tileInterpolator.d.ts +1 -1
  122. package/types/client/tileLayerInterpolator.d.ts +40 -0
  123. package/types/client/tileLayerSource.d.ts +98 -0
  124. package/types/client/timestampUtils.test.d.ts +1 -0
  125. package/types/client/topMessage.d.ts +22 -0
  126. package/types/client/user.d.ts +1 -0
  127. package/types/client/userAlerts.d.ts +0 -4
  128. package/types/client/userConsent.d.ts +0 -2
  129. package/types/client/userFavs.d.ts +17 -12
  130. package/types/client/utils.d.ts +78 -25
  131. package/types/client/utils.test.d.ts +1 -0
  132. package/types/iconfont.d.ts +2 -5
  133. package/types/interfaces.d.ts +290 -88
  134. package/types/lang-files.d.ts +578 -98
  135. package/types/leaflet-gl.d.ts +12773 -0
  136. package/types/types.d.ts +323 -11
  137. package/types/client/d.ts.files/Calendar.d.ts +0 -96
  138. package/types/client/d.ts.files/CanvasLayer.d.ts +0 -70
  139. package/types/client/d.ts.files/Color.d.ts +0 -94
  140. package/types/client/d.ts.files/DataTiler.d.ts +0 -45
  141. package/types/client/d.ts.files/LandMask.d.ts +0 -17
  142. package/types/client/d.ts.files/Layer.d.ts +0 -191
  143. package/types/client/d.ts.files/PoisOverlay.d.ts +0 -27
  144. package/types/client/d.ts.files/Renderer.d.ts +0 -44
  145. package/types/client/d.ts.files/TileLayerCanvas.d.ts +0 -78
  146. package/types/client/d.ts.files/TileLayerMultiPatch.d.ts +0 -13
  147. package/types/client/d.ts.files/products.d.ts +0 -60
  148. package/types/client/imaker.d.ts +0 -112
  149. package/types/offline.d.ts +0 -100
@@ -1,45 +0,0 @@
1
- import { MapCoordinates } from '@windy/dataSpecifications.d';
2
-
3
- export interface TilePoint {
4
- x: number;
5
- y: number;
6
- z: number;
7
- }
8
-
9
- export interface ExtendedTileParams extends MapCoordinates {
10
- /**
11
- * => bounds.min.x of map.getPixelBounds();
12
- */
13
- pixelOriginX: number;
14
-
15
- /**
16
- * => bounds.min.y of map.getPixelBounds();
17
- */
18
- pixelOriginY: number;
19
-
20
- /**
21
- * Data zoom
22
- */
23
- dZoom: number;
24
-
25
- /**
26
- * Size of map in piels
27
- */
28
- width: number;
29
-
30
- /**
31
- * Size of map in pxels
32
- */
33
- height: number;
34
-
35
- /**
36
- * Coords of original unwrapped map tiles
37
- * basicaly map.getPixelBounds();
38
- */
39
- origTiles: {
40
- minX: number;
41
- minY: number;
42
- maxX: number;
43
- maxY: number;
44
- };
45
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * Leaflet layer with alpha-inverse sea mask
3
- */
4
- export class LandMask extends L.TileLayer {
5
- seaColorL: number;
6
- ctx: CanvasRenderingContext2D | null;
7
- _tileOnError(
8
- done: L.DoneCallback,
9
- tile: HTMLImageElement | HTMLCanvasElement,
10
- e: string | Event,
11
- ): void;
12
- getTempCtx(): CanvasRenderingContext2D | null;
13
- getTileUrl(coords: L.Coords): string;
14
- createTile(coords: L.Coords, done: L.DoneCallback): HTMLCanvasElement | HTMLImageElement;
15
- createImageTile(coords: L.Coords, done: L.DoneCallback): HTMLImageElement;
16
- createCanvasTile(coords: L.Coords, done: L.DoneCallback): HTMLCanvasElement;
17
- }
@@ -1,191 +0,0 @@
1
- import { NumberedMetric, PrecipMetric, PtypeMetric, UVIndexMetric } from '@windy/MetricClasses';
2
- import { DataQuality, FileSuffix } from '@windy/Product';
3
- import { WeatherParameters } from '@windy/interfaces.d';
4
- import { Levels, Overlays } from '@windy/rootScope.d';
5
- import { NumValue, Path } from '@windy/types.d';
6
-
7
- // TODO: Move to particles.d.ts later
8
- export type ParticlesIdent = 'wind' | 'waves' | 'currents';
9
-
10
- // TODO: Move to Patternator.d.ts later on
11
- export type Patterntype = 'cclPattern' | 'rainPattern' | 'ptypePattern';
12
-
13
- export type TransformFunction = (x: NumValue) => NumValue;
14
-
15
- export type RenderChannels = 'R' | 'RG' | 'B';
16
-
17
- /**
18
- * All available layers and their metric value type
19
- */
20
- export interface LayerMetricType {
21
- capAlerts: undefined;
22
- pressureIsolines: undefined;
23
- ghIsolines: undefined;
24
- tempIsolines: undefined;
25
- deg0Isolines: undefined;
26
- windParticles: undefined;
27
- ecmwfWindParticles: undefined;
28
- ecmwfWindParticles150h: undefined;
29
- ecmwfWindParticles500h: undefined;
30
- ecmwfWindParticles600h: undefined;
31
- waveParticles: undefined;
32
- currentParticles: undefined;
33
- currentsTideParticles: undefined;
34
- wind: NumberedMetric;
35
- temp: NumberedMetric;
36
- wetbulbtemp: NumberedMetric;
37
- solarpower: NumberedMetric;
38
- uvindex: UVIndexMetric;
39
- dewpoint: NumberedMetric;
40
- gust: NumberedMetric;
41
- gustAccu: NumberedMetric;
42
- rh: NumberedMetric;
43
- pressure: NumberedMetric;
44
- ccl: NumberedMetric;
45
- rain: PrecipMetric;
46
- ptype: PtypeMetric;
47
- thunder: NumberedMetric;
48
- clouds: NumberedMetric;
49
- lclouds: NumberedMetric;
50
- mclouds: NumberedMetric;
51
- hclouds: NumberedMetric;
52
- cape: NumberedMetric;
53
- cbase: NumberedMetric;
54
- fog: NumberedMetric;
55
- snowAccu: NumberedMetric;
56
- rainAccu: NumberedMetric;
57
- waves: NumberedMetric;
58
- wwaves: NumberedMetric;
59
- swell1: NumberedMetric;
60
- swell2: NumberedMetric;
61
- swell3: NumberedMetric;
62
- swell: NumberedMetric;
63
- currents: NumberedMetric;
64
- currentsTide: NumberedMetric;
65
- sst: NumberedMetric;
66
- visibility: NumberedMetric;
67
- snowcover: NumberedMetric;
68
- cloudtop: NumberedMetric;
69
- deg0: NumberedMetric;
70
- cosc: NumberedMetric;
71
- dustsm: NumberedMetric;
72
- radar: NumberedMetric;
73
- satellite: NumberedMetric;
74
- radarPlus: NumberedMetric;
75
- gtco3: NumberedMetric;
76
- pm2p5: NumberedMetric;
77
- no2: NumberedMetric;
78
- aod550: NumberedMetric;
79
- tcso2: NumberedMetric;
80
- go3: NumberedMetric;
81
- gh: NumberedMetric;
82
- efiWind: NumberedMetric;
83
- efiTemp: NumberedMetric;
84
- efiRain: NumberedMetric;
85
- moistureAnom40: PrecipMetric;
86
- moistureAnom100: PrecipMetric;
87
- drought40: NumberedMetric;
88
- drought100: NumberedMetric;
89
- soilMoisture40: NumberedMetric;
90
- soilMoisture100: NumberedMetric;
91
- fwi: NumberedMetric;
92
- dfm10h: NumberedMetric;
93
- turbulence: NumberedMetric;
94
- icing: NumberedMetric;
95
- topoMap: undefined;
96
- }
97
-
98
- /**
99
- * All layers available
100
- */
101
- export type Layers = keyof LayerMetricType;
102
-
103
- /**
104
- * These properties are passed directly to renderer by enhancing returned params
105
- */
106
- interface RenderParams {
107
- /**
108
- * Which channels contain tile rendering data
109
- */
110
- renderFrom?: RenderChannels;
111
-
112
- /**
113
- * Not confirmed: Display map as a sea, meaning the sea layers are below surface layers
114
- */
115
- sea?: boolean;
116
-
117
- /**
118
- * Display map as a land, meaning the sea area is hidden with mask
119
- */
120
- landOnly?: boolean;
121
-
122
- /**
123
- * Identifier of particle type
124
- */
125
- particlesIdent?: ParticlesIdent;
126
-
127
- /**
128
- * Have no clue what this is
129
- */
130
- isMultiColor?: boolean;
131
-
132
- /**
133
- * Have no clue what this is
134
- */
135
- interpolateNearestG?: boolean;
136
-
137
- /**
138
- * Name of interpolator method
139
- */
140
- interpolate?: 'interpolateOverlay' | 'interpolateWaves';
141
-
142
- /**
143
- * Used patternator
144
- */
145
- pattern?: Patterntype;
146
- }
147
-
148
- /**
149
- * Set of params required to render the layer
150
- */
151
- interface FullRenderParameters extends WeatherParameters, RenderParams {
152
- layer: Layers;
153
- server: string;
154
- JPGtransparency?: boolean;
155
- PNGtransparency?: boolean;
156
- transformR?: TransformFunction;
157
- transformG?: TransformFunction;
158
- transformB?: TransformFunction;
159
- directory: string;
160
- filename: string | Overlays | Layers;
161
- fileSuffix: FileSuffix;
162
-
163
- /**
164
- * Specifi zoom of mercator data tiles in dependence of map zoom
165
- */
166
- dataQuality?: DataQuality;
167
- maxTileZoom?: {
168
- free: number;
169
- premium: number;
170
- };
171
-
172
- /**
173
- * bump data quality by 1 level for particular overlay/layer
174
- */
175
- upgradeDataQuality?: boolean;
176
-
177
- /**
178
- * Force to slect particular zoom of data tiles
179
- */
180
- dataTilesZoom?: number;
181
-
182
- level: Levels;
183
- refTime: string;
184
- fullPath: string;
185
- path: Path;
186
-
187
- /**
188
- * Optional accumulation range in hours
189
- */
190
- acRangeInHours?: number;
191
- }
@@ -1,27 +0,0 @@
1
- export class PoisOverlay extends L.Layer {
2
- className?: string;
3
- displayed?: boolean;
4
- _container?: HTMLElement;
5
- _markers?: Record<string, L.LatLng>;
6
- constructor(className?: string);
7
- initialize(this: this, className: string): void;
8
- getHtml(
9
- this: this,
10
- id: string,
11
- point: L.LatLng,
12
- params: { html?: string; style?: string; attrs?: string[] },
13
- ): string;
14
- addPois(this: this, html: string, markers: Record<string, L.LatLng>): void;
15
- getPane(this: this): HTMLElement | undefined;
16
- removePois(this: this): void;
17
- replaceMarker(this: this, id: string, html: string): void;
18
- getAllMarkers(this: this): NodeListOf<HTMLElement>;
19
- _reset(this: this): void;
20
- forAllMarkers(this: this, fun: (point: L.LatLng) => L.Point): void;
21
- getPosReset(this: this, point: L.LatLng): L.Point;
22
- setPoistion(this: this, marker: HTMLElement, pos: L.Point): void;
23
-
24
- // Just this typings rewrites of leaflet methods
25
- onAdd(this: this, map: L.Map): this;
26
- onRemove(this: this, map: L.Map): this;
27
- }
@@ -1,44 +0,0 @@
1
- import { TransformFunction } from '@windy/Layer.d';
2
- import { TilePoint } from '@windy/interfaces.d';
3
-
4
- import type { BottomSveltePlugins, Plugins, SveltePlugins } from '@windy/plugins.d';
5
-
6
- export type AllowedRenderPlugins = Pick<
7
- Plugins,
8
- 'radar' | 'satellite' | 'radar-plus' | 'cap-alerts' | 'isolines' | 'gl-particles' | 'particles'
9
- >;
10
-
11
- export type Renderers =
12
- | 'tileLayer'
13
- | 'radar'
14
- | 'satellite'
15
- | 'radarPlus'
16
- | 'capAlerts'
17
- | 'isolines'
18
- | 'particles'
19
- | 'accumulations'
20
- | 'daySwitcher'
21
- | 'noUserControl'
22
- | 'topoMap';
23
-
24
- export interface TileParams extends TilePoint {
25
- url: string;
26
- intX: number;
27
- intY: number;
28
- trans: number;
29
- transformR: TransformFunction | null;
30
- transformG: TransformFunction | null;
31
- transformB: TransformFunction | null;
32
- }
33
-
34
- export type AllowedUserControls =
35
- | keyof BottomSveltePlugins
36
- | keyof SveltePlugins
37
- | 'map-selector'
38
- | 'none';
39
-
40
- export interface RendererInitParams {
41
- ident: Renderers;
42
- dependency?: keyof AllowedRenderPlugins;
43
- userControl?: AllowedUserControls;
44
- }
@@ -1,78 +0,0 @@
1
- import { DataTile } from '@windy/dataLoader';
2
-
3
- import { FullRenderParameters } from '@windy/Layer.d';
4
- import { TileParams } from '@windy/Renderer.d';
5
-
6
- export type InternalTile = L.InternalTiles[string] & { el: HTMLCanvasElement };
7
-
8
- export class TileLayerCanvas extends L.GridLayer {
9
- _tiles: Record<string, InternalTile>;
10
- /**
11
- * Latest params
12
- */
13
- latestParams: FullRenderParameters;
14
-
15
- /**
16
- * Incrementing counter, that keeps latestParams and actually rendered ile in sync
17
- */
18
- syncCounter: number;
19
-
20
- /**
21
- * While map is being moved
22
- */
23
- inMotion: boolean;
24
-
25
- /**
26
- * Wis sea applied to CSS tag?
27
- */
28
- hasSea: boolean;
29
-
30
- landOnly: boolean;
31
-
32
- className: string;
33
-
34
- _tilesToLoad: number;
35
-
36
- /**
37
- * Owerwriting TileLayer method to disable redrawing layers w/o params
38
- */
39
- // @ts-expect-error We rape TS with overloading properties with properties of different input and output (TODO fix)
40
- onAdd(this: this, map: L.Map): this;
41
- onRemove(this: this, map: L.Map): this;
42
- onMoveStart(this: this): void;
43
- onMoveEnd(this: this): void;
44
- checkLoaded(this: this): void;
45
- redrawFinished(this: this): void;
46
- /**
47
- * Redrawing overlay after changing params
48
- *
49
- * 1. find visible tiles
50
- * 2. remove invisible tiles
51
- * 3. redraw visible tiles
52
- */
53
- redrawLayer(this: this): void;
54
-
55
- removeOtherTiles(this: this, zoom: number, tileBounds: L.Bounds): void;
56
-
57
- _removeTile(this: this, key: string): void;
58
-
59
- /**
60
- * Sort tiles from center out
61
- */
62
- sortTilesFromCenterOut(this: this, bounds: L.Bounds): L.Coords[];
63
-
64
- redrawTile(this: this, tile: InternalTile): void;
65
-
66
- paramsChanged(this: this, params: FullRenderParameters): void;
67
-
68
- init(this: this, params: FullRenderParameters): void;
69
-
70
- renderTile(
71
- this: this,
72
- step: 1 | 2,
73
- canvas: HTMLCanvasElement,
74
- rqrdSyncNum: number,
75
- tInfo: TileParams,
76
- dTile: DataTile,
77
- ): void;
78
- }
@@ -1,13 +0,0 @@
1
- export class TileLayerMultiPatch extends L.TileLayerMulti {
2
- _tileDefs?: Record<number, L.TileDef | null>;
3
- _tileDefsBase?: Record<number, L.TileDef | null>;
4
- _tileDefsPatch?: Record<number, L.TileDef | null>;
5
- _patch?: Record<number, number[]>;
6
- initialize(
7
- this: this,
8
- tileDefs?: Record<number, L.TileDef>,
9
- options?: L.TileLayerOptions,
10
- ): void;
11
- getTileUrl(this: this, tilePoint: L.Point): string;
12
- _convertPatchToZoom(this: this, patch: L.TileDefPatch, zoom: number): number[];
13
- }
@@ -1,60 +0,0 @@
1
- import { AccessProduct, AccessCProduct } from '@windy/AccessProducts';
2
- import { AromeProduct } from '@windy/AromeProduct';
3
- import { EcmwfProduct } from '@windy/EcmwfProduct';
4
- import { Product } from '@windy/Product';
5
- import { RadarPlusProduct } from '@windy/RadarPlusProduct';
6
- import { SatelliteProduct } from '@windy/SatelliteProduct';
7
-
8
- import { Products } from '@windy/rootScope.d';
9
-
10
- export type products = Implements<
11
- { [P in Products]: Product },
12
- {
13
- bomAccess: AccessProduct;
14
- bomAccessAd: AccessCProduct;
15
- bomAccessBn: AccessCProduct;
16
- bomAccessDn: AccessCProduct;
17
- bomAccessNq: AccessCProduct;
18
- bomAccessPh: AccessCProduct;
19
- bomAccessSy: AccessCProduct;
20
- bomAccessVt: AccessCProduct;
21
- mblue: Product;
22
- ecmwf: EcmwfProduct;
23
- ecmwfWaves: Product;
24
- ecmwfAnalysis: EcmwfProduct;
25
- canHrdps: Product;
26
- canRdwpsWaves: Product;
27
- cams: Product;
28
- camsEu: Product;
29
- cmems: Product;
30
- czeAladin: Product;
31
- gfs: Product;
32
- gfsWaves: Product;
33
- icon: Product;
34
- iconD2: Product;
35
- iconEu: Product;
36
- iconEuWaves: Product;
37
- arome: Product;
38
- aromeAntilles: AromeProduct;
39
- aromeFrance: AromeProduct;
40
- aromeReunion: AromeProduct;
41
- nems: Product;
42
- namAlaska: Product;
43
- namConus: Product;
44
- namHawaii: Product;
45
- capAlerts: Product;
46
- efi: Product;
47
- radar: Product;
48
- satellite: SatelliteProduct;
49
- radarPlus: RadarPlusProduct;
50
- hrrrAlaska: Product;
51
- hrrrConus: Product;
52
- ukv: Product;
53
- drought: Product;
54
- fireDanger: Product;
55
- activeFires: Product;
56
- jmaMsm: Product;
57
- jmaCwmWaves: Product;
58
- topoMap: Product;
59
- }
60
- >;
@@ -1,112 +0,0 @@
1
- import './leafletExt/CanvasLayer';
2
- export * as detectDevice from './dummyModules/detectDevice';
3
- export * as log from './dummyModules/log';
4
- export * as promo from './dummyModules/promo';
5
- export * as location from './dummyModules/location';
6
- export * as router from './dummyModules/router';
7
- export * as showableErrorsService from './dummyModules/showableErrorsService';
8
- export * as userFavs from './dummyModules/userFavs';
9
- export * as share from './dummyModules/share';
10
- export * as Evented from './utils/Evented';
11
- export * as css from './utils/css';
12
- export * as fetch from './utils/fetch';
13
- export * as format from './utils/format';
14
- export * as ga from './utils/ga';
15
- export * as http from './utils/http';
16
- export * as levelUtils from './utils/levelUtils';
17
- export { default as lruCache } from './utils/lruCache';
18
- export { default as storage } from './utils/storage';
19
- export * as IDB from './utils/IDB';
20
- export * as idbInstances from './utils/idbInstances';
21
- export * as subscription from './utils/subscription';
22
- export * as utils from './utils/utils';
23
- export * as Calendar from './weatherClasses/Calendar';
24
- export * as Color from './weatherClasses/Color';
25
- export * as EcmwfProduct from './weatherClasses/EcmwfProduct';
26
- export * as HrrrProducts from './weatherClasses/HrrrProducts';
27
- export * as IconProducts from './weatherClasses/IconProducts';
28
- export * as Layer from './weatherClasses/Layer';
29
- export * as Metric from './weatherClasses/Metric';
30
- export * as MetricClasses from './weatherClasses/MetricClasses';
31
- export * as NamProducts from './weatherClasses/NamProducts';
32
- export * as Overlay from './weatherClasses/Overlay';
33
- export * as OverlayClasses from './weatherClasses/OverlayClasses';
34
- export * as Product from './weatherClasses/Product';
35
- export * as SatelliteProduct from './weatherClasses/SatelliteProduct';
36
- export * as StaticProduct from './weatherClasses/StaticProduct';
37
- export { default as layers } from './weather/layers';
38
- export { default as legends } from './weather/legends';
39
- export { default as metrics } from './weather/metrics';
40
- export * as models from './weather/models';
41
- export { default as overlays } from './weather/overlays';
42
- export { default as products } from './weather/products';
43
- export { default as broadcast } from './services/broadcast';
44
- export * as cloudSync from './services/cloudSync';
45
- export { default as colors } from './services/colors';
46
- export * as connection from './services/connection';
47
- export { default as dataSpecifications } from './services/dataSpecifications';
48
- export * as device from './services/device';
49
- export * as deviceLogging from './services/deviceLogging';
50
- export * as geolocation from './services/geolocation';
51
- export * as notifications from './services/notifications';
52
- export * as ogTags from './services/ogTags';
53
- export * as params from './services/params';
54
- export * as pois from './services/pois';
55
- export * as reverseName from './services/reverseName';
56
- export * as rootScope from './services/rootScope';
57
- export { default as store } from './services/store';
58
- export * as trans from './services/trans';
59
- export * as userAlerts from './services/userAlerts';
60
- export * as userConsent from './services/userConsent';
61
- export * as user from './services/user';
62
- export * as Plugin from './pluginSystem/Plugin';
63
- export * as SveltePanePlugin from './pluginSystem/SveltePanePlugin';
64
- export * as SveltePlugin from './pluginSystem/SveltePlugin';
65
- export * as ExternalSveltePlugin from './pluginSystem/ExternalSveltePlugin';
66
- export * as TagPlugin from './pluginSystem/TagPlugin';
67
- export * as WindowPlugin from './pluginSystem/WindowPlugin';
68
- export { default as plugins } from './pluginSystem/plugins';
69
- export * as pluginsCtrl from './pluginSystem/pluginsCtrl';
70
- export * as externalPlugins from './pluginSystem/externalPlugins';
71
- export * as BottomSlide from './uiClasses/BottomSlide';
72
- export * as ClickHandler from './uiClasses/ClickHandler';
73
- export * as Drag from './uiClasses/Drag';
74
- export * as Swipe from './uiClasses/Swipe';
75
- export * as Window from './uiClasses/Window';
76
- export * as components from './ui/components';
77
- export * as startupWeather from './ui/startupWeather';
78
- export * as keyboard from './ui/keyboard';
79
- export * as permanentPromos from './ui/permanentPromos';
80
- export * as query from './ui/query';
81
- export * as rhMessage from './ui/rhMessage';
82
- export * as timeAnimation from './ui/timeAnimation';
83
- export * as visibility from './ui/visibility';
84
- export * as loadArticlesOrWhatsNew from './ui/loadArticlesOrWhatsNew';
85
- export * as DataTiler from './renderClasses/DataTiler';
86
- export * as Particles from './renderClasses/Particles';
87
- export * as Renderer from './renderClasses/Renderer';
88
- export * as TileLayer from './renderClasses/TileLayer';
89
- export { default as TileLayerCanvas } from './renderClasses/TileLayerCanvas';
90
- export * as dataLoader from './render/dataLoader';
91
- export * as interpolator from './render/interpolator';
92
- export { default as particleRenderers } from './render/particleRenderers';
93
- export * as renderCtrl from './render/renderCtrl';
94
- export * as renderUtils from './render/renderUtils';
95
- export { default as renderers } from './render/renderers';
96
- export * as tileInterpolator from './render/tileInterpolator';
97
- export { default as glTileRender } from './render/glTileRender';
98
- export * as renderTile from './render/renderTile';
99
- export * as tileLayer from './render/tileLayerInstance';
100
- export { default as GlObj } from './wgUtils/GlObj';
101
- export { default as LabelsLayer } from './mapClasses/LabelsLayer';
102
- export { default as LandMask } from './mapClasses/LandMask';
103
- export { default as TileLayerMultiPatch } from './mapClasses/TileLayerMultiPatch';
104
- export * as baseMap from './map/baseMap';
105
- export * as cityLabels from './map/cityLabels';
106
- export * as map from './map/map';
107
- export * as mapGlobeCtrl from './map/mapGlobeCtrl';
108
- export * as picker from './map/picker';
109
- export * as singleclick from './map/singleclick';
110
- export * as pushNotifications from './dummyModules/pushNotifications';
111
- export * as appsFlyer from './dummyModules/appsFlyer';
112
- export * as imaker from './services/imakerMain';
@@ -1,100 +0,0 @@
1
- import type { Timestamp } from '@windy/types.d';
2
-
3
- /**
4
- * Types of data that can be downloaded (for purpose of storage management)
5
- */
6
- export type StorageDataType = 'criticalFiles' | 'images' | 'clientFiles' | 'forecastData';
7
-
8
- export type Client2ServiceWorkerMessage = 'download' | 'ping' | 'cancel' | 'goOffline' | 'goOnline';
9
-
10
- export type ServiceWorkerStatus = 'idle' | 'downloading' | 'offlineMode';
11
-
12
- export type ServiceWorker2ClientMessage =
13
- | ServiceWorkerStatus
14
- | 'progress'
15
- | 'finished'
16
- | 'error'
17
- | 'cancelled'
18
- | 'readyForOfflineMode'
19
- | 'goingOnline';
20
-
21
- export interface ServiceWorkerMessage extends Event {
22
- data: {
23
- type: ServiceWorker2ClientMessage;
24
- error?: string;
25
- downloadedInfo?: DownloadedInfo | void;
26
- expires?: Timestamp;
27
- };
28
- }
29
-
30
- export interface ClientMessage {
31
- type: Client2ServiceWorkerMessage;
32
- payload?: DownloadPayload;
33
- }
34
-
35
- export interface FileInfo {
36
- /**
37
- * Mangled or hash encoded URL, as sent to the backend
38
- */
39
- url: string;
40
-
41
- /**
42
- * Original pure URL
43
- */
44
- originalUrl: string;
45
- }
46
-
47
- /**
48
- * Request to download files from service worker
49
- */
50
- export interface DownloadBatch {
51
- type: StorageDataType;
52
-
53
- /**
54
- * Should we delete all files in this cache before downloading?
55
- */
56
- deleteCache: boolean;
57
-
58
- /**
59
- * Files to download
60
- */
61
- files: FileInfo[];
62
-
63
- /**
64
- * Given URL's are not static, but rather backend generated API calls
65
- */
66
- apiRqst?: boolean;
67
-
68
- /**
69
- * serviceWorker tries twice (with CORS and no-CORS) to download files
70
- */
71
- tryTwice2DownloadFiles?: boolean;
72
- }
73
-
74
- export type ErrorsByType = Record<string, number>;
75
-
76
- export interface DownloadPayload {
77
- assets: string;
78
- acceptHeader: string;
79
- numberOfFiles: number;
80
- batches: DownloadBatch[];
81
- mainEntryPoint: string;
82
- }
83
-
84
- export interface DownloadedInfo {
85
- assets: string;
86
- errors: number;
87
- errorsByType: ErrorsByType;
88
- downloaded: Timestamp;
89
- downloadeAsDate: string;
90
- mainEntryPoint: string;
91
- }
92
-
93
- export interface DownloadProgress {
94
- type: 'progress' | 'finished' | 'error';
95
- downloadedFiles: number;
96
- numberOfFiles: number;
97
- errors: number;
98
- errorUrls: string[];
99
- errorsByType: ErrorsByType;
100
- }