@tscircuit/core 0.0.1865 → 0.0.1867

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 +4 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -51431,7 +51431,7 @@ function Group_getRoutingPhasePlans(group) {
51431
51431
  var package_default = {
51432
51432
  name: "@tscircuit/core",
51433
51433
  type: "module",
51434
- version: "0.0.1864",
51434
+ version: "0.0.1866",
51435
51435
  types: "dist/index.d.ts",
51436
51436
  main: "dist/index.js",
51437
51437
  module: "dist/index.js",
@@ -51469,7 +51469,7 @@ var package_default = {
51469
51469
  "@tscircuit/checks": "^0.0.184",
51470
51470
  "@tscircuit/circuit-json-util": "^0.0.106",
51471
51471
  "@tscircuit/common": "^0.0.20",
51472
- "@tscircuit/copper-pour-solver": "^0.0.52",
51472
+ "@tscircuit/copper-pour-solver": "^0.0.53",
51473
51473
  "@tscircuit/create-fdm-enclosure": "0.0.4",
51474
51474
  "@tscircuit/fanout-solver": "0.0.66",
51475
51475
  "@tscircuit/footprinter": "^0.0.426",
@@ -56530,7 +56530,8 @@ var renderAllCopperPoursForSubcircuit = async (subcircuit) => {
56530
56530
  }
56531
56531
  if (resolvedCopperPours.length === 0) return;
56532
56532
  const circuitJson = db.toArray();
56533
- const pcbBoard = circuitJson.find((element) => element.type === "pcb_board");
56533
+ const boardComponent = subcircuit._getBoard();
56534
+ const pcbBoard = boardComponent?.pcb_board_id ? db.pcb_board.get(boardComponent.pcb_board_id) : void 0;
56534
56535
  let resolvedPcbBoardOutline = pcbBoard?.outline?.length ? pcbBoard.outline : void 0;
56535
56536
  if (!resolvedPcbBoardOutline && pcbBoard?.width !== void 0 && pcbBoard.height !== void 0) {
56536
56537
  const { center, width, height } = pcbBoard;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1865",
4
+ "version": "0.0.1867",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "@tscircuit/checks": "^0.0.184",
40
40
  "@tscircuit/circuit-json-util": "^0.0.106",
41
41
  "@tscircuit/common": "^0.0.20",
42
- "@tscircuit/copper-pour-solver": "^0.0.52",
42
+ "@tscircuit/copper-pour-solver": "^0.0.53",
43
43
  "@tscircuit/create-fdm-enclosure": "0.0.4",
44
44
  "@tscircuit/fanout-solver": "0.0.66",
45
45
  "@tscircuit/footprinter": "^0.0.426",