@tscircuit/core 0.0.1040 → 0.0.1042
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 +6 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -15766,13 +15766,14 @@ var Group6 = class extends NormalComponent3 {
|
|
|
15766
15766
|
if (props.grid) return "grid";
|
|
15767
15767
|
if (props.relative) return "relative";
|
|
15768
15768
|
if (props.schRelative) return "relative";
|
|
15769
|
-
const
|
|
15769
|
+
const anyLayoutChildHasSchCoords = this.children.some((child) => {
|
|
15770
15770
|
const cProps = child._parsedProps;
|
|
15771
|
-
|
|
15771
|
+
const participatesInAutoLayout = child.source_component_id !== null || child.source_group_id !== null;
|
|
15772
|
+
return participatesInAutoLayout && (cProps?.schX !== void 0 || cProps?.schY !== void 0);
|
|
15772
15773
|
});
|
|
15773
15774
|
const hasManualEdits = (props.manualEdits?.schematic_placements?.length ?? 0) > 0;
|
|
15774
15775
|
if (schAutoLayoutEnabled && !hasManualEdits) return "match-adapt";
|
|
15775
|
-
if (!
|
|
15776
|
+
if (!anyLayoutChildHasSchCoords && !hasManualEdits) return "match-adapt";
|
|
15776
15777
|
return "relative";
|
|
15777
15778
|
}
|
|
15778
15779
|
doInitialSchematicLayout() {
|
|
@@ -17530,7 +17531,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
17530
17531
|
var package_default = {
|
|
17531
17532
|
name: "@tscircuit/core",
|
|
17532
17533
|
type: "module",
|
|
17533
|
-
version: "0.0.
|
|
17534
|
+
version: "0.0.1041",
|
|
17534
17535
|
types: "dist/index.d.ts",
|
|
17535
17536
|
main: "dist/index.js",
|
|
17536
17537
|
module: "dist/index.js",
|
|
@@ -17563,7 +17564,7 @@ var package_default = {
|
|
|
17563
17564
|
"@resvg/resvg-js": "^2.6.2",
|
|
17564
17565
|
"@tscircuit/alphabet": "0.0.18",
|
|
17565
17566
|
"@tscircuit/capacity-autorouter": "^0.0.269",
|
|
17566
|
-
"@tscircuit/checks": "^0.0.
|
|
17567
|
+
"@tscircuit/checks": "^0.0.91",
|
|
17567
17568
|
"@tscircuit/circuit-json-util": "^0.0.77",
|
|
17568
17569
|
"@tscircuit/common": "^0.0.20",
|
|
17569
17570
|
"@tscircuit/copper-pour-solver": "^0.0.20",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.1042",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@resvg/resvg-js": "^2.6.2",
|
|
35
35
|
"@tscircuit/alphabet": "0.0.18",
|
|
36
36
|
"@tscircuit/capacity-autorouter": "^0.0.269",
|
|
37
|
-
"@tscircuit/checks": "^0.0.
|
|
37
|
+
"@tscircuit/checks": "^0.0.91",
|
|
38
38
|
"@tscircuit/circuit-json-util": "^0.0.77",
|
|
39
39
|
"@tscircuit/common": "^0.0.20",
|
|
40
40
|
"@tscircuit/copper-pour-solver": "^0.0.20",
|