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/browser/index.js
CHANGED
|
@@ -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
|
|
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(() => []);
|