@windycom/plugin-devtools 3.0.2 → 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 (112) hide show
  1. package/package.json +1 -1
  2. package/types/client/Calendar.d.ts +4 -0
  3. package/types/client/Color.d.ts +9 -2
  4. package/types/client/DataTiler.d.ts +2 -2
  5. package/types/client/EventManager.d.ts +69 -0
  6. package/types/client/ExternalSveltePlugin.d.ts +4 -3
  7. package/types/client/GlBuffer.d.ts +45 -0
  8. package/types/client/GlMesh.d.ts +147 -0
  9. package/types/client/GlProgram.d.ts +41 -0
  10. package/types/client/GlRenderer.d.ts +95 -0
  11. package/types/client/GlTexture.d.ts +98 -0
  12. package/types/client/GlVertexArray.d.ts +38 -0
  13. package/types/client/IDB.d.ts +25 -4
  14. package/types/client/LabelsLayer.d.ts +69 -2
  15. package/types/client/Layer.d.ts +2 -1
  16. package/types/client/MetricClasses.d.ts +1 -1
  17. package/types/client/Overlay.d.ts +1 -5
  18. package/types/client/Product.d.ts +10 -5
  19. package/types/client/ProductClasses.d.ts +7 -0
  20. package/types/client/Renderer.d.ts +16 -19
  21. package/types/client/ShaderStorage.d.ts +25 -0
  22. package/types/client/StartupElementPlugin.d.ts +8 -0
  23. package/types/client/SveltePlugin.d.ts +4 -4
  24. package/types/client/SwitchableTileCache.d.ts +104 -0
  25. package/types/client/TileLayer.d.ts +11 -2
  26. package/types/client/TileLayerCustom.d.ts +51 -0
  27. package/types/client/TileLayerMulti.d.ts +53 -0
  28. package/types/client/TileLayerPreprocessorStandalone.d.ts +45 -0
  29. package/types/client/TileLayerRenderer.d.ts +24 -0
  30. package/types/client/TileLayerUtils.d.ts +43 -0
  31. package/types/client/TilePreprocessor.d.ts +27 -0
  32. package/types/client/TopoMap.d.ts +2 -1
  33. package/types/client/WindowPlugin.d.ts +1 -3
  34. package/types/client/baseMap.d.ts +12 -2
  35. package/types/client/broadcast.d.ts +1 -1
  36. package/types/client/cityLabels.d.ts +2 -3
  37. package/types/client/colorGradients.d.ts +1 -2
  38. package/types/client/css.test.d.ts +1 -0
  39. package/types/client/customProtocol.d.ts +11 -0
  40. package/types/client/d.ts.files/GlObj.d.ts +1 -5
  41. package/types/client/d.ts.files/Metric.d.ts +2 -0
  42. package/types/client/d.ts.files/broadcast.d.ts +28 -32
  43. package/types/client/d.ts.files/dataSpecifications.d.ts +60 -42
  44. package/types/client/d.ts.files/glUtils.d.ts +71 -0
  45. package/types/client/d.ts.files/http.d.ts +0 -5
  46. package/types/client/d.ts.files/interpolatorTypes.d.ts +5 -5
  47. package/types/client/d.ts.files/lib.d.ts +1 -1
  48. package/types/client/d.ts.files/liveAlerts.d.ts +52 -0
  49. package/types/client/d.ts.files/mapUtils.d.ts +25 -0
  50. package/types/client/d.ts.files/outgoingMessages.d.ts +1 -1
  51. package/types/client/d.ts.files/plugin-params.d.ts +31 -13
  52. package/types/client/d.ts.files/plugins.d.ts +44 -29
  53. package/types/client/d.ts.files/singleclick.d.ts +4 -2
  54. package/types/client/d.ts.files/startup.d.ts +7 -52
  55. package/types/client/d.ts.files/storage.d.ts +0 -11
  56. package/types/client/d.ts.files/user.d.ts +6 -1
  57. package/types/client/embed.d.ts +2 -5
  58. package/types/client/errorLogger.d.ts +19 -0
  59. package/types/client/externalPlugins.d.ts +4 -2
  60. package/types/client/fetch.d.ts +38 -5
  61. package/types/client/format.d.ts +11 -0
  62. package/types/client/glContextUtils.d.ts +9 -0
  63. package/types/client/glStatus.d.ts +7 -0
  64. package/types/client/glUtils.d.ts +119 -0
  65. package/types/client/http.d.ts +0 -6
  66. package/types/client/idbConnection.d.ts +13 -0
  67. package/types/client/idbInstances.d.ts +36 -42
  68. package/types/client/landLayer.d.ts +3 -0
  69. package/types/client/layers.d.ts +2 -1
  70. package/types/client/lib.d.ts +11 -14
  71. package/types/client/liveAlerts.d.ts +2 -2
  72. package/types/client/location.d.ts +1 -1
  73. package/types/client/map.d.ts +95 -22
  74. package/types/client/mapUtils.d.ts +66 -0
  75. package/types/client/math.d.ts +14 -0
  76. package/types/client/mobile.d.ts +16 -34
  77. package/types/client/mobileUtils.d.ts +10 -0
  78. package/types/client/models.d.ts +1 -1
  79. package/types/client/overlays.d.ts +2 -2
  80. package/types/client/picker.d.ts +4 -8
  81. package/types/client/products.d.ts +0 -1
  82. package/types/client/promo.d.ts +1 -1
  83. package/types/client/renderUtils.d.ts +14 -0
  84. package/types/client/renderers.d.ts +5 -6
  85. package/types/client/rootScope.d.ts +9 -9
  86. package/types/client/router.d.ts +7 -2
  87. package/types/client/singleclick.d.ts +1 -1
  88. package/types/client/startup.d.ts +48 -0
  89. package/types/client/startupUtils.d.ts +19 -0
  90. package/types/client/subscription.d.ts +3 -26
  91. package/types/client/throttler.d.ts +32 -0
  92. package/types/client/tileHelpers.d.ts +35 -0
  93. package/types/client/tileLayerInterpolator.d.ts +40 -0
  94. package/types/client/tileLayerSource.d.ts +98 -0
  95. package/types/client/timestampUtils.test.d.ts +1 -0
  96. package/types/client/topMessage.d.ts +22 -0
  97. package/types/client/user.d.ts +1 -0
  98. package/types/client/userConsent.d.ts +0 -2
  99. package/types/client/userFavs.d.ts +0 -8
  100. package/types/client/utils.d.ts +62 -10
  101. package/types/client/utils.test.d.ts +1 -0
  102. package/types/iconfont.d.ts +2 -5
  103. package/types/interfaces.d.ts +121 -100
  104. package/types/lang-files.d.ts +412 -72
  105. package/types/leaflet-gl.d.ts +12773 -0
  106. package/types/types.d.ts +28 -6
  107. package/types/client/d.ts.files/CanvasLayer.d.ts +0 -70
  108. package/types/client/d.ts.files/DataTiler.d.ts +0 -45
  109. package/types/client/d.ts.files/LandMask.d.ts +0 -17
  110. package/types/client/d.ts.files/PoisOverlay.d.ts +0 -27
  111. package/types/client/d.ts.files/TileLayerCanvas.d.ts +0 -78
  112. package/types/client/d.ts.files/TileLayerMultiPatch.d.ts +0 -13
@@ -10,14 +10,17 @@
10
10
  */
11
11
  import * as http from '@windy/http';
12
12
  import type { CityTemperaturesDto } from '@windy-types/citytile2';
13
- import type { DataHash, LatLon, MeteogramDataPayload, WeatherDataPayload, CapAlertHeadline, ActiveStormCountPayload, AirQDataHash } from '@windy/interfaces.d';
13
+ import type { DataHash, LatLon, MeteogramDataPayload, WeatherDataPayload, CapAlertHeadline, ActiveStormCountPayload, AirQDataHash, TZinfo } from '@windy/interfaces.d';
14
14
  import type { Pois, Products } from '@windy/rootScope.d';
15
15
  import type { SatelliteInfoJson } from '@windy/satellite.d';
16
- import type { RadarMinifest } from '@plugins/radar/types';
17
- import type { ExtendedStationType, Pixel, StationOrPoiType } from '@windy/types';
16
+ import type { RadarMinifest } from '@plugins/radar-plus/types';
17
+ import type { ExtendedStationType, Pixel, StationOrPoiType, NumValue } from '@windy/types';
18
18
  import type { OSMMapBounds } from '@plugins/search/search.d';
19
19
  import type { HttpOptions, HttpPayload, QueryStringSource } from '@windy/http.d';
20
- import type { StormListJSON } from '@plugins/_shared/hurricanes/types';
20
+ import type { StormListJSON } from '@plugins/shared/hurricanes/types';
21
+ import type { LiveAlertEvent } from '@plugins/startup-live-alerts/startup-live-alerts';
22
+ import type { WhatsNewObsolete, WhatsNewData } from '@windy/startup.d';
23
+ import type { ArticleStartupData } from '@plugins/articles/articles';
21
24
  interface LatLonStep extends LatLon {
22
25
  step?: number;
23
26
  interpolate?: boolean;
@@ -75,6 +78,13 @@ export declare const getWebcamMetricsUrl: (id: string | number) => string;
75
78
  * @returns URL string for getting point forecast data
76
79
  */
77
80
  export declare const getPointForecastUrl: <T extends LatLonStep>(model: Products, { lat, lon, step, interpolate }: T, pointForecastOptions?: Record<string, string>) => Promise<string>;
81
+ /**
82
+ * Gets point forecast for NOWcast data for given location
83
+ *
84
+ * @param model Forecast model
85
+ * @returns Promise with HTTP payload
86
+ */
87
+ export declare const getNowPointForecastUrl: (model: Products, { lat, lon }: LatLon) => Promise<string>;
78
88
  /**
79
89
  * Gets point forecast data for given location
80
90
  *
@@ -133,7 +143,7 @@ export declare const getObservationPoiUrl: (type: StationOrPoiType | 'stations'
133
143
  /**
134
144
  * Returns loading promise for cap alert headlines
135
145
  */
136
- export declare const getCapAlertsSummary: ({ lat, lon }: LatLon) => Promise<http.HttpPayload<CapAlertHeadline[]>>;
146
+ export declare const getCapAlertsSummary: ({ lat, lon }: LatLon, source?: 'hp' | 'detail') => Promise<http.HttpPayload<CapAlertHeadline[]>>;
137
147
  export declare const getHurricanesCount: () => Promise<HttpPayload<ActiveStormCountPayload>>;
138
148
  /**
139
149
  * Loads Satellite Product info
@@ -147,6 +157,10 @@ export declare const getRadarArchiveInfo: () => Promise<HttpPayload<RadarMinifes
147
157
  export declare const getSatelliteArchiveInfo: () => Promise<HttpPayload<SatelliteInfoJson>>;
148
158
  export declare const getRadarCoverage: () => Promise<HttpPayload<number[]>>;
149
159
  export declare const getHurricanesList: () => Promise<HttpPayload<StormListJSON>>;
160
+ /**
161
+ * Loads elevation (AMSL meters) for given coordinates
162
+ */
163
+ export declare const getElevation: (lat: number, lon: number, httpOptions?: HttpOptions) => Promise<HttpPayload<NumValue>>;
150
164
  /**
151
165
  * Returns URL for static map image. Max zoom level is 13
152
166
  */
@@ -155,4 +169,23 @@ export declare const getStaticMapImageUrl: (params: LatLon & {
155
169
  size: Pixel;
156
170
  bounds?: OSMMapBounds;
157
171
  }) => string;
172
+ /**
173
+ * Returns active live alert for given location (if any)
174
+ */
175
+ export declare const getLiveAlerts: ({ lat, lon }: LatLon) => Promise<http.HttpPayload<{
176
+ alerts: LiveAlertEvent[];
177
+ }>>;
178
+ /**
179
+ * Returns a URL for retrieving radar/sat image
180
+ */
181
+ export declare const getRadarSatImageUrl: (type: 'radar' | 'satellite', { lat, lon, w, h, format, satMode, radarMode, }: LatLon & {
182
+ w?: Pixel;
183
+ h?: Pixel;
184
+ format?: 'webp' | 'jpg';
185
+ satMode?: 'infra' | 'infraplus' | 'blue' | 'visible' | 'grey' | 'irbt';
186
+ radarMode?: 'default' | 'radarplus';
187
+ }) => string;
188
+ export declare const getArticle: (latLon: LatLon) => Promise<HttpPayload<ArticleStartupData>>;
189
+ export declare const getWhatsNew: (latLon: LatLon) => Promise<HttpPayload<WhatsNewObsolete | WhatsNewData>>;
190
+ export declare const getTimezoneInfo: (location: LatLon, datetime: string) => Promise<HttpPayload<TZinfo>>;
158
191
  export {};
@@ -13,6 +13,13 @@ export declare const euTime: TimeFormatFunction;
13
13
  * @returns Time format function
14
14
  */
15
15
  export declare const getHoursFunction: () => TimeFormatFunction;
16
+ /**
17
+ * Converts timestamp to formatted time string
18
+ *
19
+ * @param ts Timestamp
20
+ * @returns Formatted time string, e.g. '18:00' or '6:00 PM'
21
+ */
22
+ export declare const tsToFormattedTime: (ts: number) => string;
16
23
  /**
17
24
  * Returns UTC formated hours, e.g. '09:00Z' or '18:00Z'
18
25
  *
@@ -34,6 +41,10 @@ export declare const hourMinuteUTC: (ts: number) => string;
34
41
  * @returns Formated number with thousands delimiter, e.g. '10 000'. Empty string if nothing is passed.
35
42
  */
36
43
  export declare const thousands: (amount?: string | number | null) => string;
44
+ /**
45
+ * Returns string representation of a degree direction (e.g. 'N', 'NE', ...)
46
+ */
47
+ export declare const stringDir: DirectionFunction;
37
48
  /**
38
49
  * Returns direction formatting function based on user's settings. E.g. 'N', 'NE', ... or '123°'
39
50
  *
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @summary Registers WebGL context for observing context lost/restored events
3
+ * - use only for the map webgl context, do not set some other offscreen context here
4
+ * @param gl (Map) WebGL context to observe
5
+ */
6
+ export declare function observeWebGLContext(gl: WebGL2RenderingContext | WebGLRenderingContext, moduleName: string): void;
7
+ type WebGlErrorType = '';
8
+ export declare function reportWebGlError(module: string, type: WebGlErrorType, error: string): void;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const crashMessage: string;
2
+ export declare function webglSupported(): boolean;
3
+ /**
4
+ * @summary Report WebGL error to the user using alert box
5
+ * @param reason - reason of the error (e.g. that context was lost)
6
+ */
7
+ export declare function reportWebGlError(reason: string): void;
@@ -0,0 +1,119 @@
1
+ export { GlBuffer, GlBufferType, GlBufferUsage } from '@windy/GlBuffer';
2
+ export { GlMesh, MeshFactory } from '@windy/GlMesh';
3
+ export { GlProgram } from '@windy/GlProgram';
4
+ export { GlTexture } from '@windy/GlTexture';
5
+ export { GlVertexArray } from '@windy/GlVertexArray';
6
+ export { GlRenderer } from '@windy/GlRenderer';
7
+ export { GlObj } from '@windy/GlObj';
8
+ export type { UniformRecord, TypedArray, UniformDataType, Gl2ColorFormat, GlColorFormat, EXT_disjoint_timer_query, EXT_disjoint_timer_query_webgl2, } from '@windy/glUtils.d';
9
+ import type { Vector2 } from './d.ts.files/math';
10
+ import type { GlColorFormat } from './d.ts.files/glUtils.d';
11
+ type GlUtils = {
12
+ placeholderImageDataEmpty: ArrayBuffer | undefined;
13
+ placeholderTextureEmpty: WebGLTexture | undefined;
14
+ placeholderImageDataGrey128: ArrayBuffer | undefined;
15
+ placeholderTextureGrey128: WebGLTexture | undefined;
16
+ placeholderTexture: WebGLTexture | undefined;
17
+ placeholderFbo: WebGLFramebuffer | undefined;
18
+ };
19
+ export declare class GlError extends Error {
20
+ additionalInfo: Record<string, string>;
21
+ emitToElastic: boolean;
22
+ constructor(message: string, options?: {
23
+ cause?: unknown;
24
+ additionalInfo?: Record<string, string>;
25
+ }, emitToElastic?: boolean);
26
+ toObject(): Record<string, unknown>;
27
+ }
28
+ export declare const enum GlslDataType {
29
+ Int = 0,
30
+ Texture = 1,// same as int, but used to differentiate between uniform value & texture
31
+ FVec4 = 2,
32
+ Mat4 = 3,
33
+ FVec2 = 4,
34
+ Float = 5,
35
+ FVec3 = 6,
36
+ FArray = 7
37
+ }
38
+ export declare const glUtils: GlUtils;
39
+ /**
40
+ * @class Static class for handling WebGL extensions
41
+ */
42
+ export declare class GlExtension {
43
+ private static readonly glExtensions;
44
+ /**
45
+ * @summary Returns extension context reference, if not already stored, tries to get one
46
+ * - same as GlExtension.setExtension, but also returns the extension
47
+ * @param gl WebGL context
48
+ * @param name Name of the extension to use
49
+ * @summary Returns the extension object or undefined, of not found (or is not supported)
50
+ */
51
+ static getExtension(gl: WebGLRenderingContext | WebGL2RenderingContext, name: string): any | undefined;
52
+ /**
53
+ * @summary Tries to get and store specific extension for further usage
54
+ * @param name Name of the WebGL extension to initialize
55
+ */
56
+ static setExtension(gl: WebGLRenderingContext | WebGL2RenderingContext, name: string): boolean;
57
+ /**
58
+ * @summary Clear extensions bound to the currently used WebGL context (e.g. after closing a plugin)
59
+ */
60
+ static unloadExtensions(): void;
61
+ }
62
+ /**
63
+ * @summary Creates shader program from supplied vertex and fragment shader source code strings
64
+ * @param vertexShader
65
+ * @param fragmentShader
66
+ * @returns {WebGLProgram}
67
+ */
68
+ export declare function createShaderProgram(gl: WebGLRenderingContext | WebGL2RenderingContext, vertexShader: WebGLShader, fragmentShader: WebGLShader): WebGLProgram;
69
+ /**
70
+ * @summary Creates shader of given type (VERTEX/FRAGMENT) from supplied shader source code string
71
+ * @param shaderStr Shader source code
72
+ * @param shaderType Shader type (gl.VERTEX_SHADER or gl.FRAGMENT_SHADER)
73
+ * @returns {WebGLShader | undefined} Returns compiled WebGL shader or undefined in case there was some error during the compilation
74
+ * @throws {GlError} When shader compilation fails
75
+ */
76
+ export declare function createShaderFromSource(gl: WebGLRenderingContext, shaderStr: string, shaderType: GLenum): WebGLShader;
77
+ /**
78
+ * @summary Validates given dimensions before they are used to resize WebGL texture
79
+ * @param dims Dimensions to check
80
+ * @returns {boolean}
81
+ */
82
+ export declare function checkTextureDimensions(dims: Vector2): boolean;
83
+ /**
84
+ * @summary Creates "empty" data FBO placeholder
85
+ */
86
+ export declare function createPlaceholderFbo(gl: WebGL2RenderingContext | WebGLRenderingContext): void;
87
+ /**
88
+ * @summary Creates data Texture placeholder
89
+ * - in case we can't render some requested texture, we can use this auxiliary empty 1x1 texture as a temporary placeholder
90
+ * @param data Optional data to initialize the texture with, otherwise a 1x1 red pixel texture is created
91
+ */
92
+ export declare function createPlaceHolderTexture(gl: WebGL2RenderingContext | WebGLRenderingContext, data?: HTMLCanvasElement | HTMLImageElement): WebGLTexture | undefined;
93
+ /**
94
+ * @summary Creates "empty" data image placeholder
95
+ * - used for example when we want to "abort" fetch of some tile, we return this auxiliary data to prevent MapLibre errors in console..
96
+ */
97
+ export declare function createPlaceholderImageData(gl: WebGL2RenderingContext | WebGLRenderingContext): Promise<void>;
98
+ /**
99
+ * @summary Helper function to get byte size of the given WebGL type (currently color formats only, other stuff can be implemented later as needed)
100
+ * @param type Type to get size of
101
+ * @returns Size in bytes (per pixel in case of color format) of the given type
102
+ */
103
+ export declare function sizeOf(type: GlColorFormat): number;
104
+ /**
105
+ * @summary Method for accessing texture format by its internal format for cases, when these two are not the same
106
+ * - specifically for special WebGL2 texture formats
107
+ * @param internalFormat
108
+ */
109
+ export declare function getTextureFormatByInternalFormat(internalFormat: GlColorFormat): number;
110
+ /**
111
+ * @summary Queries last WebGL error reported by the context
112
+ * - do not use this in production and keep in mind that this method dramatically affects performance
113
+ * @param gl Context to check
114
+ */
115
+ export declare function checkGlError(gl: WebGL2RenderingContext | WebGLRenderingContext, errorPrefix?: string): boolean;
116
+ /**
117
+ * @summary Wrapper for `logInfo` function emitting to elastic, with guard for DEBUG mode and error emitting flag
118
+ */
119
+ export declare function logErrorWebGL(moduleName: string, error: GlError): void;
@@ -2,12 +2,6 @@
2
2
  * HTTP fetch lib using Promises, authorization and lru caching
3
3
  */
4
4
  import type { HttpOptions, HttpPayload } from './d.ts.files/http.d';
5
- /**
6
- * Type of the string, that will be added to the header in Accept line to increase stealing protection a little bit
7
- *
8
- * Target mobile: Use legacy header format until mobile apps start sending correct origin to pass CORS check on the server
9
- */
10
- export declare const acceptHeader: string;
11
5
  /**
12
6
  * Enhances URL with server, tokens and auth counter
13
7
  */
@@ -0,0 +1,13 @@
1
+ export type CloseDbListener = () => void;
2
+ export declare class IdbConnection {
3
+ private readonly databaseName;
4
+ private dbPromise;
5
+ private closeDbListeners;
6
+ constructor(databaseName: string);
7
+ onCloseDb(listener: CloseDbListener): void;
8
+ getDb(): Promise<IDBDatabase>;
9
+ deleteDb(): Promise<void>;
10
+ private closeDb;
11
+ private connect;
12
+ private createFailHandler;
13
+ }
@@ -5,25 +5,9 @@ import type { AlertRequest, AlertResponse } from '@windy/alerts';
5
5
  import type { Fav, FavFragment } from '@windy/favs.d';
6
6
  import type { CapAlertSlided, InstalledExternalPluginConfig } from '@windy/interfaces';
7
7
  import type { PromoInfoObject } from '@windy/promo';
8
- import type { SeenArticle, SeenStory } from '@windy/startup.d';
9
- export declare const initPromise: Promise<IDBDatabase>;
10
8
  /** Db of stored user favourites */
11
9
  export declare const userFavsIdb: IDB<string, Fav, FavFragment>;
12
- export declare const searchRecentsIdb: IDB<string, (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & {
13
- type: "windy-overlay";
14
- ident: "visibility" | "radar" | "satellite" | "radarPlus" | "wind" | "gust" | "gustAccu" | "turbulence" | "icing" | "rain" | "rainAccu" | "snowAccu" | "snowcover" | "ptype" | "thunder" | "temp" | "dewpoint" | "rh" | "deg0" | "wetbulbtemp" | "solarpower" | "uvindex" | "clouds" | "hclouds" | "mclouds" | "lclouds" | "fog" | "cloudtop" | "cbase" | "cape" | "ccl" | "waves" | "swell1" | "swell2" | "swell3" | "wwaves" | "sst" | "currents" | "currentsTide" | "aqi" | "no2" | "pm2p5" | "aod550" | "gtco3" | "tcso2" | "go3" | "cosc" | "dustsm" | "pressure" | "efiTemp" | "efiWind" | "efiRain" | "capAlerts" | "soilMoisture40" | "soilMoisture100" | "moistureAnom40" | "moistureAnom100" | "drought40" | "drought100" | "fwi" | "dfm10h" | "heatmaps" | "topoMap" | "hurricanes";
15
- thumbnailUrl: string;
16
- noValidLocation: true;
17
- addShakyClass: true;
18
- doNotSave: true;
19
- }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & {
20
- type: "windy-poi";
21
- ident: string;
22
- poiIcon: import("../../types/iconfont").Iconfont;
23
- noValidLocation: true;
24
- addShakyClass: true;
25
- doNotSave: true;
26
- }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
10
+ export declare const searchRecentsIdb: IDB<string, (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
27
11
  type: "airport";
28
12
  icao: string;
29
13
  iata?: string;
@@ -42,9 +26,23 @@ export declare const searchRecentsIdb: IDB<string, (import("@plugins/search/sear
42
26
  id: string;
43
27
  }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
44
28
  type: import("@plugins/search/search").StandardSearchType;
29
+ }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & {
30
+ type: "windy-overlay";
31
+ ident: "pressure" | "visibility" | "radar" | "satellite" | "wind" | "gust" | "gustAccu" | "turbulence" | "icing" | "rain" | "rainAccu" | "snowAccu" | "snowcover" | "ptype" | "thunder" | "temp" | "dewpoint" | "rh" | "deg0" | "wetbulbtemp" | "solarpower" | "uvindex" | "clouds" | "hclouds" | "mclouds" | "lclouds" | "fog" | "cloudtop" | "cbase" | "cape" | "ccl" | "waves" | "swell1" | "swell2" | "swell3" | "wwaves" | "sst" | "currents" | "currentsTide" | "wavePower" | "aqi" | "no2" | "pm2p5" | "aod550" | "gtco3" | "tcso2" | "go3" | "cosc" | "dustsm" | "efiTemp" | "efiWind" | "efiRain" | "capAlerts" | "soilMoisture40" | "soilMoisture100" | "moistureAnom40" | "moistureAnom100" | "drought40" | "drought100" | "fwi" | "dfm10h" | "heatmaps" | "topoMap" | "hurricanes" | "radarPlus";
32
+ thumbnailUrl: string;
33
+ noValidLocation: true;
34
+ addShakyClass: true;
35
+ doNotSave: true;
36
+ }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & {
37
+ type: "windy-poi";
38
+ ident: string;
39
+ poiIcon: import("../../types/iconfont").Iconfont;
40
+ noValidLocation: true;
41
+ addShakyClass: true;
42
+ doNotSave: true;
45
43
  }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & {
46
44
  type: "hurricane";
47
- strength: import("../../plugins/_shared/hurricanes/types").StormStrength;
45
+ strength: StormStrength;
48
46
  stormId: string;
49
47
  addShakyClass: true;
50
48
  doNotSave: true;
@@ -65,21 +63,7 @@ export declare const searchRecentsIdb: IDB<string, (import("@plugins/search/sear
65
63
  } & import("@plugins/search/search").CountryAndRegionInformation & {
66
64
  noValidLocation?: false;
67
65
  type: "fav";
68
- }), (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & {
69
- type: "windy-overlay";
70
- ident: "visibility" | "radar" | "satellite" | "radarPlus" | "wind" | "gust" | "gustAccu" | "turbulence" | "icing" | "rain" | "rainAccu" | "snowAccu" | "snowcover" | "ptype" | "thunder" | "temp" | "dewpoint" | "rh" | "deg0" | "wetbulbtemp" | "solarpower" | "uvindex" | "clouds" | "hclouds" | "mclouds" | "lclouds" | "fog" | "cloudtop" | "cbase" | "cape" | "ccl" | "waves" | "swell1" | "swell2" | "swell3" | "wwaves" | "sst" | "currents" | "currentsTide" | "aqi" | "no2" | "pm2p5" | "aod550" | "gtco3" | "tcso2" | "go3" | "cosc" | "dustsm" | "pressure" | "efiTemp" | "efiWind" | "efiRain" | "capAlerts" | "soilMoisture40" | "soilMoisture100" | "moistureAnom40" | "moistureAnom100" | "drought40" | "drought100" | "fwi" | "dfm10h" | "heatmaps" | "topoMap" | "hurricanes";
71
- thumbnailUrl: string;
72
- noValidLocation: true;
73
- addShakyClass: true;
74
- doNotSave: true;
75
- }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & {
76
- type: "windy-poi";
77
- ident: string;
78
- poiIcon: import("../../types/iconfont").Iconfont;
79
- noValidLocation: true;
80
- addShakyClass: true;
81
- doNotSave: true;
82
- }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
66
+ }), (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
83
67
  type: "airport";
84
68
  icao: string;
85
69
  iata?: string;
@@ -98,9 +82,23 @@ export declare const searchRecentsIdb: IDB<string, (import("@plugins/search/sear
98
82
  id: string;
99
83
  }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
100
84
  type: import("@plugins/search/search").StandardSearchType;
85
+ }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & {
86
+ type: "windy-overlay";
87
+ ident: "pressure" | "visibility" | "radar" | "satellite" | "wind" | "gust" | "gustAccu" | "turbulence" | "icing" | "rain" | "rainAccu" | "snowAccu" | "snowcover" | "ptype" | "thunder" | "temp" | "dewpoint" | "rh" | "deg0" | "wetbulbtemp" | "solarpower" | "uvindex" | "clouds" | "hclouds" | "mclouds" | "lclouds" | "fog" | "cloudtop" | "cbase" | "cape" | "ccl" | "waves" | "swell1" | "swell2" | "swell3" | "wwaves" | "sst" | "currents" | "currentsTide" | "wavePower" | "aqi" | "no2" | "pm2p5" | "aod550" | "gtco3" | "tcso2" | "go3" | "cosc" | "dustsm" | "efiTemp" | "efiWind" | "efiRain" | "capAlerts" | "soilMoisture40" | "soilMoisture100" | "moistureAnom40" | "moistureAnom100" | "drought40" | "drought100" | "fwi" | "dfm10h" | "heatmaps" | "topoMap" | "hurricanes" | "radarPlus";
88
+ thumbnailUrl: string;
89
+ noValidLocation: true;
90
+ addShakyClass: true;
91
+ doNotSave: true;
92
+ }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & {
93
+ type: "windy-poi";
94
+ ident: string;
95
+ poiIcon: import("../../types/iconfont").Iconfont;
96
+ noValidLocation: true;
97
+ addShakyClass: true;
98
+ doNotSave: true;
101
99
  }) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & {
102
100
  type: "hurricane";
103
- strength: import("../../plugins/_shared/hurricanes/types").StormStrength;
101
+ strength: StormStrength;
104
102
  stormId: string;
105
103
  addShakyClass: true;
106
104
  doNotSave: true;
@@ -126,22 +124,18 @@ export declare const searchRecentsIdb: IDB<string, (import("@plugins/search/sear
126
124
  export declare const userAlertsIdb: IDB<string, AlertResponse, AlertRequest>;
127
125
  /** Db of stored notams marked as read */
128
126
  export declare const markedNotamsIdb: IDB<`${string}_${string}/${string}`, MarkedNotams, MarkedNotams>;
129
- /** Seen articles */
130
- export declare const seenArticlesIdb: IDB<string | number, SeenArticle, SeenArticle>;
127
+ /** Upvoted articles */
128
+ export declare const upvotedArticlesIdb: IDB<string | number, true, true>;
131
129
  /** Seen promos */
132
130
  export declare const seenPromosIdb: IDB<string, PromoInfoObject, PromoInfoObject>;
133
131
  /** Custom user colors */
134
132
  export declare const customColorsIdb: IDB<AnyColorIdent, UserColor, UserColor>;
135
133
  /** Cap alerts that were slided from left to right on startup screen */
136
134
  export declare const slidedCapAlertsIdb: IDB<string, CapAlertSlided, CapAlertSlided>;
137
- /** Seen stories */
138
- export declare const seenStoriesIdb: IDB<string, SeenStory, SeenStory>;
139
135
  /** Log of pages & events that happened on this device */
140
- export declare const logIdb: IDB<`plugin/${string}` | `version/${string}` | `pois/${string}` | `subscription/${string}` | `airport/${string}` | `station/${string}` | `garmin/${string}` | `onboarding/${string}` | `articles/${string}` | `isolinesType/${string}` | `overlay/${string}` | `level/${string}` | `product/${string}` | `acRange/${string}` | `isolinesOn/${string}` | `path/${string}` | `startup/${string}` | `404/${string}` | `promo/${string}` | `appRating/${string}` | `appOpening/${string}` | `detail2/${string}` | `appsflyer/${string}` | `weather/${string}` | `events/${string}` | `locationPermissionPopup/${string}` | `widgetPromo/${string}` | `storyEvent/${string}`, number, number>;
136
+ export declare const logIdb: IDB<`path/${string}` | `version/${string}` | `airport/${string}` | `articles/${string}` | `garmin/${string}` | `onboarding/${string}` | `station/${string}` | `subscription/${string}` | `pois/${string}` | `product/${string}` | `overlay/${string}` | `level/${string}` | `acRange/${string}` | `isolinesType/${string}` | `isolinesOn/${string}` | `plugin/${string}` | `startup/${string}` | `404/${string}` | `promo/${string}` | `appRating/${string}` | `appOpening/${string}` | `detail2/${string}` | `appsflyer/${string}` | `weather/${string}` | `events/${string}` | `locationPermissionPopup/${string}` | `widgetPromo/${string}` | `storyEvent/${string}`, number, number>;
141
137
  /** Log of locations, that user uses on this device */
142
138
  export declare const popularLocationsIdb: IDB<string, number, number>;
143
- /** Seen stories */
144
- export declare const likedStoryCommentsIdb: IDB<string, boolean, boolean>;
145
139
  /** Installed external plugins */
146
- export declare const installedPluginsIdb: IDB<`windy-plugin-${string}`, InstalledExternalPluginConfig, InstalledExternalPluginConfig>;
140
+ export declare const installedPluginsIdb: IDB<string, InstalledExternalPluginConfig, InstalledExternalPluginConfig>;
147
141
  export declare const clearIndexedDB: () => Promise<void>;
@@ -0,0 +1,3 @@
1
+ import { TileLayer } from '@leafletGl';
2
+ export type LandLayerType = 'land-mask' | 'sea-mask' | 'colored';
3
+ export declare function createLandLayer(tileSource: string, layerType: LandLayerType): TileLayer;
@@ -13,6 +13,7 @@ declare const layers: {
13
13
  ecmwfWindParticles500h: Layer<undefined>;
14
14
  ecmwfWindParticles600h: Layer<undefined>;
15
15
  waveParticles: Layer<undefined>;
16
+ waveParticlesWaves: Layer<undefined>;
16
17
  currentParticles: Layer<undefined>;
17
18
  currentsTideParticles: Layer<undefined>;
18
19
  wind: Layer<NumberedMetric>;
@@ -40,6 +41,7 @@ declare const layers: {
40
41
  rainAccu: Layer<NumberedMetric>;
41
42
  waves: WaveLayer;
42
43
  wwaves: WaveLayer;
44
+ wavePower: Layer<NumberedMetric>;
43
45
  swell1: WaveLayer;
44
46
  swell2: WaveLayer;
45
47
  swell3: WaveLayer;
@@ -55,7 +57,6 @@ declare const layers: {
55
57
  dustsm: Layer<NumberedMetric>;
56
58
  radar: Layer<NumberedMetric>;
57
59
  satellite: Layer<NumberedMetric>;
58
- radarPlus: Layer<NumberedMetric>;
59
60
  gtco3: Layer<NumberedMetric>;
60
61
  pm2p5: Layer<NumberedMetric>;
61
62
  no2: Layer<NumberedMetric>;
@@ -1,6 +1,8 @@
1
+ /**
2
+ * This file is O B S O L E T E and not maintained anymore.
3
+ */
1
4
  import 'virtual:build-info';
2
5
  export * as errorLogger from '../utils/errorLogger';
3
- import '../leafletExt/CanvasLayer';
4
6
  export * as Evented from '../utils/Evented';
5
7
  export * as fetch from '../utils/fetch';
6
8
  export * as format from '../utils/format';
@@ -10,6 +12,10 @@ export { default as lruCache } from '../utils/lruCache';
10
12
  export { default as storage } from '../utils/storage';
11
13
  export * as subscription from '../utils/subscription';
12
14
  export * as utils from '../utils/utils';
15
+ export * as mapUtils from '../utils/mapUtils';
16
+ export * as customProtocol from '../utils/customProtocol';
17
+ export * as landLayer from '../map/landLayer';
18
+ export * as throttler from '../utils/throttler';
13
19
  export * as Calendar from '../weatherClasses/Calendar';
14
20
  export * as Color from '../weatherClasses/Color';
15
21
  export * as Layer from '../weatherClasses/Layer';
@@ -33,7 +39,6 @@ export * as device from '../services/device';
33
39
  export * as deviceLogging from '../services/deviceLogging';
34
40
  export * as geolocation from '../services/geolocation';
35
41
  export * as notifications from '../services/notifications';
36
- export * as ogTags from '../services/ogTags';
37
42
  export * as params from '../services/params';
38
43
  export * as rootScope from '../services/rootScope';
39
44
  export { default as store } from '../services/store';
@@ -52,25 +57,17 @@ export * as Window from '../uiClasses/Window';
52
57
  export * as rhMessage from '../ui/rhMessage';
53
58
  export * as timeAnimation from '../ui/timeAnimation';
54
59
  export * as visibility from '../ui/visibility';
55
- export * as DataTiler from '../renderClasses/DataTiler';
56
- export * as Particles from '../renderClasses/Particles';
57
60
  export * as Renderer from '../renderClasses/Renderer';
58
61
  export * as TileLayer from '../renderClasses/TileLayer';
59
- export { default as TileLayerCanvas } from '../renderClasses/TileLayerCanvas';
60
- export * as dataLoader from '../render/dataLoader';
62
+ export * as tileLayerSource from '../tileCache/tileLayerSource';
63
+ export * as switchableTileCache from '../tileCache/SwitchableTileCache';
61
64
  export * as interpolator from '../render/interpolator';
62
- export { default as particleRenderers } from '../render/particleRenderers';
63
65
  export * as renderCtrl from '../render/renderCtrl';
64
66
  export * as renderUtils from '../render/renderUtils';
65
67
  export { default as renderers } from '../render/renderers';
66
- export * as tileInterpolator from '../render/tileInterpolator';
67
- export { default as glTileRender } from '../render/glTileRender';
68
- export * as renderTile from '../render/renderTile';
69
- export * as tileLayer from '../render/tileLayerInstance';
70
- export { default as GlObj } from '../wgUtils/GlObj';
68
+ export * as tileInterpolator from '../render/tileLayerInterpolator';
69
+ export { GlObj } from '../glUtils/glUtils';
71
70
  export { default as LabelsLayer } from '../mapClasses/LabelsLayer';
72
- export { default as LandMask } from '../mapClasses/LandMask';
73
- export { default as TileLayerMultiPatch } from '../mapClasses/TileLayerMultiPatch';
74
71
  export * as cityLabels from '../map/cityLabels';
75
72
  export * as map from '../map/map';
76
73
  export * as mapGlobeCtrl from '../map/mapGlobeCtrl';
@@ -1,5 +1,5 @@
1
- import type { HttpOptions } from '@windy/http';
2
- import type { LocationEntity } from '@windy/liveAlerts.types';
1
+ import type { HttpOptions } from './d.ts.files/http';
2
+ import type { LocationEntity } from './d.ts.files/liveAlerts.d';
3
3
  export declare function getLocationEntity(locationEntityId: string): Promise<LocationEntity>;
4
4
  export declare function upsertLocationEntity(locationEntityId: string, request: Partial<LocationEntity>, options?: HttpOptions): Promise<LocationEntity>;
5
5
  export declare function sendTestNotification(locationEntityId: string): Promise<void>;
@@ -25,7 +25,7 @@
25
25
  */
26
26
  import type { ExternalPluginIdent } from '@windy/types.d';
27
27
  import type { PluginIdent } from '@windy/Plugin';
28
- import type { WindowPlugins } from '@windy/WindowPlugin';
28
+ import type { WindowPlugins } from '@windy/plugins.d';
29
29
  import type { PluginsOpenParams } from '@windy/plugin-params';
30
30
  /**
31
31
  * At what time, the search string was last time updated