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/index.js CHANGED
@@ -6063,8 +6063,7 @@ var handleSilkscreenPath = (track, index) => {
6063
6063
  type: "pcb_silkscreen_path",
6064
6064
  pcb_silkscreen_path_id: `pcb_silkscreen_path_${index + 1}`,
6065
6065
  pcb_component_id: "pcb_component_1",
6066
- layer: "top",
6067
- // Assuming all silkscreen is on top layer
6066
+ layer: getSideFromLayer(track.layer),
6068
6067
  route: track.points.map((point2) => ({
6069
6068
  x: milx10(point2.x),
6070
6069
  y: milx10(point2.y)
@@ -6286,7 +6285,8 @@ var convertEasyEdaJsonToCircuitJson = (easyEdaJson, {
6286
6285
  pcb_plated_hole_id: platedHoleId,
6287
6286
  x: mil2mm(pad.center.x),
6288
6287
  y: mil2mm(pad.center.y),
6289
- layers: ["top"],
6288
+ // Through-hole pads are plated on both outer copper layers.
6289
+ layers: ["top", "bottom"],
6290
6290
  port_hints: pcbPortHints,
6291
6291
  pcb_component_id: "pcb_component_1",
6292
6292
  pcb_port_id: `pcb_port_${index + 1}`