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.
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 uniqueInputPinLabels = inputPinLabels.map((labels) => [
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(() => []);