@tscircuit/core 0.0.130 → 0.0.131

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.
Files changed (2) hide show
  1. package/dist/index.js +22 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1672,6 +1672,17 @@ var Port = class extends PrimitiveComponent {
1672
1672
  center.x += containerCenter.x;
1673
1673
  center.y += containerCenter.y;
1674
1674
  }
1675
+ if (this.getSubcircuit().props._schDebugObjectsEnabled) {
1676
+ db.schematic_debug_object.insert({
1677
+ shape: "rect",
1678
+ center,
1679
+ size: {
1680
+ width: 0.1,
1681
+ height: 0.1
1682
+ },
1683
+ label: "obstacle"
1684
+ });
1685
+ }
1675
1686
  this.facingDirection = getRelativeDirection(containerCenter, center);
1676
1687
  const schematic_port = db.schematic_port.insert({
1677
1688
  schematic_component_id: this.parent?.schematic_component_id,
@@ -2546,7 +2557,6 @@ var FTYPE = stringProxy;
2546
2557
  import { traceProps } from "@tscircuit/props";
2547
2558
  import {
2548
2559
  MultilayerIjump,
2549
- IJumpAutorouter,
2550
2560
  getObstaclesFromSoup
2551
2561
  } from "@tscircuit/infgrid-ijump-astar";
2552
2562
 
@@ -3183,6 +3193,16 @@ searched component ${targetComponent.getString()}, which has ports: ${targetComp
3183
3193
  connectedTo: []
3184
3194
  });
3185
3195
  }
3196
+ if (elm.type === "schematic_port") {
3197
+ obstacles.push({
3198
+ type: "rect",
3199
+ layers: ["top"],
3200
+ center: elm.center,
3201
+ width: 0.1,
3202
+ height: 0.1,
3203
+ connectedTo: []
3204
+ });
3205
+ }
3186
3206
  }
3187
3207
  for (const { port } of ports) {
3188
3208
  connection.pointsToConnect.push({
@@ -3216,7 +3236,7 @@ searched component ${targetComponent.getString()}, which has ports: ${targetComp
3216
3236
  });
3217
3237
  }
3218
3238
  }
3219
- let Autorouter = IJumpAutorouter;
3239
+ let Autorouter = MultilayerIjump;
3220
3240
  if (this.getSubcircuit().props._schDirectLineRoutingEnabled) {
3221
3241
  Autorouter = DirectLineRouter;
3222
3242
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.130",
4
+ "version": "0.0.131",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "@tscircuit/soup-util": "^0.0.33",
45
45
  "circuit-json": "^0.0.91",
46
46
  "circuit-json-to-connectivity-map": "^0.0.17",
47
- "circuit-to-svg": "^0.0.53",
47
+ "circuit-to-svg": "^0.0.54",
48
48
  "nanoid": "^5.0.7",
49
49
  "performance-now": "^2.1.0",
50
50
  "react": "^18.3.1",