@tscircuit/core 0.0.582 → 0.0.583

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 +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8638,12 +8638,19 @@ var Group = class extends NormalComponent {
8638
8638
  }
8639
8639
  _getSchematicLayoutMode() {
8640
8640
  const props = this._parsedProps;
8641
+ if (props.schLayout?.layoutMode === "none") return "none";
8641
8642
  if (props.schLayout?.matchAdapt) return "match-adapt";
8642
8643
  if (props.schLayout?.flex) return "flex";
8643
8644
  if (props.schLayout?.grid) return "grid";
8644
8645
  if (props.matchAdapt) return "match-adapt";
8645
8646
  if (props.flex) return "flex";
8646
8647
  if (props.grid) return "grid";
8648
+ const anyChildHasSchCoords = this.children.some((child) => {
8649
+ const cProps = child._parsedProps;
8650
+ return cProps?.schX !== void 0 || cProps?.schY !== void 0;
8651
+ });
8652
+ const hasManualEdits = (props.manualEdits?.schematic_placements?.length ?? 0) > 0;
8653
+ if (!anyChildHasSchCoords && !hasManualEdits) return "match-adapt";
8647
8654
  return "none";
8648
8655
  }
8649
8656
  doInitialSchematicLayout() {
@@ -11132,7 +11139,7 @@ import { identity as identity5 } from "transformation-matrix";
11132
11139
  var package_default = {
11133
11140
  name: "@tscircuit/core",
11134
11141
  type: "module",
11135
- version: "0.0.581",
11142
+ version: "0.0.582",
11136
11143
  types: "dist/index.d.ts",
11137
11144
  main: "dist/index.js",
11138
11145
  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.582",
4
+ "version": "0.0.583",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",