easyeda 0.0.309 → 0.0.310

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.
@@ -12345,7 +12345,7 @@ var getGeneratedComponentType = (betterEasy, pinCount) => {
12345
12345
  if (isSwitchCategoryComponent(betterEasy)) return "switch";
12346
12346
  if (isCapacitorComponent(betterEasy)) return "capacitor";
12347
12347
  if (isResistorComponent(betterEasy) && pinCount === 2) return "resistor";
12348
- if (isInductorComponent(betterEasy)) return "inductor";
12348
+ if (isInductorComponent(betterEasy) && pinCount === 2) return "inductor";
12349
12349
  if (isCrystalComponent(betterEasy)) return "crystal";
12350
12350
  if (isMicroUsbConnectorComponent(betterEasy)) return "connector";
12351
12351
  return "chip";
@@ -12422,8 +12422,9 @@ var convertBetterEasyToTsx = async ({
12422
12422
  const crystalFrequency = componentType === "crystal" ? betterEasy.dataStr.head.c_para.Value?.trim() : void 0;
12423
12423
  const crystalPinVariant = componentType !== "crystal" ? void 0 : sourcePorts.length === 4 ? "four_pin" : sourcePorts.length === 2 ? "two_pin" : void 0;
12424
12424
  const isMultiPinDiode = isDiodeCategoryComponent(betterEasy) && sourcePorts.length !== 2;
12425
+ const isMultiPinInductor = isInductorComponent(betterEasy) && sourcePorts.length !== 2;
12425
12426
  const isPassiveWithCustomSymbol = componentType === "capacitor" || componentType === "resistor";
12426
- const symbolTsx = isPassiveWithCustomSymbol || componentType === "chip" && !isMultiPinDiode && hasNonBoxSchematicSymbol(betterEasy) ? generateSymbolTsx(betterEasy, circuitJson, {
12427
+ const symbolTsx = isPassiveWithCustomSymbol || componentType === "chip" && !isMultiPinDiode && !isMultiPinInductor && hasNonBoxSchematicSymbol(betterEasy) ? generateSymbolTsx(betterEasy, circuitJson, {
12427
12428
  alignPortsToDrawing: isPassiveWithCustomSymbol
12428
12429
  }) : void 0;
12429
12430
  return generateTypescriptComponent({