easyeda 0.0.359 → 0.0.360

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.
@@ -11175,11 +11175,13 @@ var convertEasyEdaJsonToCircuitJson = (easyEdaJson, {
11175
11175
  );
11176
11176
  const pins = easyEdaJson.dataStr.shape.filter((shape) => shape.type === "PIN");
11177
11177
  const pinLabelSets = pads.map((pad) => {
11178
- const labels = [];
11179
- if (pad.number) labels.push(...getEasyEdaPinAliases(pad.number.toString()));
11178
+ const padAliases = pad.number ? getEasyEdaPinAliases(pad.number.toString()) : [];
11180
11179
  const pin = pins.find((p) => p.pinNumber === pad.number);
11181
- if (pin) labels.push(...getEasyEdaPinAliases(pin.label));
11182
- return labels;
11180
+ const schematicAliases = pin ? getEasyEdaPinAliases(pin.label) : [];
11181
+ const hasNamedSchematicAlias = schematicAliases.some(
11182
+ (alias) => !/^\d+$/.test(alias)
11183
+ );
11184
+ return hasNamedSchematicAlias ? [...schematicAliases, ...padAliases] : [...padAliases, ...schematicAliases];
11183
11185
  });
11184
11186
  const padNumberKeys = pads.map((pad, index) => {
11185
11187
  const padNumber = String(pad.number ?? "").trim();