@tscircuit/core 0.0.406 → 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.
- package/dist/index.js +9 -11
- package/package.json +1 -1
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
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
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:
|
|
1129
|
-
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.
|
|
8239
|
+
version: "0.0.406",
|
|
8242
8240
|
types: "dist/index.d.ts",
|
|
8243
8241
|
main: "dist/index.js",
|
|
8244
8242
|
module: "dist/index.js",
|