@tscircuit/core 0.0.135 → 0.0.136

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 +4 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3406,7 +3406,8 @@ searched component ${targetComponent.getString()}, which has ports: ${targetComp
3406
3406
  }
3407
3407
  const autorouter = new Autorouter({
3408
3408
  input: simpleRouteJsonInput,
3409
- OBSTACLE_MARGIN: 0.1
3409
+ OBSTACLE_MARGIN: 0.1,
3410
+ isRemovePathLoopsEnabled: true
3410
3411
  });
3411
3412
  const results = autorouter.solveAndMapToTraces();
3412
3413
  if (results.length === 0) return;
@@ -3822,7 +3823,8 @@ var Chip = class extends NormalComponent {
3822
3823
  doInitialSchematicComponentRender() {
3823
3824
  const { db } = this.root;
3824
3825
  const { _parsedProps: props } = this;
3825
- const pinCount = (props.schPortArrangement?.leftSize ?? 0) + (props.schPortArrangement?.rightSize ?? 0) + (props.schPortArrangement?.topSize ?? 0) + (props.schPortArrangement?.bottomSize ?? 0);
3826
+ const pinCountFromSchArrangement = (props.schPortArrangement?.leftSize ?? 0) + (props.schPortArrangement?.rightSize ?? 0) + (props.schPortArrangement?.topSize ?? 0) + (props.schPortArrangement?.bottomSize ?? 0);
3827
+ const pinCount = pinCountFromSchArrangement || this.getPortsFromFootprint().length;
3826
3828
  const pinSpacing = props.schPinSpacing ?? 0.2;
3827
3829
  const dimensions = getAllDimensionsForSchematicBox({
3828
3830
  schWidth: props.schWidth,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.135",
4
+ "version": "0.0.136",
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.55",
47
+ "circuit-to-svg": "^0.0.56",
48
48
  "nanoid": "^5.0.7",
49
49
  "performance-now": "^2.1.0",
50
50
  "react": "^18.3.1",