jscad-electronics 0.0.153 → 0.0.154
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 +7 -6
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +7 -6
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1263,6 +1263,7 @@ var getLeadWidth = (pinCount, width10) => {
|
|
|
1263
1263
|
// lib/PinHeader.tsx
|
|
1264
1264
|
import { Colorize as Colorize7, Cuboid as Cuboid14, Hull as Hull4, Rotate as Rotate5, Translate as Translate8 } from "jscad-fiber";
|
|
1265
1265
|
import { Fragment as Fragment17, jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1266
|
+
var PIN_METAL_COLOR = "#c0c0c0";
|
|
1266
1267
|
var PinHeader = ({
|
|
1267
1268
|
x,
|
|
1268
1269
|
y,
|
|
@@ -1286,7 +1287,7 @@ var PinHeader = ({
|
|
|
1286
1287
|
center: [x, y, flipZ(bodyHeight / 2)]
|
|
1287
1288
|
}
|
|
1288
1289
|
) }),
|
|
1289
|
-
!faceup && /* @__PURE__ */ jsx21(Colorize7, { color:
|
|
1290
|
+
!faceup && /* @__PURE__ */ jsx21(Colorize7, { color: PIN_METAL_COLOR, children: smd ? /* @__PURE__ */ jsx21(
|
|
1290
1291
|
SmdChipLead,
|
|
1291
1292
|
{
|
|
1292
1293
|
rotation: -Math.PI / 2,
|
|
@@ -1305,7 +1306,7 @@ var PinHeader = ({
|
|
|
1305
1306
|
/* @__PURE__ */ jsx21(
|
|
1306
1307
|
Cuboid14,
|
|
1307
1308
|
{
|
|
1308
|
-
color:
|
|
1309
|
+
color: PIN_METAL_COLOR,
|
|
1309
1310
|
size: [pinThickness, pinThickness, shortSidePinLength * 0.9],
|
|
1310
1311
|
center: [x, y, flipZ(bodyHeight * 0.9 + bodyHeight / 2)]
|
|
1311
1312
|
}
|
|
@@ -1313,7 +1314,7 @@ var PinHeader = ({
|
|
|
1313
1314
|
/* @__PURE__ */ jsx21(
|
|
1314
1315
|
Cuboid14,
|
|
1315
1316
|
{
|
|
1316
|
-
color:
|
|
1317
|
+
color: PIN_METAL_COLOR,
|
|
1317
1318
|
size: [
|
|
1318
1319
|
pinThickness / 1.8,
|
|
1319
1320
|
pinThickness / 1.8,
|
|
@@ -1323,11 +1324,11 @@ var PinHeader = ({
|
|
|
1323
1324
|
}
|
|
1324
1325
|
)
|
|
1325
1326
|
] }) }),
|
|
1326
|
-
/* @__PURE__ */ jsx21(Colorize7, { color:
|
|
1327
|
+
/* @__PURE__ */ jsx21(Colorize7, { color: PIN_METAL_COLOR, children: /* @__PURE__ */ jsx21(Translate8, { y: rightangle ? -3.9 : 0, z: rightangle ? 1 : 0, children: /* @__PURE__ */ jsx21(Rotate5, { rotation: rightangle ? [-Math.PI / 2, 0, 0] : [0, 0, 0], children: /* @__PURE__ */ jsxs19(Hull4, { children: [
|
|
1327
1328
|
/* @__PURE__ */ jsx21(
|
|
1328
1329
|
Cuboid14,
|
|
1329
1330
|
{
|
|
1330
|
-
color:
|
|
1331
|
+
color: PIN_METAL_COLOR,
|
|
1331
1332
|
size: [pinThickness, pinThickness, longSidePinLength * 0.9],
|
|
1332
1333
|
center: [x, y, flipZ(-longSidePinLength / 2 * 0.9)]
|
|
1333
1334
|
}
|
|
@@ -1335,7 +1336,7 @@ var PinHeader = ({
|
|
|
1335
1336
|
/* @__PURE__ */ jsx21(
|
|
1336
1337
|
Cuboid14,
|
|
1337
1338
|
{
|
|
1338
|
-
color:
|
|
1339
|
+
color: PIN_METAL_COLOR,
|
|
1339
1340
|
size: [
|
|
1340
1341
|
pinThickness / 1.8,
|
|
1341
1342
|
pinThickness / 1.8,
|