Skip to content

Commit a143bd9

Browse files
committed
Fix pad offset rendering
Pad offset should not affect drill hole center
1 parent 8587d54 commit a143bd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

InteractiveHtmlBom/web/render.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ function drawPad(ctx, pad, color, outline, hole) {
264264
ctx.fill(path);
265265
}
266266
if (pad.type == "th" && hole) {
267+
if (pad.offset) {
268+
ctx.translate(-pad.offset[0], -pad.offset[1]);
269+
}
267270
ctx.fillStyle = "#CCCCCC";
268271
if (pad.drillshape == "oblong") {
269272
ctx.fill(getOblongPath(pad.drillsize));

0 commit comments

Comments
 (0)