jscad-electronics 0.0.123 → 0.0.124
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 +3 -1
- package/dist/index.js +146 -87
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +56 -0
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -287,6 +287,8 @@ declare const FemaleHeaderRow: ({ numberOfPins, pitch, legsLength, innerDiameter
|
|
|
287
287
|
|
|
288
288
|
declare const SOD523: () => react_jsx_runtime.JSX.Element;
|
|
289
289
|
|
|
290
|
+
declare const SOD723: () => react_jsx_runtime.JSX.Element;
|
|
291
|
+
|
|
290
292
|
declare const SOD882: () => react_jsx_runtime.JSX.Element;
|
|
291
293
|
|
|
292
294
|
declare const SMA: () => react_jsx_runtime.JSX.Element;
|
|
@@ -431,4 +433,4 @@ interface ScreenProps {
|
|
|
431
433
|
declare const Screen: ({ width, height, thickness, bezelInset, bezelDepth, screenColor, bezelColor, screenWidth, screenHeight, offset, }: ScreenProps) => react_jsx_runtime.JSX.Element;
|
|
432
434
|
declare const Display: ({ width, height, thickness, bezelInset, bezelDepth, screenColor, bezelColor, screenWidth, screenHeight, offset, }: ScreenProps) => react_jsx_runtime.JSX.Element;
|
|
433
435
|
|
|
434
|
-
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, AxialCapacitor, BGA, ChipBody, type ChipBodyProps, DFN, Display, ExtrudedPads, FemaleHeader, FemaleHeaderRow, FootprintPad, FootprintPlatedHole, Footprinter3d, HC49, type HC49Props, LQFP, MELF, type MELFProps, MINIMELF, type MINIMELFProps, MS012, MS013, MSOP, MicroMELF, type MicroMELFProps, MountedPcbModule, PinHeader, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, SOD123W, SOD128, SOD323, SOD323F, SOD323FL, SOD523, SOD882, SOD923, SOT223, SOT233P, SOT23W, SOT323, SOT363, SOT457, SOT563, SOT723, SOT886, SOT963, Screen, type ScreenProps, SmdChipLead, type SmdChipLeadProps, StampBoard, TO220, TO92, TQFP, Tssop, VSSOP };
|
|
436
|
+
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, AxialCapacitor, BGA, ChipBody, type ChipBodyProps, DFN, Display, ExtrudedPads, FemaleHeader, FemaleHeaderRow, FootprintPad, FootprintPlatedHole, Footprinter3d, HC49, type HC49Props, LQFP, MELF, type MELFProps, MINIMELF, type MINIMELFProps, MS012, MS013, MSOP, MicroMELF, type MicroMELFProps, MountedPcbModule, PinHeader, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, SOD123W, SOD128, SOD323, SOD323F, SOD323FL, SOD523, SOD723, SOD882, SOD923, SOT223, SOT233P, SOT23W, SOT323, SOT363, SOT457, SOT563, SOT723, SOT886, SOT963, Screen, type ScreenProps, SmdChipLead, type SmdChipLeadProps, StampBoard, TO220, TO92, TQFP, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -4634,17 +4634,73 @@ var MountedPcbModule = ({
|
|
|
4634
4634
|
] });
|
|
4635
4635
|
};
|
|
4636
4636
|
|
|
4637
|
+
// lib/SOD723.tsx
|
|
4638
|
+
import { Colorize as Colorize35, Cuboid as Cuboid43, Hull as Hull22, Translate as Translate29, Union as Union20 } from "jscad-fiber";
|
|
4639
|
+
import { Fragment as Fragment60, jsx as jsx66, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
4640
|
+
var SOD723 = () => {
|
|
4641
|
+
const fullWidth = 1.4;
|
|
4642
|
+
const bodyLength10 = 0.6;
|
|
4643
|
+
const bodyHeight = 0.5;
|
|
4644
|
+
const padWidth = 0.28;
|
|
4645
|
+
const padLength = 0.5;
|
|
4646
|
+
const padThickness = 0.12;
|
|
4647
|
+
const bodyWidth = fullWidth - padLength;
|
|
4648
|
+
const leftPadCenterX = -bodyWidth / 2 + padLength / 2 - 0.15;
|
|
4649
|
+
const rightPadCenterX = bodyWidth / 2 - padLength / 2 + 0.15;
|
|
4650
|
+
const taperOffset = 0.2;
|
|
4651
|
+
const straightHeight = bodyHeight * 0.24;
|
|
4652
|
+
return /* @__PURE__ */ jsxs62(Fragment60, { children: [
|
|
4653
|
+
/* @__PURE__ */ jsx66(
|
|
4654
|
+
Cuboid43,
|
|
4655
|
+
{
|
|
4656
|
+
color: "#ccc",
|
|
4657
|
+
size: [padLength, padWidth, padThickness],
|
|
4658
|
+
center: [leftPadCenterX, 0, padThickness / 2]
|
|
4659
|
+
}
|
|
4660
|
+
),
|
|
4661
|
+
/* @__PURE__ */ jsx66(
|
|
4662
|
+
Cuboid43,
|
|
4663
|
+
{
|
|
4664
|
+
color: "#ccc",
|
|
4665
|
+
size: [padLength, padWidth, padThickness],
|
|
4666
|
+
center: [rightPadCenterX, 0, padThickness / 2]
|
|
4667
|
+
}
|
|
4668
|
+
),
|
|
4669
|
+
/* @__PURE__ */ jsx66(Colorize35, { color: "#222", children: /* @__PURE__ */ jsxs62(Union20, { children: [
|
|
4670
|
+
/* @__PURE__ */ jsx66(Translate29, { z: straightHeight / 2, children: /* @__PURE__ */ jsx66(Cuboid43, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
4671
|
+
/* @__PURE__ */ jsxs62(Hull22, { children: [
|
|
4672
|
+
/* @__PURE__ */ jsx66(Translate29, { z: straightHeight, children: /* @__PURE__ */ jsx66(Cuboid43, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
4673
|
+
/* @__PURE__ */ jsx66(Translate29, { z: bodyHeight, children: /* @__PURE__ */ jsx66(
|
|
4674
|
+
Cuboid43,
|
|
4675
|
+
{
|
|
4676
|
+
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
4677
|
+
}
|
|
4678
|
+
) })
|
|
4679
|
+
] })
|
|
4680
|
+
] }) }),
|
|
4681
|
+
/* @__PURE__ */ jsx66(
|
|
4682
|
+
Cuboid43,
|
|
4683
|
+
{
|
|
4684
|
+
color: "#777",
|
|
4685
|
+
size: [fullWidth / 6, bodyLength10 - taperOffset, 0.02],
|
|
4686
|
+
center: [-bodyWidth / 4, 0, bodyHeight]
|
|
4687
|
+
}
|
|
4688
|
+
)
|
|
4689
|
+
] });
|
|
4690
|
+
};
|
|
4691
|
+
var SOD723_default = SOD723;
|
|
4692
|
+
|
|
4637
4693
|
// lib/Footprinter3d.tsx
|
|
4638
|
-
import { jsx as
|
|
4694
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
4639
4695
|
var Footprinter3d = ({ footprint }) => {
|
|
4640
4696
|
const fpJson = fp3.string(footprint).json();
|
|
4641
4697
|
switch (fpJson.fn) {
|
|
4642
4698
|
case "dip":
|
|
4643
|
-
return /* @__PURE__ */
|
|
4699
|
+
return /* @__PURE__ */ jsx67(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
4644
4700
|
case "axial":
|
|
4645
|
-
return /* @__PURE__ */
|
|
4701
|
+
return /* @__PURE__ */ jsx67(AxialCapacitor, { pitch: fpJson.p });
|
|
4646
4702
|
case "tssop":
|
|
4647
|
-
return /* @__PURE__ */
|
|
4703
|
+
return /* @__PURE__ */ jsx67(
|
|
4648
4704
|
Tssop,
|
|
4649
4705
|
{
|
|
4650
4706
|
pinCount: fpJson.num_pins,
|
|
@@ -4655,7 +4711,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4655
4711
|
}
|
|
4656
4712
|
);
|
|
4657
4713
|
case "msop":
|
|
4658
|
-
return /* @__PURE__ */
|
|
4714
|
+
return /* @__PURE__ */ jsx67(
|
|
4659
4715
|
MSOP,
|
|
4660
4716
|
{
|
|
4661
4717
|
pinCount: fpJson.num_pins,
|
|
@@ -4666,7 +4722,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4666
4722
|
}
|
|
4667
4723
|
);
|
|
4668
4724
|
case "vssop":
|
|
4669
|
-
return /* @__PURE__ */
|
|
4725
|
+
return /* @__PURE__ */ jsx67(
|
|
4670
4726
|
VSSOP,
|
|
4671
4727
|
{
|
|
4672
4728
|
pinCount: fpJson.num_pins,
|
|
@@ -4678,7 +4734,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4678
4734
|
}
|
|
4679
4735
|
);
|
|
4680
4736
|
case "qfp":
|
|
4681
|
-
return /* @__PURE__ */
|
|
4737
|
+
return /* @__PURE__ */ jsx67(
|
|
4682
4738
|
QFP,
|
|
4683
4739
|
{
|
|
4684
4740
|
pinCount: fpJson.num_pins,
|
|
@@ -4689,12 +4745,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4689
4745
|
}
|
|
4690
4746
|
);
|
|
4691
4747
|
case "tqfp":
|
|
4692
|
-
return /* @__PURE__ */
|
|
4748
|
+
return /* @__PURE__ */ jsx67(tqfp_default, {});
|
|
4693
4749
|
case "lqfp":
|
|
4694
|
-
return /* @__PURE__ */
|
|
4750
|
+
return /* @__PURE__ */ jsx67(LQFP, { pinCount: fpJson.num_pins });
|
|
4695
4751
|
case "qfn": {
|
|
4696
4752
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
4697
|
-
return /* @__PURE__ */
|
|
4753
|
+
return /* @__PURE__ */ jsx67(
|
|
4698
4754
|
qfn_default,
|
|
4699
4755
|
{
|
|
4700
4756
|
num_pins: fpJson.num_pins,
|
|
@@ -4712,7 +4768,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4712
4768
|
}
|
|
4713
4769
|
case "dfn": {
|
|
4714
4770
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
4715
|
-
return /* @__PURE__ */
|
|
4771
|
+
return /* @__PURE__ */ jsx67(
|
|
4716
4772
|
DFN,
|
|
4717
4773
|
{
|
|
4718
4774
|
num_pins: fpJson.num_pins,
|
|
@@ -4732,7 +4788,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4732
4788
|
const rowsMatch = footprint.match(/_rows(\d+)/);
|
|
4733
4789
|
const rows = rowsMatch && rowsMatch[1] ? parseInt(rowsMatch[1], 10) : 1;
|
|
4734
4790
|
if (fpJson.male)
|
|
4735
|
-
return /* @__PURE__ */
|
|
4791
|
+
return /* @__PURE__ */ jsx67(
|
|
4736
4792
|
PinRow,
|
|
4737
4793
|
{
|
|
4738
4794
|
numberOfPins: fpJson.num_pins,
|
|
@@ -4745,7 +4801,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4745
4801
|
}
|
|
4746
4802
|
);
|
|
4747
4803
|
if (fpJson.female)
|
|
4748
|
-
return /* @__PURE__ */
|
|
4804
|
+
return /* @__PURE__ */ jsx67(
|
|
4749
4805
|
FemaleHeaderRow,
|
|
4750
4806
|
{
|
|
4751
4807
|
numberOfPins: fpJson.num_pins,
|
|
@@ -4757,47 +4813,47 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4757
4813
|
case "cap": {
|
|
4758
4814
|
switch (fpJson.imperial) {
|
|
4759
4815
|
case "0402":
|
|
4760
|
-
return /* @__PURE__ */
|
|
4816
|
+
return /* @__PURE__ */ jsx67(A0402, { color: "#856c4d" });
|
|
4761
4817
|
case "0603":
|
|
4762
|
-
return /* @__PURE__ */
|
|
4818
|
+
return /* @__PURE__ */ jsx67(A0603, { color: "#856c4d" });
|
|
4763
4819
|
case "0805":
|
|
4764
|
-
return /* @__PURE__ */
|
|
4820
|
+
return /* @__PURE__ */ jsx67(A0805, { color: "#856c4d" });
|
|
4765
4821
|
case "0201":
|
|
4766
|
-
return /* @__PURE__ */
|
|
4822
|
+
return /* @__PURE__ */ jsx67(A0201, { color: "#856c4d" });
|
|
4767
4823
|
case "01005":
|
|
4768
|
-
return /* @__PURE__ */
|
|
4824
|
+
return /* @__PURE__ */ jsx67(A01005, { color: "#856c4d" });
|
|
4769
4825
|
case "1206":
|
|
4770
|
-
return /* @__PURE__ */
|
|
4826
|
+
return /* @__PURE__ */ jsx67(A1206, { color: "#856c4d" });
|
|
4771
4827
|
case "1210":
|
|
4772
|
-
return /* @__PURE__ */
|
|
4828
|
+
return /* @__PURE__ */ jsx67(A1210, { color: "#856c4d" });
|
|
4773
4829
|
case "2010":
|
|
4774
|
-
return /* @__PURE__ */
|
|
4830
|
+
return /* @__PURE__ */ jsx67(A2010, { color: "#856c4d" });
|
|
4775
4831
|
case "2512":
|
|
4776
|
-
return /* @__PURE__ */
|
|
4832
|
+
return /* @__PURE__ */ jsx67(A2512, { color: "#856c4d" });
|
|
4777
4833
|
}
|
|
4778
4834
|
}
|
|
4779
4835
|
case "sot235":
|
|
4780
|
-
return /* @__PURE__ */
|
|
4836
|
+
return /* @__PURE__ */ jsx67(SOT_235_default, {});
|
|
4781
4837
|
case "sot457":
|
|
4782
|
-
return /* @__PURE__ */
|
|
4838
|
+
return /* @__PURE__ */ jsx67(SOT457, {});
|
|
4783
4839
|
case "sot223":
|
|
4784
|
-
return /* @__PURE__ */
|
|
4840
|
+
return /* @__PURE__ */ jsx67(SOT223, {});
|
|
4785
4841
|
case "sot23w":
|
|
4786
|
-
return /* @__PURE__ */
|
|
4842
|
+
return /* @__PURE__ */ jsx67(SOT23W, {});
|
|
4787
4843
|
case "sot323":
|
|
4788
|
-
return /* @__PURE__ */
|
|
4844
|
+
return /* @__PURE__ */ jsx67(SOT323, {});
|
|
4789
4845
|
case "sod323f":
|
|
4790
|
-
return /* @__PURE__ */
|
|
4846
|
+
return /* @__PURE__ */ jsx67(SOD323F, {});
|
|
4791
4847
|
case "sod323fl":
|
|
4792
|
-
return /* @__PURE__ */
|
|
4848
|
+
return /* @__PURE__ */ jsx67(SOD323FL, {});
|
|
4793
4849
|
case "sot363":
|
|
4794
|
-
return /* @__PURE__ */
|
|
4850
|
+
return /* @__PURE__ */ jsx67(SOT_363_default, {});
|
|
4795
4851
|
case "sot886":
|
|
4796
|
-
return /* @__PURE__ */
|
|
4852
|
+
return /* @__PURE__ */ jsx67(SOT886, {});
|
|
4797
4853
|
case "sot963":
|
|
4798
|
-
return /* @__PURE__ */
|
|
4854
|
+
return /* @__PURE__ */ jsx67(SOT963, {});
|
|
4799
4855
|
case "pushbutton":
|
|
4800
|
-
return /* @__PURE__ */
|
|
4856
|
+
return /* @__PURE__ */ jsx67(
|
|
4801
4857
|
PushButton,
|
|
4802
4858
|
{
|
|
4803
4859
|
width: fpJson.w,
|
|
@@ -4806,7 +4862,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4806
4862
|
}
|
|
4807
4863
|
);
|
|
4808
4864
|
case "soic":
|
|
4809
|
-
return /* @__PURE__ */
|
|
4865
|
+
return /* @__PURE__ */ jsx67(
|
|
4810
4866
|
SOIC,
|
|
4811
4867
|
{
|
|
4812
4868
|
pinCount: fpJson.num_pins,
|
|
@@ -4817,39 +4873,41 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4817
4873
|
}
|
|
4818
4874
|
);
|
|
4819
4875
|
case "sod523":
|
|
4820
|
-
return /* @__PURE__ */
|
|
4876
|
+
return /* @__PURE__ */ jsx67(SOD523, {});
|
|
4877
|
+
case "sod723":
|
|
4878
|
+
return /* @__PURE__ */ jsx67(SOD723_default, {});
|
|
4821
4879
|
case "sod882":
|
|
4822
|
-
return /* @__PURE__ */
|
|
4880
|
+
return /* @__PURE__ */ jsx67(SOD882, {});
|
|
4823
4881
|
case "sma":
|
|
4824
|
-
return /* @__PURE__ */
|
|
4882
|
+
return /* @__PURE__ */ jsx67(SMA, {});
|
|
4825
4883
|
case "smb":
|
|
4826
|
-
return /* @__PURE__ */
|
|
4884
|
+
return /* @__PURE__ */ jsx67(SMB, {});
|
|
4827
4885
|
case "smc":
|
|
4828
|
-
return /* @__PURE__ */
|
|
4886
|
+
return /* @__PURE__ */ jsx67(SMC, {});
|
|
4829
4887
|
case "smf":
|
|
4830
|
-
return /* @__PURE__ */
|
|
4888
|
+
return /* @__PURE__ */ jsx67(SMF, {});
|
|
4831
4889
|
case "sod123f":
|
|
4832
|
-
return /* @__PURE__ */
|
|
4890
|
+
return /* @__PURE__ */ jsx67(SOD123F, {});
|
|
4833
4891
|
case "sod123fl":
|
|
4834
|
-
return /* @__PURE__ */
|
|
4892
|
+
return /* @__PURE__ */ jsx67(SOD123FL, {});
|
|
4835
4893
|
case "sod123w":
|
|
4836
|
-
return /* @__PURE__ */
|
|
4894
|
+
return /* @__PURE__ */ jsx67(SOD123W, {});
|
|
4837
4895
|
case "sod128":
|
|
4838
|
-
return /* @__PURE__ */
|
|
4896
|
+
return /* @__PURE__ */ jsx67(SOD128, {});
|
|
4839
4897
|
case "sod323":
|
|
4840
|
-
return /* @__PURE__ */
|
|
4898
|
+
return /* @__PURE__ */ jsx67(SOD323, {});
|
|
4841
4899
|
case "sod923":
|
|
4842
|
-
return /* @__PURE__ */
|
|
4900
|
+
return /* @__PURE__ */ jsx67(SOD923, {});
|
|
4843
4901
|
case "hc49":
|
|
4844
|
-
return /* @__PURE__ */
|
|
4902
|
+
return /* @__PURE__ */ jsx67(HC49, {});
|
|
4845
4903
|
case "micromelf":
|
|
4846
|
-
return /* @__PURE__ */
|
|
4904
|
+
return /* @__PURE__ */ jsx67(MicroMELF, {});
|
|
4847
4905
|
case "minimelf":
|
|
4848
|
-
return /* @__PURE__ */
|
|
4906
|
+
return /* @__PURE__ */ jsx67(MINIMELF, {});
|
|
4849
4907
|
case "melf":
|
|
4850
|
-
return /* @__PURE__ */
|
|
4908
|
+
return /* @__PURE__ */ jsx67(MELF, {});
|
|
4851
4909
|
case "ms012":
|
|
4852
|
-
return /* @__PURE__ */
|
|
4910
|
+
return /* @__PURE__ */ jsx67(
|
|
4853
4911
|
MS012,
|
|
4854
4912
|
{
|
|
4855
4913
|
pinCount: fpJson.num_pins,
|
|
@@ -4859,7 +4917,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4859
4917
|
}
|
|
4860
4918
|
);
|
|
4861
4919
|
case "ms013":
|
|
4862
|
-
return /* @__PURE__ */
|
|
4920
|
+
return /* @__PURE__ */ jsx67(
|
|
4863
4921
|
MS013,
|
|
4864
4922
|
{
|
|
4865
4923
|
pinCount: fpJson.num_pins,
|
|
@@ -4869,14 +4927,14 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4869
4927
|
}
|
|
4870
4928
|
);
|
|
4871
4929
|
case "sot723":
|
|
4872
|
-
return /* @__PURE__ */
|
|
4930
|
+
return /* @__PURE__ */ jsx67(SOT723, {});
|
|
4873
4931
|
case "to220":
|
|
4874
|
-
return /* @__PURE__ */
|
|
4932
|
+
return /* @__PURE__ */ jsx67(TO220, {});
|
|
4875
4933
|
case "to92":
|
|
4876
|
-
return /* @__PURE__ */
|
|
4934
|
+
return /* @__PURE__ */ jsx67(TO92, {});
|
|
4877
4935
|
case "stampboard":
|
|
4878
4936
|
case "stampreceiver":
|
|
4879
|
-
return /* @__PURE__ */
|
|
4937
|
+
return /* @__PURE__ */ jsx67(
|
|
4880
4938
|
StampBoard,
|
|
4881
4939
|
{
|
|
4882
4940
|
bodyWidth: fpJson.w,
|
|
@@ -4900,7 +4958,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4900
4958
|
const pinRow = fpJson.pinrow;
|
|
4901
4959
|
const pinRowHoleEdgeToEdgeDist = fpJson.pinRowHoleEdgeToEdgeDist;
|
|
4902
4960
|
const holes = Array.isArray(fpJson.holes) ? fpJson.holes : [];
|
|
4903
|
-
return /* @__PURE__ */
|
|
4961
|
+
return /* @__PURE__ */ jsx67(
|
|
4904
4962
|
MountedPcbModule,
|
|
4905
4963
|
{
|
|
4906
4964
|
numPins: pinRow,
|
|
@@ -4929,29 +4987,29 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4929
4987
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
4930
4988
|
switch (fpJson.imperial) {
|
|
4931
4989
|
case "0402":
|
|
4932
|
-
return /* @__PURE__ */
|
|
4990
|
+
return /* @__PURE__ */ jsx67(A0402, { color });
|
|
4933
4991
|
case "0603":
|
|
4934
|
-
return /* @__PURE__ */
|
|
4992
|
+
return /* @__PURE__ */ jsx67(A0603, { color });
|
|
4935
4993
|
case "0805":
|
|
4936
|
-
return /* @__PURE__ */
|
|
4994
|
+
return /* @__PURE__ */ jsx67(A0805, { color });
|
|
4937
4995
|
case "0201":
|
|
4938
|
-
return /* @__PURE__ */
|
|
4996
|
+
return /* @__PURE__ */ jsx67(A0201, { color });
|
|
4939
4997
|
case "01005":
|
|
4940
|
-
return /* @__PURE__ */
|
|
4998
|
+
return /* @__PURE__ */ jsx67(A01005, { color });
|
|
4941
4999
|
case "1206":
|
|
4942
|
-
return /* @__PURE__ */
|
|
5000
|
+
return /* @__PURE__ */ jsx67(A1206, { color });
|
|
4943
5001
|
case "1210":
|
|
4944
|
-
return /* @__PURE__ */
|
|
5002
|
+
return /* @__PURE__ */ jsx67(A1210, { color });
|
|
4945
5003
|
case "2010":
|
|
4946
|
-
return /* @__PURE__ */
|
|
5004
|
+
return /* @__PURE__ */ jsx67(A2010, { color });
|
|
4947
5005
|
case "2512":
|
|
4948
|
-
return /* @__PURE__ */
|
|
5006
|
+
return /* @__PURE__ */ jsx67(A2512, { color });
|
|
4949
5007
|
}
|
|
4950
5008
|
return null;
|
|
4951
5009
|
};
|
|
4952
5010
|
|
|
4953
5011
|
// lib/SOT-23-3P.tsx
|
|
4954
|
-
import { Fragment as
|
|
5012
|
+
import { Fragment as Fragment61, jsx as jsx68, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
4955
5013
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
4956
5014
|
const bodyWidth = 1.3;
|
|
4957
5015
|
const bodyLength10 = 2.9;
|
|
@@ -4962,8 +5020,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4962
5020
|
const padContactLength = 0.4;
|
|
4963
5021
|
const padThickness = leadThickness / 2;
|
|
4964
5022
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
4965
|
-
return /* @__PURE__ */
|
|
4966
|
-
/* @__PURE__ */
|
|
5023
|
+
return /* @__PURE__ */ jsxs63(Fragment61, { children: [
|
|
5024
|
+
/* @__PURE__ */ jsx68(
|
|
4967
5025
|
SmdChipLead,
|
|
4968
5026
|
{
|
|
4969
5027
|
rotation: Math.PI,
|
|
@@ -4980,7 +5038,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4980
5038
|
},
|
|
4981
5039
|
1
|
|
4982
5040
|
),
|
|
4983
|
-
/* @__PURE__ */
|
|
5041
|
+
/* @__PURE__ */ jsx68(
|
|
4984
5042
|
SmdChipLead,
|
|
4985
5043
|
{
|
|
4986
5044
|
rotation: Math.PI,
|
|
@@ -4997,7 +5055,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4997
5055
|
},
|
|
4998
5056
|
2
|
|
4999
5057
|
),
|
|
5000
|
-
/* @__PURE__ */
|
|
5058
|
+
/* @__PURE__ */ jsx68(
|
|
5001
5059
|
SmdChipLead,
|
|
5002
5060
|
{
|
|
5003
5061
|
position: {
|
|
@@ -5013,7 +5071,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
5013
5071
|
},
|
|
5014
5072
|
3
|
|
5015
5073
|
),
|
|
5016
|
-
/* @__PURE__ */
|
|
5074
|
+
/* @__PURE__ */ jsx68(
|
|
5017
5075
|
ChipBody,
|
|
5018
5076
|
{
|
|
5019
5077
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -5026,8 +5084,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
5026
5084
|
};
|
|
5027
5085
|
|
|
5028
5086
|
// lib/SOT-563.tsx
|
|
5029
|
-
import { Cuboid as
|
|
5030
|
-
import { Fragment as
|
|
5087
|
+
import { Cuboid as Cuboid44, Translate as Translate30, Rotate as Rotate12, Colorize as Colorize36 } from "jscad-fiber";
|
|
5088
|
+
import { Fragment as Fragment62, jsx as jsx69, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
5031
5089
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
5032
5090
|
const bodyWidth = 1.2;
|
|
5033
5091
|
const bodyLength10 = 1.6;
|
|
@@ -5037,28 +5095,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
5037
5095
|
const leadHeight = 0.13;
|
|
5038
5096
|
const leadSpacing = 0.5;
|
|
5039
5097
|
const bodyZOffset = -0.4;
|
|
5040
|
-
return /* @__PURE__ */
|
|
5041
|
-
/* @__PURE__ */
|
|
5098
|
+
return /* @__PURE__ */ jsxs64(Fragment62, { children: [
|
|
5099
|
+
/* @__PURE__ */ jsx69(Rotate12, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx69(Translate30, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx69(Colorize36, { color: "grey", children: /* @__PURE__ */ jsx69(Cuboid44, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
5042
5100
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
5043
5101
|
// Left lead
|
|
5044
|
-
/* @__PURE__ */
|
|
5045
|
-
|
|
5102
|
+
/* @__PURE__ */ jsx69(
|
|
5103
|
+
Translate30,
|
|
5046
5104
|
{
|
|
5047
5105
|
center: [
|
|
5048
5106
|
-bodyWidth / 2 - 0.03,
|
|
5049
5107
|
yOffset * leadSpacing,
|
|
5050
5108
|
leadHeight / 2
|
|
5051
5109
|
],
|
|
5052
|
-
children: /* @__PURE__ */
|
|
5110
|
+
children: /* @__PURE__ */ jsx69(Cuboid44, { size: [leadLength, leadWidth, leadHeight] })
|
|
5053
5111
|
},
|
|
5054
5112
|
`left-${index}`
|
|
5055
5113
|
),
|
|
5056
5114
|
// Right lead
|
|
5057
|
-
/* @__PURE__ */
|
|
5058
|
-
|
|
5115
|
+
/* @__PURE__ */ jsx69(
|
|
5116
|
+
Translate30,
|
|
5059
5117
|
{
|
|
5060
5118
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
5061
|
-
children: /* @__PURE__ */
|
|
5119
|
+
children: /* @__PURE__ */ jsx69(Cuboid44, { size: [leadLength, leadWidth, leadHeight] })
|
|
5062
5120
|
},
|
|
5063
5121
|
`right-${index}`
|
|
5064
5122
|
)
|
|
@@ -5067,7 +5125,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
5067
5125
|
};
|
|
5068
5126
|
|
|
5069
5127
|
// lib/sod-123.tsx
|
|
5070
|
-
import { Fragment as
|
|
5128
|
+
import { Fragment as Fragment63, jsx as jsx70, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
5071
5129
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
5072
5130
|
const bodyWidth = 2.9;
|
|
5073
5131
|
const bodyLength10 = 1.3;
|
|
@@ -5078,8 +5136,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
5078
5136
|
const padContactLength = 0.4;
|
|
5079
5137
|
const padThickness = leadThickness / 2;
|
|
5080
5138
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
5081
|
-
return /* @__PURE__ */
|
|
5082
|
-
/* @__PURE__ */
|
|
5139
|
+
return /* @__PURE__ */ jsxs65(Fragment63, { children: [
|
|
5140
|
+
/* @__PURE__ */ jsx70(
|
|
5083
5141
|
SmdChipLead,
|
|
5084
5142
|
{
|
|
5085
5143
|
position: {
|
|
@@ -5095,7 +5153,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
5095
5153
|
},
|
|
5096
5154
|
1
|
|
5097
5155
|
),
|
|
5098
|
-
/* @__PURE__ */
|
|
5156
|
+
/* @__PURE__ */ jsx70(
|
|
5099
5157
|
SmdChipLead,
|
|
5100
5158
|
{
|
|
5101
5159
|
rotation: Math.PI,
|
|
@@ -5112,7 +5170,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
5112
5170
|
},
|
|
5113
5171
|
2
|
|
5114
5172
|
),
|
|
5115
|
-
/* @__PURE__ */
|
|
5173
|
+
/* @__PURE__ */ jsx70(
|
|
5116
5174
|
ChipBody,
|
|
5117
5175
|
{
|
|
5118
5176
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -5170,6 +5228,7 @@ export {
|
|
|
5170
5228
|
SOD323F,
|
|
5171
5229
|
SOD323FL,
|
|
5172
5230
|
SOD523,
|
|
5231
|
+
SOD723,
|
|
5173
5232
|
SOD882,
|
|
5174
5233
|
SOD923,
|
|
5175
5234
|
SOT223,
|