Skip to content

Commit f59fb87

Browse files
committed
Updated GRS, asteroids, and comets. Updated timezones to 2019c. Made Orbit View rotation persistent, and fixed spacing of rotation values. Added social media meta data. Updated PrimeNG UI.
1 parent 8172c7b commit f59fb87

12 files changed

Lines changed: 441 additions & 300 deletions

package-lock.json

Lines changed: 354 additions & 256 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svc-ng",
3-
"version": "1.8.4",
3+
"version": "1.9.0",
44
"license": "MIT AND GPL-3.0-or-later",
55
"author": "Kerry Shetline <kerry@shetline.com>",
66
"scripts": {
@@ -14,52 +14,52 @@
1414
},
1515
"private": true,
1616
"dependencies": {
17-
"@angular/animations": "^8.2.2",
18-
"@angular/cdk": "^8.1.3",
19-
"@angular/common": "^8.2.2",
20-
"@angular/compiler": "^8.2.2",
21-
"@angular/core": "^8.2.2",
22-
"@angular/flex-layout": "^8.0.0-beta.26",
23-
"@angular/forms": "^8.2.2",
24-
"@angular/platform-browser": "^8.2.2",
25-
"@angular/platform-browser-dynamic": "^8.2.2",
26-
"@angular/router": "^8.2.2",
27-
"@fortawesome/fontawesome-free": "^5.10.1",
17+
"@angular/animations": "^8.2.12",
18+
"@angular/cdk": "^8.2.3",
19+
"@angular/common": "^8.2.12",
20+
"@angular/compiler": "^8.2.12",
21+
"@angular/core": "^8.2.12",
22+
"@angular/flex-layout": "^8.0.0-beta.27",
23+
"@angular/forms": "^8.2.12",
24+
"@angular/platform-browser": "^8.2.12",
25+
"@angular/platform-browser-dynamic": "^8.2.12",
26+
"@angular/router": "^8.2.12",
27+
"@fortawesome/fontawesome-free": "^5.11.2",
2828
"array-buffer-reader": "^1.0.3",
29-
"core-js": "^2.6.9",
29+
"core-js": "^2.6.10",
3030
"detect-resize": "^0.1.5",
31-
"ks-astronomy": "^1.0.5",
32-
"ks-date-time-zone": "^1.6.5",
31+
"ks-astronomy": "^1.0.6",
32+
"ks-date-time-zone": "^1.6.6",
3333
"ks-math": "^1.1.6",
3434
"ks-util": "^1.6.0",
3535
"lodash": "^4.17.15",
3636
"ng-busy": "^8.0.0",
3737
"primeicons": "^2.0.0",
38-
"primeng": "^8.0.2",
39-
"rxjs": "^6.5.2",
38+
"primeng": "^8.1.1",
39+
"rxjs": "^6.5.3",
4040
"zone.js": "~0.9.1"
4141
},
4242
"devDependencies": {
4343
"@angular-devkit/build-angular": "^0.800.6",
44-
"@angular/cli": "^8.2.2",
45-
"@angular/compiler-cli": "^8.2.2",
46-
"@angular/language-service": "^8.2.2",
47-
"@types/googlemaps": "^3.37.4",
48-
"@types/jasmine": "^3.4.0",
49-
"@types/jasminewd2": "^2.0.6",
50-
"@types/lodash": "^4.14.137",
44+
"@angular/cli": "^8.3.14",
45+
"@angular/compiler-cli": "^8.2.12",
46+
"@angular/language-service": "^8.2.12",
47+
"@types/googlemaps": "^3.38.0",
48+
"@types/jasmine": "^3.4.4",
49+
"@types/jasminewd2": "^2.0.8",
50+
"@types/lodash": "^4.14.144",
5151
"@types/node": "^6.14.7",
52-
"codelyzer": "^5.0.1",
52+
"codelyzer": "^5.2.0",
5353
"jasmine-core": "~3.4.0",
5454
"jasmine-spec-reporter": "~4.2.1",
55-
"karma": "^4.2.0",
55+
"karma": "^4.4.1",
5656
"karma-chrome-launcher": "~2.2.0",
5757
"karma-coverage-istanbul-reporter": "^2.1.0",
5858
"karma-jasmine": "^2.0.1",
5959
"karma-jasmine-html-reporter": "^1.4.2",
6060
"protractor": "^6.0.0",
61-
"ts-node": "^8.3.0",
62-
"tslint": "^5.18.0",
61+
"ts-node": "^8.4.1",
62+
"tslint": "^5.20.0",
6363
"typescript": "~3.4.5"
6464
}
6565
}

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="about-dialog">
44
<img src="/assets/resources/svc_lunar_eclipse.png" alt="lunar eclipse" width="64" height="64">
55
<h2>Sky View Café NP</h2>
6-
Version 1.8.4<br><br>
6+
Version 1.9.0<br><br>
77
Copyright © 2016-2019 Kerry Shetline.
88
</div>
99
</p-dialog>

src/app/svc/svc-orbit-view/svc-orbit-view.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div class="orbitControls">Select an orientation...
22
<button pButton type="button" icon="fas fa-chevron-left"
33
(touchstart)="tapChangeOrientation($event, 1, 0)" (click)="changeOrientation(1, 0)"></button>&nbsp;
4-
<span [hidden]="rotation_xz < 0">&#x2008;</span>{{rotation_xz | number: '3.1-1'}}&deg;
4+
<span class="spacer" [style.display]="rotation_xz < 0 ? 'none' : 'inline'">-</span>{{rotation_xz | number: '3.1-1'}}&deg;&#x2008;&nbsp;
55
<button pButton type="button" icon="fas fa-chevron-right"
6-
(touchstart)="tapChangeOrientation($event, -1, 0)" (click)="changeOrientation(-1, 0)"></button>&nbsp;&nbsp;
6+
(touchstart)="tapChangeOrientation($event, -1, 0)" (click)="changeOrientation(-1, 0)"></button>&nbsp;&#x2008;&nbsp;,&nbsp;&nbsp;
77
<button pButton type="button" icon="fas fa-chevron-down"
88
(touchstart)="tapChangeOrientation($event, 0, -1)" (click)="changeOrientation(0, -1)"></button>&nbsp;
9-
<span [hidden]="rotation_yz < 0">&#x2008;</span>{{rotation_yz | number: '3.1-1'}}&deg;
9+
<span class="spacer" [style.display]="rotation_yz < 0 ? 'none' : 'inline'">-</span>{{rotation_yz | number: '3.1-1'}}&deg;&#x2008;&nbsp;
1010
<button pButton type="button" icon="fas fa-chevron-up"
1111
(touchstart)="tapChangeOrientation($event, 0, 1)" (click)="changeOrientation(0, 1)"></button>
1212
...or drag view below.&nbsp;

src/app/svc/svc-orbit-view/svc-orbit-view.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ canvas {
4848
margin-top: 4px;
4949
margin-bottom: 2px;
5050
}
51+
52+
.spacer {
53+
color: transparent;
54+
}

src/app/svc/svc-orbit-view/svc-orbit-view.component.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core';
2424
import { EARTH, MARS, MOON, NEPTUNE, NMode, PLUTO, REFRACTION, SATURN, SolarSystem, SUN } from 'ks-astronomy';
2525
import { abs, cos_deg, floor, log10, max, min, mod, mod2, Point, Point3D, pow, round, sin_deg, SphericalPosition3D, } from 'ks-math';
2626
import { colorFromRGB, parseColor, replaceAlpha, RGBA } from 'ks-util';
27-
import { sortBy } from 'lodash';
27+
import { debounce, sortBy } from 'lodash';
2828
import { AppService, CurrentTab, UserSetting } from '../../app.service';
2929
import { ZBuffer } from '../../util/ks-z-buffer';
3030
import {
@@ -44,6 +44,8 @@ export const PROPERTY_SHOW_NAMES = 'show_names';
4444
export const PROPERTY_ZOOM = 'zoom';
4545
export const PROPERTY_ANAGLYPH_3D = 'anaglyph_3d';
4646
export const PROPERTY_ANAGLYPH_RC = 'anaglyph_rc';
47+
export const PROPERTY_ROTATION_XZ = 'rotation_xz';
48+
export const PROPERTY_ROTATION_YZ = 'rotation_yz';
4749

4850
const scales = [
4951
// Scales in AU needed to display orbits out to a particular planet
@@ -191,6 +193,10 @@ export class SvcOrbitViewComponent extends GenericPlanetaryView implements After
191193
this.zoom = <number> setting.value;
192194
this.zoomLastSet = performance.now();
193195
}
196+
else if (setting.property === PROPERTY_ROTATION_XZ)
197+
this.rotation_xz = <number> setting.value;
198+
else if (setting.property === PROPERTY_ROTATION_YZ)
199+
this.rotation_yz = <number> setting.value;
194200
else if (setting.property === PROPERTY_ANAGLYPH_3D)
195201
this.anaglyph3d = <boolean> setting.value;
196202
else if (setting.property === PROPERTY_ANAGLYPH_RC)
@@ -591,6 +597,7 @@ export class SvcOrbitViewComponent extends GenericPlanetaryView implements After
591597
if (this.rotation_yz === -180.0)
592598
this.rotation_yz = 180.0;
593599

600+
this.debouncedRotationUpdate();
594601
this.draw();
595602
}
596603
}
@@ -654,6 +661,7 @@ export class SvcOrbitViewComponent extends GenericPlanetaryView implements After
654661
resetOrientation(): void {
655662
this.rotation_xz = 0.0;
656663
this.rotation_yz = 0.0;
664+
this.debouncedRotationUpdate();
657665
this.draw();
658666
}
659667

@@ -673,9 +681,15 @@ export class SvcOrbitViewComponent extends GenericPlanetaryView implements After
673681
if (this.rotation_yz === -180)
674682
this.rotation_yz = 180;
675683

684+
this.debouncedRotationUpdate();
676685
this.draw();
677686
}
678687

688+
protected debouncedRotationUpdate = debounce(() => {
689+
this.appService.updateUserSetting({view: VIEW_ORBITS, property: PROPERTY_ROTATION_XZ, value: this.rotation_xz, source: this});
690+
this.appService.updateUserSetting({view: VIEW_ORBITS, property: PROPERTY_ROTATION_YZ, value: this.rotation_yz, source: this});
691+
}, 500);
692+
679693
protected static translate(mode: DrawingMode, pt: Point3D, ctr: Point3D, viewingDistance: number,
680694
cos_xz: number, sin_xz: number, cos_yz: number, sin_yz: number): Point3D {
681695
const x = pt.x - ctr.x;

src/assets/about.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,16 @@
6060
<h2 class="header-sans"><a name="history">What's New / Version History</a></h2>
6161
<div style="padding-left: 1em; text-indent: -1em">
6262

63-
<p><b>1.8.4, 2019-07-11:</b> Fix incorrect display of Local Mean Time in Time panel.</p>
63+
<p><b>1.9.0 2019-10-24:</b> Updated GRS, asteroids, and comets. Updated timezones to 2019c. Made Orbit View rotation persistent.</p>
64+
65+
<p><b>1.8.4, 2019-07-11:</b> Fixed incorrect display of Local Mean Time in Time panel.</p>
6466

6567
<p><b>1.8.3, 2019-07-10:</b> Updated optional iOS native date/time input method.</p>
6668

6769
<p><b>1.8.2, 2019-07-10:</b> Minor change to accommodate geographic search ratings higher than 9.</p>
6870

69-
<p><b>1.8.0, 1.8.1, 2019-07-07:</b> Add option (off by default) to use native iOS or Android touch interface for date/time
70-
input. Update timezone database to 2019b.</p>
71+
<p><b>1.8.0, 1.8.1, 2019-07-07:</b> Added option (off by default) to use native iOS or Android touch interface for date/time
72+
input. Updated timezone database to 2019b.</p>
7173

7274
<p><b>1.7.3, 2019-06-16:</b> Minor Google Maps updates.</p>
7375

@@ -77,7 +79,7 @@ <h2 class="header-sans"><a name="history">What's New / Version History</a></h2>
7779
<p><b>1.7.1, 2019-06-12:</b> Fixed broken support for Edge web browser. Fixed touch interface access to clock,
7880
latitude, and longitude.</p>
7981

80-
<p><b>1.7.0, 2019-06-09:</b> Update to use Angular 8, and to use ES6 (ES2015) for up-to-date web browsers. Internet
82+
<p><b>1.7.0, 2019-06-09:</b> Updated to use Angular 8, and to use ES6 (ES2015) for up-to-date web browsers. Internet
8183
Explorer and other older browsers are no longer supported.</p>
8284

8385
<p><b>1.6.0, 2019-06-08:</b> Various behind-the-scenes updates.</p>
10.8 KB
Loading

src/assets/resources/asteroids.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/assets/resources/comets.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)