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:
Matthieu Baumann
2025-04-01 14:31:57 +02:00
parent bde5a37b51
commit 4a8d3bfa65

View File

@@ -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