@tscircuit/core 0.0.1408 → 0.0.1410
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 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -25353,7 +25353,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
25353
25353
|
var package_default = {
|
|
25354
25354
|
name: "@tscircuit/core",
|
|
25355
25355
|
type: "module",
|
|
25356
|
-
version: "0.0.
|
|
25356
|
+
version: "0.0.1409",
|
|
25357
25357
|
types: "dist/index.d.ts",
|
|
25358
25358
|
main: "dist/index.js",
|
|
25359
25359
|
module: "dist/index.js",
|
|
@@ -25401,7 +25401,7 @@ var package_default = {
|
|
|
25401
25401
|
"@tscircuit/matchpack": "^0.0.31",
|
|
25402
25402
|
"@tscircuit/math-utils": "^0.0.36",
|
|
25403
25403
|
"@tscircuit/miniflex": "^0.0.4",
|
|
25404
|
-
"@tscircuit/ngspice-spice-engine": "^0.0.
|
|
25404
|
+
"@tscircuit/ngspice-spice-engine": "^0.0.19",
|
|
25405
25405
|
"@tscircuit/props": "^0.0.567",
|
|
25406
25406
|
"@tscircuit/schematic-match-adapt": "^0.0.18",
|
|
25407
25407
|
"@tscircuit/schematic-trace-solver": "^0.0.91",
|
|
@@ -31143,18 +31143,35 @@ var PinHeader = class extends NormalComponent3 {
|
|
|
31143
31143
|
const pinCount = this._parsedProps.pinCount ?? 1;
|
|
31144
31144
|
const facingDirection = this._parsedProps.schFacingDirection ?? this._parsedProps.facingDirection ?? "right";
|
|
31145
31145
|
const schPinArrangement = this._parsedProps.schPinArrangement;
|
|
31146
|
+
const pins = Array.from({ length: pinCount }, (_, i) => `pin${i + 1}`);
|
|
31146
31147
|
if (facingDirection === "left") {
|
|
31147
31148
|
return {
|
|
31148
31149
|
leftSide: {
|
|
31149
31150
|
direction: schPinArrangement?.leftSide?.direction ?? "top-to-bottom",
|
|
31150
|
-
pins: schPinArrangement?.leftSide?.pins ??
|
|
31151
|
+
pins: schPinArrangement?.leftSide?.pins ?? pins
|
|
31152
|
+
}
|
|
31153
|
+
};
|
|
31154
|
+
}
|
|
31155
|
+
if (facingDirection === "up") {
|
|
31156
|
+
return {
|
|
31157
|
+
topSide: {
|
|
31158
|
+
direction: schPinArrangement?.topSide?.direction ?? "left-to-right",
|
|
31159
|
+
pins: schPinArrangement?.topSide?.pins ?? pins
|
|
31160
|
+
}
|
|
31161
|
+
};
|
|
31162
|
+
}
|
|
31163
|
+
if (facingDirection === "down") {
|
|
31164
|
+
return {
|
|
31165
|
+
bottomSide: {
|
|
31166
|
+
direction: schPinArrangement?.bottomSide?.direction ?? "left-to-right",
|
|
31167
|
+
pins: schPinArrangement?.bottomSide?.pins ?? pins
|
|
31151
31168
|
}
|
|
31152
31169
|
};
|
|
31153
31170
|
}
|
|
31154
31171
|
return {
|
|
31155
31172
|
rightSide: {
|
|
31156
31173
|
direction: schPinArrangement?.rightSide?.direction ?? "top-to-bottom",
|
|
31157
|
-
pins: schPinArrangement?.rightSide?.pins ??
|
|
31174
|
+
pins: schPinArrangement?.rightSide?.pins ?? pins
|
|
31158
31175
|
}
|
|
31159
31176
|
};
|
|
31160
31177
|
}
|
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.1410",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@tscircuit/matchpack": "^0.0.31",
|
|
50
50
|
"@tscircuit/math-utils": "^0.0.36",
|
|
51
51
|
"@tscircuit/miniflex": "^0.0.4",
|
|
52
|
-
"@tscircuit/ngspice-spice-engine": "^0.0.
|
|
52
|
+
"@tscircuit/ngspice-spice-engine": "^0.0.19",
|
|
53
53
|
"@tscircuit/props": "^0.0.567",
|
|
54
54
|
"@tscircuit/schematic-match-adapt": "^0.0.18",
|
|
55
55
|
"@tscircuit/schematic-trace-solver": "^0.0.91",
|