@tscircuit/3d-viewer 0.0.568 → 0.0.570

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 +33 -18
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -26526,14 +26526,14 @@ var QFN = ({
26526
26526
  /* @__PURE__ */ jsx2(Colorize, { color: "grey", children: /* @__PURE__ */ jsx2(
26527
26527
  Cuboid,
26528
26528
  {
26529
- center: { x: 0, y: 0, z: bodyThickness / 2 },
26529
+ center: [0, 0, bodyThickness / 2],
26530
26530
  size: [bodyWidth, bodyLength10, bodyThickness]
26531
26531
  }
26532
26532
  ) }),
26533
26533
  pinPositions.map((p, i) => /* @__PURE__ */ jsx2(
26534
26534
  Cuboid,
26535
26535
  {
26536
- center: { x: p.x, y: p.y, z: thermalPadThickness / 2 },
26536
+ center: [p.x, p.y, thermalPadThickness / 2],
26537
26537
  size: [p.pw, p.pl, thermalPadThickness]
26538
26538
  },
26539
26539
  i
@@ -26541,7 +26541,7 @@ var QFN = ({
26541
26541
  thermalPadSize?.length !== void 0 && thermalPadSize?.width !== void 0 && /* @__PURE__ */ jsx2(
26542
26542
  Cuboid,
26543
26543
  {
26544
- center: { x: 0, y: 0, z: thermalPadThickness / 2 },
26544
+ center: [0, 0, thermalPadThickness / 2],
26545
26545
  size: [
26546
26546
  thermalPadSize.width,
26547
26547
  thermalPadSize.length,
@@ -26941,7 +26941,14 @@ var FemaleHeader = ({
26941
26941
  bodyWidth = pitch,
26942
26942
  flipZ
26943
26943
  }) => {
26944
- const pinThickness = innerDiameter / 1.5;
26944
+ const effectiveInnerDiameter = innerDiameter || 0.945;
26945
+ const pinThickness = effectiveInnerDiameter / 1.5;
26946
+ const socketWidth = effectiveInnerDiameter;
26947
+ const socketEntryWidth = socketWidth * 1.8;
26948
+ const socketEntryHeight = Math.min(bodyHeight * 0.18, pitch * 0.24);
26949
+ const socketDepth = bodyHeight + 0.1;
26950
+ const socketCenterZ = flipZ(z21 + socketDepth / 2);
26951
+ const socketEntryBaseZ = z21 + bodyHeight - socketEntryHeight;
26945
26952
  const gapWidth = pinThickness * 1.6;
26946
26953
  return /* @__PURE__ */ jsxs(Fragment2, { children: [
26947
26954
  /* @__PURE__ */ jsx2(Colorize, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs(Subtract, { children: [
@@ -26953,21 +26960,29 @@ var FemaleHeader = ({
26953
26960
  center: [x, y, flipZ(z21 + bodyHeight / 2)]
26954
26961
  }
26955
26962
  ),
26956
- innerDiameter ? /* @__PURE__ */ jsx2(
26957
- Cylinder,
26958
- {
26959
- height: bodyHeight + 0.1,
26960
- radius: innerDiameter / 2,
26961
- center: [x, y, flipZ(z21 + bodyHeight / 2)],
26962
- color: "#222"
26963
- }
26964
- ) : /* @__PURE__ */ jsx2(
26963
+ /* @__PURE__ */ jsx2(
26965
26964
  Cuboid,
26966
26965
  {
26967
- size: [gapWidth, gapWidth, bodyHeight],
26968
- center: [x, y, flipZ(z21 + bodyHeight / 2)]
26966
+ size: [socketWidth, socketWidth, socketDepth],
26967
+ center: [x, y, socketCenterZ]
26969
26968
  }
26970
- )
26969
+ ),
26970
+ /* @__PURE__ */ jsxs(Hull, { children: [
26971
+ /* @__PURE__ */ jsx2(
26972
+ Cuboid,
26973
+ {
26974
+ size: [socketWidth, socketWidth, 0.01],
26975
+ center: [x, y, flipZ(socketEntryBaseZ)]
26976
+ }
26977
+ ),
26978
+ /* @__PURE__ */ jsx2(
26979
+ Cuboid,
26980
+ {
26981
+ size: [socketEntryWidth, socketEntryWidth, 0.01],
26982
+ center: [x, y, flipZ(z21 + bodyHeight)]
26983
+ }
26984
+ )
26985
+ ] })
26971
26986
  ] }) }),
26972
26987
  /* @__PURE__ */ jsxs(Colorize, { color: "silver", children: [
26973
26988
  /* @__PURE__ */ jsxs(Hull, { children: [
@@ -32322,7 +32337,7 @@ import * as THREE20 from "three";
32322
32337
  // package.json
32323
32338
  var package_default = {
32324
32339
  name: "@tscircuit/3d-viewer",
32325
- version: "0.0.567",
32340
+ version: "0.0.569",
32326
32341
  main: "./dist/index.js",
32327
32342
  module: "./dist/index.js",
32328
32343
  type: "module",
@@ -32383,7 +32398,7 @@ var package_default = {
32383
32398
  "bun-match-svg": "^0.0.9",
32384
32399
  "bun-types": "1.2.1",
32385
32400
  debug: "^4.4.0",
32386
- "jscad-electronics": "^0.0.133",
32401
+ "jscad-electronics": "^0.0.138",
32387
32402
  "jscad-planner": "^0.0.13",
32388
32403
  jsdom: "^26.0.0",
32389
32404
  "manifold-3d": "^3.2.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/3d-viewer",
3
- "version": "0.0.568",
3
+ "version": "0.0.570",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",
@@ -61,7 +61,7 @@
61
61
  "bun-match-svg": "^0.0.9",
62
62
  "bun-types": "1.2.1",
63
63
  "debug": "^4.4.0",
64
- "jscad-electronics": "^0.0.133",
64
+ "jscad-electronics": "^0.0.138",
65
65
  "jscad-planner": "^0.0.13",
66
66
  "jsdom": "^26.0.0",
67
67
  "manifold-3d": "^3.2.1",