jscad-electronics 0.0.134 → 0.0.136
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.
- package/dist/index.js +58 -43
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +28 -13
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/vanilla.js
CHANGED
|
@@ -1530,7 +1530,14 @@ var FemaleHeader = ({
|
|
|
1530
1530
|
bodyWidth = pitch,
|
|
1531
1531
|
flipZ
|
|
1532
1532
|
}) => {
|
|
1533
|
-
const
|
|
1533
|
+
const effectiveInnerDiameter = innerDiameter || 0.945;
|
|
1534
|
+
const pinThickness = effectiveInnerDiameter / 1.5;
|
|
1535
|
+
const socketWidth = effectiveInnerDiameter;
|
|
1536
|
+
const socketEntryWidth = socketWidth * 1.8;
|
|
1537
|
+
const socketEntryHeight = Math.min(bodyHeight * 0.18, pitch * 0.24);
|
|
1538
|
+
const socketDepth = bodyHeight + 0.1;
|
|
1539
|
+
const socketCenterZ = flipZ(z + socketDepth / 2);
|
|
1540
|
+
const socketEntryBaseZ = z + bodyHeight - socketEntryHeight;
|
|
1534
1541
|
const gapWidth = pinThickness * 1.6;
|
|
1535
1542
|
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
1536
1543
|
/* @__PURE__ */ jsx(Colorize, { color: "#1a1a1a", children: /* @__PURE__ */ jsxs(Subtract, { children: [
|
|
@@ -1542,21 +1549,29 @@ var FemaleHeader = ({
|
|
|
1542
1549
|
center: [x, y, flipZ(z + bodyHeight / 2)]
|
|
1543
1550
|
}
|
|
1544
1551
|
),
|
|
1545
|
-
|
|
1546
|
-
Cylinder,
|
|
1547
|
-
{
|
|
1548
|
-
height: bodyHeight + 0.1,
|
|
1549
|
-
radius: innerDiameter / 2,
|
|
1550
|
-
center: [x, y, flipZ(z + bodyHeight / 2)],
|
|
1551
|
-
color: "#222"
|
|
1552
|
-
}
|
|
1553
|
-
) : /* @__PURE__ */ jsx(
|
|
1552
|
+
/* @__PURE__ */ jsx(
|
|
1554
1553
|
Cuboid,
|
|
1555
1554
|
{
|
|
1556
|
-
size: [
|
|
1557
|
-
center: [x, y,
|
|
1555
|
+
size: [socketWidth, socketWidth, socketDepth],
|
|
1556
|
+
center: [x, y, socketCenterZ]
|
|
1558
1557
|
}
|
|
1559
|
-
)
|
|
1558
|
+
),
|
|
1559
|
+
/* @__PURE__ */ jsxs(Hull, { children: [
|
|
1560
|
+
/* @__PURE__ */ jsx(
|
|
1561
|
+
Cuboid,
|
|
1562
|
+
{
|
|
1563
|
+
size: [socketWidth, socketWidth, 0.01],
|
|
1564
|
+
center: [x, y, flipZ(socketEntryBaseZ)]
|
|
1565
|
+
}
|
|
1566
|
+
),
|
|
1567
|
+
/* @__PURE__ */ jsx(
|
|
1568
|
+
Cuboid,
|
|
1569
|
+
{
|
|
1570
|
+
size: [socketEntryWidth, socketEntryWidth, 0.01],
|
|
1571
|
+
center: [x, y, flipZ(z + bodyHeight)]
|
|
1572
|
+
}
|
|
1573
|
+
)
|
|
1574
|
+
] })
|
|
1560
1575
|
] }) }),
|
|
1561
1576
|
/* @__PURE__ */ jsxs(Colorize, { color: "silver", children: [
|
|
1562
1577
|
/* @__PURE__ */ jsxs(Hull, { children: [
|