@tscircuit/3d-viewer 0.0.416 → 0.0.418

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 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26651,7 +26651,7 @@ import * as THREE13 from "three";
26651
26651
  // package.json
26652
26652
  var package_default = {
26653
26653
  name: "@tscircuit/3d-viewer",
26654
- version: "0.0.415",
26654
+ version: "0.0.417",
26655
26655
  main: "./dist/index.js",
26656
26656
  module: "./dist/index.js",
26657
26657
  type: "module",
@@ -27548,7 +27548,7 @@ function clampRectBorderRadius(width10, height10, rawRadius) {
27548
27548
  }
27549
27549
  function extractRectBorderRadius(source) {
27550
27550
  if (!source || typeof source !== "object") return void 0;
27551
- return source.rect_pad_border_radius ?? source.rectPadBorderRadius ?? source.rect_border_radius ?? source.rectBorderRadius ?? void 0;
27551
+ return source.corner_radius ?? source.cornerRadius ?? source.rect_pad_border_radius ?? source.rectPadBorderRadius ?? source.rect_border_radius ?? source.rectBorderRadius ?? void 0;
27552
27552
  }
27553
27553
 
27554
27554
  // src/geoms/plated-hole.ts
@@ -29875,8 +29875,7 @@ function processPlatedHolesForManifold(Manifold, circuitJson, pcbThickness, mani
29875
29875
  Manifold,
29876
29876
  x: ph.x,
29877
29877
  y: ph.y,
29878
- outerDiameter: ph.outer_diameter,
29879
- // Drill for the board
29878
+ outerDiameter: ph.hole_diameter * 1.02,
29880
29879
  thickness: pcbThickness,
29881
29880
  zOffset: MANIFOLD_Z_OFFSET,
29882
29881
  segments: SMOOTH_CIRCLE_SEGMENTS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/3d-viewer",
3
- "version": "0.0.416",
3
+ "version": "0.0.418",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",