jscad-electronics 0.0.17 → 0.0.18

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 +119 -117
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -78901,15 +78901,90 @@ var getLeadWidth = (pinCount, width4) => {
78901
78901
  }
78902
78902
  };
78903
78903
 
78904
- // lib/Footprinter3d.tsx
78904
+ // lib/PinRow.tsx
78905
+ var import_jscad_fiber10 = __toESM(require_dist(), 1);
78905
78906
  var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
78907
+ var PinRow = ({
78908
+ numberOfPins,
78909
+ pitch = 2.54,
78910
+ longSidePinLength = 6
78911
+ }) => {
78912
+ const pinThickness = 0.63;
78913
+ const bodyHeight = 2;
78914
+ const bodyWidth = numberOfPins * pitch;
78915
+ const shortSidePinLength = 3;
78916
+ const xoff = -((numberOfPins - 1) / 2) * pitch;
78917
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
78918
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
78919
+ import_jscad_fiber10.Cuboid,
78920
+ {
78921
+ color: "#222",
78922
+ size: [bodyWidth, pinThickness * 3, bodyHeight],
78923
+ center: [0, 0, bodyHeight / 2]
78924
+ }
78925
+ ),
78926
+ Array.from({ length: numberOfPins }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
78927
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jscad_fiber10.Colorize, { color: "gold", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jscad_fiber10.Hull, { children: [
78928
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
78929
+ import_jscad_fiber10.Cuboid,
78930
+ {
78931
+ color: "gold",
78932
+ size: [pinThickness, pinThickness, shortSidePinLength * 0.9],
78933
+ center: [
78934
+ xoff + i * pitch,
78935
+ 0,
78936
+ bodyHeight * 0.9 + bodyHeight / 2
78937
+ ]
78938
+ }
78939
+ ),
78940
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
78941
+ import_jscad_fiber10.Cuboid,
78942
+ {
78943
+ color: "gold",
78944
+ size: [
78945
+ pinThickness / 1.8,
78946
+ pinThickness / 1.8,
78947
+ shortSidePinLength
78948
+ ],
78949
+ center: [xoff + i * pitch, 0, bodyHeight + bodyHeight / 2]
78950
+ }
78951
+ )
78952
+ ] }) }),
78953
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jscad_fiber10.Colorize, { color: "gold", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jscad_fiber10.Hull, { children: [
78954
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
78955
+ import_jscad_fiber10.Cuboid,
78956
+ {
78957
+ color: "gold",
78958
+ size: [pinThickness, pinThickness, longSidePinLength * 0.9],
78959
+ center: [xoff + i * pitch, 0, -longSidePinLength / 2 * 0.9]
78960
+ }
78961
+ ),
78962
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
78963
+ import_jscad_fiber10.Cuboid,
78964
+ {
78965
+ color: "gold",
78966
+ size: [
78967
+ pinThickness / 1.8,
78968
+ pinThickness / 1.8,
78969
+ longSidePinLength
78970
+ ],
78971
+ center: [xoff + i * pitch, 0, -longSidePinLength / 2]
78972
+ }
78973
+ )
78974
+ ] }) })
78975
+ ] }))
78976
+ ] });
78977
+ };
78978
+
78979
+ // lib/Footprinter3d.tsx
78980
+ var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
78906
78981
  var Footprinter3d = ({ footprint }) => {
78907
78982
  const fpJson = fp3.string(footprint).json();
78908
78983
  switch (fpJson.fn) {
78909
78984
  case "dip":
78910
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
78985
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
78911
78986
  case "tssop":
78912
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
78987
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
78913
78988
  Tssop,
78914
78989
  {
78915
78990
  pinCount: fpJson.num_pins,
@@ -78920,7 +78995,7 @@ var Footprinter3d = ({ footprint }) => {
78920
78995
  }
78921
78996
  );
78922
78997
  case "qfp":
78923
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
78998
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
78924
78999
  QFP,
78925
79000
  {
78926
79001
  pinCount: fpJson.num_pins,
@@ -78930,8 +79005,10 @@ var Footprinter3d = ({ footprint }) => {
78930
79005
  bodyWidth: fpJson.w
78931
79006
  }
78932
79007
  );
79008
+ case "pinrow":
79009
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
78933
79010
  case "soic":
78934
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
79011
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
78935
79012
  Tssop,
78936
79013
  {
78937
79014
  pinCount: fpJson.num_pins,
@@ -78944,17 +79021,17 @@ var Footprinter3d = ({ footprint }) => {
78944
79021
  }
78945
79022
  switch (fpJson.imperial) {
78946
79023
  case "0402":
78947
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(A0402, {});
79024
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(A0402, {});
78948
79025
  case "0603":
78949
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(A0603, {});
79026
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(A0603, {});
78950
79027
  case "0805":
78951
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(A0805, {});
79028
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(A0805, {});
78952
79029
  }
78953
79030
  return null;
78954
79031
  };
78955
79032
 
78956
79033
  // lib/SOT-23-3P.tsx
78957
- var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
79034
+ var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
78958
79035
  var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
78959
79036
  const bodyWidth = 1.3;
78960
79037
  const bodyLength4 = 2.9;
@@ -78964,8 +79041,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
78964
79041
  const leadHeight = 0.95;
78965
79042
  const padContactLength = 0.4;
78966
79043
  const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
78967
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
78968
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
79044
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
79045
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
78969
79046
  SmdChipLead,
78970
79047
  {
78971
79048
  rotation: Math.PI,
@@ -78982,7 +79059,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
78982
79059
  },
78983
79060
  1
78984
79061
  ),
78985
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
79062
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
78986
79063
  SmdChipLead,
78987
79064
  {
78988
79065
  rotation: Math.PI,
@@ -78999,7 +79076,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
78999
79076
  },
79000
79077
  2
79001
79078
  ),
79002
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
79079
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
79003
79080
  SmdChipLead,
79004
79081
  {
79005
79082
  position: {
@@ -79015,7 +79092,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
79015
79092
  },
79016
79093
  3
79017
79094
  ),
79018
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
79095
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
79019
79096
  ChipBody,
79020
79097
  {
79021
79098
  center: { x: 0, y: 0, z: 0 },
@@ -79028,8 +79105,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength4 = 2.8 }) => {
79028
79105
  };
79029
79106
 
79030
79107
  // lib/SOT-563.tsx
79031
- var import_jscad_fiber10 = __toESM(require_dist(), 1);
79032
- var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
79108
+ var import_jscad_fiber11 = __toESM(require_dist(), 1);
79109
+ var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
79033
79110
  var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength4 = 1.6 }) => {
79034
79111
  const bodyWidth = 1.2;
79035
79112
  const bodyLength4 = 1.6;
@@ -79039,24 +79116,24 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength4 = 1.6 }) => {
79039
79116
  const leadHeight = 0.13;
79040
79117
  const leadSpacing = 0.5;
79041
79118
  const bodyZOffset = -0.3;
79042
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
79043
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber10.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber10.Translate, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber10.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber10.Cuboid, { size: [bodyWidth, bodyLength4, bodyHeight] }) }) }) }),
79119
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
79120
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jscad_fiber11.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jscad_fiber11.Translate, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jscad_fiber11.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jscad_fiber11.Cuboid, { size: [bodyWidth, bodyLength4, bodyHeight] }) }) }) }),
79044
79121
  [-1, 0, 1].flatMap((yOffset, index) => [
79045
79122
  // Left lead
79046
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
79047
- import_jscad_fiber10.Translate,
79123
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
79124
+ import_jscad_fiber11.Translate,
79048
79125
  {
79049
79126
  center: [-bodyWidth / 2 - 0.03, yOffset * leadSpacing, 0],
79050
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber10.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
79127
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jscad_fiber11.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
79051
79128
  },
79052
79129
  `left-${index}`
79053
79130
  ),
79054
79131
  // Right lead
79055
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
79056
- import_jscad_fiber10.Translate,
79132
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
79133
+ import_jscad_fiber11.Translate,
79057
79134
  {
79058
79135
  center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, 0],
79059
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jscad_fiber10.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
79136
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jscad_fiber11.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
79060
79137
  },
79061
79138
  `right-${index}`
79062
79139
  )
@@ -79065,8 +79142,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength4 = 1.6 }) => {
79065
79142
  };
79066
79143
 
79067
79144
  // lib/SOT-723.tsx
79068
- var import_jscad_fiber11 = __toESM(require_dist(), 1);
79069
- var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
79145
+ var import_jscad_fiber12 = __toESM(require_dist(), 1);
79146
+ var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
79070
79147
  var getCcwSot723Coords = (pn) => {
79071
79148
  if (pn === 1) {
79072
79149
  return { x: 0, y: 0 };
@@ -79084,12 +79161,12 @@ var SOT723 = () => {
79084
79161
  const leadLength = 0.3;
79085
79162
  const leadHeight = 0.1;
79086
79163
  const centerLeadWidth = 0.42;
79087
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
79088
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jscad_fiber11.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jscad_fiber11.Translate, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jscad_fiber11.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jscad_fiber11.Cuboid, { size: [bodyWidth, bodyLength4, bodyHeight] }) }) }) }),
79164
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
79165
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jscad_fiber12.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jscad_fiber12.Translate, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jscad_fiber12.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jscad_fiber12.Cuboid, { size: [bodyWidth, bodyLength4, bodyHeight] }) }) }) }),
79089
79166
  [1, 2, 3].map((pn) => {
79090
79167
  const { x, y } = getCcwSot723Coords(pn);
79091
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jscad_fiber11.Translate, { center: [x, y, 0], children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
79092
- import_jscad_fiber11.Cuboid,
79168
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jscad_fiber12.Translate, { center: [x, y, 0], children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
79169
+ import_jscad_fiber12.Cuboid,
79093
79170
  {
79094
79171
  size: [
79095
79172
  leadLength,
@@ -79103,8 +79180,8 @@ var SOT723 = () => {
79103
79180
  };
79104
79181
 
79105
79182
  // lib/qfn.tsx
79106
- var import_jscad_fiber12 = __toESM(require_dist(), 1);
79107
- var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
79183
+ var import_jscad_fiber13 = __toESM(require_dist(), 1);
79184
+ var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
79108
79185
  var QFN = ({
79109
79186
  fullWidth = 5,
79110
79187
  height: height4 = 0.8,
@@ -79113,16 +79190,16 @@ var QFN = ({
79113
79190
  const bodyWidth = fullWidth;
79114
79191
  const bodyLength4 = fullWidth;
79115
79192
  const thermalPadHeight = 0.1;
79116
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
79117
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jscad_fiber12.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
79118
- import_jscad_fiber12.Cuboid,
79193
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
79194
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jscad_fiber13.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
79195
+ import_jscad_fiber13.Cuboid,
79119
79196
  {
79120
79197
  center: { x: 0, y: 0, z: height4 / 2 },
79121
79198
  size: [bodyWidth, bodyLength4, height4]
79122
79199
  }
79123
79200
  ) }),
79124
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
79125
- import_jscad_fiber12.Cuboid,
79201
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
79202
+ import_jscad_fiber13.Cuboid,
79126
79203
  {
79127
79204
  center: { x: 0, y: 0, z: -thermalPadHeight / 2 },
79128
79205
  size: [thermalPadSize, thermalPadSize, thermalPadHeight]
@@ -79132,7 +79209,7 @@ var QFN = ({
79132
79209
  };
79133
79210
 
79134
79211
  // lib/sod-123.tsx
79135
- var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
79212
+ var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
79136
79213
  var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength4 = 1.6 }) => {
79137
79214
  const bodyWidth = 2.9;
79138
79215
  const bodyLength4 = 1.3;
@@ -79144,8 +79221,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength4 = 1.6 }) => {
79144
79221
  const leadYOffset = leadHeight / 1 - 0.4;
79145
79222
  const bodyYOffset = leadHeight / 2 - 0.4;
79146
79223
  const bodyDistance = (fullWidth - bodyWidth) / 2;
79147
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
79148
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
79224
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
79225
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
79149
79226
  SmdChipLead,
79150
79227
  {
79151
79228
  position: {
@@ -79161,7 +79238,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength4 = 1.6 }) => {
79161
79238
  },
79162
79239
  1
79163
79240
  ),
79164
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
79241
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
79165
79242
  SmdChipLead,
79166
79243
  {
79167
79244
  rotation: Math.PI,
@@ -79178,7 +79255,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength4 = 1.6 }) => {
79178
79255
  },
79179
79256
  2
79180
79257
  ),
79181
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
79258
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
79182
79259
  ChipBody,
79183
79260
  {
79184
79261
  center: { x: 0, y: bodyYOffset, z: 0 },
@@ -79189,81 +79266,6 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength4 = 1.6 }) => {
79189
79266
  )
79190
79267
  ] });
79191
79268
  };
79192
-
79193
- // lib/PinRow.tsx
79194
- var import_jscad_fiber13 = __toESM(require_dist(), 1);
79195
- var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
79196
- var PinRow = ({
79197
- numberOfPins,
79198
- pitch = 2.54,
79199
- longSidePinLength = 6
79200
- }) => {
79201
- const pinThickness = 0.63;
79202
- const bodyHeight = 2;
79203
- const bodyWidth = numberOfPins * pitch;
79204
- const shortSidePinLength = 3;
79205
- const xoff = -((numberOfPins - 1) / 2) * pitch;
79206
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
79207
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
79208
- import_jscad_fiber13.Cuboid,
79209
- {
79210
- color: "#222",
79211
- size: [bodyWidth, pinThickness * 3, bodyHeight],
79212
- center: [0, 0, bodyHeight / 2]
79213
- }
79214
- ),
79215
- Array.from({ length: numberOfPins }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
79216
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jscad_fiber13.Colorize, { color: "gold", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jscad_fiber13.Hull, { children: [
79217
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
79218
- import_jscad_fiber13.Cuboid,
79219
- {
79220
- color: "gold",
79221
- size: [pinThickness, pinThickness, shortSidePinLength * 0.9],
79222
- center: [
79223
- xoff + i * pitch,
79224
- 0,
79225
- bodyHeight * 0.9 + bodyHeight / 2
79226
- ]
79227
- }
79228
- ),
79229
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
79230
- import_jscad_fiber13.Cuboid,
79231
- {
79232
- color: "gold",
79233
- size: [
79234
- pinThickness / 1.8,
79235
- pinThickness / 1.8,
79236
- shortSidePinLength
79237
- ],
79238
- center: [xoff + i * pitch, 0, bodyHeight + bodyHeight / 2]
79239
- }
79240
- )
79241
- ] }) }),
79242
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jscad_fiber13.Colorize, { color: "gold", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jscad_fiber13.Hull, { children: [
79243
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
79244
- import_jscad_fiber13.Cuboid,
79245
- {
79246
- color: "gold",
79247
- size: [pinThickness, pinThickness, longSidePinLength * 0.9],
79248
- center: [xoff + i * pitch, 0, -longSidePinLength / 2 * 0.9]
79249
- }
79250
- ),
79251
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
79252
- import_jscad_fiber13.Cuboid,
79253
- {
79254
- color: "gold",
79255
- size: [
79256
- pinThickness / 1.8,
79257
- pinThickness / 1.8,
79258
- longSidePinLength
79259
- ],
79260
- center: [xoff + i * pitch, 0, -longSidePinLength / 2]
79261
- }
79262
- )
79263
- ] }) })
79264
- ] }))
79265
- ] });
79266
- };
79267
79269
  export {
79268
79270
  A0402,
79269
79271
  A0603,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jscad-electronics",
3
3
  "type": "module",
4
- "version": "0.0.17",
4
+ "version": "0.0.18",
5
5
  "main": "./dist/index.js",
6
6
  "repository": {
7
7
  "type": "git",