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/browser/index.js
CHANGED
|
@@ -21050,9 +21050,11 @@ var generateFootprintTsx = (circuitJson, options = {}) => {
|
|
|
21050
21050
|
elementStrings.push(
|
|
21051
21051
|
`<hole pcbX="${mmStr(hole.x)}" pcbY="${mmStr(hole.y)}" diameter="${mmStr(hole.hole_diameter)}" />`
|
|
21052
21052
|
);
|
|
21053
|
-
} else if (hole.hole_shape === "oval") {
|
|
21053
|
+
} else if (hole.hole_shape === "oval" || hole.hole_shape === "rect" || hole.hole_shape === "pill" || hole.hole_shape === "rotated_pill") {
|
|
21054
|
+
const shape = hole.hole_shape === "rotated_pill" ? "pill" : hole.hole_shape;
|
|
21055
|
+
const rotationAttr = hole.hole_shape === "rotated_pill" ? getRotationAttr(hole.ccw_rotation) : "";
|
|
21054
21056
|
elementStrings.push(
|
|
21055
|
-
`<hole pcbX="${mmStr(hole.x)}" pcbY="${mmStr(hole.y)}" width="${mmStr(hole.hole_width)}" height="${mmStr(hole.hole_height)}" shape="
|
|
21057
|
+
`<hole pcbX="${mmStr(hole.x)}" pcbY="${mmStr(hole.y)}" width="${mmStr(hole.hole_width)}" height="${mmStr(hole.hole_height)}" shape="${shape}"${rotationAttr} />`
|
|
21056
21058
|
);
|
|
21057
21059
|
}
|
|
21058
21060
|
}
|