@tscircuit/core 0.0.1039 → 0.0.1041

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 CHANGED
@@ -8083,7 +8083,7 @@ var CadModel = class extends PrimitiveComponent2 {
8083
8083
  pcb_component_id: parent.pcb_component_id,
8084
8084
  source_component_id: parent.source_component_id,
8085
8085
  model_unit_to_mm_scale_factor: typeof props.modelUnitToMmScale === "number" ? props.modelUnitToMmScale : void 0,
8086
- show_as_translucent_model: parent._parsedProps.showAsTranslucentModel,
8086
+ show_as_translucent_model: props.showAsTranslucentModel ?? parent._parsedProps.showAsTranslucentModel,
8087
8087
  ...urlProps
8088
8088
  });
8089
8089
  this.cad_component_id = cad.cad_component_id;
@@ -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 anyChildHasSchCoords = this.children.some((child) => {
15769
+ const anyLayoutChildHasSchCoords = this.children.some((child) => {
15770
15770
  const cProps = child._parsedProps;
15771
- return cProps?.schX !== void 0 || cProps?.schY !== void 0;
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 (!anyChildHasSchCoords && !hasManualEdits) return "match-adapt";
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.1038",
17534
+ version: "0.0.1040",
17534
17535
  types: "dist/index.d.ts",
17535
17536
  main: "dist/index.js",
17536
17537
  module: "dist/index.js",
@@ -17574,7 +17575,7 @@ var package_default = {
17574
17575
  "@tscircuit/math-utils": "^0.0.29",
17575
17576
  "@tscircuit/miniflex": "^0.0.4",
17576
17577
  "@tscircuit/ngspice-spice-engine": "^0.0.8",
17577
- "@tscircuit/props": "^0.0.474",
17578
+ "@tscircuit/props": "^0.0.478",
17578
17579
  "@tscircuit/schematic-match-adapt": "^0.0.16",
17579
17580
  "@tscircuit/schematic-trace-solver": "^v0.0.45",
17580
17581
  "@tscircuit/solver-utils": "^0.0.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1039",
4
+ "version": "0.0.1041",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -45,7 +45,7 @@
45
45
  "@tscircuit/math-utils": "^0.0.29",
46
46
  "@tscircuit/miniflex": "^0.0.4",
47
47
  "@tscircuit/ngspice-spice-engine": "^0.0.8",
48
- "@tscircuit/props": "^0.0.474",
48
+ "@tscircuit/props": "^0.0.478",
49
49
  "@tscircuit/schematic-match-adapt": "^0.0.16",
50
50
  "@tscircuit/schematic-trace-solver": "^v0.0.45",
51
51
  "@tscircuit/solver-utils": "^0.0.3",