@tscircuit/core 0.0.126 → 0.0.127

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 +17 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2529,7 +2529,6 @@ var FTYPE = stringProxy;
2529
2529
  import { traceProps } from "@tscircuit/props";
2530
2530
  import {
2531
2531
  MultilayerIjump,
2532
- IJumpAutorouter,
2533
2532
  getObstaclesFromSoup
2534
2533
  } from "@tscircuit/infgrid-ijump-astar";
2535
2534
 
@@ -3165,18 +3164,31 @@ searched component ${targetComponent.getString()}, which has ports: ${targetComp
3165
3164
  const bounds = computeObstacleBounds(obstacles);
3166
3165
  const simpleRouteJsonInput = {
3167
3166
  minTraceWidth: 0.1,
3168
- obstacles: [],
3169
- // leave empty to force traces to draw
3167
+ obstacles,
3170
3168
  connections: [connection],
3171
3169
  bounds,
3172
3170
  layerCount: 1
3173
3171
  };
3174
- let Autorouter = IJumpAutorouter;
3172
+ if (this.getSubcircuit().props._schDebugObjectsEnabled) {
3173
+ for (const obstacle of obstacles) {
3174
+ db.schematic_debug_object.insert({
3175
+ shape: "rect",
3176
+ center: obstacle.center,
3177
+ size: {
3178
+ width: obstacle.width,
3179
+ height: obstacle.height
3180
+ },
3181
+ label: "obstacle"
3182
+ });
3183
+ }
3184
+ }
3185
+ let Autorouter = MultilayerIjump;
3175
3186
  if (this.getSubcircuit().props._schDirectLineRoutingEnabled) {
3176
3187
  Autorouter = DirectLineRouter;
3177
3188
  }
3178
3189
  const autorouter = new Autorouter({
3179
- input: simpleRouteJsonInput
3190
+ input: simpleRouteJsonInput,
3191
+ OBSTACLE_MARGIN: 0.1
3180
3192
  });
3181
3193
  const results = autorouter.solveAndMapToTraces();
3182
3194
  if (results.length === 0) return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.126",
4
+ "version": "0.0.127",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -41,9 +41,9 @@
41
41
  "@tscircuit/props": "^0.0.75",
42
42
  "@tscircuit/schematic-autolayout": "^0.0.5",
43
43
  "@tscircuit/soup-util": "^0.0.33",
44
- "circuit-json": "^0.0.86",
44
+ "circuit-json": "^0.0.90",
45
45
  "circuit-json-to-connectivity-map": "^0.0.17",
46
- "circuit-to-svg": "0.0.43",
46
+ "circuit-to-svg": "^0.0.48",
47
47
  "nanoid": "^5.0.7",
48
48
  "performance-now": "^2.1.0",
49
49
  "react": "^18.3.1",