mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-12 15:49:18 -08:00
Cleaning up
This commit is contained in:
committed by
Matthieu Baumann
parent
42ece4fba1
commit
baa8f53349
@@ -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)) {
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user