@tscircuit/core 0.0.870 → 0.0.871

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 +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14560,10 +14560,13 @@ var Panel = class extends Group6 {
14560
14560
  const childBoardInstances = this.children.filter(
14561
14561
  (c) => c instanceof Board
14562
14562
  );
14563
+ const hasAnyPositionedBoards = childBoardInstances.some(
14564
+ (b) => b.props.pcbX !== void 0 || b.props.pcbY !== void 0
14565
+ );
14563
14566
  const unpositionedBoards = childBoardInstances.filter(
14564
14567
  (b) => b.props.pcbX === void 0 && b.props.pcbY === void 0
14565
14568
  );
14566
- if (unpositionedBoards.length > 0) {
14569
+ if (unpositionedBoards.length > 0 && !hasAnyPositionedBoards) {
14567
14570
  const gridCols = Math.ceil(Math.sqrt(unpositionedBoards.length));
14568
14571
  const gridRows = Math.ceil(unpositionedBoards.length / gridCols);
14569
14572
  const colWidths = Array(gridCols).fill(0);
@@ -18457,7 +18460,7 @@ import { identity as identity6 } from "transformation-matrix";
18457
18460
  var package_default = {
18458
18461
  name: "@tscircuit/core",
18459
18462
  type: "module",
18460
- version: "0.0.869",
18463
+ version: "0.0.870",
18461
18464
  types: "dist/index.d.ts",
18462
18465
  main: "dist/index.js",
18463
18466
  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.870",
4
+ "version": "0.0.871",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",