@tscircuit/core 0.0.1865 → 0.0.1866

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 +3 -2
  2. package/package.json +1 -1
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.1865",
51435
51435
  types: "dist/index.d.ts",
51436
51436
  main: "dist/index.js",
51437
51437
  module: "dist/index.js",
@@ -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.1866",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",