easyeda 0.0.378 → 0.0.379
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.d.ts +6 -3
- package/dist/browser/index.js +14 -7
- package/dist/browser/index.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +15 -8
- package/dist/main.cjs.map +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -1078,7 +1078,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
|
|
|
1078
1078
|
var package_default = {
|
|
1079
1079
|
name: "easyeda",
|
|
1080
1080
|
type: "module",
|
|
1081
|
-
version: "0.0.
|
|
1081
|
+
version: "0.0.378",
|
|
1082
1082
|
files: [
|
|
1083
1083
|
"dist"
|
|
1084
1084
|
],
|
|
@@ -18535,6 +18535,7 @@ var inferPinAttributes = (pinLabels) => {
|
|
|
18535
18535
|
var generateTypescriptComponent = ({
|
|
18536
18536
|
pinLabels,
|
|
18537
18537
|
pinAttributes,
|
|
18538
|
+
internallyConnectedPins,
|
|
18538
18539
|
componentName,
|
|
18539
18540
|
objUrl,
|
|
18540
18541
|
stepUrl,
|
|
@@ -18603,6 +18604,8 @@ ${pinAttributesString}
|
|
|
18603
18604
|
|
|
18604
18605
|
` : "";
|
|
18605
18606
|
const pinAttributesProp = pinAttributesString ? ` pinAttributes={pinAttributes}
|
|
18607
|
+
` : "";
|
|
18608
|
+
const internallyConnectedPinsProp = internallyConnectedPins !== void 0 ? ` internallyConnectedPins={${JSON.stringify(internallyConnectedPins)}}
|
|
18606
18609
|
` : "";
|
|
18607
18610
|
const polarizedPinLabelsString = Object.entries(polarizedPinLabels ?? {}).map(([pin, labels]) => ` ${pin}: ${JSON.stringify(labels)}`).join(",\n");
|
|
18608
18611
|
const polarizedPinLabelsBlock = polarizedPinLabels ? `const pinLabels = {
|
|
@@ -18690,7 +18693,7 @@ ${pinAttributesBlock}export const ${componentName} = (props: PushButtonProps<typ
|
|
|
18690
18693
|
pinLabels={pinLabels}
|
|
18691
18694
|
${symbolProp} supplierPartNumbers={${JSON.stringify(supplierPartNumbers, null, " ")}}
|
|
18692
18695
|
manufacturerPartNumber=${manufacturerPartNumberTsx}
|
|
18693
|
-
${pinAttributesProp} footprint={${footprintTsx}}
|
|
18696
|
+
${pinAttributesProp}${internallyConnectedPinsProp} footprint={${footprintTsx}}
|
|
18694
18697
|
${objUrl || stepUrl ? `cadModel={{
|
|
18695
18698
|
${cadModelLines}
|
|
18696
18699
|
}}` : ""}
|
|
@@ -18717,7 +18720,7 @@ ${pinAttributesBlock}export const ${componentName} = (props: SwitchProps) => {
|
|
|
18717
18720
|
pinLabels={pinLabels}
|
|
18718
18721
|
${symbolProp} supplierPartNumbers={${JSON.stringify(supplierPartNumbers, null, " ")}}
|
|
18719
18722
|
manufacturerPartNumber=${manufacturerPartNumberTsx}
|
|
18720
|
-
${pinAttributesProp} footprint={${footprintTsx}}
|
|
18723
|
+
${pinAttributesProp}${internallyConnectedPinsProp} footprint={${footprintTsx}}
|
|
18721
18724
|
${objUrl || stepUrl ? `cadModel={{
|
|
18722
18725
|
${cadModelLines}
|
|
18723
18726
|
}}` : ""}
|
|
@@ -18845,7 +18848,7 @@ ${pinAttributesBlock}export const ${componentName} = (props: ConnectorProps) =>
|
|
|
18845
18848
|
pinLabels={pinLabels}
|
|
18846
18849
|
supplierPartNumbers={${JSON.stringify(supplierPartNumbers, null, " ")}}
|
|
18847
18850
|
manufacturerPartNumber=${manufacturerPartNumberTsx}
|
|
18848
|
-
${pinAttributesProp} footprint={${footprintTsx}}
|
|
18851
|
+
${pinAttributesProp}${internallyConnectedPinsProp} footprint={${footprintTsx}}
|
|
18849
18852
|
${objUrl || stepUrl ? `cadModel={{
|
|
18850
18853
|
${cadModelLines}
|
|
18851
18854
|
}}` : ""}
|
|
@@ -18865,7 +18868,7 @@ ${pinLabelsString}
|
|
|
18865
18868
|
${pinAttributesBlock}export const ${componentName} = (props: ChipProps<typeof pinLabels>) => {
|
|
18866
18869
|
return (
|
|
18867
18870
|
<chip
|
|
18868
|
-
${useSymbolPortsOnly ? "" : " pinLabels={pinLabels}\n"}${pinAttributesProp}${symbolProp}${schPinArrangementProp} supplierPartNumbers={${JSON.stringify(supplierPartNumbers, null, " ")}}
|
|
18871
|
+
${useSymbolPortsOnly ? "" : " pinLabels={pinLabels}\n"}${pinAttributesProp}${internallyConnectedPinsProp}${symbolProp}${schPinArrangementProp} supplierPartNumbers={${JSON.stringify(supplierPartNumbers, null, " ")}}
|
|
18869
18872
|
manufacturerPartNumber=${manufacturerPartNumberTsx}
|
|
18870
18873
|
footprint={${footprintTsx}}
|
|
18871
18874
|
${objUrl || stepUrl ? `cadModel={{
|
|
@@ -19102,18 +19105,21 @@ var getVisibleSchematicPinArrangement = (betterEasy) => {
|
|
|
19102
19105
|
};
|
|
19103
19106
|
var convertRawEasyToTsx = async ({
|
|
19104
19107
|
rawEasy,
|
|
19105
|
-
pinAttributes
|
|
19108
|
+
pinAttributes,
|
|
19109
|
+
internallyConnectedPins
|
|
19106
19110
|
}) => {
|
|
19107
19111
|
const betterEasy = EasyEdaJsonSchema.parse(rawEasy);
|
|
19108
19112
|
const result = await convertBetterEasyToTsx({
|
|
19109
19113
|
betterEasy,
|
|
19110
|
-
pinAttributes
|
|
19114
|
+
pinAttributes,
|
|
19115
|
+
internallyConnectedPins
|
|
19111
19116
|
});
|
|
19112
19117
|
return result;
|
|
19113
19118
|
};
|
|
19114
19119
|
var convertBetterEasyToTsx = async ({
|
|
19115
19120
|
betterEasy,
|
|
19116
|
-
pinAttributes
|
|
19121
|
+
pinAttributes,
|
|
19122
|
+
internallyConnectedPins
|
|
19117
19123
|
}) => {
|
|
19118
19124
|
const cadPlacement = await getEasyEdaCadModelPlacement(betterEasy);
|
|
19119
19125
|
const { circuitJson, resolvedPinAttributes } = convertEasyEdaJsonToCircuitJsonWithPinAttributes(betterEasy, {
|
|
@@ -19196,6 +19202,7 @@ var convertBetterEasyToTsx = async ({
|
|
|
19196
19202
|
manufacturerPartNumber,
|
|
19197
19203
|
pinLabels,
|
|
19198
19204
|
pinAttributes: resolvedPinAttributes,
|
|
19205
|
+
internallyConnectedPins,
|
|
19199
19206
|
objUrl: modelObjUrl,
|
|
19200
19207
|
stepUrl: modelStepUrl,
|
|
19201
19208
|
circuitJson,
|