easyeda 0.0.21 → 0.0.22
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 +4 -2
- 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/cli/main.cjs
CHANGED
|
@@ -29176,7 +29176,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
|
|
|
29176
29176
|
var package_default = {
|
|
29177
29177
|
name: "easyeda",
|
|
29178
29178
|
type: "module",
|
|
29179
|
-
version: "0.0.
|
|
29179
|
+
version: "0.0.20",
|
|
29180
29180
|
files: ["dist"],
|
|
29181
29181
|
repository: {
|
|
29182
29182
|
type: "git",
|
|
@@ -29629,7 +29629,9 @@ var convertToTypescriptComponent = ({
|
|
|
29629
29629
|
const hole = (0, import_soup_util2.su)(soup).pcb_hole.list();
|
|
29630
29630
|
const pinLabels = {};
|
|
29631
29631
|
easyEdaJson.dataStr.shape.filter((shape) => shape.type === "PIN").forEach((pin) => {
|
|
29632
|
-
|
|
29632
|
+
const isPinLabelNumeric = /^\d+$/.test(pin.label);
|
|
29633
|
+
const label = isPinLabelNumeric ? `pin${pin.label}` : pin.label;
|
|
29634
|
+
pinLabels[pin.pinNumber.toString()] = label;
|
|
29633
29635
|
});
|
|
29634
29636
|
const pins = easyEdaJson.dataStr.shape.filter((shape) => shape.type === "PIN");
|
|
29635
29637
|
const leftPins = pins.filter((pin) => pin.rotation === 180);
|