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/browser/index.js +10 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +11 -2
- 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(() => []);
|