Skip to content

Commit d02d0ab

Browse files
committed
Reset stroke width after footprint drawings
Fixes #349
1 parent c7691d1 commit d02d0ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

InteractiveHtmlBom/web/render.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ function drawFootprint(ctx, layer, scalefactor, footprint, colors, highlight, ou
329329
ctx.fillRect(0, 0, ...footprint.bbox.size);
330330
ctx.globalAlpha = 1;
331331
ctx.strokeStyle = colors.pad;
332+
ctx.lineWidth = 3 / scalefactor;
332333
ctx.strokeRect(0, 0, ...footprint.bbox.size);
333334
ctx.restore();
334335
}
@@ -339,6 +340,7 @@ function drawFootprint(ctx, layer, scalefactor, footprint, colors, highlight, ou
339340
drawDrawing(ctx, scalefactor, drawing.drawing, colors.pad);
340341
}
341342
}
343+
ctx.lineWidth = 3 / scalefactor;
342344
// draw pads
343345
if (settings.renderPads) {
344346
for (var pad of footprint.pads) {

0 commit comments

Comments
 (0)