easyeda 0.0.377 → 0.0.378
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 +0 -10
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +0 -10
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +1 -11
- package/dist/main.cjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -19154,15 +19154,6 @@ var handleHole = (hole, index) => {
|
|
|
19154
19154
|
pcb_hole_id: `pcb_hole_${index + 1}`
|
|
19155
19155
|
});
|
|
19156
19156
|
};
|
|
19157
|
-
var handleHoleCutout = (hole, index) => {
|
|
19158
|
-
return pcb_cutout.parse({
|
|
19159
|
-
type: "pcb_cutout",
|
|
19160
|
-
pcb_cutout_id: `pcb_cutout_from_hole_${index + 1}`,
|
|
19161
|
-
shape: "circle",
|
|
19162
|
-
center: { x: milx10(hole.center.x), y: milx10(hole.center.y) },
|
|
19163
|
-
radius: milx10(hole.radius)
|
|
19164
|
-
});
|
|
19165
|
-
};
|
|
19166
19157
|
var handleVia = (via, index) => {
|
|
19167
19158
|
const holeDiameter = via.holeRadius * 2;
|
|
19168
19159
|
return pcb_via.parse({
|
|
@@ -19377,7 +19368,6 @@ var convertEasyEdaJsonToCircuitJsonWithPinAttributes = (easyEdaJson, {
|
|
|
19377
19368
|
(shape) => shape.type === "HOLE"
|
|
19378
19369
|
).forEach((h, index) => {
|
|
19379
19370
|
circuitElements.push(handleHole(h, index));
|
|
19380
|
-
circuitElements.push(handleHoleCutout(h, index));
|
|
19381
19371
|
});
|
|
19382
19372
|
easyEdaJson.packageDetail.dataStr.shape.filter((shape) => shape.type === "VIA").forEach((v, index) => {
|
|
19383
19373
|
circuitElements.push(handleVia(v, index));
|