Cleaning up

This commit is contained in:
Philip Matsson
2024-09-25 11:23:40 +02:00
committed by Matthieu Baumann
parent 42ece4fba1
commit baa8f53349
2 changed files with 3 additions and 4 deletions

View File

@@ -579,7 +579,7 @@ export let View = (function () {
// deselect all the selected sources with Select panel
view.unselectObjects();
try {
const [lon, lat] = view.aladin.pix2world(xymouse.x, xymouse.y, 'icrs');
view.pointTo(lon, lat);
@@ -1473,11 +1473,11 @@ export let View = (function () {
}
View.prototype.selectObjects = function(selection) {
// unselect the previous selection
if (this.manualSelection) {
return;
}
// unselect the previous selection
this.unselectObjects();
if (Array.isArray(selection)) {

View File

@@ -469,7 +469,6 @@ export let Polyline = (function() {
for (let i = 0; i < this.raDecArray.length - 1; i++) {
let p1 = this.raDecArray[i];
let p2 = this.raDecArray[i + 1];
view.aladin.world2pix
let xy1 = view.aladin.world2pix(p1[0], p1[1]);
let xy2 = view.aladin.world2pix(p2[0], p2[1]);