mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-20 14:32:35 -08:00
Fix selection of footprints not associated with catalog sources
Targets #274 * fix: handleSelect now call selectObjects with not only the list of catalog sources but also with the footprints * fix: View.closestFootprints: if no lineWidth was given to a footprint then it could happen that this method set it to 1px, erasing its previous undefined value * Circle and Ellipse now behaves like PolyLine and Vector, if no linewidth is given, the one from its GraphicOverlay is taken.
This commit is contained in:
@@ -648,6 +648,11 @@ export let View = (function () {
|
||||
if (typeof footprintClickedFunction === 'function') {
|
||||
footprintClickedFunction(o, xy);
|
||||
}
|
||||
// If this footprint has a catalog then it will be selected from its source
|
||||
// so we will not add it
|
||||
if (!cat) {
|
||||
footprints.push(o);
|
||||
}
|
||||
}
|
||||
|
||||
// If this shape has a catalog then it will be selected from its source
|
||||
|
||||
Reference in New Issue
Block a user