Skip to content

Commit 4708632

Browse files
committed
fixed rotated_rect not supported bug
1 parent 362c39e commit 4708632

3 files changed

Lines changed: 5709 additions & 0 deletions

File tree

src/gerber/convert-soup-to-gerber-commands/defineAperturesForLayer.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@ export const getApertureConfigFromPcbSolderPaste = (
147147
y_size: elm.height,
148148
}
149149
}
150+
if (elm.shape === "rotated_rect") {
151+
// Rotation is handled by the LR command, not the aperture definition
152+
return {
153+
standard_template_code: "R",
154+
x_size: elm.width,
155+
y_size: elm.height,
156+
}
157+
}
150158
if (elm.shape === "circle") {
151159
return {
152160
standard_template_code: "C",

0 commit comments

Comments
 (0)