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.
- package/dist/browser/index.js +3 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +4 -3
- package/dist/main.cjs.map +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -3528,7 +3528,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
|
|
|
3528
3528
|
var package_default = {
|
|
3529
3529
|
name: "easyeda",
|
|
3530
3530
|
type: "module",
|
|
3531
|
-
version: "0.0.
|
|
3531
|
+
version: "0.0.309",
|
|
3532
3532
|
files: [
|
|
3533
3533
|
"dist"
|
|
3534
3534
|
],
|
|
@@ -12053,7 +12053,7 @@ var getGeneratedComponentType = (betterEasy, pinCount) => {
|
|
|
12053
12053
|
if (isSwitchCategoryComponent(betterEasy)) return "switch";
|
|
12054
12054
|
if (isCapacitorComponent(betterEasy)) return "capacitor";
|
|
12055
12055
|
if (isResistorComponent(betterEasy) && pinCount === 2) return "resistor";
|
|
12056
|
-
if (isInductorComponent(betterEasy)) return "inductor";
|
|
12056
|
+
if (isInductorComponent(betterEasy) && pinCount === 2) return "inductor";
|
|
12057
12057
|
if (isCrystalComponent(betterEasy)) return "crystal";
|
|
12058
12058
|
if (isMicroUsbConnectorComponent(betterEasy)) return "connector";
|
|
12059
12059
|
return "chip";
|
|
@@ -12130,8 +12130,9 @@ var convertBetterEasyToTsx = async ({
|
|
|
12130
12130
|
const crystalFrequency = componentType === "crystal" ? betterEasy.dataStr.head.c_para.Value?.trim() : void 0;
|
|
12131
12131
|
const crystalPinVariant = componentType !== "crystal" ? void 0 : sourcePorts.length === 4 ? "four_pin" : sourcePorts.length === 2 ? "two_pin" : void 0;
|
|
12132
12132
|
const isMultiPinDiode = isDiodeCategoryComponent(betterEasy) && sourcePorts.length !== 2;
|
|
12133
|
+
const isMultiPinInductor = isInductorComponent(betterEasy) && sourcePorts.length !== 2;
|
|
12133
12134
|
const isPassiveWithCustomSymbol = componentType === "capacitor" || componentType === "resistor";
|
|
12134
|
-
const symbolTsx = isPassiveWithCustomSymbol || componentType === "chip" && !isMultiPinDiode && hasNonBoxSchematicSymbol(betterEasy) ? generateSymbolTsx(betterEasy, circuitJson, {
|
|
12135
|
+
const symbolTsx = isPassiveWithCustomSymbol || componentType === "chip" && !isMultiPinDiode && !isMultiPinInductor && hasNonBoxSchematicSymbol(betterEasy) ? generateSymbolTsx(betterEasy, circuitJson, {
|
|
12135
12136
|
alignPortsToDrawing: isPassiveWithCustomSymbol
|
|
12136
12137
|
}) : void 0;
|
|
12137
12138
|
return generateTypescriptComponent({
|