easyeda 0.0.21 → 0.0.23
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/cli/main.cjs +18 -4
- package/dist/cli/main.cjs.map +1 -1
- package/dist/lib/index.cjs +3 -1
- package/dist/lib/index.cjs.map +1 -1
- package/package.json +1 -1
package/dist/lib/index.cjs
CHANGED
|
@@ -29590,7 +29590,9 @@ var convertToTypescriptComponent = ({
|
|
|
29590
29590
|
const hole = (0, import_soup_util2.su)(soup).pcb_hole.list();
|
|
29591
29591
|
const pinLabels = {};
|
|
29592
29592
|
easyEdaJson.dataStr.shape.filter((shape) => shape.type === "PIN").forEach((pin) => {
|
|
29593
|
-
|
|
29593
|
+
const isPinLabelNumeric = /^\d+$/.test(pin.label);
|
|
29594
|
+
const label = isPinLabelNumeric ? `pin${pin.label}` : pin.label;
|
|
29595
|
+
pinLabels[pin.pinNumber.toString()] = label;
|
|
29594
29596
|
});
|
|
29595
29597
|
const pins = easyEdaJson.dataStr.shape.filter((shape) => shape.type === "PIN");
|
|
29596
29598
|
const leftPins = pins.filter((pin) => pin.rotation === 180);
|