@tscircuit/3d-viewer 0.0.468 → 0.0.469

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 +5 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28509,7 +28509,7 @@ import * as THREE15 from "three";
28509
28509
  // package.json
28510
28510
  var package_default = {
28511
28511
  name: "@tscircuit/3d-viewer",
28512
- version: "0.0.467",
28512
+ version: "0.0.468",
28513
28513
  main: "./dist/index.js",
28514
28514
  module: "./dist/index.js",
28515
28515
  type: "module",
@@ -31724,7 +31724,8 @@ var BoardGeomBuilder = class {
31724
31724
  const finishSegment = () => {
31725
31725
  if (currentSegmentPoints.length >= 2 && currentLayer) {
31726
31726
  const layerSign = currentLayer === "bottom" ? -1 : 1;
31727
- const zCenter = layerSign * this.ctx.pcbThickness / 2 + layerSign * BOARD_SURFACE_OFFSET.traces;
31727
+ const traceOffset = BOARD_SURFACE_OFFSET.traces - 2e-3;
31728
+ const zCenter = layerSign * this.ctx.pcbThickness / 2 + layerSign * traceOffset;
31728
31729
  const linePath = (0, import_primitives11.line)(currentSegmentPoints);
31729
31730
  const expandedPath = (0, import_expansions4.expand)(
31730
31731
  { delta: currentWidth / 2, corners: "round" },
@@ -33342,7 +33343,7 @@ function JscadBoardTextures({
33342
33343
  if (visibility.topCopper && visibility.topMask) {
33343
33344
  const topTraceWithMaskMesh = createTexturePlane(
33344
33345
  textures.topTraceWithMask,
33345
- pcbThickness / 2 + SURFACE_OFFSET + 1e-3,
33346
+ pcbThickness / 2 + BOARD_SURFACE_OFFSET.traces + 4e-3,
33346
33347
  false,
33347
33348
  "jscad-top-trace-with-mask"
33348
33349
  );
@@ -33354,7 +33355,7 @@ function JscadBoardTextures({
33354
33355
  if (visibility.bottomCopper && visibility.bottomMask) {
33355
33356
  const bottomTraceWithMaskMesh = createTexturePlane(
33356
33357
  textures.bottomTraceWithMask,
33357
- -pcbThickness / 2 - SURFACE_OFFSET - 1e-3,
33358
+ -pcbThickness / 2 - BOARD_SURFACE_OFFSET.traces - 5e-3,
33358
33359
  true,
33359
33360
  "jscad-bottom-trace-with-mask"
33360
33361
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/3d-viewer",
3
- "version": "0.0.468",
3
+ "version": "0.0.469",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",