easyeda 0.0.44 → 0.0.46

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.
@@ -1631,7 +1631,6 @@ var convertEasyEdaJsonToCircuitJson = (easyEdaJson, { useModelCdn, shouldRecente
1631
1631
  soupElements.push(handleSilkscreenArc(shape, index));
1632
1632
  }
1633
1633
  });
1634
- transformPCBElements(soupElements, scale(1, -1));
1635
1634
  const svgNode = easyEdaJson.packageDetail.dataStr.shape.find(
1636
1635
  (a) => Boolean(a.type === "SVGNODE" && a.svgData.attrs?.uuid)
1637
1636
  );
@@ -1659,8 +1658,9 @@ var convertEasyEdaJsonToCircuitJson = (easyEdaJson, { useModelCdn, shouldRecente
1659
1658
  );
1660
1659
  transformPCBElements(
1661
1660
  soupElements,
1662
- compose(translate(-bounds.center.x, bounds.center.y))
1661
+ compose(translate(-bounds.center.x, bounds.center.y), scale(1, -1))
1663
1662
  );
1663
+ pcb_component2.center = { x: 0, y: 0 };
1664
1664
  }
1665
1665
  return soupElements;
1666
1666
  };
@@ -2281,11 +2281,11 @@ var generateFootprintTsx = (circuitJson) => {
2281
2281
  for (const platedHole of platedHoles) {
2282
2282
  if (platedHole.shape === "oval") {
2283
2283
  elementStrings.push(
2284
- `<platedhole portHints={${JSON.stringify(platedHole.port_hints)}} pcbX="${mmStr(platedHole.x)}" pcbY="${mmStr(platedHole.y)}" diameter="${mmStr(platedHole.hole_width)}" height="${mmStr(platedHole.hole_height)}" shape="oval" />`
2284
+ `<platedhole portHints={${JSON.stringify(platedHole.port_hints)}} pcbX="${mmStr(platedHole.x)}" pcbY="${mmStr(platedHole.y)}" outerHeight="${mmStr(platedHole.outer_height)}" outerWidth="${mmStr(platedHole.outer_width)}" holeHeight="${mmStr(platedHole.hole_height)}" holeWidth="${mmStr(platedHole.hole_width)}" height="${mmStr(platedHole.hole_height)}" shape="oval" />`
2285
2285
  );
2286
2286
  } else if (platedHole.shape === "circle") {
2287
2287
  elementStrings.push(
2288
- `<platedhole portHints={${JSON.stringify(platedHole.port_hints)}} pcbX="${mmStr(platedHole.x)}" pcbY="${mmStr(platedHole.y)}" diameter="${mmStr(platedHole.hole_diameter)}" shape="circle" />`
2288
+ `<platedhole portHints={${JSON.stringify(platedHole.port_hints)}} pcbX="${mmStr(platedHole.x)}" pcbY="${mmStr(platedHole.y)}" outerDiameter="${mmStr(platedHole.outer_diameter)}" holeDiameter="${mmStr(platedHole.hole_diameter)}" shape="circle" />`
2289
2289
  );
2290
2290
  } else if (platedHole.shape === "pill") {
2291
2291
  console.warn("Unhandled pill hole in conversion (needs implementation)");
@@ -2519,4 +2519,4 @@ export {
2519
2519
  convertRawEasyToTsx,
2520
2520
  convertEasyEdaJsonToVariousFormats
2521
2521
  };
2522
- //# sourceMappingURL=chunk-NFQCYU34.js.map
2522
+ //# sourceMappingURL=chunk-GXJKMVCQ.js.map