easyeda 0.0.379 → 0.0.380
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +4 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +5 -3
- package/dist/main.cjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17445,9 +17445,11 @@ var generateFootprintTsx = (circuitJson, options = {}) => {
|
|
|
17445
17445
|
elementStrings.push(
|
|
17446
17446
|
`<hole pcbX="${mmStr(hole.x)}" pcbY="${mmStr(hole.y)}" diameter="${mmStr(hole.hole_diameter)}" />`
|
|
17447
17447
|
);
|
|
17448
|
-
} else if (hole.hole_shape === "oval") {
|
|
17448
|
+
} else if (hole.hole_shape === "oval" || hole.hole_shape === "rect" || hole.hole_shape === "pill" || hole.hole_shape === "rotated_pill") {
|
|
17449
|
+
const shape = hole.hole_shape === "rotated_pill" ? "pill" : hole.hole_shape;
|
|
17450
|
+
const rotationAttr = hole.hole_shape === "rotated_pill" ? getRotationAttr(hole.ccw_rotation) : "";
|
|
17449
17451
|
elementStrings.push(
|
|
17450
|
-
`<hole pcbX="${mmStr(hole.x)}" pcbY="${mmStr(hole.y)}" width="${mmStr(hole.hole_width)}" height="${mmStr(hole.hole_height)}" shape="
|
|
17452
|
+
`<hole pcbX="${mmStr(hole.x)}" pcbY="${mmStr(hole.y)}" width="${mmStr(hole.hole_width)}" height="${mmStr(hole.hole_height)}" shape="${shape}"${rotationAttr} />`
|
|
17451
17453
|
);
|
|
17452
17454
|
}
|
|
17453
17455
|
}
|