easyeda 0.0.308 → 0.0.309
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 +3 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +4 -4
- package/dist/main.cjs.map +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -3528,7 +3528,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
|
|
|
3528
3528
|
var package_default = {
|
|
3529
3529
|
name: "easyeda",
|
|
3530
3530
|
type: "module",
|
|
3531
|
-
version: "0.0.
|
|
3531
|
+
version: "0.0.308",
|
|
3532
3532
|
files: [
|
|
3533
3533
|
"dist"
|
|
3534
3534
|
],
|
|
@@ -9644,8 +9644,7 @@ var handleSilkscreenPath = (track, index) => {
|
|
|
9644
9644
|
type: "pcb_silkscreen_path",
|
|
9645
9645
|
pcb_silkscreen_path_id: `pcb_silkscreen_path_${index + 1}`,
|
|
9646
9646
|
pcb_component_id: "pcb_component_1",
|
|
9647
|
-
layer:
|
|
9648
|
-
// Assuming all silkscreen is on top layer
|
|
9647
|
+
layer: getSideFromLayer(track.layer),
|
|
9649
9648
|
route: track.points.map((point2) => ({
|
|
9650
9649
|
x: milx10(point2.x),
|
|
9651
9650
|
y: milx10(point2.y)
|
|
@@ -9867,7 +9866,8 @@ var convertEasyEdaJsonToCircuitJson = (easyEdaJson, {
|
|
|
9867
9866
|
pcb_plated_hole_id: platedHoleId,
|
|
9868
9867
|
x: mil2mm(pad.center.x),
|
|
9869
9868
|
y: mil2mm(pad.center.y),
|
|
9870
|
-
layers
|
|
9869
|
+
// Through-hole pads are plated on both outer copper layers.
|
|
9870
|
+
layers: ["top", "bottom"],
|
|
9871
9871
|
port_hints: pcbPortHints,
|
|
9872
9872
|
pcb_component_id: "pcb_component_1",
|
|
9873
9873
|
pcb_port_id: `pcb_port_${index + 1}`
|