@tscircuit/core 0.0.993 → 0.0.994

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 +14 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -17065,6 +17065,19 @@ var Panel = class extends Group6 {
17065
17065
  }
17066
17066
  }
17067
17067
  }
17068
+ if (layoutMode === "none" && childBoardInstances.length > 1) {
17069
+ const boardsWithoutPosition = childBoardInstances.filter((board) => {
17070
+ const hasPcbX = board._parsedProps.pcbX !== void 0;
17071
+ const hasPcbY = board._parsedProps.pcbY !== void 0;
17072
+ return !hasPcbX && !hasPcbY;
17073
+ });
17074
+ if (boardsWithoutPosition.length > 1) {
17075
+ this.root.db.pcb_placement_error.insert({
17076
+ error_type: "pcb_placement_error",
17077
+ message: `Multiple boards in panel without pcbX/pcbY positions. When layoutMode="none", each board must have explicit pcbX and pcbY coordinates to avoid overlapping. Either set pcbX/pcbY on each board, or use layoutMode="grid" for automatic positioning.`
17078
+ });
17079
+ }
17080
+ }
17068
17081
  if (layoutMode !== "grid") return;
17069
17082
  const tabWidth = this._parsedProps.tabWidth ?? DEFAULT_TAB_WIDTH;
17070
17083
  const boardGap = this._parsedProps.boardGap ?? tabWidth;
@@ -21184,7 +21197,7 @@ import { identity as identity5 } from "transformation-matrix";
21184
21197
  var package_default = {
21185
21198
  name: "@tscircuit/core",
21186
21199
  type: "module",
21187
- version: "0.0.992",
21200
+ version: "0.0.993",
21188
21201
  types: "dist/index.d.ts",
21189
21202
  main: "dist/index.js",
21190
21203
  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.993",
4
+ "version": "0.0.994",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",