Skip to content

Commit

Permalink
Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatsson committed Sep 25, 2024
1 parent fac6c04 commit ea8af8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/js/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,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);
Expand Down Expand Up @@ -1455,11 +1455,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)) {
Expand Down
1 change: 0 additions & 1 deletion src/js/shapes/Polyline.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,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]);
Expand Down

0 comments on commit ea8af8a

Please sign in to comment.