oceanofthelost / InteractivePCB

interactive PCB viewer
68 stars 15 forks source link

Multi BOM Entry Select #73

Closed oceanofthelost closed 2 years ago

oceanofthelost commented 2 years ago

With issue #53 resolved, it is now possible to implement multi BOM entry selection. The meaning here is that a user could click multiple BOM rows and the associated parts will be highlighted.

Behavior should be a regular click will clear all entries and highlight only the newly selected entry. To select multiple ctl+ click would be used.

oceanofthelost commented 2 years ago

Commit d8722d3b2e190ec5f12e279e7d5ffbdfa74e0062 started initial work on.

Work continued with highlighting pads in commit 0d92c09d885eb021ca1f83bce7d8a1285ee39e63.

Correctly implemented bounding boxes in commit 30b9385f86f2bc871e06cd3e9cf799d1c3932f0d.

Note that behavior of CTL+Click for tables differs between browsers. In Firefox CTL+Click table rows will have a light blue shadow applied to the outline. Adding -moz-user-select: none; to highlighted row CSS mostly gets rid of this behavior.