@tscircuit/core 0.0.448 → 0.0.449
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 +7 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2349,6 +2349,7 @@ var SilkscreenText = class extends PrimitiveComponent2 {
|
|
|
2349
2349
|
var createPinrowSilkscreenText = ({
|
|
2350
2350
|
elm,
|
|
2351
2351
|
pinLabels,
|
|
2352
|
+
layer,
|
|
2352
2353
|
readableRotation,
|
|
2353
2354
|
anchorAlignment
|
|
2354
2355
|
}) => {
|
|
@@ -2356,13 +2357,14 @@ var createPinrowSilkscreenText = ({
|
|
|
2356
2357
|
let label = pinNum;
|
|
2357
2358
|
if (Array.isArray(pinLabels)) {
|
|
2358
2359
|
const index = parseInt(pinNum.replace(/[^\d]/g, ""), 10) - 1;
|
|
2359
|
-
label = pinLabels[index] ?? pinNum;
|
|
2360
|
+
label = String(pinLabels[index] ?? pinNum);
|
|
2360
2361
|
} else if (typeof pinLabels === "object") {
|
|
2361
|
-
label = pinLabels[pinNum]
|
|
2362
|
+
label = String(pinLabels[pinNum] ?? pinNum);
|
|
2362
2363
|
}
|
|
2363
2364
|
return new SilkscreenText({
|
|
2364
2365
|
anchorAlignment: anchorAlignment || "center",
|
|
2365
2366
|
text: label ?? pinNum,
|
|
2367
|
+
layer: layer || "top",
|
|
2366
2368
|
fontSize: elm.font_size + 0.2,
|
|
2367
2369
|
pcbX: isNaN(elm.anchor_position.x) ? 0 : elm.anchor_position.x,
|
|
2368
2370
|
pcbY: elm.anchor_position.y,
|
|
@@ -2479,6 +2481,7 @@ var createComponentsFromCircuitJson = ({
|
|
|
2479
2481
|
createPinrowSilkscreenText({
|
|
2480
2482
|
elm,
|
|
2481
2483
|
pinLabels,
|
|
2484
|
+
layer: elm.layer,
|
|
2482
2485
|
readableRotation: ccwRotation,
|
|
2483
2486
|
anchorAlignment: elm.anchor_alignment
|
|
2484
2487
|
})
|
|
@@ -9316,7 +9319,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
9316
9319
|
var package_default = {
|
|
9317
9320
|
name: "@tscircuit/core",
|
|
9318
9321
|
type: "module",
|
|
9319
|
-
version: "0.0.
|
|
9322
|
+
version: "0.0.448",
|
|
9320
9323
|
types: "dist/index.d.ts",
|
|
9321
9324
|
main: "dist/index.js",
|
|
9322
9325
|
module: "dist/index.js",
|
|
@@ -9342,7 +9345,7 @@ var package_default = {
|
|
|
9342
9345
|
"@tscircuit/capacity-autorouter": "^0.0.67",
|
|
9343
9346
|
"@tscircuit/checks": "^0.0.52",
|
|
9344
9347
|
"@tscircuit/circuit-json-util": "^0.0.47",
|
|
9345
|
-
"@tscircuit/footprinter": "^0.0.
|
|
9348
|
+
"@tscircuit/footprinter": "^0.0.175",
|
|
9346
9349
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
9347
9350
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
9348
9351
|
"@tscircuit/layout": "^0.0.28",
|
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.449",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@tscircuit/capacity-autorouter": "^0.0.67",
|
|
28
28
|
"@tscircuit/checks": "^0.0.52",
|
|
29
29
|
"@tscircuit/circuit-json-util": "^0.0.47",
|
|
30
|
-
"@tscircuit/footprinter": "^0.0.
|
|
30
|
+
"@tscircuit/footprinter": "^0.0.175",
|
|
31
31
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
32
32
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
33
33
|
"@tscircuit/layout": "^0.0.28",
|