@tscircuit/core 0.0.1074 → 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.1073",
18105
+ version: "0.0.1075",
18106
18106
  types: "dist/index.d.ts",
18107
18107
  main: "dist/index.js",
18108
18108
  module: "dist/index.js",
@@ -18146,7 +18146,7 @@ var package_default = {
18146
18146
  "@tscircuit/math-utils": "^0.0.29",
18147
18147
  "@tscircuit/miniflex": "^0.0.4",
18148
18148
  "@tscircuit/ngspice-spice-engine": "^0.0.8",
18149
- "@tscircuit/props": "^0.0.485",
18149
+ "@tscircuit/props": "^0.0.487",
18150
18150
  "@tscircuit/schematic-match-adapt": "^0.0.16",
18151
18151
  "@tscircuit/schematic-trace-solver": "^v0.0.45",
18152
18152
  "@tscircuit/solver-utils": "^0.0.3",
@@ -19021,9 +19021,12 @@ var Board = class extends Group6 {
19021
19021
  const { db } = this.root;
19022
19022
  const routingDisabled = this.root?.pcbRoutingDisabled || this.getInheritedProperty("routingDisabled");
19023
19023
  const pcbDisabled = this.root?.pcbDisabled;
19024
- const shouldRunNetlistChecks = true;
19025
- const shouldRunPlacementChecks = !pcbDisabled;
19026
- const shouldRunRoutingChecks = !pcbDisabled && !routingDisabled;
19024
+ const netlistDrcChecksDisabled = this.root?.platform?.netlistDrcChecksDisabled ?? this.getInheritedProperty("netlistDrcChecksDisabled");
19025
+ const placementDrcChecksDisabled = this.root?.platform?.placementDrcChecksDisabled ?? this.getInheritedProperty("placementDrcChecksDisabled");
19026
+ const routingDrcChecksDisabled = this.root?.platform?.routingDrcChecksDisabled ?? this.getInheritedProperty("routingDrcChecksDisabled");
19027
+ const shouldRunNetlistChecks = !netlistDrcChecksDisabled;
19028
+ const shouldRunPlacementChecks = !pcbDisabled && !placementDrcChecksDisabled;
19029
+ const shouldRunRoutingChecks = !pcbDisabled && !routingDisabled && !routingDrcChecksDisabled;
19027
19030
  if (shouldRunRoutingChecks && this._hasIncompleteAsyncEffectsInSubtreeForPhase("PcbTraceRender"))
19028
19031
  return;
19029
19032
  const hasTracesToRoute = this._hasTracesToRoute();
@@ -19650,6 +19653,13 @@ var Subpanel = class _Subpanel extends Group6 {
19650
19653
  get isSubcircuit() {
19651
19654
  return true;
19652
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
+ }
19653
19663
  add(component) {
19654
19664
  if (component.lowercaseComponentName !== "board" && component.lowercaseComponentName !== "subpanel") {
19655
19665
  throw new Error(
@@ -19872,7 +19882,7 @@ var Subpanel = class _Subpanel extends Group6 {
19872
19882
  const { db } = this.root;
19873
19883
  const props = this._parsedProps;
19874
19884
  const panelizationMethod = props.panelizationMethod ?? "none";
19875
- const childBoardInstances = this._getDirectBoardChildren();
19885
+ const childBoardInstances = this._getAllBoardInstances();
19876
19886
  if (panelizationMethod !== "none") {
19877
19887
  const childBoardIds = childBoardInstances.map((c) => c.pcb_board_id).filter((id) => !!id);
19878
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.1074",
4
+ "version": "0.0.1076",
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.485",
48
+ "@tscircuit/props": "^0.0.487",
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",