Skip to content

Commit

Permalink
Merge pull request #12 from tscircuit/add-pcb-keepout
Browse files Browse the repository at this point in the history
Keepout update
  • Loading branch information
imrishabh18 authored Sep 6, 2024
2 parents ac9e543 + 66c0b2b commit c3198c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
8 changes: 1 addition & 7 deletions lib/transform-soup-elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,7 @@ export const transformPCBElement = (elm: AnySoupElement, matrix: Matrix) => {
elm.x = x
elm.y = y
} else if (elm.type === "pcb_keepout") {
if(elm.shape === "rect") {
const { x, y } = applyToPoint(matrix, { x: elm.x, y: elm.y })
elm.x = x
elm.y = y
} else if (elm.shape === "circle") {
elm.center = applyToPoint(matrix, elm.center)
}
elm.center = applyToPoint(matrix, elm.center)
}
else if (
elm.type === "pcb_silkscreen_text" ||
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c3198c4

Please sign in to comment.