@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.
- package/README.md +1 -0
- package/package.json +1 -1
- package/types/client/Calendar.d.ts +104 -70
- package/types/client/Color.d.ts +25 -5
- package/types/client/DataTiler.d.ts +2 -2
- package/types/client/EcmwfProduct.d.ts +22 -0
- package/types/client/EventManager.d.ts +69 -0
- package/types/client/ExternalSveltePlugin.d.ts +4 -3
- package/types/client/GlBuffer.d.ts +45 -0
- package/types/client/GlMesh.d.ts +147 -0
- package/types/client/GlProgram.d.ts +41 -0
- package/types/client/GlRenderer.d.ts +95 -0
- package/types/client/GlTexture.d.ts +98 -0
- package/types/client/GlVertexArray.d.ts +38 -0
- package/types/client/IDB.d.ts +25 -4
- package/types/client/LabelsLayer.d.ts +69 -2
- package/types/client/Layer.d.ts +96 -26
- package/types/client/LayerClasses.d.ts +5 -0
- package/types/client/Metric.d.ts +31 -46
- package/types/client/MetricClasses.d.ts +1 -1
- package/types/client/Overlay.d.ts +5 -12
- package/types/client/OverlayClasses.d.ts +8 -0
- package/types/client/Particles.d.ts +1 -1
- package/types/client/Product.d.ts +38 -67
- package/types/client/ProductClasses.d.ts +51 -0
- package/types/client/RadarPlusProduct.d.ts +1 -1
- package/types/client/Renderer.d.ts +44 -19
- package/types/client/SatelliteProduct.d.ts +1 -1
- package/types/client/ShaderStorage.d.ts +25 -0
- package/types/client/StartupElementPlugin.d.ts +8 -0
- package/types/client/SveltePlugin.d.ts +5 -5
- package/types/client/SwitchableTileCache.d.ts +104 -0
- package/types/client/TileLayer.d.ts +12 -3
- package/types/client/TileLayerCustom.d.ts +51 -0
- package/types/client/TileLayerMulti.d.ts +53 -0
- package/types/client/TileLayerPreprocessorStandalone.d.ts +45 -0
- package/types/client/TileLayerRenderer.d.ts +24 -0
- package/types/client/TileLayerUtils.d.ts +43 -0
- package/types/client/TilePreprocessor.d.ts +27 -0
- package/types/client/TopoMap.d.ts +4 -4
- package/types/client/WindowPlugin.d.ts +7 -6
- package/types/client/appsFlyer.d.ts +2 -1
- package/types/client/baseMap.d.ts +12 -2
- package/types/client/broadcast.d.ts +1 -1
- package/types/client/cityLabels.d.ts +2 -3
- package/types/client/colorGradients.d.ts +4 -10
- package/types/client/colors.d.ts +1 -2
- package/types/client/css.test.d.ts +1 -0
- package/types/client/customProtocol.d.ts +11 -0
- package/types/client/d.ts.files/GlObj.d.ts +1 -5
- package/types/client/d.ts.files/Metric.d.ts +23 -2
- package/types/client/d.ts.files/alerts.d.ts +1 -0
- package/types/client/d.ts.files/broadcast.d.ts +31 -35
- package/types/client/d.ts.files/dataSpecifications.d.ts +82 -66
- package/types/client/d.ts.files/favs.d.ts +7 -18
- package/types/client/d.ts.files/glUtils.d.ts +71 -0
- package/types/client/d.ts.files/http.d.ts +4 -4
- package/types/client/d.ts.files/interpolatorTypes.d.ts +5 -5
- package/types/client/d.ts.files/lib.d.ts +1 -2
- package/types/client/d.ts.files/liveAlerts.d.ts +52 -0
- package/types/client/d.ts.files/mapUtils.d.ts +25 -0
- package/types/client/d.ts.files/outgoingMessages.d.ts +1 -1
- package/types/client/d.ts.files/plugin-params.d.ts +46 -24
- package/types/client/d.ts.files/plugins.d.ts +44 -31
- package/types/client/d.ts.files/rootScope.d.ts +2 -0
- package/types/client/d.ts.files/singleclick.d.ts +4 -2
- package/types/client/d.ts.files/startup.d.ts +7 -52
- package/types/client/d.ts.files/storage.d.ts +0 -11
- package/types/client/d.ts.files/user.d.ts +6 -1
- package/types/client/d.ts.files/webcams.d.ts +9 -2
- package/types/client/dataLoader.d.ts +2 -2
- package/types/client/detectDevice.d.ts +3 -0
- package/types/client/embed.d.ts +2 -7
- package/types/client/errorLogger.d.ts +20 -1
- package/types/client/externalPlugins.d.ts +5 -1
- package/types/client/fetch.d.ts +62 -5
- package/types/client/format.d.ts +12 -0
- package/types/client/glContextUtils.d.ts +9 -0
- package/types/client/glStatus.d.ts +7 -0
- package/types/client/glTileRender.d.ts +1 -7
- package/types/client/glUtils.d.ts +119 -0
- package/types/client/http.d.ts +0 -6
- package/types/client/idbConnection.d.ts +13 -0
- package/types/client/idbInstances.d.ts +118 -13
- package/types/client/landLayer.d.ts +3 -0
- package/types/client/layers.d.ts +5 -2
- package/types/client/legends.d.ts +1 -1
- package/types/client/lib.d.ts +11 -21
- package/types/client/liveAlerts.d.ts +2 -2
- package/types/client/location.d.ts +1 -1
- package/types/client/map.d.ts +94 -15
- package/types/client/mapUtils.d.ts +66 -0
- package/types/client/math.d.ts +14 -0
- package/types/client/mobile.d.ts +16 -41
- package/types/client/mobileUtils.d.ts +10 -0
- package/types/client/models.d.ts +2 -6
- package/types/client/overlays.d.ts +4 -3
- package/types/client/particleRenderers.d.ts +1 -1
- package/types/client/picker.d.ts +4 -8
- package/types/client/plugins.d.ts +0 -4
- package/types/client/products.d.ts +53 -2
- package/types/client/promo.d.ts +28 -5
- package/types/client/pushNotifications.d.ts +19 -1
- package/types/client/renderCtrl.d.ts +1 -1
- package/types/client/renderTile.d.ts +2 -2
- package/types/client/renderUtils.d.ts +21 -27
- package/types/client/renderers.d.ts +6 -9
- package/types/client/reverseName.d.ts +2 -1
- package/types/client/rhMessage.d.ts +1 -1
- package/types/client/rootScope.d.ts +17 -9
- package/types/client/router.d.ts +41 -9
- package/types/client/seoParser.d.ts +35 -0
- package/types/client/showableErrorsService.d.ts +10 -6
- package/types/client/singleclick.d.ts +1 -1
- package/types/client/startup.d.ts +48 -0
- package/types/client/startupUtils.d.ts +19 -0
- package/types/client/store.d.ts +20 -52
- package/types/client/subscription.d.ts +3 -26
- package/types/client/throttler.d.ts +32 -0
- package/types/client/tileHelpers.d.ts +35 -0
- package/types/client/tileInterpolator.d.ts +1 -1
- package/types/client/tileLayerInterpolator.d.ts +40 -0
- package/types/client/tileLayerSource.d.ts +98 -0
- package/types/client/timestampUtils.test.d.ts +1 -0
- package/types/client/topMessage.d.ts +22 -0
- package/types/client/user.d.ts +1 -0
- package/types/client/userAlerts.d.ts +0 -4
- package/types/client/userConsent.d.ts +0 -2
- package/types/client/userFavs.d.ts +17 -12
- package/types/client/utils.d.ts +78 -25
- package/types/client/utils.test.d.ts +1 -0
- package/types/iconfont.d.ts +2 -5
- package/types/interfaces.d.ts +290 -88
- package/types/lang-files.d.ts +578 -98
- package/types/leaflet-gl.d.ts +12773 -0
- package/types/types.d.ts +323 -11
- package/types/client/d.ts.files/Calendar.d.ts +0 -96
- package/types/client/d.ts.files/CanvasLayer.d.ts +0 -70
- package/types/client/d.ts.files/Color.d.ts +0 -94
- package/types/client/d.ts.files/DataTiler.d.ts +0 -45
- package/types/client/d.ts.files/LandMask.d.ts +0 -17
- package/types/client/d.ts.files/Layer.d.ts +0 -191
- package/types/client/d.ts.files/PoisOverlay.d.ts +0 -27
- package/types/client/d.ts.files/Renderer.d.ts +0 -44
- package/types/client/d.ts.files/TileLayerCanvas.d.ts +0 -78
- package/types/client/d.ts.files/TileLayerMultiPatch.d.ts +0 -13
- package/types/client/d.ts.files/products.d.ts +0 -60
- package/types/client/imaker.d.ts +0 -112
- package/types/offline.d.ts +0 -100
package/types/client/fetch.d.ts
CHANGED
|
@@ -10,10 +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 } 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
|
-
import type {
|
|
15
|
+
import type { SatelliteInfoJson } from '@windy/satellite.d';
|
|
16
|
+
import type { RadarMinifest } from '@plugins/radar-plus/types';
|
|
17
|
+
import type { ExtendedStationType, Pixel, StationOrPoiType, NumValue } from '@windy/types';
|
|
18
|
+
import type { OSMMapBounds } from '@plugins/search/search.d';
|
|
16
19
|
import type { HttpOptions, HttpPayload, QueryStringSource } from '@windy/http.d';
|
|
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';
|
|
17
24
|
interface LatLonStep extends LatLon {
|
|
18
25
|
step?: number;
|
|
19
26
|
interpolate?: boolean;
|
|
@@ -71,6 +78,13 @@ export declare const getWebcamMetricsUrl: (id: string | number) => string;
|
|
|
71
78
|
* @returns URL string for getting point forecast data
|
|
72
79
|
*/
|
|
73
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>;
|
|
74
88
|
/**
|
|
75
89
|
* Gets point forecast data for given location
|
|
76
90
|
*
|
|
@@ -80,7 +94,7 @@ export declare const getPointForecastUrl: <T extends LatLonStep>(model: Products
|
|
|
80
94
|
* @param httpOptions Additional HTTP options
|
|
81
95
|
* @returns Promise with HTTP payload
|
|
82
96
|
*/
|
|
83
|
-
export declare const getPointForecastData: <T extends LatLonStep>(model: Products, latLonStepInterpolate: T, pointForecastOptions?: Record<string, string>, httpOptions?: HttpOptions) => Promise<HttpPayload<WeatherDataPayload<
|
|
97
|
+
export declare const getPointForecastData: <K extends DataHash | AirQDataHash = DataHash, T extends LatLonStep = LatLonStep>(model: Products, latLonStepInterpolate: T, pointForecastOptions?: Record<string, string>, httpOptions?: HttpOptions) => Promise<http.HttpPayload<WeatherDataPayload<K>>>;
|
|
84
98
|
/**
|
|
85
99
|
* Gets enhanced point forecast meteogram data for given location
|
|
86
100
|
* @returns Promise with HTTP payload
|
|
@@ -125,10 +139,53 @@ export declare const getObservationsUrl: (type: ExtendedStationType, id: string,
|
|
|
125
139
|
/**
|
|
126
140
|
* Get URL for getting observations for a specific station in node-poi server
|
|
127
141
|
*/
|
|
128
|
-
export declare const getObservationPoiUrl: (type: StationOrPoiType | 'stations', id: string) => string;
|
|
142
|
+
export declare const getObservationPoiUrl: (type: StationOrPoiType | 'stations' | 'metars', id: string) => string;
|
|
129
143
|
/**
|
|
130
144
|
* Returns loading promise for cap alert headlines
|
|
131
145
|
*/
|
|
132
|
-
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[]>>;
|
|
133
147
|
export declare const getHurricanesCount: () => Promise<HttpPayload<ActiveStormCountPayload>>;
|
|
148
|
+
/**
|
|
149
|
+
* Loads Satellite Product info
|
|
150
|
+
*/
|
|
151
|
+
export declare const getSatelliteInfo: () => Promise<HttpPayload<SatelliteInfoJson>>;
|
|
152
|
+
/**
|
|
153
|
+
* Loads Radar Product info
|
|
154
|
+
*/
|
|
155
|
+
export declare const getRadarInfo: () => Promise<HttpPayload<RadarMinifest>>;
|
|
156
|
+
export declare const getRadarArchiveInfo: () => Promise<HttpPayload<RadarMinifest>>;
|
|
157
|
+
export declare const getSatelliteArchiveInfo: () => Promise<HttpPayload<SatelliteInfoJson>>;
|
|
158
|
+
export declare const getRadarCoverage: () => Promise<HttpPayload<number[]>>;
|
|
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>>;
|
|
164
|
+
/**
|
|
165
|
+
* Returns URL for static map image. Max zoom level is 13
|
|
166
|
+
*/
|
|
167
|
+
export declare const getStaticMapImageUrl: (params: LatLon & {
|
|
168
|
+
zoom: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13;
|
|
169
|
+
size: Pixel;
|
|
170
|
+
bounds?: OSMMapBounds;
|
|
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>>;
|
|
134
191
|
export {};
|
package/types/client/format.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { DirectionFunction, HowOldOptions, TimeFormatFunction } from './d.ts.files/format.d';
|
|
7
7
|
import type { Timestamp } from './d.ts.files/types';
|
|
8
|
+
export declare const euTime: TimeFormatFunction;
|
|
8
9
|
/**
|
|
9
10
|
* Returns function for displaying hours (either 12,24h format) on a basis of locale store of a browser
|
|
10
11
|
* US, UK, PH, CA, AU, NZ, IN, EG, SA, CO, PK, MY - AM,PM format
|
|
@@ -12,6 +13,13 @@ import type { Timestamp } from './d.ts.files/types';
|
|
|
12
13
|
* @returns Time format function
|
|
13
14
|
*/
|
|
14
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;
|
|
15
23
|
/**
|
|
16
24
|
* Returns UTC formated hours, e.g. '09:00Z' or '18:00Z'
|
|
17
25
|
*
|
|
@@ -33,6 +41,10 @@ export declare const hourMinuteUTC: (ts: number) => string;
|
|
|
33
41
|
* @returns Formated number with thousands delimiter, e.g. '10 000'. Empty string if nothing is passed.
|
|
34
42
|
*/
|
|
35
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;
|
|
36
48
|
/**
|
|
37
49
|
* Returns direction formatting function based on user's settings. E.g. 'N', 'NE', ... or '123°'
|
|
38
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtendedWebGLTexture, WebGLProgramObject } from '@windy/GlObj.d';
|
|
2
|
-
import type { TileParams } from '@windy/Renderer
|
|
2
|
+
import type { TileParams } from '@windy/Renderer';
|
|
3
3
|
import type { TileLayerCanvas } from '@windy/TileLayerCanvas.d';
|
|
4
4
|
import type { DataTile } from '@windy/dataLoader';
|
|
5
5
|
export type Gradient = {
|
|
@@ -136,12 +136,6 @@ declare class TileRenderer {
|
|
|
136
136
|
* @returns texture with additional params
|
|
137
137
|
*/
|
|
138
138
|
private createGradientObject;
|
|
139
|
-
/**
|
|
140
|
-
* Predefined alpha values are set to gradient and then color array is generated
|
|
141
|
-
* (solution for user gradient colors with bad alpha)
|
|
142
|
-
* @param colorObj
|
|
143
|
-
*/
|
|
144
|
-
private augmentRainCoverColorsWithAlpha;
|
|
145
139
|
/**
|
|
146
140
|
* Prepare color gradient(s) for layer
|
|
147
141
|
* @param layer
|
|
@@ -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;
|
package/types/client/http.d.ts
CHANGED
|
@@ -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
|
+
}
|
|
@@ -1,36 +1,141 @@
|
|
|
1
1
|
import { IDB } from '@windy/IDB';
|
|
2
2
|
import type { MarkedNotams } from '@plugins/airport/airport';
|
|
3
|
-
import type {
|
|
4
|
-
import type { AnyColorIdent, UserColor } from '@windy/Color.d';
|
|
3
|
+
import type { AnyColorIdent, UserColor } from '@windy/Color';
|
|
5
4
|
import type { AlertRequest, AlertResponse } from '@windy/alerts';
|
|
6
5
|
import type { Fav, FavFragment } from '@windy/favs.d';
|
|
7
6
|
import type { CapAlertSlided, InstalledExternalPluginConfig } from '@windy/interfaces';
|
|
8
7
|
import type { PromoInfoObject } from '@windy/promo';
|
|
9
|
-
import type { SeenArticle, SeenStory } from '@windy/startup.d';
|
|
10
|
-
export declare const initPromise: Promise<IDBDatabase>;
|
|
11
8
|
/** Db of stored user favourites */
|
|
12
9
|
export declare const userFavsIdb: IDB<string, Fav, FavFragment>;
|
|
13
|
-
export declare const searchRecentsIdb: IDB<string,
|
|
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 & {
|
|
11
|
+
type: "airport";
|
|
12
|
+
icao: string;
|
|
13
|
+
iata?: string;
|
|
14
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
15
|
+
type: "heliport";
|
|
16
|
+
icao: string;
|
|
17
|
+
iata?: string;
|
|
18
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
19
|
+
type: "station";
|
|
20
|
+
stationId: `radiation-${string}` | `airq-${string}` | `ad-${string}` | `wmo-${string}` | `madis-${string}` | `buoy-${string}` | `dbuoy-${string}` | `pws-${string}` | `ship-${string}`;
|
|
21
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
22
|
+
type: "webcam";
|
|
23
|
+
webcamId: number;
|
|
24
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
25
|
+
type: "radiosonde";
|
|
26
|
+
id: string;
|
|
27
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
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;
|
|
43
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & {
|
|
44
|
+
type: "hurricane";
|
|
45
|
+
strength: StormStrength;
|
|
46
|
+
stormId: string;
|
|
47
|
+
addShakyClass: true;
|
|
48
|
+
doNotSave: true;
|
|
49
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & {
|
|
50
|
+
type: "route";
|
|
51
|
+
fromTo: [import("@plugins/search/search").AirportSearchResult, import("@plugins/search/search").AirportSearchResult];
|
|
52
|
+
distance: number;
|
|
53
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@windy/interfaces").LatLon & {
|
|
54
|
+
title: string;
|
|
55
|
+
cc?: import("@windy/types").ISOCountryCode | "xx";
|
|
56
|
+
} & {
|
|
57
|
+
type: "fav";
|
|
58
|
+
} & {
|
|
59
|
+
id: string;
|
|
60
|
+
pin2top?: number;
|
|
61
|
+
pin2homepage?: number;
|
|
62
|
+
updated: number;
|
|
63
|
+
} & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
64
|
+
noValidLocation?: false;
|
|
65
|
+
type: "fav";
|
|
66
|
+
}), (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
67
|
+
type: "airport";
|
|
68
|
+
icao: string;
|
|
69
|
+
iata?: string;
|
|
70
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
71
|
+
type: "heliport";
|
|
72
|
+
icao: string;
|
|
73
|
+
iata?: string;
|
|
74
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
75
|
+
type: "station";
|
|
76
|
+
stationId: `radiation-${string}` | `airq-${string}` | `ad-${string}` | `wmo-${string}` | `madis-${string}` | `buoy-${string}` | `dbuoy-${string}` | `pws-${string}` | `ship-${string}`;
|
|
77
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
78
|
+
type: "webcam";
|
|
79
|
+
webcamId: number;
|
|
80
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
81
|
+
type: "radiosonde";
|
|
82
|
+
id: string;
|
|
83
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
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;
|
|
99
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & {
|
|
100
|
+
type: "hurricane";
|
|
101
|
+
strength: StormStrength;
|
|
102
|
+
stormId: string;
|
|
103
|
+
addShakyClass: true;
|
|
104
|
+
doNotSave: true;
|
|
105
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@plugins/search/search").RequiredSearchItemProperties & import("@windy/interfaces").LatLon & {
|
|
106
|
+
type: "route";
|
|
107
|
+
fromTo: [import("@plugins/search/search").AirportSearchResult, import("@plugins/search/search").AirportSearchResult];
|
|
108
|
+
distance: number;
|
|
109
|
+
}) | (import("@plugins/search/search").SearchRecentItem & import("@windy/interfaces").LatLon & {
|
|
110
|
+
title: string;
|
|
111
|
+
cc?: import("@windy/types").ISOCountryCode | "xx";
|
|
112
|
+
} & {
|
|
113
|
+
type: "fav";
|
|
114
|
+
} & {
|
|
115
|
+
id: string;
|
|
116
|
+
pin2top?: number;
|
|
117
|
+
pin2homepage?: number;
|
|
118
|
+
updated: number;
|
|
119
|
+
} & import("@plugins/search/search").CountryAndRegionInformation & {
|
|
120
|
+
noValidLocation?: false;
|
|
121
|
+
type: "fav";
|
|
122
|
+
})>;
|
|
14
123
|
/** Db of stored user alerts */
|
|
15
124
|
export declare const userAlertsIdb: IDB<string, AlertResponse, AlertRequest>;
|
|
16
125
|
/** Db of stored notams marked as read */
|
|
17
126
|
export declare const markedNotamsIdb: IDB<`${string}_${string}/${string}`, MarkedNotams, MarkedNotams>;
|
|
18
|
-
/**
|
|
19
|
-
export declare const
|
|
127
|
+
/** Upvoted articles */
|
|
128
|
+
export declare const upvotedArticlesIdb: IDB<string | number, true, true>;
|
|
20
129
|
/** Seen promos */
|
|
21
130
|
export declare const seenPromosIdb: IDB<string, PromoInfoObject, PromoInfoObject>;
|
|
22
131
|
/** Custom user colors */
|
|
23
132
|
export declare const customColorsIdb: IDB<AnyColorIdent, UserColor, UserColor>;
|
|
24
133
|
/** Cap alerts that were slided from left to right on startup screen */
|
|
25
134
|
export declare const slidedCapAlertsIdb: IDB<string, CapAlertSlided, CapAlertSlided>;
|
|
26
|
-
/** Seen stories */
|
|
27
|
-
export declare const seenStoriesIdb: IDB<string, SeenStory, SeenStory>;
|
|
28
135
|
/** Log of pages & events that happened on this device */
|
|
29
|
-
export declare const logIdb: IDB<`
|
|
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>;
|
|
30
137
|
/** Log of locations, that user uses on this device */
|
|
31
138
|
export declare const popularLocationsIdb: IDB<string, number, number>;
|
|
32
|
-
/** Seen stories */
|
|
33
|
-
export declare const likedStoryCommentsIdb: IDB<string, boolean, boolean>;
|
|
34
139
|
/** Installed external plugins */
|
|
35
|
-
export declare const installedPluginsIdb: IDB
|
|
140
|
+
export declare const installedPluginsIdb: IDB<string, InstalledExternalPluginConfig, InstalledExternalPluginConfig>;
|
|
36
141
|
export declare const clearIndexedDB: () => Promise<void>;
|
package/types/client/layers.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Layer
|
|
1
|
+
import { Layer } from '@windy/Layer';
|
|
2
|
+
import { WaveLayer } from '@windy/LayerClasses';
|
|
2
3
|
import type { NumberedMetric, PrecipMetric, PtypeMetric } from '@windy/MetricClasses';
|
|
3
4
|
declare const layers: {
|
|
4
5
|
capAlerts: Layer<undefined>;
|
|
@@ -12,6 +13,7 @@ declare const layers: {
|
|
|
12
13
|
ecmwfWindParticles500h: Layer<undefined>;
|
|
13
14
|
ecmwfWindParticles600h: Layer<undefined>;
|
|
14
15
|
waveParticles: Layer<undefined>;
|
|
16
|
+
waveParticlesWaves: Layer<undefined>;
|
|
15
17
|
currentParticles: Layer<undefined>;
|
|
16
18
|
currentsTideParticles: Layer<undefined>;
|
|
17
19
|
wind: Layer<NumberedMetric>;
|
|
@@ -39,6 +41,7 @@ declare const layers: {
|
|
|
39
41
|
rainAccu: Layer<NumberedMetric>;
|
|
40
42
|
waves: WaveLayer;
|
|
41
43
|
wwaves: WaveLayer;
|
|
44
|
+
wavePower: Layer<NumberedMetric>;
|
|
42
45
|
swell1: WaveLayer;
|
|
43
46
|
swell2: WaveLayer;
|
|
44
47
|
swell3: WaveLayer;
|
|
@@ -54,7 +57,6 @@ declare const layers: {
|
|
|
54
57
|
dustsm: Layer<NumberedMetric>;
|
|
55
58
|
radar: Layer<NumberedMetric>;
|
|
56
59
|
satellite: Layer<NumberedMetric>;
|
|
57
|
-
radarPlus: Layer<NumberedMetric>;
|
|
58
60
|
gtco3: Layer<NumberedMetric>;
|
|
59
61
|
pm2p5: Layer<NumberedMetric>;
|
|
60
62
|
no2: Layer<NumberedMetric>;
|
|
@@ -76,5 +78,6 @@ declare const layers: {
|
|
|
76
78
|
turbulence: Layer<NumberedMetric>;
|
|
77
79
|
icing: Layer<NumberedMetric>;
|
|
78
80
|
topoMap: Layer<undefined>;
|
|
81
|
+
aqi: Layer<NumberedMetric>;
|
|
79
82
|
};
|
|
80
83
|
export default layers;
|
package/types/client/lib.d.ts
CHANGED
|
@@ -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,20 +12,18 @@ 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
|
-
export * as EcmwfProduct from '../weatherClasses/EcmwfProduct';
|
|
16
|
-
export * as HrrrProducts from '../weatherClasses/HrrrProducts';
|
|
17
|
-
export * as IconProducts from '../weatherClasses/IconProducts';
|
|
18
21
|
export * as Layer from '../weatherClasses/Layer';
|
|
19
22
|
export * as Metric from '../weatherClasses/Metric';
|
|
20
23
|
export * as MetricClasses from '../weatherClasses/MetricClasses';
|
|
21
|
-
export * as NamProducts from '../weatherClasses/NamProducts';
|
|
22
24
|
export * as Overlay from '../weatherClasses/Overlay';
|
|
23
25
|
export * as OverlayClasses from '../weatherClasses/OverlayClasses';
|
|
24
26
|
export * as Product from '../weatherClasses/Product';
|
|
25
|
-
export * as SatelliteProduct from '../weatherClasses/SatelliteProduct';
|
|
26
|
-
export * as StaticProduct from '../weatherClasses/StaticProduct';
|
|
27
27
|
export { default as layers } from '../weather/layers';
|
|
28
28
|
export { default as legends } from '../weather/legends';
|
|
29
29
|
export { default as metrics } from '../weather/metrics';
|
|
@@ -39,7 +39,6 @@ export * as device from '../services/device';
|
|
|
39
39
|
export * as deviceLogging from '../services/deviceLogging';
|
|
40
40
|
export * as geolocation from '../services/geolocation';
|
|
41
41
|
export * as notifications from '../services/notifications';
|
|
42
|
-
export * as ogTags from '../services/ogTags';
|
|
43
42
|
export * as params from '../services/params';
|
|
44
43
|
export * as rootScope from '../services/rootScope';
|
|
45
44
|
export { default as store } from '../services/store';
|
|
@@ -52,32 +51,23 @@ export * as WindowPlugin from '../pluginSystem/WindowPlugin';
|
|
|
52
51
|
export { default as plugins } from '../pluginSystem/plugins';
|
|
53
52
|
export * as pluginsCtrl from '../pluginSystem/pluginsCtrl';
|
|
54
53
|
export * as BottomSlide from '../uiClasses/BottomSlide';
|
|
55
|
-
export * as ClickHandler from '../uiClasses/ClickHandler';
|
|
56
54
|
export * as Drag from '../uiClasses/Drag';
|
|
57
55
|
export * as Swipe from '../uiClasses/Swipe';
|
|
58
56
|
export * as Window from '../uiClasses/Window';
|
|
59
57
|
export * as rhMessage from '../ui/rhMessage';
|
|
60
58
|
export * as timeAnimation from '../ui/timeAnimation';
|
|
61
59
|
export * as visibility from '../ui/visibility';
|
|
62
|
-
export * as DataTiler from '../renderClasses/DataTiler';
|
|
63
|
-
export * as Particles from '../renderClasses/Particles';
|
|
64
60
|
export * as Renderer from '../renderClasses/Renderer';
|
|
65
61
|
export * as TileLayer from '../renderClasses/TileLayer';
|
|
66
|
-
export
|
|
67
|
-
export * as
|
|
62
|
+
export * as tileLayerSource from '../tileCache/tileLayerSource';
|
|
63
|
+
export * as switchableTileCache from '../tileCache/SwitchableTileCache';
|
|
68
64
|
export * as interpolator from '../render/interpolator';
|
|
69
|
-
export { default as particleRenderers } from '../render/particleRenderers';
|
|
70
65
|
export * as renderCtrl from '../render/renderCtrl';
|
|
71
66
|
export * as renderUtils from '../render/renderUtils';
|
|
72
67
|
export { default as renderers } from '../render/renderers';
|
|
73
|
-
export * as tileInterpolator from '../render/
|
|
74
|
-
export {
|
|
75
|
-
export * as renderTile from '../render/renderTile';
|
|
76
|
-
export * as tileLayer from '../render/tileLayerInstance';
|
|
77
|
-
export { default as GlObj } from '../wgUtils/GlObj';
|
|
68
|
+
export * as tileInterpolator from '../render/tileLayerInterpolator';
|
|
69
|
+
export { GlObj } from '../glUtils/glUtils';
|
|
78
70
|
export { default as LabelsLayer } from '../mapClasses/LabelsLayer';
|
|
79
|
-
export { default as LandMask } from '../mapClasses/LandMask';
|
|
80
|
-
export { default as TileLayerMultiPatch } from '../mapClasses/TileLayerMultiPatch';
|
|
81
71
|
export * as cityLabels from '../map/cityLabels';
|
|
82
72
|
export * as map from '../map/map';
|
|
83
73
|
export * as mapGlobeCtrl from '../map/mapGlobeCtrl';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HttpOptions } from '
|
|
2
|
-
import type { LocationEntity } from '
|
|
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/
|
|
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
|