@tscircuit/core 0.0.603 → 0.0.604

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 +9 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9055,8 +9055,14 @@ var Board = class extends Group {
9055
9055
  let minY = Infinity;
9056
9056
  let maxX = -Infinity;
9057
9057
  let maxY = -Infinity;
9058
- const allPcbComponents = db.pcb_component.list();
9059
- const allPcbGroups = db.pcb_group.list();
9058
+ const descendantIds = getDescendantSubcircuitIds(db, this.subcircuit_id);
9059
+ const allowedSubcircuitIds = /* @__PURE__ */ new Set([this.subcircuit_id, ...descendantIds]);
9060
+ const allPcbComponents = db.pcb_component.list().filter(
9061
+ (c) => c.subcircuit_id && allowedSubcircuitIds.has(c.subcircuit_id)
9062
+ );
9063
+ const allPcbGroups = db.pcb_group.list().filter(
9064
+ (g) => g.subcircuit_id && allowedSubcircuitIds.has(g.subcircuit_id)
9065
+ );
9060
9066
  let hasComponents = false;
9061
9067
  const updateBounds = (center2, width, height) => {
9062
9068
  if (width === 0 || height === 0) return;
@@ -11337,7 +11343,7 @@ import { identity as identity5 } from "transformation-matrix";
11337
11343
  var package_default = {
11338
11344
  name: "@tscircuit/core",
11339
11345
  type: "module",
11340
- version: "0.0.602",
11346
+ version: "0.0.603",
11341
11347
  types: "dist/index.d.ts",
11342
11348
  main: "dist/index.js",
11343
11349
  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.603",
4
+ "version": "0.0.604",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",