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.
@@ -9585,8 +9585,17 @@ var getPolarizedPinMetadata = (pinLabels) => {
9585
9585
  };
9586
9586
 
9587
9587
  // lib/utils/normalize-pin-labels.ts
9588
+ var normalizeActiveLowPinLabel = (label) => {
9589
+ if (!label.startsWith("#")) return label;
9590
+ const activeLowLabel = label.slice(1);
9591
+ if (activeLowLabel.length === 0) return label;
9592
+ return `N_${activeLowLabel}`;
9593
+ };
9588
9594
  var normalizePinLabels = (inputPinLabels) => {
9589
- const uniqueInputPinLabels = inputPinLabels.map((labels) => [
9595
+ const normalizedInputPinLabels = inputPinLabels.map(
9596
+ (labels) => labels.map(normalizeActiveLowPinLabel)
9597
+ );
9598
+ const uniqueInputPinLabels = normalizedInputPinLabels.map((labels) => [
9590
9599
  ...new Set(labels)
9591
9600
  ]);
9592
9601
  const result = uniqueInputPinLabels.map(() => []);
@@ -9925,8 +9934,7 @@ var handleSilkscreenArc = (arc, index) => {
9925
9934
  type: "pcb_silkscreen_path",
9926
9935
  pcb_silkscreen_path_id: `pcb_silkscreen_arc_${index + 1}`,
9927
9936
  pcb_component_id: "pcb_component_1",
9928
- layer: "top",
9929
- // Assuming all silkscreen is on top layer
9937
+ layer: getSideFromLayer(arc.layer),
9930
9938
  route: arcPath.map((p) => ({
9931
9939
  x: milx10(p.x),
9932
9940
  y: milx10(p.y)