easyeda 0.0.63 → 0.0.65
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.
|
@@ -2233,7 +2233,7 @@ var PinShapeOutputSchema = z62.object({
|
|
|
2233
2233
|
var parsePin = (pinString) => {
|
|
2234
2234
|
const parts = pinString.split("~");
|
|
2235
2235
|
const [, visibility, , pinNumber, x, y, rotation2, id] = parts;
|
|
2236
|
-
const nameMatch = pinString.match(/~(\w+)~start~/);
|
|
2236
|
+
const nameMatch = pinString.match(/~(\w+)~(start|end)~/);
|
|
2237
2237
|
const label = nameMatch ? nameMatch[1] : "";
|
|
2238
2238
|
const colorMatch = pinString.match(/#[0-9A-F]{6}/);
|
|
2239
2239
|
const labelColor = colorMatch ? colorMatch[0] : "";
|
|
@@ -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-TEFFSXN2.js.map
|