easyeda 0.0.299 → 0.0.300

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(() => []);