@tscircuit/3d-viewer 0.0.467 → 0.0.468

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 +6 -10
  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.466",
28512
+ version: "0.0.467",
28513
28513
  main: "./dist/index.js",
28514
28514
  module: "./dist/index.js",
28515
28515
  type: "module",
@@ -31343,24 +31343,20 @@ var BoardGeomBuilder = class {
31343
31343
  });
31344
31344
  cutoutGeom = (0, import_extrusions8.extrudeLinear)({ height: cutoutHeight }, rect2d);
31345
31345
  cutoutGeom = (0, import_transforms10.translate)([0, 0, -cutoutHeight / 2], cutoutGeom);
31346
- cutoutGeom = (0, import_transforms10.translate)(
31347
- [cutout.center.x, cutout.center.y, 0],
31348
- cutoutGeom
31349
- );
31350
31346
  } else {
31351
- const baseCutoutGeom = (0, import_primitives11.cuboid)({
31347
+ cutoutGeom = (0, import_primitives11.cuboid)({
31352
31348
  center: [0, 0, 0],
31353
31349
  size: [cutout.width, cutout.height, cutoutHeight]
31354
31350
  });
31355
- cutoutGeom = (0, import_transforms10.translate)(
31356
- [cutout.center.x, cutout.center.y, 0],
31357
- baseCutoutGeom
31358
- );
31359
31351
  }
31360
31352
  if (cutout.rotation) {
31361
31353
  const rotationRadians = cutout.rotation * Math.PI / 180;
31362
31354
  cutoutGeom = (0, import_transforms10.rotateZ)(rotationRadians, cutoutGeom);
31363
31355
  }
31356
+ cutoutGeom = (0, import_transforms10.translate)(
31357
+ [cutout.center.x, cutout.center.y, 0],
31358
+ cutoutGeom
31359
+ );
31364
31360
  break;
31365
31361
  }
31366
31362
  case "circle":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/3d-viewer",
3
- "version": "0.0.467",
3
+ "version": "0.0.468",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",