easyeda 0.0.258 → 0.0.259
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 +11 -8
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +11 -8
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +12 -9
- package/dist/main.cjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -9251,15 +9251,12 @@ var convertEasyEdaJsonToCircuitJson = (easyEdaJson, {
|
|
|
9251
9251
|
const innerWidth = largestOuterDimensionName === "width" ? largestInnerDimension : smallestInnerDimension;
|
|
9252
9252
|
const innerHeight = largestOuterDimensionName === "height" ? largestInnerDimension : smallestInnerDimension;
|
|
9253
9253
|
additionalPlatedHoleProps = {
|
|
9254
|
-
shape: "
|
|
9255
|
-
hole_shape: "pill",
|
|
9256
|
-
pad_shape: "rect",
|
|
9254
|
+
shape: "pill",
|
|
9257
9255
|
hole_width: innerWidth,
|
|
9258
9256
|
hole_height: innerHeight,
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
hole_offset_y: 0
|
|
9257
|
+
outer_width: mil2mm(pad.width),
|
|
9258
|
+
outer_height: mil2mm(pad.height),
|
|
9259
|
+
ccw_rotation: pad.rotation || 0
|
|
9263
9260
|
};
|
|
9264
9261
|
} else if (pad.shape === "RECT") {
|
|
9265
9262
|
const padWidth = mil2mm(pad.width);
|
|
@@ -10563,7 +10560,13 @@ var generateFootprintTsx = (circuitJson) => {
|
|
|
10563
10560
|
}
|
|
10564
10561
|
}
|
|
10565
10562
|
for (const platedHole of platedHoles) {
|
|
10566
|
-
if (platedHole.shape === "
|
|
10563
|
+
if (platedHole.shape === "pill" || platedHole.shape === "oval") {
|
|
10564
|
+
const cccwRotationDegree = platedHole.ccw_rotation || 0;
|
|
10565
|
+
const rotation2 = cccwRotationDegree ? ` pcbRotation="${cccwRotationDegree}deg"` : "";
|
|
10566
|
+
elementStrings.push(
|
|
10567
|
+
`<platedhole portHints={${JSON.stringify(platedHole.port_hints)}} pcbX="${mmStr(platedHole.x)}" pcbY="${mmStr(platedHole.y)}" holeWidth="${mmStr(platedHole.hole_width)}" holeHeight="${mmStr(platedHole.hole_height)}" outerWidth="${mmStr(platedHole.outer_width)}" outerHeight="${mmStr(platedHole.outer_height)}"${rotation2} shape="${platedHole.shape}" />`
|
|
10568
|
+
);
|
|
10569
|
+
} else if (platedHole.shape === "pill_hole_with_rect_pad") {
|
|
10567
10570
|
elementStrings.push(
|
|
10568
10571
|
`<platedhole portHints={${JSON.stringify(platedHole.port_hints)}} pcbX="${mmStr(platedHole.x)}" pcbY="${mmStr(platedHole.y)}" holeWidth="${mmStr(platedHole.hole_width)}" holeHeight="${mmStr(platedHole.hole_height)}" outerWidth="${mmStr(platedHole.rect_pad_width)}" outerHeight="${mmStr(platedHole.rect_pad_height)}" shape="pill" />`
|
|
10569
10572
|
);
|