@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.
- package/dist/index.js +2 -1
- 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
|
-
|
|
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 };
|