@tscircuit/core 0.0.916 → 0.0.918

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 +5 -6
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -13948,6 +13948,7 @@ var Group6 = class extends NormalComponent3 {
13948
13948
  debug11(`[${this.getString()}] starting local autorouting`);
13949
13949
  const autorouterConfig = this._getAutorouterConfig();
13950
13950
  const isLaserPrefabPreset = this._isLaserPrefabAutorouter(autorouterConfig);
13951
+ const isSingleLayerBoard = this._getSubcircuitLayerCount() === 1;
13951
13952
  const { simpleRouteJson } = getSimpleRouteJsonFromCircuitJson({
13952
13953
  db,
13953
13954
  minTraceWidth: this.props.autorouter?.minTraceWidth ?? 0.15,
@@ -13980,7 +13981,7 @@ var Group6 = class extends NormalComponent3 {
13980
13981
  // Optional configuration parameters
13981
13982
  capacityDepth: this.props.autorouter?.capacityDepth,
13982
13983
  targetMinCapacity: this.props.autorouter?.targetMinCapacity,
13983
- useAssignableViaSolver: isLaserPrefabPreset
13984
+ useAssignableViaSolver: isLaserPrefabPreset || isSingleLayerBoard
13984
13985
  });
13985
13986
  }
13986
13987
  const routingPromise = new Promise(
@@ -16411,8 +16412,6 @@ var Interconnect = class extends NormalComponent3 {
16411
16412
  if (sourcePortIds.length >= 2) {
16412
16413
  db.source_component_internal_connection.insert({
16413
16414
  source_component_id: this.source_component_id,
16414
- // @ts-expect-error uncomment when circuit-json includes subcircuit_id
16415
- // in the source_component_internal_connection schema
16416
16415
  subcircuit_id: this.getSubcircuit()?.subcircuit_id,
16417
16416
  source_port_ids: sourcePortIds
16418
16417
  });
@@ -19248,7 +19247,7 @@ import { identity as identity5 } from "transformation-matrix";
19248
19247
  var package_default = {
19249
19248
  name: "@tscircuit/core",
19250
19249
  type: "module",
19251
- version: "0.0.915",
19250
+ version: "0.0.917",
19252
19251
  types: "dist/index.d.ts",
19253
19252
  main: "dist/index.js",
19254
19253
  module: "dist/index.js",
@@ -19306,13 +19305,13 @@ var package_default = {
19306
19305
  "bun-match-svg": "0.0.12",
19307
19306
  "calculate-elbow": "^0.0.12",
19308
19307
  "chokidar-cli": "^3.0.0",
19309
- "circuit-json": "^0.0.328",
19308
+ "circuit-json": "^0.0.331",
19310
19309
  "circuit-json-to-bpc": "^0.0.13",
19311
19310
  "circuit-json-to-connectivity-map": "^0.0.23",
19312
19311
  "circuit-json-to-gltf": "^0.0.31",
19313
19312
  "circuit-json-to-simple-3d": "^0.0.9",
19314
19313
  "circuit-json-to-spice": "^0.0.30",
19315
- "circuit-to-svg": "^0.0.284",
19314
+ "circuit-to-svg": "^0.0.287",
19316
19315
  concurrently: "^9.1.2",
19317
19316
  "connectivity-map": "^1.0.0",
19318
19317
  debug: "^4.3.6",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.916",
4
+ "version": "0.0.918",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -59,13 +59,13 @@
59
59
  "bun-match-svg": "0.0.12",
60
60
  "calculate-elbow": "^0.0.12",
61
61
  "chokidar-cli": "^3.0.0",
62
- "circuit-json": "^0.0.328",
62
+ "circuit-json": "^0.0.331",
63
63
  "circuit-json-to-bpc": "^0.0.13",
64
64
  "circuit-json-to-connectivity-map": "^0.0.23",
65
65
  "circuit-json-to-gltf": "^0.0.31",
66
66
  "circuit-json-to-simple-3d": "^0.0.9",
67
67
  "circuit-json-to-spice": "^0.0.30",
68
- "circuit-to-svg": "^0.0.284",
68
+ "circuit-to-svg": "^0.0.287",
69
69
  "concurrently": "^9.1.2",
70
70
  "connectivity-map": "^1.0.0",
71
71
  "debug": "^4.3.6",