@tscircuit/core 0.0.469 → 0.0.470

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 +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9774,8 +9774,9 @@ var SchematicBox = class extends PrimitiveComponent2 {
9774
9774
  } else if (hasFixedSize) {
9775
9775
  width = props.width;
9776
9776
  height = props.height;
9777
- centerX = typeof props.schX === "number" ? props.schX : 0;
9778
- centerY = typeof props.schY === "number" ? props.schY : 0;
9777
+ const center = this._getGlobalSchematicPositionBeforeLayout();
9778
+ centerX = center.x;
9779
+ centerY = center.y;
9779
9780
  x = centerX - width / 2;
9780
9781
  y = centerY - height / 2;
9781
9782
  } else {
@@ -9837,7 +9838,7 @@ import { identity as identity4 } from "transformation-matrix";
9837
9838
  var package_default = {
9838
9839
  name: "@tscircuit/core",
9839
9840
  type: "module",
9840
- version: "0.0.468",
9841
+ version: "0.0.469",
9841
9842
  types: "dist/index.d.ts",
9842
9843
  main: "dist/index.js",
9843
9844
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.469",
4
+ "version": "0.0.470",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",