-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathsettings.ts
1793 lines (1704 loc) · 52.1 KB
/
settings.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* eslint-disable max-lines */
/**
* // /////////////////////////////////////////////////////////////////////////////
*
* @Copyright (C) 2016-2024 Theodore Kruczek
* @Copyright (C) 2020-2024 Heather Kruczek
*
* KeepTrack is free software: you can redistribute it and/or modify it under the
* terms of the GNU Affero General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
*
* KeepTrack is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License along with
* KeepTrack. If not, see <http://www.gnu.org/licenses/>.
*
* /////////////////////////////////////////////////////////////////////////////
*/
import { KeepTrackApiEvents, SensorGeolocation, ToastMsgType } from '@app/interfaces';
import { keepTrackApi } from '@app/keepTrackApi';
import { SelectSatManager } from '@app/plugins/select-sat-manager/select-sat-manager';
import { ColorSchemeColorMap } from '@app/singletons/color-scheme-manager';
import { Degrees, Kilometers, Milliseconds } from 'ootk';
import { RADIUS_OF_EARTH } from '../lib/constants';
import { PersistenceManager, StorageKey } from '../singletons/persistence-manager';
import { ClassificationString } from '../static/classification';
import { isThisNode } from '../static/isThisNode';
import { darkClouds } from './presets/darkClouds';
import { SettingsPresets } from './presets/presets';
import { sateliot } from './presets/sateliot';
export class SettingsManager {
classificationStr = '' as ClassificationString;
// This controls which of the built-in plugins are loaded
plugins = {
debug: false,
satInfoboxCore: true,
aboutManager: false,
collisions: true,
trackingImpactPredict: true,
dops: false,
findSat: true,
launchCalendar: true,
newLaunch: true,
nextLaunch: true,
nightToggle: true,
photoManager: true,
screenRecorder: true,
satChanges: false,
stereoMap: true,
timeMachine: true,
initialOrbit: true,
missile: true,
breakup: true,
editSat: true,
constellations: true,
countries: true,
colorsMenu: true,
shortTermFences: true,
orbitReferences: true,
analysis: true,
plotAnalysis: true,
sensorFov: true,
sensorSurv: true,
satelliteFov: true,
satelliteView: true,
planetarium: true,
astronomy: true,
screenshot: true,
watchlist: true,
sensor: true,
settingsMenu: true,
datetime: true,
social: true,
topMenu: true,
classificationBar: true,
soundManager: true,
gamepad: true,
scenarioCreator: false,
debrisScreening: true,
videoDirector: true,
reports: true,
polarPlot: true,
timeline: true,
timelineAlt: true,
transponderChannelData: true,
calculator: true,
};
colors: ColorSchemeColorMap;
/** Ensures no html is injected into the page */
isPreventDefaultHtml = false;
/**
* Delay before advancing in Time Machine mode
*/
timeMachineDelay = <Milliseconds>5000;
/**
* Delay before advancing in Time Machine mode
*/
timeMachineDelayAtPresentDay = <Milliseconds>20000;
/**
* Initial resolution of the map width to increase performance
*/
mapWidth = 800;
/**
* Initial resolution of the map height to increase performance
*/
mapHeight = 600;
/**
* Flag for loading the last sensor used by user
*/
isLoadLastSensor = true;
/**
* Disable main user interface. Currently an all or nothing package.
*/
disableUI = false;
isMobileModeEnabled = false;
/**
* The last time the stereographic map was updated.
*
* TODO: This doesn't belong in the settings manager.
*/
lastMapUpdateTime = 0;
/**
* @deprecated
* Current color scheme for the application.
*/
currentColorScheme = null;
hiResWidth = null;
hiResHeight = null;
screenshotMode = null;
lastBoxUpdateTime = null;
/**
* The initial field of view settings for FPS, Planetarium, Astronomy, and Satellite View
*/
fieldOfView = 0.6;
db = null;
/**
* Catch Errors and report them via github
*/
isGlobalErrorTrapOn = true;
/**
* Determines whether or not the splash screen images should be displayed.
* The text and version number still appear.
*/
isShowSplashScreen = true;
isNotionalDebris = false;
isFreezePropRateOnDrag = false;
/**
* Disable the optional ASCII catalog (only applies to offline mode)
*
* /tle/TLE.txt
*/
isDisableAsciiCatalog = true;
settingsManager = null;
/**
* Indicates whether or not Launch Agency and Payload Owners/Manufacturers should be displayed on globe.
*
* TODO: This needs to be revamped. Most agencies are not linked to any satellites!
*/
isShowAgencies = false;
/**
* Determines whether or not to show Geo satellites in the application.
*/
isShowGeoSats = true;
/**
* Determines whether or not to show HEO satellites in the application.
*/
isShowHeoSats = true;
/**
* Determines whether or not to show MEO satellites in the application.
*/
isShowMeoSats = true;
/**
* Determines whether or not to show LEO satellites in the application.
*/
isShowLeoSats = true;
/**
* Determines whether or not to show Notional satellites in the application.
* Notional satellites are satellites that haven't launched yet.
*/
isShowNotionalSats = true;
/**
* Determines whether or not to show Starlink satellites in the application.
*/
isShowStarlinkSats = true;
/**
* Determines whether or not payloads should be displayed.
*/
isShowPayloads = true;
/**
* Determines whether or not rocket bodies are shown.
*/
isShowRocketBodies = true;
/**
* Determines whether or not debris is shown.
*/
isShowDebris = true;
/**
* @deprecated
* Maximum number of orbits to display when selecting "all" satellites
*/
maxOribtsDisplayedDesktopAll = 1000;
/**
* Transparency when a group of satellites is selected
*/
orbitGroupAlpha = 0.5;
loopTimeMachine = null;
isDisableSelectSat = null;
timeMachineLongToast = false;
lastInteractionTime = 0;
/**
* Disables the JSON Catalog (only applies to offline mode)
*
* /tle/extra.json
*/
isDisableExtraCatalog = true;
/**
* Number of lines to draw when making an orbit
*
* Larger numbers will make smoother orbits, but will be more resource intensive
*/
orbitSegments = 255;
/**
* The timestamp of the last gamepad movement.
*/
lastGamepadMovement = 0;
/**
* Indicates whether the gamepad controls are limited or not.
*/
isLimitedGamepadControls = false;
/**
* Toggles multiple presets for use with EPFL (École polytechnique fédérale de Lausanne).
*
* NOTE: This may be useful for other institutions as well or presentations.
*/
isEPFL = false;
isDisableUrlBar = null;
/**
* Add custom mesh list to force loading of specific meshes
*
* These can then be used in the mesh manager to force a specific mesh to be used
*/
meshListOverride = [];
isDebrisOnly = false;
isDisableCss = null;
/**
* Allow Right Click Menu
*/
isAllowRightClick = true;
/**
* Callback function that is called when the settings are loaded.
*/
// eslint-disable-next-line class-methods-use-this
onLoadCb = () => { };
/**
* Disables Toasts During Time Machine
*/
isDisableTimeMachineToasts = false;
isDrawConstellationBoundaries = null;
isDrawNasaConstellations = null;
/**
* Determines whether or not to draw the sun in the application.
*/
isDrawSun = true;
/**
* Draw Lines from Sensors to Satellites When in FOV
*/
isDrawInCoverageLines = true;
/**
* Determines whether or not to draw orbits.
*/
isDrawOrbits = true;
/**
* Display ECI coordinates on object hover
*/
isEciOnHover = false;
/**
* Determines whether the Milky Way should be drawn on the screen.
*/
isDrawMilkyWay = true;
/**
* Determines whether the background of the canvas should be gray or black.
*
* NOTE: This is only used when the Milky Way is not drawn.
*/
isGraySkybox = false;
/**
* Global flag for determining if the user is dragging the globe
*/
isDragging = false;
/**
* Show orbits in ECF vs ECI
*/
isOrbitCruncherInEcf = false;
lastSearch = null;
isGroupOverlayDisabled = null;
/**
* Distance from satellite when we switch to close camera mode
*/
nearZoomLevel = <Kilometers>300;
isPreventColorboxClose = false;
isDayNightToggle = false;
isUseHigherFOVonMobile = null;
lostSatStr = '';
maxOribtsDisplayed = 100000;
isOrbitOverlayVisible = false;
isShowSatNameNotOrbit = null;
/**
* Determines whether or not to show the next pass time when hovering over an object.
*
* This is proccess intensive and should be disabled on low end devices
*/
isShowNextPass = false;
dotsOnScreen = 0;
versionDate = '';
versionNumber = '';
/**
* Geolocation data of the user.
*/
geolocation: SensorGeolocation = {
lat: null,
lon: null,
alt: null,
minaz: null,
maxaz: null,
minel: null,
maxel: null,
minrange: null,
maxrange: null,
};
altMsgNum = null;
altLoadMsgs = false;
/**
* Adjust to change camera speed of auto pan around earth
*/
autoPanSpeed = 1;
/**
* Adjust to change camera speed of auto rotate around earth
*/
autoRotateSpeed = 0.000075;
/**
* Determines whether or not to use lighter blue texture for the Earth.
*/
blueImages = false;
/**
* The speed at which the camera decays.
*
* Reduce this give momentum to camera changes
*/
cameraDecayFactor = 5;
/**
* The speed at which the camera moves.
*
* TODO: This needs to be made read-only and a sepearate internal camera variable should be used to handle
* the logic when shift is pressed
*/
cameraMovementSpeed = 0.003;
/**
* The minimum speed at which the camera moves.
*
* TODO: This needs to be made read-only and a sepearate internal camera variable should be used to handle
* the logic when shift is pressed
*/
cameraMovementSpeedMin = 0.005;
/**
* The distance the a satellites fov cone is drawn away from the earth.
*
* This is used to prevent the cone from clipping into the earth.
*
* You can adjust this value to make the cone appear closer or further away from the earth.
*
* Negative values will cause the cone to clip into the earth, but that may be desired for some use cases.
*/
coneDistanceFromEarth = 15 as Kilometers;
/**
* Used for disabling the copyright text on screenshots and the map.
*/
copyrightOveride = false;
/**
* Global flag for determining if the cruncher's loading is complete
*/
cruncherReady = false;
/**
* The current legend to display.
*/
currentLegend = 'default';
/**
* The number of days before a TLE is considered lost.
*/
daysUntilObjectLost = 60;
/**
* The number of milliseconds between each satellite in demo mode.
*/
demoModeInterval = <Milliseconds>3000;
/**
* The maximum number of satellite labels to display on desktop devices.
*/
desktopMaxLabels = 20000;
/**
* The minimum width of the desktop view in pixels.
*/
desktopMinimumWidth = 1300;
/**
* Currently only disables panning.
*
* TODO: Disable all camera movement
*/
disableCameraControls = false;
/**
* Disable normal browser right click menu
*/
disableDefaultContextMenu = true;
/**
* Disable normal browser events from keyboard/mouse
*/
disableNormalEvents = false;
/**
* Disable Scrolling the Window Object
*/
disableWindowScroll = true;
/**
* Disable Touch Move
*
* NOTE: Caused drag errors on Desktop
*/
disableWindowTouchMove = true;
/**
* Disable Zoom Keyboard Keys
*/
disableZoomControls = true;
/**
* The number of latitude segments used to render the Earth object.
*/
earthNumLatSegs = 128;
/**
* The number of longitude segments used to render the Earth.
*/
earthNumLonSegs = 128;
/**
* Updates Orbit of selected satellite on every draw.
*
* Performance hit, but makes it clear what direction the satellite is going
*/
enableConstantSelectedSatRedraw = true;
/**
* Shows the oribt of the object when highlighted
*/
enableHoverOrbits = true;
/**
* Shows an overlay with object information
*/
enableHoverOverlay = true;
/**
* Indicates whether the fallback css is enabled. This only loads if isDisableCss is true.
*/
enableLimitedUI = true;
/**
* @deprecated
* The maximum value for the field of view setting.
*
* TODO: Implement this for FPS, Planetarium, Astronomy, and Satellite View
*/
fieldOfViewMax = 1.2;
/**
* @deprecated
* The minimum value for the field of view setting.
*
* * TODO: Implement this for FPS, Planetarium, Astronomy, and Satellite View
*/
fieldOfViewMin = 0.04;
/**
* Number of steps to fit TLEs in the Initial Orbit plugin
*/
fitTleSteps = 3; // Increasing this will kill performance
/**
* Speed at which the camera moves in the Z direction when in FPS mode.
*/
fpsForwardSpeed = 3;
/**
* Speed the camera pitches up and down when in FPS mode.
*/
fpsPitchRate = 0.02;
/**
* Speed at which the camera rotates when in FPS mode.
*/
fpsRotateRate = 0.02;
/**
* Speed at which the camera moves in the X direction when in FPS mode.
*/
fpsSideSpeed = 3;
/**
* Minimum fps or sun/moon are skipped
*/
fpsThrottle1 = 0;
/**
* Minimum fps or satellite velocities are ignored
*/
fpsThrottle2 = 10;
/**
* Speed at which the camera moves in the Y direction when in FPS mode.
*/
fpsVertSpeed = 3;
/**
* Speed at which the camera twists (yaws) when in FPS mode.
*/
fpsYawRate = 0.02;
/**
* Global flag for determining if geolocation is being used
*/
geolocationUsed = false;
/**
* Minimum elevation to for calculating DOPs in dop plugin
*/
gpsElevationMask = <Degrees>15;
/**
* Determines whether to use default high resolution texture for the Earth.
*/
hiresImages = false;
/**
* Determines whether to use default high resolution texture for the Earth minus clouds.
*/
hiresNoCloudsImages = false;
/**
* Color of the dot when hovering over an object.
*/
hoverColor = <[number, number, number, number]>[1.0, 1.0, 0.0, 1.0]; // Yellow
installDirectory = '';
dataSources = {
/**
* This is where the TLEs are loaded from
*
* It was previously: ${settingsManager.installDirectory}tle/TLE2.json`
*
* It can be loaded from a local file or a remote source
*/
tle: 'https://storage.keeptrack.space/data/tle.json',
tleDebris: 'https://app.keeptrack.space/tle/TLEdebris.json',
vimpel: 'https://storage.keeptrack.space/data/vimpel.json',
};
/**
* Determines whether or not to hide the propogation rate text on the GUI.
*/
isAlwaysHidePropRate = false;
/**
* Determines whether the canvas should automatically resize when the window is resized.
*/
isAutoResizeCanvas = true;
/**
* If true, hide the earth textures and make the globe black
*/
isBlackEarth = false;
/**
* Determines whether or not to load the specularity map for the Earth.
*/
isDrawSpecMap = true;
/**
* Determines whether or not to load the bump map for the Earth.
*/
isDrawBumpMap = true;
/**
* Determines whether the atmosphere should be drawn or not.
*/
isDrawAtmosphere = true;
/**
* Determines whether or not to draw the Aurora effect.
*/
isDrawAurora = true;
/**
* Determines whether or not to run the demo mode.
*/
isDemoModeOn = false;
/**
* Disables the loading of control site data
*/
isDisableControlSites = false;
/**
* Disables the loading of launch site data
*/
isDisableLaunchSites = false;
/**
* Disables the loading of sensor data
*/
isDisableSensors = false;
/**
* Determines whether the application should use a reduced-draw mode.
* If true, the application will use a less resource-intensive method of rendering.
* If false, the application will use the default rendering method.
*/
isDrawLess = false;
isEnableConsole = false;
/**
* Determines whether the last map that was loaded should be loaded again on the next session.
*/
isLoadLastMap = true;
/**
* Global flag for determining if propagation rate was just changed
*/
isPropRateChange = false;
/**
* Global flag for determining if the application is resizing
*/
isResizing = false;
/**
* Determines whether or not to show the satellite labels.
*/
isSatLabelModeOn = true;
isShowLogo = false;
/**
* Flag for using the debris catalog instead of the full catalog
*
* /tle/TLEdebris.json
*/
isUseDebrisCatalog = false;
/**
* Determines whether zooming stops auto rotation in the application.
*/
isZoomStopsRotation = true;
/**
* Changing the zoom with the mouse wheel will stop the camera from following the satellite.
*/
isZoomStopsSnappedOnSat = false;
/**
* List of the last search results
*/
lastSearchResults = [];
/**
* @deprecated
* Global flag for determining if the legend is open
*/
legendMenuOpen = false;
/**
* String to limit which satellites are loaded from the catalog
*/
limitSats = '';
/**
* Minimum elevation to draw a line scan
*/
lineScanMinEl = 5;
/**
* The speed at which the scan lines for radars move across the screen
*
* About 30 seconds to scan earth (arbitrary)
*
* (each draw will be +speed lat/lon)
*/
lineScanSpeedRadar = 0.25;
/**
* The speed at which the scan lines for radars move across the screen
*
* About 6 seconds to scan earth (no source, just a guess)
*
* (each draw will be +speed lat/lon)
*/
lineScanSpeedSat = 6;
lkVerify = 0;
lowPerf = false;
/**
* Determines whether to use default low resolution texture for the Earth.
*/
lowresImages = false;
/**
* Preallocate the maximum number of analyst satellites that can be manipulated
*
* NOTE: This mainly applies to breakup scenarios
*/
maxAnalystSats = 10000;
/**
* Preallocate the maximum number of field of view marker dots that can be displayed
*/
maxFieldOfViewMarkers = 1;
/**
* Preallocate the maximum number of labels that can be displayed
*
* Set mobileMaxLabels and desktopMaxLabels instead of this directly
*/
maxLabels = 0; // 20000;
/**
* Preallocate the maximum number of missiles that can be displayed
*
* NOTE: New attack scenarios are limited to this number
*/
maxMissiles = 500;
/**
* The maximum number of orbits to display on mobile devices.
*/
maxOrbitsDisplayedMobile = 1500;
/**
* The maximum number of orbits to be displayed on desktop.
*/
maxOribtsDisplayedDesktop = 100000;
/**
* The maximum zoom distance from the Earth's surface in kilometers.
*
* Used for zooming in and out in default and offset camera modes.
*/
maxZoomDistance = <Kilometers>120000;
/**
* Which mesh to use if meshOverride is set
*/
meshOverride = null;
/**
* The rotation of the mesh if meshOverride is set
*/
meshRotation = {
x: 0,
y: 0,
z: 0,
};
/**
* Minimum time between draw calls in milliseconds
*
* 20 FPS = 50ms
* 30 FPS = 33.33ms
* 60 FPS = 16.67ms
*/
minimumDrawDt = <Milliseconds>0.0;
/**
* The minimum number of characters to type before searching.
*/
minimumSearchCharacters = 2; // Searches after 3 characters typed
/**
* The minimum zoom distance from 0,0,0 in kilometers.
*
* Used for zooming in and out in default and offset camera modes.
*/
minZoomDistance = <Kilometers>(RADIUS_OF_EARTH + 50);
/**
* Maximum number of satellite labels to display on mobile devices
*/
mobileMaxLabels = 100;
/**
* Override the default models on satellite view
*/
modelsOnSatelliteViewOverride = false;
/**
* Name of satellite category for objects not in the official catalog.
*/
nameOfSpecialSats = 'Special Sats';
/**
* Determines whether or not to use NASA Blue Marble texture for the Earth.
*/
nasaImages = false;
/**
* The number of passes to consider when determining lookangles.
*/
nextNPassesCount = 5;
noMeshManager = false;
/**
* TODO: Reimplement stars
*/
isDisableStars = true;
offline = false;
/**
* The offset in the x direction for the offset camera mode.
*/
offsetCameraModeX = 15000;
/**
* The offset in the z direction for the offset camera mode.
*/
offsetCameraModeZ = -6000;
/**
* How much an orbit fades over time
*
* 0.0 = Not Visible
*
* 1.0 = No Fade
*/
orbitFadeFactor = 0.6;
/**
* Color of orbits when a group of satellites is selected.
*/
orbitGroupColor = <[number, number, number, number]>[1.0, 1.0, 0.0, 0.7];
/**
* Color of orbit when hovering over an object.
*/
orbitHoverColor = <[number, number, number, number]>[1.0, 1.0, 0.0, 0.9];
/**
* Color of orbit when in view.
*/
orbitInViewColor = <[number, number, number, number]>[1.0, 1.0, 1.0, 0.7]; // WHITE
/**
* Color of orbit when in Planetarium View.
*/
orbitPlanetariumColor = <[number, number, number, number]>[1.0, 1.0, 1.0, 0.2]; // Transparent White
/**
* Color of orbit when selected.
*/
orbitSelectColor = <[number, number, number, number]>[1.0, 0.0, 0.0, 0.9];
/**
* Color of secondary object orbit.
*/
orbitSelectColor2 = <[number, number, number, number]>[0.0, 0.4, 1.0, 0.9];
/**
* Determines whether or not to use political map texture for the Earth.
*/
politicalImages = false;
/**
* url for an external TLE source
*/
externalTLEs: string;
pTime = [];
/**
* Global flag for determining if a screenshot is queued
*/
queuedScreenshot = false;
retro = false;
/**
* Minimum time between new satellite labels in milliseconds
*/
minTimeBetweenSatLabels = <Milliseconds>100;
/**
* The settings for the satellite shader.
*/
satShader = {
/**
* The minimum zoom level at which large objects are displayed.
*/
largeObjectMinZoom: 0.37,
/**
* The maximum zoom level at which large objects are displayed.
*/
largeObjectMaxZoom: 0.58,
/**
* The minimum size of objects in the shader.
*/
minSize: 5.5,
/**
* The minimum size of objects in the shader when in planetarium mode.
*/
minSizePlanetarium: 20.0,
/**
* The maximum size of objects in the shader when in planetarium mode.
*/
maxSizePlanetarium: 20.0,
/**
* The maximum allowed size of objects in the shader.
* This value is dynamically changed based on zoom level.
*/
maxAllowedSize: 35.0,
/**
* Whether or not to use dynamic sizing for objects in the shader.
*/
isUseDynamicSizing: false,
/**
* The scalar value used for dynamic sizing of objects in the shader.
*/
dynamicSizeScalar: 1.0,
/**
* The size of stars and searched objects in the shader.
*/
starSize: '20.0',
/**
* The distance at which objects start to grow in kilometers.
* Must be a float as a string for the GPU to read.
* This makes stars bigger than satellites.
*/
distanceBeforeGrow: '14000.0',
/**
* The blur radius factor used for satellites.
*/
blurFactor1: '0.53',
/**
* The blur alpha factor used for satellites.
*/
blurFactor2: '0.5',
/**
* The blur radius factor used for stars.
*/
blurFactor3: '0.43',
/**
* The blur alpha factor used for stars.
*/
blurFactor4: '0.25',
/**
* The maximum size of objects in the shader.
*/
maxSize: 70.0,
};
/**
* The maximum number of satellites to display when searching.
*/
searchLimit = 600;
/**
* Color of the dot when selected.
*/
selectedColor = <[number, number, number, number]>[1.0, 0.0, 0.0, 1.0]; // Red
/**
* Determines whether the orbit should be shown through the Earth or not.
*/
showOrbitThroughEarth = false;
/**
* Determines whether small images should be used.
*
* Use these to default smallest resolution maps
* Really useful on small screens and for faster loading times
*/
smallImages = false;
/**
* Allows canvas will steal focus on load
*/
startWithFocus = false;
/**
* Automatically display all of the orbits
*/
startWithOrbitsDisplayed = false;
tleSource = '';
brownEarthImages = false;
/**
* How many draw calls to wait before updating orbit overlay if last draw time was greater than 50ms
*/
updateHoverDelayLimitBig = 5;
/**
* How many draw calls to wait before updating orbit overlay if last draw time was greater than 20ms
*/
updateHoverDelayLimitSmall = 3;
/**
* Determines whether to use vector map texture for the Earth.
*/
vectorImages = false;
/**
* Size of the dot vertex shader
*/
vertShadersSize = 12;
/**
* The desired video bitrate in bits per second for video recording.
*
* This value is set to 30,000,000 bits per second (or 10.0 Mbps) by default.
*/
videoBitsPerSecond = 30000000;
/**
* The maximum z-depth for the WebGL renderer.
*
* Increasing this causes z-fighting
* Decreasing this causes clipping of stars and satellites
*/
zFar = 450000.0;
/**
* The minimum z-depth for the WebGL renderer.
*/
zNear = 1.0;
/**
* The speed at which the zoom level changes when the user zooms in or out.
*/
zoomSpeed = 0.0025;
/**
* Draw Trailing Orbits
*/
isDrawTrailingOrbits = false;
/**
* Enables the old extended catalog including JSC Vimpel data
* @deprecated Use isEnableJscCatalog instead
*/
isEnableExtendedCatalog = false;
selectedColorFallback = <[number, number, number, number]>[0, 0, 0, 0];
/**
* Flag if the keyboard should be disabled
*/
isDisableKeyboard = false;
/**
* Flag for if the user is running inside an iframe
*/
isInIframe = false;
isAutoRotateL = true;
isAutoRotateR = false;
isAutoRotateU = false;
isAutoRotateD = false;
isAutoPanL = false;
isAutoPanR = false;
isAutoPanU = false;
isAutoPanD = false;
isAutoZoomIn = false;
isAutoZoomOut = false;
autoZoomSpeed = 0.00002;
maxNotionalDebris = 100000;
dotsPerColor: number;
/**
* Minimum distance from satellite when we switch to close camera mode
*/
minDistanceFromSatellite = <Kilometers>15;
/**
* Disable toast messages
*/
isDisableToasts = false;
/*
* Enables the new JSC Vimpel catalog
*/
isEnableJscCatalog = true;
/**
* Size of the dot for picking purposes
*/