jscad-electronics 0.0.122 → 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 +8 -2
- package/dist/index.js +163 -92
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +73 -5
- 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;
|
|
@@ -390,7 +392,7 @@ declare const TO220: () => react_jsx_runtime.JSX.Element;
|
|
|
390
392
|
|
|
391
393
|
declare const TO92: () => react_jsx_runtime.JSX.Element;
|
|
392
394
|
|
|
393
|
-
declare const MountedPcbModule: ({ numPins, rows, p, id, od, boardThickness, width, height, pinRowSide, holes, holeInset, pinRowHoleEdgeToEdgeDist, female, nopin, screen, }: {
|
|
395
|
+
declare const MountedPcbModule: ({ numPins, rows, p, id, od, boardThickness, width, height, pinRowSide, holes, holeInset, pinRowHoleEdgeToEdgeDist, female, nopin, screen, screenWidth, screenHeight, screenCenterOffsetX, screenCenterOffsetY, }: {
|
|
394
396
|
numPins?: number;
|
|
395
397
|
rows?: number;
|
|
396
398
|
p?: number;
|
|
@@ -406,6 +408,10 @@ declare const MountedPcbModule: ({ numPins, rows, p, id, od, boardThickness, wid
|
|
|
406
408
|
female?: boolean;
|
|
407
409
|
nopin?: boolean;
|
|
408
410
|
screen?: boolean;
|
|
411
|
+
screenWidth?: number;
|
|
412
|
+
screenHeight?: number;
|
|
413
|
+
screenCenterOffsetX?: number;
|
|
414
|
+
screenCenterOffsetY?: number;
|
|
409
415
|
}) => react_jsx_runtime.JSX.Element;
|
|
410
416
|
|
|
411
417
|
interface ScreenProps {
|
|
@@ -427,4 +433,4 @@ interface ScreenProps {
|
|
|
427
433
|
declare const Screen: ({ width, height, thickness, bezelInset, bezelDepth, screenColor, bezelColor, screenWidth, screenHeight, offset, }: ScreenProps) => react_jsx_runtime.JSX.Element;
|
|
428
434
|
declare const Display: ({ width, height, thickness, bezelInset, bezelDepth, screenColor, bezelColor, screenWidth, screenHeight, offset, }: ScreenProps) => react_jsx_runtime.JSX.Element;
|
|
429
435
|
|
|
430
|
-
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
|
@@ -4462,7 +4462,11 @@ var MountedPcbModule = ({
|
|
|
4462
4462
|
pinRowHoleEdgeToEdgeDist = 2,
|
|
4463
4463
|
female,
|
|
4464
4464
|
nopin,
|
|
4465
|
-
screen
|
|
4465
|
+
screen,
|
|
4466
|
+
screenWidth,
|
|
4467
|
+
screenHeight,
|
|
4468
|
+
screenCenterOffsetX,
|
|
4469
|
+
screenCenterOffsetY
|
|
4466
4470
|
}) => {
|
|
4467
4471
|
const showScreen = screen ?? false;
|
|
4468
4472
|
const boardCenterZ = boardThickness / 2;
|
|
@@ -4618,25 +4622,85 @@ var MountedPcbModule = ({
|
|
|
4618
4622
|
showScreen && /* @__PURE__ */ jsx65(
|
|
4619
4623
|
Screen,
|
|
4620
4624
|
{
|
|
4621
|
-
width: finalWidth * 0.8,
|
|
4622
|
-
height: finalHeight * 0.6,
|
|
4623
|
-
offset: {
|
|
4625
|
+
width: screenWidth ?? finalWidth * 0.8,
|
|
4626
|
+
height: screenHeight ?? finalHeight * 0.6,
|
|
4627
|
+
offset: {
|
|
4628
|
+
x: screenCenterOffsetX ?? 0,
|
|
4629
|
+
y: screenCenterOffsetY ?? 0,
|
|
4630
|
+
z: boardTopZ
|
|
4631
|
+
}
|
|
4624
4632
|
}
|
|
4625
4633
|
)
|
|
4626
4634
|
] });
|
|
4627
4635
|
};
|
|
4628
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
|
+
|
|
4629
4693
|
// lib/Footprinter3d.tsx
|
|
4630
|
-
import { jsx as
|
|
4694
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
4631
4695
|
var Footprinter3d = ({ footprint }) => {
|
|
4632
4696
|
const fpJson = fp3.string(footprint).json();
|
|
4633
4697
|
switch (fpJson.fn) {
|
|
4634
4698
|
case "dip":
|
|
4635
|
-
return /* @__PURE__ */
|
|
4699
|
+
return /* @__PURE__ */ jsx67(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
4636
4700
|
case "axial":
|
|
4637
|
-
return /* @__PURE__ */
|
|
4701
|
+
return /* @__PURE__ */ jsx67(AxialCapacitor, { pitch: fpJson.p });
|
|
4638
4702
|
case "tssop":
|
|
4639
|
-
return /* @__PURE__ */
|
|
4703
|
+
return /* @__PURE__ */ jsx67(
|
|
4640
4704
|
Tssop,
|
|
4641
4705
|
{
|
|
4642
4706
|
pinCount: fpJson.num_pins,
|
|
@@ -4647,7 +4711,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4647
4711
|
}
|
|
4648
4712
|
);
|
|
4649
4713
|
case "msop":
|
|
4650
|
-
return /* @__PURE__ */
|
|
4714
|
+
return /* @__PURE__ */ jsx67(
|
|
4651
4715
|
MSOP,
|
|
4652
4716
|
{
|
|
4653
4717
|
pinCount: fpJson.num_pins,
|
|
@@ -4658,7 +4722,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4658
4722
|
}
|
|
4659
4723
|
);
|
|
4660
4724
|
case "vssop":
|
|
4661
|
-
return /* @__PURE__ */
|
|
4725
|
+
return /* @__PURE__ */ jsx67(
|
|
4662
4726
|
VSSOP,
|
|
4663
4727
|
{
|
|
4664
4728
|
pinCount: fpJson.num_pins,
|
|
@@ -4670,7 +4734,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4670
4734
|
}
|
|
4671
4735
|
);
|
|
4672
4736
|
case "qfp":
|
|
4673
|
-
return /* @__PURE__ */
|
|
4737
|
+
return /* @__PURE__ */ jsx67(
|
|
4674
4738
|
QFP,
|
|
4675
4739
|
{
|
|
4676
4740
|
pinCount: fpJson.num_pins,
|
|
@@ -4681,12 +4745,12 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4681
4745
|
}
|
|
4682
4746
|
);
|
|
4683
4747
|
case "tqfp":
|
|
4684
|
-
return /* @__PURE__ */
|
|
4748
|
+
return /* @__PURE__ */ jsx67(tqfp_default, {});
|
|
4685
4749
|
case "lqfp":
|
|
4686
|
-
return /* @__PURE__ */
|
|
4750
|
+
return /* @__PURE__ */ jsx67(LQFP, { pinCount: fpJson.num_pins });
|
|
4687
4751
|
case "qfn": {
|
|
4688
4752
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
4689
|
-
return /* @__PURE__ */
|
|
4753
|
+
return /* @__PURE__ */ jsx67(
|
|
4690
4754
|
qfn_default,
|
|
4691
4755
|
{
|
|
4692
4756
|
num_pins: fpJson.num_pins,
|
|
@@ -4704,7 +4768,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4704
4768
|
}
|
|
4705
4769
|
case "dfn": {
|
|
4706
4770
|
const hasThermalPad = typeof fpJson.thermalpad?.x === "number" && typeof fpJson.thermalpad?.y === "number";
|
|
4707
|
-
return /* @__PURE__ */
|
|
4771
|
+
return /* @__PURE__ */ jsx67(
|
|
4708
4772
|
DFN,
|
|
4709
4773
|
{
|
|
4710
4774
|
num_pins: fpJson.num_pins,
|
|
@@ -4724,7 +4788,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4724
4788
|
const rowsMatch = footprint.match(/_rows(\d+)/);
|
|
4725
4789
|
const rows = rowsMatch && rowsMatch[1] ? parseInt(rowsMatch[1], 10) : 1;
|
|
4726
4790
|
if (fpJson.male)
|
|
4727
|
-
return /* @__PURE__ */
|
|
4791
|
+
return /* @__PURE__ */ jsx67(
|
|
4728
4792
|
PinRow,
|
|
4729
4793
|
{
|
|
4730
4794
|
numberOfPins: fpJson.num_pins,
|
|
@@ -4737,7 +4801,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4737
4801
|
}
|
|
4738
4802
|
);
|
|
4739
4803
|
if (fpJson.female)
|
|
4740
|
-
return /* @__PURE__ */
|
|
4804
|
+
return /* @__PURE__ */ jsx67(
|
|
4741
4805
|
FemaleHeaderRow,
|
|
4742
4806
|
{
|
|
4743
4807
|
numberOfPins: fpJson.num_pins,
|
|
@@ -4749,47 +4813,47 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4749
4813
|
case "cap": {
|
|
4750
4814
|
switch (fpJson.imperial) {
|
|
4751
4815
|
case "0402":
|
|
4752
|
-
return /* @__PURE__ */
|
|
4816
|
+
return /* @__PURE__ */ jsx67(A0402, { color: "#856c4d" });
|
|
4753
4817
|
case "0603":
|
|
4754
|
-
return /* @__PURE__ */
|
|
4818
|
+
return /* @__PURE__ */ jsx67(A0603, { color: "#856c4d" });
|
|
4755
4819
|
case "0805":
|
|
4756
|
-
return /* @__PURE__ */
|
|
4820
|
+
return /* @__PURE__ */ jsx67(A0805, { color: "#856c4d" });
|
|
4757
4821
|
case "0201":
|
|
4758
|
-
return /* @__PURE__ */
|
|
4822
|
+
return /* @__PURE__ */ jsx67(A0201, { color: "#856c4d" });
|
|
4759
4823
|
case "01005":
|
|
4760
|
-
return /* @__PURE__ */
|
|
4824
|
+
return /* @__PURE__ */ jsx67(A01005, { color: "#856c4d" });
|
|
4761
4825
|
case "1206":
|
|
4762
|
-
return /* @__PURE__ */
|
|
4826
|
+
return /* @__PURE__ */ jsx67(A1206, { color: "#856c4d" });
|
|
4763
4827
|
case "1210":
|
|
4764
|
-
return /* @__PURE__ */
|
|
4828
|
+
return /* @__PURE__ */ jsx67(A1210, { color: "#856c4d" });
|
|
4765
4829
|
case "2010":
|
|
4766
|
-
return /* @__PURE__ */
|
|
4830
|
+
return /* @__PURE__ */ jsx67(A2010, { color: "#856c4d" });
|
|
4767
4831
|
case "2512":
|
|
4768
|
-
return /* @__PURE__ */
|
|
4832
|
+
return /* @__PURE__ */ jsx67(A2512, { color: "#856c4d" });
|
|
4769
4833
|
}
|
|
4770
4834
|
}
|
|
4771
4835
|
case "sot235":
|
|
4772
|
-
return /* @__PURE__ */
|
|
4836
|
+
return /* @__PURE__ */ jsx67(SOT_235_default, {});
|
|
4773
4837
|
case "sot457":
|
|
4774
|
-
return /* @__PURE__ */
|
|
4838
|
+
return /* @__PURE__ */ jsx67(SOT457, {});
|
|
4775
4839
|
case "sot223":
|
|
4776
|
-
return /* @__PURE__ */
|
|
4840
|
+
return /* @__PURE__ */ jsx67(SOT223, {});
|
|
4777
4841
|
case "sot23w":
|
|
4778
|
-
return /* @__PURE__ */
|
|
4842
|
+
return /* @__PURE__ */ jsx67(SOT23W, {});
|
|
4779
4843
|
case "sot323":
|
|
4780
|
-
return /* @__PURE__ */
|
|
4844
|
+
return /* @__PURE__ */ jsx67(SOT323, {});
|
|
4781
4845
|
case "sod323f":
|
|
4782
|
-
return /* @__PURE__ */
|
|
4846
|
+
return /* @__PURE__ */ jsx67(SOD323F, {});
|
|
4783
4847
|
case "sod323fl":
|
|
4784
|
-
return /* @__PURE__ */
|
|
4848
|
+
return /* @__PURE__ */ jsx67(SOD323FL, {});
|
|
4785
4849
|
case "sot363":
|
|
4786
|
-
return /* @__PURE__ */
|
|
4850
|
+
return /* @__PURE__ */ jsx67(SOT_363_default, {});
|
|
4787
4851
|
case "sot886":
|
|
4788
|
-
return /* @__PURE__ */
|
|
4852
|
+
return /* @__PURE__ */ jsx67(SOT886, {});
|
|
4789
4853
|
case "sot963":
|
|
4790
|
-
return /* @__PURE__ */
|
|
4854
|
+
return /* @__PURE__ */ jsx67(SOT963, {});
|
|
4791
4855
|
case "pushbutton":
|
|
4792
|
-
return /* @__PURE__ */
|
|
4856
|
+
return /* @__PURE__ */ jsx67(
|
|
4793
4857
|
PushButton,
|
|
4794
4858
|
{
|
|
4795
4859
|
width: fpJson.w,
|
|
@@ -4798,7 +4862,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4798
4862
|
}
|
|
4799
4863
|
);
|
|
4800
4864
|
case "soic":
|
|
4801
|
-
return /* @__PURE__ */
|
|
4865
|
+
return /* @__PURE__ */ jsx67(
|
|
4802
4866
|
SOIC,
|
|
4803
4867
|
{
|
|
4804
4868
|
pinCount: fpJson.num_pins,
|
|
@@ -4809,39 +4873,41 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4809
4873
|
}
|
|
4810
4874
|
);
|
|
4811
4875
|
case "sod523":
|
|
4812
|
-
return /* @__PURE__ */
|
|
4876
|
+
return /* @__PURE__ */ jsx67(SOD523, {});
|
|
4877
|
+
case "sod723":
|
|
4878
|
+
return /* @__PURE__ */ jsx67(SOD723_default, {});
|
|
4813
4879
|
case "sod882":
|
|
4814
|
-
return /* @__PURE__ */
|
|
4880
|
+
return /* @__PURE__ */ jsx67(SOD882, {});
|
|
4815
4881
|
case "sma":
|
|
4816
|
-
return /* @__PURE__ */
|
|
4882
|
+
return /* @__PURE__ */ jsx67(SMA, {});
|
|
4817
4883
|
case "smb":
|
|
4818
|
-
return /* @__PURE__ */
|
|
4884
|
+
return /* @__PURE__ */ jsx67(SMB, {});
|
|
4819
4885
|
case "smc":
|
|
4820
|
-
return /* @__PURE__ */
|
|
4886
|
+
return /* @__PURE__ */ jsx67(SMC, {});
|
|
4821
4887
|
case "smf":
|
|
4822
|
-
return /* @__PURE__ */
|
|
4888
|
+
return /* @__PURE__ */ jsx67(SMF, {});
|
|
4823
4889
|
case "sod123f":
|
|
4824
|
-
return /* @__PURE__ */
|
|
4890
|
+
return /* @__PURE__ */ jsx67(SOD123F, {});
|
|
4825
4891
|
case "sod123fl":
|
|
4826
|
-
return /* @__PURE__ */
|
|
4892
|
+
return /* @__PURE__ */ jsx67(SOD123FL, {});
|
|
4827
4893
|
case "sod123w":
|
|
4828
|
-
return /* @__PURE__ */
|
|
4894
|
+
return /* @__PURE__ */ jsx67(SOD123W, {});
|
|
4829
4895
|
case "sod128":
|
|
4830
|
-
return /* @__PURE__ */
|
|
4896
|
+
return /* @__PURE__ */ jsx67(SOD128, {});
|
|
4831
4897
|
case "sod323":
|
|
4832
|
-
return /* @__PURE__ */
|
|
4898
|
+
return /* @__PURE__ */ jsx67(SOD323, {});
|
|
4833
4899
|
case "sod923":
|
|
4834
|
-
return /* @__PURE__ */
|
|
4900
|
+
return /* @__PURE__ */ jsx67(SOD923, {});
|
|
4835
4901
|
case "hc49":
|
|
4836
|
-
return /* @__PURE__ */
|
|
4902
|
+
return /* @__PURE__ */ jsx67(HC49, {});
|
|
4837
4903
|
case "micromelf":
|
|
4838
|
-
return /* @__PURE__ */
|
|
4904
|
+
return /* @__PURE__ */ jsx67(MicroMELF, {});
|
|
4839
4905
|
case "minimelf":
|
|
4840
|
-
return /* @__PURE__ */
|
|
4906
|
+
return /* @__PURE__ */ jsx67(MINIMELF, {});
|
|
4841
4907
|
case "melf":
|
|
4842
|
-
return /* @__PURE__ */
|
|
4908
|
+
return /* @__PURE__ */ jsx67(MELF, {});
|
|
4843
4909
|
case "ms012":
|
|
4844
|
-
return /* @__PURE__ */
|
|
4910
|
+
return /* @__PURE__ */ jsx67(
|
|
4845
4911
|
MS012,
|
|
4846
4912
|
{
|
|
4847
4913
|
pinCount: fpJson.num_pins,
|
|
@@ -4851,7 +4917,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4851
4917
|
}
|
|
4852
4918
|
);
|
|
4853
4919
|
case "ms013":
|
|
4854
|
-
return /* @__PURE__ */
|
|
4920
|
+
return /* @__PURE__ */ jsx67(
|
|
4855
4921
|
MS013,
|
|
4856
4922
|
{
|
|
4857
4923
|
pinCount: fpJson.num_pins,
|
|
@@ -4861,14 +4927,14 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4861
4927
|
}
|
|
4862
4928
|
);
|
|
4863
4929
|
case "sot723":
|
|
4864
|
-
return /* @__PURE__ */
|
|
4930
|
+
return /* @__PURE__ */ jsx67(SOT723, {});
|
|
4865
4931
|
case "to220":
|
|
4866
|
-
return /* @__PURE__ */
|
|
4932
|
+
return /* @__PURE__ */ jsx67(TO220, {});
|
|
4867
4933
|
case "to92":
|
|
4868
|
-
return /* @__PURE__ */
|
|
4934
|
+
return /* @__PURE__ */ jsx67(TO92, {});
|
|
4869
4935
|
case "stampboard":
|
|
4870
4936
|
case "stampreceiver":
|
|
4871
|
-
return /* @__PURE__ */
|
|
4937
|
+
return /* @__PURE__ */ jsx67(
|
|
4872
4938
|
StampBoard,
|
|
4873
4939
|
{
|
|
4874
4940
|
bodyWidth: fpJson.w,
|
|
@@ -4892,7 +4958,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4892
4958
|
const pinRow = fpJson.pinrow;
|
|
4893
4959
|
const pinRowHoleEdgeToEdgeDist = fpJson.pinRowHoleEdgeToEdgeDist;
|
|
4894
4960
|
const holes = Array.isArray(fpJson.holes) ? fpJson.holes : [];
|
|
4895
|
-
return /* @__PURE__ */
|
|
4961
|
+
return /* @__PURE__ */ jsx67(
|
|
4896
4962
|
MountedPcbModule,
|
|
4897
4963
|
{
|
|
4898
4964
|
numPins: pinRow,
|
|
@@ -4908,7 +4974,11 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4908
4974
|
pinRowHoleEdgeToEdgeDist,
|
|
4909
4975
|
nopin: fpJson.nopin,
|
|
4910
4976
|
female: fpJson.female,
|
|
4911
|
-
screen: fpJson.screen
|
|
4977
|
+
screen: fpJson.screen,
|
|
4978
|
+
screenWidth: fpJson.screenwidth,
|
|
4979
|
+
screenHeight: fpJson.screenheight,
|
|
4980
|
+
screenCenterOffsetX: fpJson.screencenteroffsetx,
|
|
4981
|
+
screenCenterOffsetY: fpJson.screencenteroffsety
|
|
4912
4982
|
}
|
|
4913
4983
|
);
|
|
4914
4984
|
}
|
|
@@ -4917,29 +4987,29 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4917
4987
|
const color = colorMatch ? colorMatch[1] : void 0;
|
|
4918
4988
|
switch (fpJson.imperial) {
|
|
4919
4989
|
case "0402":
|
|
4920
|
-
return /* @__PURE__ */
|
|
4990
|
+
return /* @__PURE__ */ jsx67(A0402, { color });
|
|
4921
4991
|
case "0603":
|
|
4922
|
-
return /* @__PURE__ */
|
|
4992
|
+
return /* @__PURE__ */ jsx67(A0603, { color });
|
|
4923
4993
|
case "0805":
|
|
4924
|
-
return /* @__PURE__ */
|
|
4994
|
+
return /* @__PURE__ */ jsx67(A0805, { color });
|
|
4925
4995
|
case "0201":
|
|
4926
|
-
return /* @__PURE__ */
|
|
4996
|
+
return /* @__PURE__ */ jsx67(A0201, { color });
|
|
4927
4997
|
case "01005":
|
|
4928
|
-
return /* @__PURE__ */
|
|
4998
|
+
return /* @__PURE__ */ jsx67(A01005, { color });
|
|
4929
4999
|
case "1206":
|
|
4930
|
-
return /* @__PURE__ */
|
|
5000
|
+
return /* @__PURE__ */ jsx67(A1206, { color });
|
|
4931
5001
|
case "1210":
|
|
4932
|
-
return /* @__PURE__ */
|
|
5002
|
+
return /* @__PURE__ */ jsx67(A1210, { color });
|
|
4933
5003
|
case "2010":
|
|
4934
|
-
return /* @__PURE__ */
|
|
5004
|
+
return /* @__PURE__ */ jsx67(A2010, { color });
|
|
4935
5005
|
case "2512":
|
|
4936
|
-
return /* @__PURE__ */
|
|
5006
|
+
return /* @__PURE__ */ jsx67(A2512, { color });
|
|
4937
5007
|
}
|
|
4938
5008
|
return null;
|
|
4939
5009
|
};
|
|
4940
5010
|
|
|
4941
5011
|
// lib/SOT-23-3P.tsx
|
|
4942
|
-
import { Fragment as
|
|
5012
|
+
import { Fragment as Fragment61, jsx as jsx68, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
4943
5013
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
4944
5014
|
const bodyWidth = 1.3;
|
|
4945
5015
|
const bodyLength10 = 2.9;
|
|
@@ -4950,8 +5020,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4950
5020
|
const padContactLength = 0.4;
|
|
4951
5021
|
const padThickness = leadThickness / 2;
|
|
4952
5022
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
4953
|
-
return /* @__PURE__ */
|
|
4954
|
-
/* @__PURE__ */
|
|
5023
|
+
return /* @__PURE__ */ jsxs63(Fragment61, { children: [
|
|
5024
|
+
/* @__PURE__ */ jsx68(
|
|
4955
5025
|
SmdChipLead,
|
|
4956
5026
|
{
|
|
4957
5027
|
rotation: Math.PI,
|
|
@@ -4968,7 +5038,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4968
5038
|
},
|
|
4969
5039
|
1
|
|
4970
5040
|
),
|
|
4971
|
-
/* @__PURE__ */
|
|
5041
|
+
/* @__PURE__ */ jsx68(
|
|
4972
5042
|
SmdChipLead,
|
|
4973
5043
|
{
|
|
4974
5044
|
rotation: Math.PI,
|
|
@@ -4985,7 +5055,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
4985
5055
|
},
|
|
4986
5056
|
2
|
|
4987
5057
|
),
|
|
4988
|
-
/* @__PURE__ */
|
|
5058
|
+
/* @__PURE__ */ jsx68(
|
|
4989
5059
|
SmdChipLead,
|
|
4990
5060
|
{
|
|
4991
5061
|
position: {
|
|
@@ -5001,7 +5071,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
5001
5071
|
},
|
|
5002
5072
|
3
|
|
5003
5073
|
),
|
|
5004
|
-
/* @__PURE__ */
|
|
5074
|
+
/* @__PURE__ */ jsx68(
|
|
5005
5075
|
ChipBody,
|
|
5006
5076
|
{
|
|
5007
5077
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -5014,8 +5084,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
5014
5084
|
};
|
|
5015
5085
|
|
|
5016
5086
|
// lib/SOT-563.tsx
|
|
5017
|
-
import { Cuboid as
|
|
5018
|
-
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";
|
|
5019
5089
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
5020
5090
|
const bodyWidth = 1.2;
|
|
5021
5091
|
const bodyLength10 = 1.6;
|
|
@@ -5025,28 +5095,28 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
5025
5095
|
const leadHeight = 0.13;
|
|
5026
5096
|
const leadSpacing = 0.5;
|
|
5027
5097
|
const bodyZOffset = -0.4;
|
|
5028
|
-
return /* @__PURE__ */
|
|
5029
|
-
/* @__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] }) }) }) }),
|
|
5030
5100
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
5031
5101
|
// Left lead
|
|
5032
|
-
/* @__PURE__ */
|
|
5033
|
-
|
|
5102
|
+
/* @__PURE__ */ jsx69(
|
|
5103
|
+
Translate30,
|
|
5034
5104
|
{
|
|
5035
5105
|
center: [
|
|
5036
5106
|
-bodyWidth / 2 - 0.03,
|
|
5037
5107
|
yOffset * leadSpacing,
|
|
5038
5108
|
leadHeight / 2
|
|
5039
5109
|
],
|
|
5040
|
-
children: /* @__PURE__ */
|
|
5110
|
+
children: /* @__PURE__ */ jsx69(Cuboid44, { size: [leadLength, leadWidth, leadHeight] })
|
|
5041
5111
|
},
|
|
5042
5112
|
`left-${index}`
|
|
5043
5113
|
),
|
|
5044
5114
|
// Right lead
|
|
5045
|
-
/* @__PURE__ */
|
|
5046
|
-
|
|
5115
|
+
/* @__PURE__ */ jsx69(
|
|
5116
|
+
Translate30,
|
|
5047
5117
|
{
|
|
5048
5118
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
5049
|
-
children: /* @__PURE__ */
|
|
5119
|
+
children: /* @__PURE__ */ jsx69(Cuboid44, { size: [leadLength, leadWidth, leadHeight] })
|
|
5050
5120
|
},
|
|
5051
5121
|
`right-${index}`
|
|
5052
5122
|
)
|
|
@@ -5055,7 +5125,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
5055
5125
|
};
|
|
5056
5126
|
|
|
5057
5127
|
// lib/sod-123.tsx
|
|
5058
|
-
import { Fragment as
|
|
5128
|
+
import { Fragment as Fragment63, jsx as jsx70, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
5059
5129
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
5060
5130
|
const bodyWidth = 2.9;
|
|
5061
5131
|
const bodyLength10 = 1.3;
|
|
@@ -5066,8 +5136,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
5066
5136
|
const padContactLength = 0.4;
|
|
5067
5137
|
const padThickness = leadThickness / 2;
|
|
5068
5138
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
5069
|
-
return /* @__PURE__ */
|
|
5070
|
-
/* @__PURE__ */
|
|
5139
|
+
return /* @__PURE__ */ jsxs65(Fragment63, { children: [
|
|
5140
|
+
/* @__PURE__ */ jsx70(
|
|
5071
5141
|
SmdChipLead,
|
|
5072
5142
|
{
|
|
5073
5143
|
position: {
|
|
@@ -5083,7 +5153,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
5083
5153
|
},
|
|
5084
5154
|
1
|
|
5085
5155
|
),
|
|
5086
|
-
/* @__PURE__ */
|
|
5156
|
+
/* @__PURE__ */ jsx70(
|
|
5087
5157
|
SmdChipLead,
|
|
5088
5158
|
{
|
|
5089
5159
|
rotation: Math.PI,
|
|
@@ -5100,7 +5170,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
5100
5170
|
},
|
|
5101
5171
|
2
|
|
5102
5172
|
),
|
|
5103
|
-
/* @__PURE__ */
|
|
5173
|
+
/* @__PURE__ */ jsx70(
|
|
5104
5174
|
ChipBody,
|
|
5105
5175
|
{
|
|
5106
5176
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -5158,6 +5228,7 @@ export {
|
|
|
5158
5228
|
SOD323F,
|
|
5159
5229
|
SOD323FL,
|
|
5160
5230
|
SOD523,
|
|
5231
|
+
SOD723,
|
|
5161
5232
|
SOD882,
|
|
5162
5233
|
SOD923,
|
|
5163
5234
|
SOT223,
|