easyeda 0.0.63 → 0.0.64
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.
|
@@ -2659,7 +2659,12 @@ var convertBetterEasyToTsx = async ({
|
|
|
2659
2659
|
const [cad_component2] = su_default(circuitJson).cad_component.list();
|
|
2660
2660
|
const sourcePorts = su_default(circuitJson).source_port.list();
|
|
2661
2661
|
const pinLabels = {};
|
|
2662
|
-
|
|
2662
|
+
const sortedPorts = sourcePorts.sort((a, b) => {
|
|
2663
|
+
const aNum = parseInt(a.name.replace("pin", ""));
|
|
2664
|
+
const bNum = parseInt(b.name.replace("pin", ""));
|
|
2665
|
+
return aNum - bNum;
|
|
2666
|
+
});
|
|
2667
|
+
for (const sourcePort of sortedPorts) {
|
|
2663
2668
|
pinLabels[sourcePort.name] = [
|
|
2664
2669
|
sourcePort.name,
|
|
2665
2670
|
...sourcePort.port_hints ?? []
|
|
@@ -2786,4 +2791,4 @@ export {
|
|
|
2786
2791
|
convertRawEasyToTsx,
|
|
2787
2792
|
convertEasyEdaJsonToVariousFormats
|
|
2788
2793
|
};
|
|
2789
|
-
//# sourceMappingURL=chunk-
|
|
2794
|
+
//# sourceMappingURL=chunk-O4FU4IHE.js.map
|