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/index.js
CHANGED
|
@@ -5722,8 +5722,17 @@ var getPolarizedPinMetadata = (pinLabels) => {
|
|
|
5722
5722
|
};
|
|
5723
5723
|
|
|
5724
5724
|
// lib/utils/normalize-pin-labels.ts
|
|
5725
|
+
var normalizeActiveLowPinLabel = (label) => {
|
|
5726
|
+
if (!label.startsWith("#")) return label;
|
|
5727
|
+
const activeLowLabel = label.slice(1);
|
|
5728
|
+
if (activeLowLabel.length === 0) return label;
|
|
5729
|
+
return `N_${activeLowLabel}`;
|
|
5730
|
+
};
|
|
5725
5731
|
var normalizePinLabels = (inputPinLabels) => {
|
|
5726
|
-
const
|
|
5732
|
+
const normalizedInputPinLabels = inputPinLabels.map(
|
|
5733
|
+
(labels) => labels.map(normalizeActiveLowPinLabel)
|
|
5734
|
+
);
|
|
5735
|
+
const uniqueInputPinLabels = normalizedInputPinLabels.map((labels) => [
|
|
5727
5736
|
...new Set(labels)
|
|
5728
5737
|
]);
|
|
5729
5738
|
const result = uniqueInputPinLabels.map(() => []);
|
|
@@ -6062,8 +6071,7 @@ var handleSilkscreenArc = (arc, index) => {
|
|
|
6062
6071
|
type: "pcb_silkscreen_path",
|
|
6063
6072
|
pcb_silkscreen_path_id: `pcb_silkscreen_arc_${index + 1}`,
|
|
6064
6073
|
pcb_component_id: "pcb_component_1",
|
|
6065
|
-
layer:
|
|
6066
|
-
// Assuming all silkscreen is on top layer
|
|
6074
|
+
layer: getSideFromLayer(arc.layer),
|
|
6067
6075
|
route: arcPath.map((p) => ({
|
|
6068
6076
|
x: milx10(p.x),
|
|
6069
6077
|
y: milx10(p.y)
|