astro-viewer 3.2.0 → 3.2.1
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/dist/astroviewer.cjs +8 -1
- package/dist/astroviewer.js +1 -1
- package/dist/astroviewer.min.js +1 -1
- package/lib-esm/AstroSphere.js +8 -1
- package/package.json +2 -1
package/lib-esm/AstroSphere.js
CHANGED
|
@@ -718,6 +718,13 @@ class AstroSphere {
|
|
|
718
718
|
if (centralradeg == null || centraldecdeg == null) {
|
|
719
719
|
return null;
|
|
720
720
|
}
|
|
721
|
+
let fovPolygon = [];
|
|
722
|
+
try {
|
|
723
|
+
fovPolygon = this.getFoVPolygon();
|
|
724
|
+
}
|
|
725
|
+
catch (error) {
|
|
726
|
+
console.warn("[AstroSphere] getCurrentStatus: FoV polygon is not available.", error);
|
|
727
|
+
}
|
|
721
728
|
// if (this._rotating && centraldecdeg && centralradeg) {
|
|
722
729
|
const detail = {
|
|
723
730
|
fovDeg: this.fov.minFoV,
|
|
@@ -732,7 +739,7 @@ class AstroSphere {
|
|
|
732
739
|
centralPoint: new Point({ raDeg: centralradeg, decDeg: centraldecdeg }, CoordsType.ASTRO),
|
|
733
740
|
mouseHoverPoint: this.mousePointCoords,
|
|
734
741
|
colorMap: this._selectedColorMap,
|
|
735
|
-
getFoVPolygon:
|
|
742
|
+
getFoVPolygon: fovPolygon,
|
|
736
743
|
};
|
|
737
744
|
return detail;
|
|
738
745
|
// }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro-viewer",
|
|
3
3
|
"description": "Astrobrowser 3d engine.",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"HiPS",
|
|
7
7
|
"HiPS cutout",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"dev:lib": "tsc -w -p tsconfig.build.json",
|
|
49
49
|
"prod": "npm run clean && tsc -p tsconfig.build.json && webpack --mode=production && npm run web",
|
|
50
50
|
"build": "npm run clean && tsc -p tsconfig.build.json && webpack --mode=production",
|
|
51
|
+
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
|
|
51
52
|
"web": "cp dist/* public/javascripts/; cp -R src/html/javascripts/ public/javascripts/; cp -R src/html/css/ public/css/; cp src/html/*.html public/",
|
|
52
53
|
"start-server": "npm run web; python3 -m http.server 8080 -d public",
|
|
53
54
|
"all": "npm run clean; npm run prod; npm run start-server",
|