@tscircuit/core 0.0.403 → 0.0.404
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 +20 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7244,12 +7244,25 @@ var Jumper = class extends NormalComponent {
|
|
|
7244
7244
|
pcb_component_id: this.pcb_component_id
|
|
7245
7245
|
});
|
|
7246
7246
|
const pinLabelToPortId = {};
|
|
7247
|
-
for (
|
|
7248
|
-
const
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7247
|
+
for (let i = 0; i < pcb_ports.length; i++) {
|
|
7248
|
+
const port = pcb_ports[i];
|
|
7249
|
+
const sourcePort = db.source_port.get(port.source_port_id);
|
|
7250
|
+
let pinLabel = "";
|
|
7251
|
+
if (typeof sourcePort?.pin_number === "number") {
|
|
7252
|
+
pinLabel = sourcePort.pin_number.toString();
|
|
7253
|
+
} else if (Array.isArray(sourcePort?.port_hints)) {
|
|
7254
|
+
let matchedHint = sourcePort.port_hints.find(
|
|
7255
|
+
(h) => /^(pin)?\d+$/.test(h)
|
|
7256
|
+
);
|
|
7257
|
+
if (matchedHint) {
|
|
7258
|
+
if (/^pin\d+$/.test(matchedHint)) {
|
|
7259
|
+
pinLabel = matchedHint.replace(/^pin/, "");
|
|
7260
|
+
} else {
|
|
7261
|
+
pinLabel = matchedHint;
|
|
7262
|
+
}
|
|
7263
|
+
}
|
|
7252
7264
|
}
|
|
7265
|
+
pinLabelToPortId[pinLabel] = port.pcb_port_id;
|
|
7253
7266
|
}
|
|
7254
7267
|
const traces = db.pcb_trace.list();
|
|
7255
7268
|
const updatePortId = (portId) => {
|
|
@@ -8223,7 +8236,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
8223
8236
|
var package_default = {
|
|
8224
8237
|
name: "@tscircuit/core",
|
|
8225
8238
|
type: "module",
|
|
8226
|
-
version: "0.0.
|
|
8239
|
+
version: "0.0.403",
|
|
8227
8240
|
types: "dist/index.d.ts",
|
|
8228
8241
|
main: "dist/index.js",
|
|
8229
8242
|
module: "dist/index.js",
|
|
@@ -8246,7 +8259,7 @@ var package_default = {
|
|
|
8246
8259
|
},
|
|
8247
8260
|
devDependencies: {
|
|
8248
8261
|
"@biomejs/biome": "^1.8.3",
|
|
8249
|
-
"@tscircuit/footprinter": "^0.0.
|
|
8262
|
+
"@tscircuit/footprinter": "^0.0.159",
|
|
8250
8263
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
8251
8264
|
"@tscircuit/layout": "^0.0.28",
|
|
8252
8265
|
"@tscircuit/log-soup": "^1.0.2",
|
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.404",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@biomejs/biome": "^1.8.3",
|
|
27
|
-
"@tscircuit/footprinter": "^0.0.
|
|
27
|
+
"@tscircuit/footprinter": "^0.0.159",
|
|
28
28
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
29
29
|
"@tscircuit/layout": "^0.0.28",
|
|
30
30
|
"@tscircuit/log-soup": "^1.0.2",
|