easyeda 0.0.299 → 0.0.301
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.js +11 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +12 -4
- package/dist/main.cjs.map +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -3528,7 +3528,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
|
|
|
3528
3528
|
var package_default = {
|
|
3529
3529
|
name: "easyeda",
|
|
3530
3530
|
type: "module",
|
|
3531
|
-
version: "0.0.
|
|
3531
|
+
version: "0.0.300",
|
|
3532
3532
|
files: [
|
|
3533
3533
|
"dist"
|
|
3534
3534
|
],
|
|
@@ -9303,8 +9303,17 @@ var getPolarizedPinMetadata = (pinLabels) => {
|
|
|
9303
9303
|
};
|
|
9304
9304
|
|
|
9305
9305
|
// lib/utils/normalize-pin-labels.ts
|
|
9306
|
+
var normalizeActiveLowPinLabel = (label) => {
|
|
9307
|
+
if (!label.startsWith("#")) return label;
|
|
9308
|
+
const activeLowLabel = label.slice(1);
|
|
9309
|
+
if (activeLowLabel.length === 0) return label;
|
|
9310
|
+
return `N_${activeLowLabel}`;
|
|
9311
|
+
};
|
|
9306
9312
|
var normalizePinLabels = (inputPinLabels) => {
|
|
9307
|
-
const
|
|
9313
|
+
const normalizedInputPinLabels = inputPinLabels.map(
|
|
9314
|
+
(labels) => labels.map(normalizeActiveLowPinLabel)
|
|
9315
|
+
);
|
|
9316
|
+
const uniqueInputPinLabels = normalizedInputPinLabels.map((labels) => [
|
|
9308
9317
|
...new Set(labels)
|
|
9309
9318
|
]);
|
|
9310
9319
|
const result = uniqueInputPinLabels.map(() => []);
|
|
@@ -9643,8 +9652,7 @@ var handleSilkscreenArc = (arc, index) => {
|
|
|
9643
9652
|
type: "pcb_silkscreen_path",
|
|
9644
9653
|
pcb_silkscreen_path_id: `pcb_silkscreen_arc_${index + 1}`,
|
|
9645
9654
|
pcb_component_id: "pcb_component_1",
|
|
9646
|
-
layer:
|
|
9647
|
-
// Assuming all silkscreen is on top layer
|
|
9655
|
+
layer: getSideFromLayer(arc.layer),
|
|
9648
9656
|
route: arcPath.map((p) => ({
|
|
9649
9657
|
x: milx10(p.x),
|
|
9650
9658
|
y: milx10(p.y)
|