@tscircuit/core 0.0.405 → 0.0.407

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 +12 -13
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1104,14 +1104,10 @@ var ErrorPlaceholderComponent = class extends PrimitiveComponent2 {
1104
1104
  component_name: props.name,
1105
1105
  error_type: "source_failed_to_create_component_error",
1106
1106
  message: error instanceof Error ? error.message : String(error),
1107
- pcb_center: {
1108
- x: props.pcbX || 0,
1109
- y: props.pcbY || 0
1110
- },
1111
- schematic_center: {
1112
- x: props.schX || 0,
1113
- y: props.schY || 0
1114
- }
1107
+ pcbX: props.pcbX,
1108
+ pcbY: props.pcbY,
1109
+ schX: props.schX,
1110
+ schY: props.schY
1115
1111
  };
1116
1112
  }
1117
1113
  get config() {
@@ -1122,11 +1118,13 @@ var ErrorPlaceholderComponent = class extends PrimitiveComponent2 {
1122
1118
  }
1123
1119
  doInitialSourceRender() {
1124
1120
  if (this.root?.db) {
1121
+ const pcbPosition = this._getGlobalPcbPositionBeforeLayout();
1122
+ const schematicPosition = this._getGlobalSchematicPositionBeforeLayout();
1125
1123
  this.root.db.source_failed_to_create_component_error.insert({
1126
1124
  component_name: this._parsedProps.component_name,
1127
1125
  message: this._parsedProps.message,
1128
- pcb_center: this._parsedProps.pcb_center,
1129
- schematic_center: this._parsedProps.schematic_center
1126
+ pcb_center: pcbPosition,
1127
+ schematic_center: schematicPosition
1130
1128
  });
1131
1129
  }
1132
1130
  }
@@ -5760,7 +5758,8 @@ var CapacityMeshAutorouter = class {
5760
5758
  const { capacityDepth, targetMinCapacity, stepDelay = 0 } = options;
5761
5759
  this.solver = new CapacityMeshSolver(input, {
5762
5760
  capacityDepth,
5763
- targetMinCapacity
5761
+ targetMinCapacity,
5762
+ cacheProvider: null
5764
5763
  });
5765
5764
  this.stepDelay = stepDelay;
5766
5765
  }
@@ -8237,7 +8236,7 @@ import { identity as identity4 } from "transformation-matrix";
8237
8236
  var package_default = {
8238
8237
  name: "@tscircuit/core",
8239
8238
  type: "module",
8240
- version: "0.0.404",
8239
+ version: "0.0.406",
8241
8240
  types: "dist/index.d.ts",
8242
8241
  main: "dist/index.js",
8243
8242
  module: "dist/index.js",
@@ -8283,7 +8282,7 @@ var package_default = {
8283
8282
  "react-dom": "^19.0.0",
8284
8283
  "ts-expect": "^1.3.0",
8285
8284
  tsup: "^8.2.4",
8286
- "@tscircuit/capacity-autorouter": "^0.0.52",
8285
+ "@tscircuit/capacity-autorouter": "^0.0.64",
8287
8286
  "@tscircuit/checks": "^0.0.46",
8288
8287
  "@tscircuit/circuit-json-util": "^0.0.47",
8289
8288
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.405",
4
+ "version": "0.0.407",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -47,7 +47,7 @@
47
47
  "react-dom": "^19.0.0",
48
48
  "ts-expect": "^1.3.0",
49
49
  "tsup": "^8.2.4",
50
- "@tscircuit/capacity-autorouter": "^0.0.52",
50
+ "@tscircuit/capacity-autorouter": "^0.0.64",
51
51
  "@tscircuit/checks": "^0.0.46",
52
52
  "@tscircuit/circuit-json-util": "^0.0.47",
53
53
  "@tscircuit/infgrid-ijump-astar": "^0.0.33",