@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/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MainLangFile, PluginTranslations } from '@windy/lang-files.d';
|
|
2
2
|
|
|
3
3
|
import weatherTable from '@plugins/_shared/detail-render/weatherTable';
|
|
4
|
-
import { LatLon, WeatherParameters } from '
|
|
4
|
+
import { LatLon, WeatherParameters } from '@windy/interfaces.d';
|
|
5
5
|
|
|
6
6
|
export * from '@windy/interpolatorTypes.d';
|
|
7
7
|
|
|
@@ -11,19 +11,20 @@ export * from '@windy/interpolatorTypes.d';
|
|
|
11
11
|
export type ISODateString = string;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Point in time expressed as milliseconds since Unix epoch (Date.now()).
|
|
15
|
+
* Use {@link TimeRangeMs} instead for durations/interval lengths.
|
|
15
16
|
*/
|
|
16
17
|
export type Timestamp = number;
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
* Time range / duration in milliseconds (NOT an absolute epoch timestamp)
|
|
20
21
|
*/
|
|
21
|
-
export type
|
|
22
|
+
export type TimeRangeMs = number;
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
+
* Path in a form of YYYYMMDDHH based on minifest/calendar version
|
|
25
26
|
*/
|
|
26
|
-
export type
|
|
27
|
+
export type Path = string;
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* Valid subscription tiers
|
|
@@ -34,7 +35,7 @@ export type Platform = 'android' | 'ios' | 'desktop';
|
|
|
34
35
|
|
|
35
36
|
export type Device = 'mobile' | 'tablet' | 'desktop';
|
|
36
37
|
|
|
37
|
-
export type DetailDisplayType = 'table' | 'meteogram' | 'airgram' | 'waves' | 'wind';
|
|
38
|
+
export type DetailDisplayType = 'table' | 'meteogram' | 'airgram' | 'waves' | 'wind' | 'airq';
|
|
38
39
|
|
|
39
40
|
export type Directions = 'N' | 'NE' | 'E' | 'SE' | 'S' | 'SW' | 'W' | 'NW';
|
|
40
41
|
|
|
@@ -63,7 +64,7 @@ export type StationId = `${ExtendedStationType}-${string}`;
|
|
|
63
64
|
*/
|
|
64
65
|
export type StationOrPoiType = StationType | PoiType;
|
|
65
66
|
|
|
66
|
-
export type
|
|
67
|
+
export type FlyingConditions = 'I' | 'V' | 'L' | 'M' | 'U';
|
|
67
68
|
|
|
68
69
|
/**
|
|
69
70
|
* Allowed type of tides
|
|
@@ -106,6 +107,9 @@ export type SveltePanePluginIdent =
|
|
|
106
107
|
export type BottomSveltePluginIdent =
|
|
107
108
|
`@plugins/${keyof import('@windy/plugins.d').BottomSveltePlugins}`;
|
|
108
109
|
|
|
110
|
+
export type StartupElementPluginIdent =
|
|
111
|
+
`@plugins/${keyof import('@windy/plugins.d').StartupElementPlugins}`;
|
|
112
|
+
|
|
109
113
|
export type TagPluginIdent = `@plugins/${keyof import('@windy/plugins.d').TagPlugins}`;
|
|
110
114
|
|
|
111
115
|
export type PlainPluginIdent = `@plugins/${keyof import('@windy/plugins.d').PlainPlugins}`;
|
|
@@ -189,6 +193,9 @@ export type GpsPreferences = {
|
|
|
189
193
|
status: 'denied' | 'authorized';
|
|
190
194
|
};
|
|
191
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Implemented only on android native - iOS does not restrict battery usage for individual applications
|
|
198
|
+
*/
|
|
192
199
|
export type BatteryPreferences = {
|
|
193
200
|
status: 'denied' | 'authorized';
|
|
194
201
|
};
|
|
@@ -267,6 +274,7 @@ export type PickerMobileTimeout = '3' | '6' | '9' | '12' | 'always';
|
|
|
267
274
|
*/
|
|
268
275
|
export type LogPaths =
|
|
269
276
|
| keyof WeatherParameters
|
|
277
|
+
| 'path'
|
|
270
278
|
| 'version'
|
|
271
279
|
| 'plugin'
|
|
272
280
|
| 'pois'
|
|
@@ -292,10 +300,16 @@ export type LogPaths =
|
|
|
292
300
|
export type LogEvents =
|
|
293
301
|
| 'logout'
|
|
294
302
|
| 'animation-started'
|
|
303
|
+
| 'animation-speed-changed'
|
|
295
304
|
| 'user-logged'
|
|
296
305
|
| 'click-on-hp'
|
|
297
306
|
| 'article-event'
|
|
298
|
-
| 'displayed-on-hp'
|
|
307
|
+
| 'displayed-on-hp'
|
|
308
|
+
| 'subs-opened'
|
|
309
|
+
| 'subs-purchased'
|
|
310
|
+
| 'map-selector-clicked'
|
|
311
|
+
| 'radsat-animation-speed-changed'
|
|
312
|
+
| 'login-finish-action';
|
|
299
313
|
|
|
300
314
|
/**
|
|
301
315
|
* Type of user consent
|
|
@@ -350,7 +364,9 @@ export type PickerOpener = LatLon & { id: string };
|
|
|
350
364
|
|
|
351
365
|
export type ExternalPluginIdent = `windy-plugin-${string}`;
|
|
352
366
|
|
|
353
|
-
export type
|
|
367
|
+
export type AllowedDropDownKey = string | number | null | boolean;
|
|
368
|
+
|
|
369
|
+
export type DropDownValues = { key: AllowedDropDownKey; value: string | number }[];
|
|
354
370
|
|
|
355
371
|
/*
|
|
356
372
|
* Plugin for creating backups of Local storage
|
|
@@ -384,15 +400,23 @@ export interface WindyBackupPlugin {
|
|
|
384
400
|
/**
|
|
385
401
|
* Currently used main map library
|
|
386
402
|
*/
|
|
387
|
-
export type UsedMapLibrary = '
|
|
403
|
+
export type UsedMapLibrary = 'leafletGl' | 'globe';
|
|
388
404
|
|
|
389
405
|
/**
|
|
390
406
|
* Time defined in hours
|
|
391
407
|
*/
|
|
392
408
|
export type Hours = number;
|
|
393
409
|
|
|
410
|
+
/**
|
|
411
|
+
* Time defined in minutes
|
|
412
|
+
*/
|
|
394
413
|
export type Minutes = number;
|
|
395
414
|
|
|
415
|
+
/**
|
|
416
|
+
* Time defined in seconds
|
|
417
|
+
*/
|
|
418
|
+
export type Seconds = number;
|
|
419
|
+
|
|
396
420
|
/**
|
|
397
421
|
* All defined translation keys
|
|
398
422
|
*
|
|
@@ -411,10 +435,38 @@ export type UserInterest =
|
|
|
411
435
|
| 'meteorologist'
|
|
412
436
|
| 'other';
|
|
413
437
|
|
|
438
|
+
export type ParticlesIdent = 'wind' | 'waves' | 'currents';
|
|
439
|
+
|
|
440
|
+
export type PatternType = 'cclPattern' | 'rainPattern' | 'ptypePattern';
|
|
441
|
+
|
|
442
|
+
export type TransformFunction = (x: NumValue) => NumValue;
|
|
443
|
+
|
|
444
|
+
export type RenderChannels = 'R' | 'RG' | 'B';
|
|
445
|
+
|
|
414
446
|
export type ParsedQueryString = Record<string, string | undefined>;
|
|
415
447
|
|
|
416
448
|
export type Size = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl' | 'ultra';
|
|
417
449
|
|
|
450
|
+
export type RGBA = [number, number, number, number];
|
|
451
|
+
|
|
452
|
+
export type YUVA = [number, number, number, number];
|
|
453
|
+
|
|
454
|
+
export type ColorGradient = [NumValue, RGBA][];
|
|
455
|
+
|
|
456
|
+
export type ColorGradientString = [NumValue, RGBString | RGBAString][];
|
|
457
|
+
|
|
458
|
+
export type AnimationSpeed = 'normal' | 'fast' | 'very-fast';
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* 'rgb(200,0,150)'
|
|
462
|
+
*/
|
|
463
|
+
export type RGBString = `rgb(${number},${number},${number})`;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* 'rgba(200,0,150,1)'
|
|
467
|
+
*/
|
|
468
|
+
export type RGBAString = `rgba(${number},${number},${number},${number})`;
|
|
469
|
+
|
|
418
470
|
/**
|
|
419
471
|
* Custom app icon for Premium users
|
|
420
472
|
*/
|
|
@@ -434,3 +486,263 @@ export type CustomAppIcon =
|
|
|
434
486
|
| 'wind'
|
|
435
487
|
| 'windsurfing'
|
|
436
488
|
| 'winter-sports';
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* All ISO 3166-1 alpha-2 country codes (current), lowercase.
|
|
492
|
+
*/
|
|
493
|
+
export type ISOCountryCode =
|
|
494
|
+
| 'ad'
|
|
495
|
+
| 'ae'
|
|
496
|
+
| 'af'
|
|
497
|
+
| 'ag'
|
|
498
|
+
| 'ai'
|
|
499
|
+
| 'al'
|
|
500
|
+
| 'am'
|
|
501
|
+
| 'ao'
|
|
502
|
+
| 'aq'
|
|
503
|
+
| 'ar'
|
|
504
|
+
| 'as'
|
|
505
|
+
| 'at'
|
|
506
|
+
| 'au'
|
|
507
|
+
| 'aw'
|
|
508
|
+
| 'ax'
|
|
509
|
+
| 'az'
|
|
510
|
+
| 'ba'
|
|
511
|
+
| 'bb'
|
|
512
|
+
| 'bd'
|
|
513
|
+
| 'be'
|
|
514
|
+
| 'bf'
|
|
515
|
+
| 'bg'
|
|
516
|
+
| 'bh'
|
|
517
|
+
| 'bi'
|
|
518
|
+
| 'bj'
|
|
519
|
+
| 'bl'
|
|
520
|
+
| 'bm'
|
|
521
|
+
| 'bn'
|
|
522
|
+
| 'bo'
|
|
523
|
+
| 'bq'
|
|
524
|
+
| 'br'
|
|
525
|
+
| 'bs'
|
|
526
|
+
| 'bt'
|
|
527
|
+
| 'bv'
|
|
528
|
+
| 'bw'
|
|
529
|
+
| 'by'
|
|
530
|
+
| 'bz'
|
|
531
|
+
| 'ca'
|
|
532
|
+
| 'cc'
|
|
533
|
+
| 'cd'
|
|
534
|
+
| 'cf'
|
|
535
|
+
| 'cg'
|
|
536
|
+
| 'ch'
|
|
537
|
+
| 'ci'
|
|
538
|
+
| 'ck'
|
|
539
|
+
| 'cl'
|
|
540
|
+
| 'cm'
|
|
541
|
+
| 'cn'
|
|
542
|
+
| 'co'
|
|
543
|
+
| 'cr'
|
|
544
|
+
| 'cu'
|
|
545
|
+
| 'cv'
|
|
546
|
+
| 'cw'
|
|
547
|
+
| 'cx'
|
|
548
|
+
| 'cy'
|
|
549
|
+
| 'cz'
|
|
550
|
+
| 'de'
|
|
551
|
+
| 'dj'
|
|
552
|
+
| 'dk'
|
|
553
|
+
| 'dm'
|
|
554
|
+
| 'do'
|
|
555
|
+
| 'dz'
|
|
556
|
+
| 'ec'
|
|
557
|
+
| 'ee'
|
|
558
|
+
| 'eg'
|
|
559
|
+
| 'eh'
|
|
560
|
+
| 'er'
|
|
561
|
+
| 'es'
|
|
562
|
+
| 'et'
|
|
563
|
+
| 'fi'
|
|
564
|
+
| 'fj'
|
|
565
|
+
| 'fk'
|
|
566
|
+
| 'fm'
|
|
567
|
+
| 'fo'
|
|
568
|
+
| 'fr'
|
|
569
|
+
| 'ga'
|
|
570
|
+
| 'gb'
|
|
571
|
+
| 'gd'
|
|
572
|
+
| 'ge'
|
|
573
|
+
| 'gf'
|
|
574
|
+
| 'gg'
|
|
575
|
+
| 'gh'
|
|
576
|
+
| 'gi'
|
|
577
|
+
| 'gl'
|
|
578
|
+
| 'gm'
|
|
579
|
+
| 'gn'
|
|
580
|
+
| 'gp'
|
|
581
|
+
| 'gq'
|
|
582
|
+
| 'gr'
|
|
583
|
+
| 'gs'
|
|
584
|
+
| 'gt'
|
|
585
|
+
| 'gu'
|
|
586
|
+
| 'gw'
|
|
587
|
+
| 'gy'
|
|
588
|
+
| 'hk'
|
|
589
|
+
| 'hm'
|
|
590
|
+
| 'hn'
|
|
591
|
+
| 'hr'
|
|
592
|
+
| 'ht'
|
|
593
|
+
| 'hu'
|
|
594
|
+
| 'id'
|
|
595
|
+
| 'ie'
|
|
596
|
+
| 'il'
|
|
597
|
+
| 'im'
|
|
598
|
+
| 'in'
|
|
599
|
+
| 'io'
|
|
600
|
+
| 'iq'
|
|
601
|
+
| 'ir'
|
|
602
|
+
| 'is'
|
|
603
|
+
| 'it'
|
|
604
|
+
| 'je'
|
|
605
|
+
| 'jm'
|
|
606
|
+
| 'jo'
|
|
607
|
+
| 'jp'
|
|
608
|
+
| 'ke'
|
|
609
|
+
| 'kg'
|
|
610
|
+
| 'kh'
|
|
611
|
+
| 'ki'
|
|
612
|
+
| 'km'
|
|
613
|
+
| 'kn'
|
|
614
|
+
| 'kp'
|
|
615
|
+
| 'kr'
|
|
616
|
+
| 'kw'
|
|
617
|
+
| 'ky'
|
|
618
|
+
| 'kz'
|
|
619
|
+
| 'la'
|
|
620
|
+
| 'lb'
|
|
621
|
+
| 'lc'
|
|
622
|
+
| 'li'
|
|
623
|
+
| 'lk'
|
|
624
|
+
| 'lr'
|
|
625
|
+
| 'ls'
|
|
626
|
+
| 'lt'
|
|
627
|
+
| 'lu'
|
|
628
|
+
| 'lv'
|
|
629
|
+
| 'ly'
|
|
630
|
+
| 'ma'
|
|
631
|
+
| 'mc'
|
|
632
|
+
| 'md'
|
|
633
|
+
| 'me'
|
|
634
|
+
| 'mf'
|
|
635
|
+
| 'mg'
|
|
636
|
+
| 'mh'
|
|
637
|
+
| 'mk'
|
|
638
|
+
| 'ml'
|
|
639
|
+
| 'mm'
|
|
640
|
+
| 'mn'
|
|
641
|
+
| 'mo'
|
|
642
|
+
| 'mp'
|
|
643
|
+
| 'mq'
|
|
644
|
+
| 'mr'
|
|
645
|
+
| 'ms'
|
|
646
|
+
| 'mt'
|
|
647
|
+
| 'mu'
|
|
648
|
+
| 'mv'
|
|
649
|
+
| 'mw'
|
|
650
|
+
| 'mx'
|
|
651
|
+
| 'my'
|
|
652
|
+
| 'mz'
|
|
653
|
+
| 'na'
|
|
654
|
+
| 'nc'
|
|
655
|
+
| 'ne'
|
|
656
|
+
| 'nf'
|
|
657
|
+
| 'ng'
|
|
658
|
+
| 'ni'
|
|
659
|
+
| 'nl'
|
|
660
|
+
| 'no'
|
|
661
|
+
| 'np'
|
|
662
|
+
| 'nr'
|
|
663
|
+
| 'nu'
|
|
664
|
+
| 'nz'
|
|
665
|
+
| 'om'
|
|
666
|
+
| 'pa'
|
|
667
|
+
| 'pe'
|
|
668
|
+
| 'pf'
|
|
669
|
+
| 'pg'
|
|
670
|
+
| 'ph'
|
|
671
|
+
| 'pk'
|
|
672
|
+
| 'pl'
|
|
673
|
+
| 'pm'
|
|
674
|
+
| 'pn'
|
|
675
|
+
| 'pr'
|
|
676
|
+
| 'ps'
|
|
677
|
+
| 'pt'
|
|
678
|
+
| 'pw'
|
|
679
|
+
| 'py'
|
|
680
|
+
| 'qa'
|
|
681
|
+
| 're'
|
|
682
|
+
| 'ro'
|
|
683
|
+
| 'rs'
|
|
684
|
+
| 'ru'
|
|
685
|
+
| 'rw'
|
|
686
|
+
| 'sa'
|
|
687
|
+
| 'sb'
|
|
688
|
+
| 'sc'
|
|
689
|
+
| 'sd'
|
|
690
|
+
| 'se'
|
|
691
|
+
| 'sg'
|
|
692
|
+
| 'sh'
|
|
693
|
+
| 'si'
|
|
694
|
+
| 'sj'
|
|
695
|
+
| 'sk'
|
|
696
|
+
| 'sl'
|
|
697
|
+
| 'sm'
|
|
698
|
+
| 'sn'
|
|
699
|
+
| 'so'
|
|
700
|
+
| 'sr'
|
|
701
|
+
| 'ss'
|
|
702
|
+
| 'st'
|
|
703
|
+
| 'sv'
|
|
704
|
+
| 'sx'
|
|
705
|
+
| 'sy'
|
|
706
|
+
| 'sz'
|
|
707
|
+
| 'tc'
|
|
708
|
+
| 'td'
|
|
709
|
+
| 'tf'
|
|
710
|
+
| 'tg'
|
|
711
|
+
| 'th'
|
|
712
|
+
| 'tj'
|
|
713
|
+
| 'tk'
|
|
714
|
+
| 'tl'
|
|
715
|
+
| 'tm'
|
|
716
|
+
| 'tn'
|
|
717
|
+
| 'to'
|
|
718
|
+
| 'tr'
|
|
719
|
+
| 'tt'
|
|
720
|
+
| 'tv'
|
|
721
|
+
| 'tw'
|
|
722
|
+
| 'tz'
|
|
723
|
+
| 'ua'
|
|
724
|
+
| 'ug'
|
|
725
|
+
| 'um'
|
|
726
|
+
| 'us'
|
|
727
|
+
| 'uy'
|
|
728
|
+
| 'uz'
|
|
729
|
+
| 'va'
|
|
730
|
+
| 'vc'
|
|
731
|
+
| 've'
|
|
732
|
+
| 'vg'
|
|
733
|
+
| 'vi'
|
|
734
|
+
| 'vn'
|
|
735
|
+
| 'vu'
|
|
736
|
+
| 'wf'
|
|
737
|
+
| 'ws'
|
|
738
|
+
| 'ye'
|
|
739
|
+
| 'yt'
|
|
740
|
+
| 'za'
|
|
741
|
+
| 'zm'
|
|
742
|
+
| 'zw';
|
|
743
|
+
|
|
744
|
+
export type Timeout = ReturnType<typeof setTimeout>;
|
|
745
|
+
|
|
746
|
+
export type Interval = ReturnType<typeof setInterval>;
|
|
747
|
+
|
|
748
|
+
export type SemVersion = `${number}.${number}.${number}`;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { Timestamp, ISODateString, LoadedTranslations } from '@windy/types.d';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Main minifest object. Mother of all forecasts
|
|
5
|
-
*/
|
|
6
|
-
export interface MinifestObject {
|
|
7
|
-
/**
|
|
8
|
-
* Version
|
|
9
|
-
*/
|
|
10
|
-
v: string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Array of hour moments that contain forecast data
|
|
14
|
-
*/
|
|
15
|
-
dst: number[][];
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Main identifier, identifiing the refTime on the backend.
|
|
19
|
-
*/
|
|
20
|
-
info: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Reference time of forecast
|
|
24
|
-
*/
|
|
25
|
-
ref: ISODateString;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Update time of the forecast
|
|
29
|
-
*/
|
|
30
|
-
update: ISODateString;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* In an emergency case backend can set `force` property at minifest. It breaks minifest client cache and set minifest at any circumstances
|
|
34
|
-
*/
|
|
35
|
-
forced?: boolean;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Main Calendar Day Object
|
|
40
|
-
*/
|
|
41
|
-
export interface CalendarDay {
|
|
42
|
-
/**
|
|
43
|
-
* Translation ID for week day abbreviation
|
|
44
|
-
*/
|
|
45
|
-
display: keyof LoadedTranslations;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Translation ID for week day abbreviation
|
|
49
|
-
*/
|
|
50
|
-
displayLong: keyof LoadedTranslations;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Start of the day
|
|
54
|
-
*/
|
|
55
|
-
start: Timestamp;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* End of the day
|
|
59
|
-
*/
|
|
60
|
-
end: Timestamp;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Midday of the day
|
|
64
|
-
*/
|
|
65
|
-
middayTs: Timestamp;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Day of the month
|
|
69
|
-
*/
|
|
70
|
-
day: number;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* month
|
|
74
|
-
*/
|
|
75
|
-
month: number;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* year
|
|
79
|
-
*/
|
|
80
|
-
year: number;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Forecast for this day is for Premium users only
|
|
84
|
-
*/
|
|
85
|
-
premium: boolean;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Forecast for this day is available
|
|
89
|
-
*/
|
|
90
|
-
hasForecast: boolean;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Valid translation keys
|
|
95
|
-
*/
|
|
96
|
-
export type Weekday = 'SUN' | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT';
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
export class CanvasLayer extends L.Layer {
|
|
2
|
-
targetPane?:
|
|
3
|
-
| 'mapPane'
|
|
4
|
-
| 'tilePane'
|
|
5
|
-
| 'overlayPane'
|
|
6
|
-
| 'objectsPane'
|
|
7
|
-
| 'popupPane'
|
|
8
|
-
| 'shadowPane'
|
|
9
|
-
| 'markerPane';
|
|
10
|
-
_showCanvasOn?: boolean;
|
|
11
|
-
failed?: boolean;
|
|
12
|
-
_canvas?: L.CanvasElement | null;
|
|
13
|
-
_center?: L.LatLng;
|
|
14
|
-
_zoom?: number;
|
|
15
|
-
_frame?: number | null;
|
|
16
|
-
wasOnZoom?: boolean;
|
|
17
|
-
options: L.LayerOptions & {
|
|
18
|
-
disableAutoReset: boolean;
|
|
19
|
-
padding: number;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
initialize(this: this, options?: L.LayerOptions): void;
|
|
23
|
-
onResizeCanvas(this: this, width: number, height: number): void;
|
|
24
|
-
showCanvas(this: this, on: boolean): void;
|
|
25
|
-
reset(this: this): void;
|
|
26
|
-
canvasDisplay(this: this, enable: boolean): void;
|
|
27
|
-
getCanvas(this: this): L.CanvasElement | undefined | null;
|
|
28
|
-
redraw(this: this): void;
|
|
29
|
-
|
|
30
|
-
_resize(this: this, event: L.ResizeEvent): void;
|
|
31
|
-
_animateZoom(this: this, e: L.ZoomAnimEvent): void;
|
|
32
|
-
_onZoom(this: this): void;
|
|
33
|
-
_onZoomStart(this: this): void;
|
|
34
|
-
_onZoomEnd(this: this): void;
|
|
35
|
-
_moveEnd(this: this): void;
|
|
36
|
-
_reset(this: this): void;
|
|
37
|
-
_redraw(this: this): void;
|
|
38
|
-
_updateTransform(center: L.LatLng, zoom: number): void;
|
|
39
|
-
|
|
40
|
-
/** TODO empty by default */
|
|
41
|
-
onInit(this: this): void;
|
|
42
|
-
|
|
43
|
-
/** TODO true by default */
|
|
44
|
-
onCreateCanvas(this: this, canvas?: HTMLElement): boolean;
|
|
45
|
-
|
|
46
|
-
/** TODO empty by default */
|
|
47
|
-
onCanvasFailed(this: this): void;
|
|
48
|
-
|
|
49
|
-
/** TODO empty by default */
|
|
50
|
-
onRemoveCanvas(this: this, canvas?: HTMLElement): void;
|
|
51
|
-
|
|
52
|
-
/** TODO empty by default */
|
|
53
|
-
onMoveEnd(this: this): void;
|
|
54
|
-
|
|
55
|
-
/** TODO empty by default */
|
|
56
|
-
onZoomEnd(this: this): void;
|
|
57
|
-
|
|
58
|
-
/** TODO empty by default */
|
|
59
|
-
onReset(this: this): void;
|
|
60
|
-
|
|
61
|
-
// Just this typings rewrites of leaflet methods
|
|
62
|
-
onAdd(this: this, map: L.Map): this;
|
|
63
|
-
addTo(this: this, map: L.Map): this;
|
|
64
|
-
onRemove(this: this, map: L.Map): this;
|
|
65
|
-
|
|
66
|
-
onContextLost(): void;
|
|
67
|
-
onContextRestored(): void;
|
|
68
|
-
onContextCreationError(e: WebGLContextEvent): void;
|
|
69
|
-
canvasHooks(canvas: L.CanvasElement | null | undefined, on: boolean): void;
|
|
70
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { NumValue } from '@windy/types.d';
|
|
2
|
-
|
|
3
|
-
export type RGBA = [number, number, number, number];
|
|
4
|
-
|
|
5
|
-
export type YUVA = [number, number, number, number];
|
|
6
|
-
|
|
7
|
-
export type ColorGradient = [NumValue, RGBA][];
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* 'rgb(200,0,150)'
|
|
11
|
-
*/
|
|
12
|
-
export type RGBString = string;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* 'rgba(200,0,150,1)'
|
|
16
|
-
*/
|
|
17
|
-
export type RGBAString = string;
|
|
18
|
-
|
|
19
|
-
export type ColorIdent =
|
|
20
|
-
| 'temp'
|
|
21
|
-
| 'wind'
|
|
22
|
-
| 'rh'
|
|
23
|
-
| 'pressure'
|
|
24
|
-
| 'cclAltitude'
|
|
25
|
-
| 'altitude'
|
|
26
|
-
| 'deg0'
|
|
27
|
-
| 'levels'
|
|
28
|
-
| 'rain'
|
|
29
|
-
| 'ptype'
|
|
30
|
-
| 'rainClouds'
|
|
31
|
-
| 'clouds'
|
|
32
|
-
| 'lclouds'
|
|
33
|
-
| 'hclouds'
|
|
34
|
-
| 'mclouds'
|
|
35
|
-
| 'cape'
|
|
36
|
-
| 'lightDensity'
|
|
37
|
-
| 'cbase'
|
|
38
|
-
| 'snow'
|
|
39
|
-
| 'rainAccu'
|
|
40
|
-
| 'waves'
|
|
41
|
-
| 'currents'
|
|
42
|
-
| 'visibility'
|
|
43
|
-
| 'gtco3'
|
|
44
|
-
| 'aod550'
|
|
45
|
-
| 'pm2p5'
|
|
46
|
-
| 'no2'
|
|
47
|
-
| 'tcso2'
|
|
48
|
-
| 'go3'
|
|
49
|
-
| 'cosc'
|
|
50
|
-
| 'dust'
|
|
51
|
-
| 'satellite'
|
|
52
|
-
| 'radar'
|
|
53
|
-
| 'radarPlus'
|
|
54
|
-
| 'fog'
|
|
55
|
-
| 'justGray'
|
|
56
|
-
| 'efiWind'
|
|
57
|
-
| 'efiTemp'
|
|
58
|
-
| 'efiRain'
|
|
59
|
-
| 'moistureAnom40'
|
|
60
|
-
| 'moistureAnom100'
|
|
61
|
-
| 'drought'
|
|
62
|
-
| 'soilMoisture'
|
|
63
|
-
| 'fwi'
|
|
64
|
-
| 'dfm10h'
|
|
65
|
-
| 'solarpower'
|
|
66
|
-
| 'uvindex'
|
|
67
|
-
| 'turbulence'
|
|
68
|
-
| 'icing'
|
|
69
|
-
| 'dewpoint'
|
|
70
|
-
| 'wetbulbtemp';
|
|
71
|
-
|
|
72
|
-
type PluginColorIdent =
|
|
73
|
-
| 'airQ'
|
|
74
|
-
| 'windDetail'
|
|
75
|
-
| 'wavesDetail'
|
|
76
|
-
| 'periodDetail'
|
|
77
|
-
| 'altitudeDetail'
|
|
78
|
-
| 'visibilityDetail'
|
|
79
|
-
| 'dewpointSpreadDetail'
|
|
80
|
-
| 'blitz'
|
|
81
|
-
| 'radiation';
|
|
82
|
-
|
|
83
|
-
// pressureIsolines color is dynamically created in @plugins/isolines
|
|
84
|
-
export type AnyColorIdent =
|
|
85
|
-
| ColorIdent
|
|
86
|
-
| PluginColorIdent
|
|
87
|
-
| 'pressureIsolines'
|
|
88
|
-
| 'temporary'
|
|
89
|
-
| 'direction';
|
|
90
|
-
|
|
91
|
-
export interface UserColor {
|
|
92
|
-
id: AnyColorIdent;
|
|
93
|
-
gradient: ColorGradient;
|
|
94
|
-
}
|