@tscircuit/3d-viewer 0.0.496 → 0.0.498

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 +10 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -30825,7 +30825,7 @@ import * as THREE16 from "three";
30825
30825
  // package.json
30826
30826
  var package_default = {
30827
30827
  name: "@tscircuit/3d-viewer",
30828
- version: "0.0.495",
30828
+ version: "0.0.497",
30829
30829
  main: "./dist/index.js",
30830
30830
  module: "./dist/index.js",
30831
30831
  type: "module",
@@ -33091,7 +33091,7 @@ var BoardGeomBuilder = class {
33091
33091
  center: panel.center,
33092
33092
  width: panel.width,
33093
33093
  height: panel.height,
33094
- thickness: firstBoardInPanel?.thickness ?? 1.6,
33094
+ thickness: firstBoardInPanel?.thickness ?? 1.4,
33095
33095
  material: firstBoardInPanel?.material ?? "fr4",
33096
33096
  num_layers: firstBoardInPanel?.num_layers ?? 2
33097
33097
  };
@@ -35819,7 +35819,7 @@ function JscadBoardTextures({
35819
35819
  center: panel.center,
35820
35820
  width: panel.width,
35821
35821
  height: panel.height,
35822
- thickness: firstBoardInPanel?.thickness ?? 1.6,
35822
+ thickness: firstBoardInPanel?.thickness ?? 1.4,
35823
35823
  material: firstBoardInPanel?.material ?? "fr4",
35824
35824
  num_layers: firstBoardInPanel?.num_layers ?? 2
35825
35825
  };
@@ -36129,7 +36129,7 @@ function createFauxBoard(circuitJson) {
36129
36129
  // Always center at origin like real boards
36130
36130
  width: width10,
36131
36131
  height: height10,
36132
- thickness: 1.6,
36132
+ thickness: 1.4,
36133
36133
  // standard thickness
36134
36134
  material: "fr4",
36135
36135
  num_layers: 2
@@ -37099,20 +37099,16 @@ function processPlatedHolesForManifold(Manifold, CrossSection, circuitJson, pcbT
37099
37099
  bottomPad = rotatedBottomPad;
37100
37100
  }
37101
37101
  manifoldInstancesForCleanup.push(topPad, bottomPad);
37102
- const barrelPill = createPillOp(
37102
+ let barrelPill = createPillOp(
37103
37103
  holeW,
37104
37104
  holeH,
37105
37105
  pcbThickness * 1.02
37106
37106
  // Slightly taller than board
37107
37107
  ).translate([holeOffsetX, holeOffsetY, 0]);
37108
37108
  if (ph.hole_ccw_rotation) {
37109
- const rotatedDrill = boardPillDrillOp.rotate([
37110
- 0,
37111
- 0,
37112
- ph.hole_ccw_rotation
37113
- ]);
37114
- manifoldInstancesForCleanup.push(rotatedDrill);
37115
- boardPillDrillOp = rotatedDrill;
37109
+ const rotatedBarrel = barrelPill.rotate([0, 0, ph.hole_ccw_rotation]);
37110
+ manifoldInstancesForCleanup.push(rotatedBarrel);
37111
+ barrelPill = rotatedBarrel;
37116
37112
  }
37117
37113
  manifoldInstancesForCleanup.push(barrelPill);
37118
37114
  const copperUnion = Manifold.union([
@@ -38010,7 +38006,7 @@ var useManifoldBoardBuilder = (manifoldJSModule, circuitJson) => {
38010
38006
  center: panel.center,
38011
38007
  width: panel.width,
38012
38008
  height: panel.height,
38013
- thickness: firstBoardInPanel?.thickness ?? 1.6,
38009
+ thickness: firstBoardInPanel?.thickness ?? 1.4,
38014
38010
  material: firstBoardInPanel?.material ?? "fr4",
38015
38011
  num_layers: firstBoardInPanel?.num_layers ?? 2
38016
38012
  };
@@ -38057,7 +38053,7 @@ var useManifoldBoardBuilder = (manifoldJSModule, circuitJson) => {
38057
38053
  const currentGeoms = {};
38058
38054
  const layerTextureMap = {};
38059
38055
  try {
38060
- const currentPcbThickness = boardData.thickness || 1.6;
38056
+ const currentPcbThickness = boardData.thickness || 1.4;
38061
38057
  setPcbThickness(currentPcbThickness);
38062
38058
  const { boardOp: initialBoardOp, outlineCrossSection } = createManifoldBoard(
38063
38059
  Manifold,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/3d-viewer",
3
- "version": "0.0.496",
3
+ "version": "0.0.498",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",