@tscircuit/core 0.0.336 → 0.0.338
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 +8 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5469,6 +5469,12 @@ var getSimpleRouteJsonFromCircuitJson = ({
|
|
|
5469
5469
|
),
|
|
5470
5470
|
connMap
|
|
5471
5471
|
);
|
|
5472
|
+
for (const obstacle of obstacles) {
|
|
5473
|
+
const additionalIds = obstacle.connectedTo.flatMap(
|
|
5474
|
+
(id) => connMap.getIdsConnectedToNet(id)
|
|
5475
|
+
);
|
|
5476
|
+
obstacle.connectedTo.push(...additionalIds);
|
|
5477
|
+
}
|
|
5472
5478
|
const allPoints = obstacles.flatMap((o) => [
|
|
5473
5479
|
{
|
|
5474
5480
|
x: o.center.x - o.width / 2,
|
|
@@ -5506,7 +5512,7 @@ var getSimpleRouteJsonFromCircuitJson = ({
|
|
|
5506
5512
|
});
|
|
5507
5513
|
if (connectedPorts.length < 2) return null;
|
|
5508
5514
|
return {
|
|
5509
|
-
name:
|
|
5515
|
+
name: trace.source_trace_id ?? connMap.getNetConnectedToId(trace.source_trace_id) ?? "",
|
|
5510
5516
|
source_trace_id: trace.source_trace_id,
|
|
5511
5517
|
pointsToConnect: connectedPorts.map((port) => {
|
|
5512
5518
|
return {
|
|
@@ -5524,7 +5530,7 @@ var getSimpleRouteJsonFromCircuitJson = ({
|
|
|
5524
5530
|
for (const net of source_nets) {
|
|
5525
5531
|
const connectedSourceTraces = db.source_trace.list().filter((st) => st.connected_source_net_ids?.includes(net.source_net_id));
|
|
5526
5532
|
connectionsFromNets.push({
|
|
5527
|
-
name:
|
|
5533
|
+
name: net.source_net_id ?? connMap.getNetConnectedToId(net.source_net_id),
|
|
5528
5534
|
pointsToConnect: connectedSourceTraces.flatMap((st) => {
|
|
5529
5535
|
const pcb_ports = db.pcb_port.list().filter(
|
|
5530
5536
|
(p) => st.connected_source_port_ids.includes(p.source_port_id)
|
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.338",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@lume/kiwi": "^0.4.3",
|
|
56
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
56
|
+
"@tscircuit/capacity-autorouter": "^0.0.13",
|
|
57
57
|
"@tscircuit/infgrid-ijump-astar": "^0.0.33",
|
|
58
58
|
"@tscircuit/math-utils": "^0.0.9",
|
|
59
59
|
"@tscircuit/props": "^0.0.159",
|