easyeda 0.0.21 → 0.0.22

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.
@@ -29590,7 +29590,9 @@ var convertToTypescriptComponent = ({
29590
29590
  const hole = (0, import_soup_util2.su)(soup).pcb_hole.list();
29591
29591
  const pinLabels = {};
29592
29592
  easyEdaJson.dataStr.shape.filter((shape) => shape.type === "PIN").forEach((pin) => {
29593
- pinLabels[pin.pinNumber.toString()] = pin.label;
29593
+ const isPinLabelNumeric = /^\d+$/.test(pin.label);
29594
+ const label = isPinLabelNumeric ? `pin${pin.label}` : pin.label;
29595
+ pinLabels[pin.pinNumber.toString()] = label;
29594
29596
  });
29595
29597
  const pins = easyEdaJson.dataStr.shape.filter((shape) => shape.type === "PIN");
29596
29598
  const leftPins = pins.filter((pin) => pin.rotation === 180);