@tscircuit/core 0.0.1643 → 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 +11 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10461,6 +10461,12 @@ var Port = class extends PrimitiveComponent2 {
|
|
|
10461
10461
|
_getGlobalSchematicPositionBeforeLayout() {
|
|
10462
10462
|
const { schX, schY } = this._parsedProps;
|
|
10463
10463
|
if (schX !== void 0 && schY !== void 0) {
|
|
10464
|
+
if (this._getSymbolAncestor()) {
|
|
10465
|
+
return applyToPoint23(this.computeSchematicGlobalTransform(), {
|
|
10466
|
+
x: 0,
|
|
10467
|
+
y: 0
|
|
10468
|
+
});
|
|
10469
|
+
}
|
|
10464
10470
|
return { x: schX, y: schY };
|
|
10465
10471
|
}
|
|
10466
10472
|
const parentNormalComponent = this.getParentNormalComponent();
|
|
@@ -14456,6 +14462,8 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
14456
14462
|
*
|
|
14457
14463
|
*/
|
|
14458
14464
|
initPorts(opts = {}) {
|
|
14465
|
+
const hasPendingReactSymbol = isValidElement(this.props.symbol) && !this.children.some((child) => child.componentName === "Symbol");
|
|
14466
|
+
if (hasPendingReactSymbol) return;
|
|
14459
14467
|
this._inferredInternallyConnectedPinNames = [];
|
|
14460
14468
|
const { config } = this;
|
|
14461
14469
|
const portsToCreate = [];
|
|
@@ -31453,7 +31461,7 @@ function Group_getRoutingPhasePlans(group) {
|
|
|
31453
31461
|
var package_default = {
|
|
31454
31462
|
name: "@tscircuit/core",
|
|
31455
31463
|
type: "module",
|
|
31456
|
-
version: "0.0.
|
|
31464
|
+
version: "0.0.1643",
|
|
31457
31465
|
types: "dist/index.d.ts",
|
|
31458
31466
|
main: "dist/index.js",
|
|
31459
31467
|
module: "dist/index.js",
|
|
@@ -32834,7 +32842,8 @@ var Group5 = class extends NormalComponent3 {
|
|
|
32834
32842
|
x: centerX,
|
|
32835
32843
|
y: centerY
|
|
32836
32844
|
};
|
|
32837
|
-
|
|
32845
|
+
const shouldUsePcbContentCenter = this.isSubcircuit || pcbContentBounds !== void 0;
|
|
32846
|
+
let center = hasExplicitPositioning ? shouldUsePcbContentCenter ? {
|
|
32838
32847
|
x: props.width === void 0 ? centerX : existingCenter.x,
|
|
32839
32848
|
y: props.height === void 0 ? centerY : existingCenter.y
|
|
32840
32849
|
} : existingCenter : { x: centerX, y: centerY };
|