jscad-electronics 0.0.106 → 0.0.107
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.d.ts +2 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +6 -4
- package/dist/vanilla.js.map +1 -1
- package/package.json +2 -2
package/dist/vanilla.js
CHANGED
|
@@ -675,14 +675,15 @@ var PinRow = ({
|
|
|
675
675
|
numberOfPins,
|
|
676
676
|
pitch = 2.54,
|
|
677
677
|
longSidePinLength = 6,
|
|
678
|
-
invert
|
|
678
|
+
invert,
|
|
679
|
+
faceup
|
|
679
680
|
}) => {
|
|
680
681
|
const pinThickness = 0.63;
|
|
681
682
|
const bodyHeight = 2;
|
|
682
683
|
const bodyWidth = numberOfPins * pitch;
|
|
683
684
|
const shortSidePinLength = 3;
|
|
684
685
|
const xoff = -((numberOfPins - 1) / 2) * pitch;
|
|
685
|
-
const flipZ = (z) => invert ? -z + bodyHeight : z;
|
|
686
|
+
const flipZ = (z) => invert || faceup ? -z + bodyHeight : z;
|
|
686
687
|
return /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
687
688
|
/* @__PURE__ */ jsx(
|
|
688
689
|
Cuboid,
|
|
@@ -693,7 +694,7 @@ var PinRow = ({
|
|
|
693
694
|
}
|
|
694
695
|
),
|
|
695
696
|
Array.from({ length: numberOfPins }, (_, i) => /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
696
|
-
/* @__PURE__ */ jsx(Colorize, { color: "gold", children: /* @__PURE__ */ jsxs(Hull, { children: [
|
|
697
|
+
!faceup && /* @__PURE__ */ jsx(Colorize, { color: "gold", children: /* @__PURE__ */ jsxs(Hull, { children: [
|
|
697
698
|
/* @__PURE__ */ jsx(
|
|
698
699
|
Cuboid,
|
|
699
700
|
{
|
|
@@ -3982,7 +3983,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
3982
3983
|
{
|
|
3983
3984
|
numberOfPins: fpJson.num_pins,
|
|
3984
3985
|
pitch: fpJson.p,
|
|
3985
|
-
invert: fpJson.invert
|
|
3986
|
+
invert: fpJson.invert,
|
|
3987
|
+
faceup: fpJson.faceup
|
|
3986
3988
|
}
|
|
3987
3989
|
);
|
|
3988
3990
|
if (fpJson.female)
|