@tscircuit/core 0.0.233 → 0.0.235

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 +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2869,9 +2869,10 @@ var NormalComponent = class extends PrimitiveComponent {
2869
2869
  const { _parsedProps: props } = this;
2870
2870
  const symbol_name = this._getSchematicSymbolNameOrThrow();
2871
2871
  const symbol = symbols2[symbol_name];
2872
+ const center = this._getGlobalSchematicPositionBeforeLayout();
2872
2873
  if (symbol) {
2873
2874
  const schematic_component2 = db.schematic_component.insert({
2874
- center: { x: props.schX ?? 0, y: props.schY ?? 0 },
2875
+ center,
2875
2876
  rotation: props.schRotation ?? 0,
2876
2877
  size: symbol.size,
2877
2878
  source_component_id: this.source_component_id,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.233",
4
+ "version": "0.0.235",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",