@tscircuit/core 0.0.666 → 0.0.668
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 +21 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12960,14 +12960,25 @@ var PinHeader = class extends NormalComponent {
|
|
|
12960
12960
|
initPorts() {
|
|
12961
12961
|
const pinCount = this._parsedProps.pinCount ?? (Array.isArray(this._parsedProps.pinLabels) ? this._parsedProps.pinLabels.length : this._parsedProps.pinLabels ? Object.keys(this._parsedProps.pinLabels).length : 1);
|
|
12962
12962
|
for (let i = 1; i <= pinCount; i++) {
|
|
12963
|
-
const
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12963
|
+
const rawLabel = Array.isArray(this._parsedProps.pinLabels) ? this._parsedProps.pinLabels[i - 1] : this._parsedProps.pinLabels?.[`pin${i}`];
|
|
12964
|
+
if (rawLabel) {
|
|
12965
|
+
const primaryLabel = Array.isArray(rawLabel) ? rawLabel[0] : rawLabel;
|
|
12966
|
+
const otherLabels = Array.isArray(rawLabel) ? rawLabel.slice(1) : [];
|
|
12967
|
+
this.add(
|
|
12968
|
+
new Port({
|
|
12969
|
+
pinNumber: i,
|
|
12970
|
+
name: primaryLabel,
|
|
12971
|
+
aliases: [`pin${i}`, ...otherLabels]
|
|
12972
|
+
})
|
|
12973
|
+
);
|
|
12974
|
+
} else {
|
|
12975
|
+
this.add(
|
|
12976
|
+
new Port({
|
|
12977
|
+
pinNumber: i,
|
|
12978
|
+
name: `pin${i}`
|
|
12979
|
+
})
|
|
12980
|
+
);
|
|
12981
|
+
}
|
|
12971
12982
|
}
|
|
12972
12983
|
}
|
|
12973
12984
|
_getSchematicPortArrangement() {
|
|
@@ -13848,7 +13859,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
13848
13859
|
var package_default = {
|
|
13849
13860
|
name: "@tscircuit/core",
|
|
13850
13861
|
type: "module",
|
|
13851
|
-
version: "0.0.
|
|
13862
|
+
version: "0.0.667",
|
|
13852
13863
|
types: "dist/index.d.ts",
|
|
13853
13864
|
main: "dist/index.js",
|
|
13854
13865
|
module: "dist/index.js",
|
|
@@ -13913,7 +13924,7 @@ var package_default = {
|
|
|
13913
13924
|
howfat: "^0.3.8",
|
|
13914
13925
|
"live-server": "^1.2.2",
|
|
13915
13926
|
"looks-same": "^9.0.1",
|
|
13916
|
-
minicssgrid: "^0.0.
|
|
13927
|
+
minicssgrid: "^0.0.9",
|
|
13917
13928
|
"pkg-pr-new": "^0.0.37",
|
|
13918
13929
|
react: "^19.1.0",
|
|
13919
13930
|
"react-dom": "^19.1.0",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.668",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"howfat": "^0.3.8",
|
|
67
67
|
"live-server": "^1.2.2",
|
|
68
68
|
"looks-same": "^9.0.1",
|
|
69
|
-
"minicssgrid": "^0.0.
|
|
69
|
+
"minicssgrid": "^0.0.9",
|
|
70
70
|
"pkg-pr-new": "^0.0.37",
|
|
71
71
|
"react": "^19.1.0",
|
|
72
72
|
"react-dom": "^19.1.0",
|