@tscircuit/core 0.0.1644 → 0.0.1645

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
@@ -32842,7 +32842,8 @@ var Group5 = class extends NormalComponent3 {
32842
32842
  x: centerX,
32843
32843
  y: centerY
32844
32844
  };
32845
- let center = hasExplicitPositioning ? pcbContentBounds ? {
32845
+ const shouldUsePcbContentCenter = this.isSubcircuit || pcbContentBounds !== void 0;
32846
+ let center = hasExplicitPositioning ? shouldUsePcbContentCenter ? {
32846
32847
  x: props.width === void 0 ? centerX : existingCenter.x,
32847
32848
  y: props.height === void 0 ? centerY : existingCenter.y
32848
32849
  } : existingCenter : { x: centerX, y: centerY };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1644",
4
+ "version": "0.0.1645",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",