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/index.d.ts
CHANGED
|
@@ -216,11 +216,12 @@ declare const SOD123: ({ fullWidth, fullLength }: {
|
|
|
216
216
|
fullLength?: number | undefined;
|
|
217
217
|
}) => react_jsx_runtime.JSX.Element;
|
|
218
218
|
|
|
219
|
-
declare const PinRow: ({ numberOfPins, pitch, longSidePinLength, invert, }: {
|
|
219
|
+
declare const PinRow: ({ numberOfPins, pitch, longSidePinLength, invert, faceup, }: {
|
|
220
220
|
numberOfPins: number;
|
|
221
221
|
pitch?: number;
|
|
222
222
|
longSidePinLength?: number;
|
|
223
223
|
invert?: boolean;
|
|
224
|
+
faceup?: boolean;
|
|
224
225
|
}) => react_jsx_runtime.JSX.Element;
|
|
225
226
|
|
|
226
227
|
declare const SOD523: () => react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -1014,14 +1014,15 @@ var PinRow = ({
|
|
|
1014
1014
|
numberOfPins,
|
|
1015
1015
|
pitch = 2.54,
|
|
1016
1016
|
longSidePinLength = 6,
|
|
1017
|
-
invert
|
|
1017
|
+
invert,
|
|
1018
|
+
faceup
|
|
1018
1019
|
}) => {
|
|
1019
1020
|
const pinThickness = 0.63;
|
|
1020
1021
|
const bodyHeight = 2;
|
|
1021
1022
|
const bodyWidth = numberOfPins * pitch;
|
|
1022
1023
|
const shortSidePinLength = 3;
|
|
1023
1024
|
const xoff = -((numberOfPins - 1) / 2) * pitch;
|
|
1024
|
-
const flipZ = (z) => invert ? -z + bodyHeight : z;
|
|
1025
|
+
const flipZ = (z) => invert || faceup ? -z + bodyHeight : z;
|
|
1025
1026
|
return /* @__PURE__ */ jsxs18(Fragment16, { children: [
|
|
1026
1027
|
/* @__PURE__ */ jsx20(
|
|
1027
1028
|
Cuboid14,
|
|
@@ -1032,7 +1033,7 @@ var PinRow = ({
|
|
|
1032
1033
|
}
|
|
1033
1034
|
),
|
|
1034
1035
|
Array.from({ length: numberOfPins }, (_, i) => /* @__PURE__ */ jsxs18(Fragment16, { children: [
|
|
1035
|
-
/* @__PURE__ */ jsx20(Colorize6, { color: "gold", children: /* @__PURE__ */ jsxs18(Hull2, { children: [
|
|
1036
|
+
!faceup && /* @__PURE__ */ jsx20(Colorize6, { color: "gold", children: /* @__PURE__ */ jsxs18(Hull2, { children: [
|
|
1036
1037
|
/* @__PURE__ */ jsx20(
|
|
1037
1038
|
Cuboid14,
|
|
1038
1039
|
{
|
|
@@ -4209,7 +4210,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4209
4210
|
{
|
|
4210
4211
|
numberOfPins: fpJson.num_pins,
|
|
4211
4212
|
pitch: fpJson.p,
|
|
4212
|
-
invert: fpJson.invert
|
|
4213
|
+
invert: fpJson.invert,
|
|
4214
|
+
faceup: fpJson.faceup
|
|
4213
4215
|
}
|
|
4214
4216
|
);
|
|
4215
4217
|
if (fpJson.female)
|