@tscircuit/core 0.0.1075 → 0.0.1076

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.d.ts CHANGED
@@ -6114,6 +6114,11 @@ declare class Subpanel extends Group<typeof subpanelProps> {
6114
6114
  protected get _errorComponentName(): string;
6115
6115
  get isGroup(): boolean;
6116
6116
  get isSubcircuit(): boolean;
6117
+ /**
6118
+ * Subpanels/Panels use their own layout system (doInitialPanelBoardLayout)
6119
+ * and should never trigger the regular Group pack/grid/flex layout.
6120
+ */
6121
+ _getPcbLayoutMode(): "none";
6117
6122
  add(component: PrimitiveComponent): void;
6118
6123
  _cachedGridWidth: number;
6119
6124
  _cachedGridHeight: number;
package/dist/index.js CHANGED
@@ -18102,7 +18102,7 @@ import { identity as identity5 } from "transformation-matrix";
18102
18102
  var package_default = {
18103
18103
  name: "@tscircuit/core",
18104
18104
  type: "module",
18105
- version: "0.0.1074",
18105
+ version: "0.0.1075",
18106
18106
  types: "dist/index.d.ts",
18107
18107
  main: "dist/index.js",
18108
18108
  module: "dist/index.js",
@@ -19653,6 +19653,13 @@ var Subpanel = class _Subpanel extends Group6 {
19653
19653
  get isSubcircuit() {
19654
19654
  return true;
19655
19655
  }
19656
+ /**
19657
+ * Subpanels/Panels use their own layout system (doInitialPanelBoardLayout)
19658
+ * and should never trigger the regular Group pack/grid/flex layout.
19659
+ */
19660
+ _getPcbLayoutMode() {
19661
+ return "none";
19662
+ }
19656
19663
  add(component) {
19657
19664
  if (component.lowercaseComponentName !== "board" && component.lowercaseComponentName !== "subpanel") {
19658
19665
  throw new Error(
@@ -19875,7 +19882,7 @@ var Subpanel = class _Subpanel extends Group6 {
19875
19882
  const { db } = this.root;
19876
19883
  const props = this._parsedProps;
19877
19884
  const panelizationMethod = props.panelizationMethod ?? "none";
19878
- const childBoardInstances = this._getDirectBoardChildren();
19885
+ const childBoardInstances = this._getAllBoardInstances();
19879
19886
  if (panelizationMethod !== "none") {
19880
19887
  const childBoardIds = childBoardInstances.map((c) => c.pcb_board_id).filter((id) => !!id);
19881
19888
  const boardsInPanel = db.pcb_board.list().filter((b) => childBoardIds.includes(b.pcb_board_id));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1075",
4
+ "version": "0.0.1076",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",