kicad-to-circuit-json 0.0.141 → 0.0.142

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 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3492,6 +3492,7 @@ var CollectGraphicsStage = class extends ConverterStage {
3492
3492
  );
3493
3493
  const points = boardContour.points;
3494
3494
  const numLayers = getPcbCopperLayerCount(this.ctx.kicadPcb);
3495
+ const thickness = this.ctx.kicadPcb?.general?.thickness;
3495
3496
  for (const contour of contours) {
3496
3497
  if (contour === boardContour) continue;
3497
3498
  this.createEdgeCutCutout(contour);
@@ -3502,6 +3503,7 @@ var CollectGraphicsStage = class extends ConverterStage {
3502
3503
  existingBoard.width = this.calculateWidth(points);
3503
3504
  existingBoard.height = this.calculateHeight(points);
3504
3505
  existingBoard.num_layers = numLayers;
3506
+ if (thickness !== void 0) existingBoard.thickness = thickness;
3505
3507
  } else {
3506
3508
  this.ctx.db.insert({
3507
3509
  type: "pcb_board",
@@ -3509,7 +3511,8 @@ var CollectGraphicsStage = class extends ConverterStage {
3509
3511
  outline: points,
3510
3512
  width: this.calculateWidth(points),
3511
3513
  height: this.calculateHeight(points),
3512
- num_layers: numLayers
3514
+ num_layers: numLayers,
3515
+ thickness
3513
3516
  });
3514
3517
  }
3515
3518
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "kicad-to-circuit-json",
3
3
  "main": "dist/index.js",
4
4
  "type": "module",
5
- "version": "0.0.141",
5
+ "version": "0.0.142",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/tscircuit/kicad-to-circuit-json"