(layer, x, y)
| 792 | } |
| 793 | |
| 794 | function bboxHitScan(layer, x, y) { |
| 795 | var result = []; |
| 796 | for (var i = 0; i < pcbdata.footprints.length; i++) { |
| 797 | var footprint = pcbdata.footprints[i]; |
| 798 | if (footprint.layer == layer) { |
| 799 | if (pointWithinFootprintBbox(x, y, footprint.bbox)) { |
| 800 | result.push(i); |
| 801 | } |
| 802 | } |
| 803 | } |
| 804 | return result; |
| 805 | } |
| 806 | |
| 807 | function handlePointerDown(e, layerdict) { |
| 808 | if (e.button != 0 && e.button != 1) { |
no test coverage detected