@tscircuit/core 0.0.406 → 0.0.408

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 +10 -12
  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
  }
@@ -8238,7 +8236,7 @@ import { identity as identity4 } from "transformation-matrix";
8238
8236
  var package_default = {
8239
8237
  name: "@tscircuit/core",
8240
8238
  type: "module",
8241
- version: "0.0.405",
8239
+ version: "0.0.407",
8242
8240
  types: "dist/index.d.ts",
8243
8241
  main: "dist/index.js",
8244
8242
  module: "dist/index.js",
@@ -8284,7 +8282,7 @@ var package_default = {
8284
8282
  "react-dom": "^19.0.0",
8285
8283
  "ts-expect": "^1.3.0",
8286
8284
  tsup: "^8.2.4",
8287
- "@tscircuit/capacity-autorouter": "^0.0.64",
8285
+ "@tscircuit/capacity-autorouter": "^0.0.66",
8288
8286
  "@tscircuit/checks": "^0.0.46",
8289
8287
  "@tscircuit/circuit-json-util": "^0.0.47",
8290
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.406",
4
+ "version": "0.0.408",
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.64",
50
+ "@tscircuit/capacity-autorouter": "^0.0.66",
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",