jscad-electronics 0.0.103 → 0.0.105

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/vanilla.js CHANGED
@@ -3411,6 +3411,69 @@ var SOT457 = () => {
3411
3411
  ] });
3412
3412
  };
3413
3413
 
3414
+ // lib/SOT-963.tsx
3415
+ var SOT963 = () => {
3416
+ const bodyWidth = 0.8;
3417
+ const bodyLength10 = 1;
3418
+ const bodyHeight = 0.37;
3419
+ const terminalWidth = 0.15;
3420
+ const terminalLength = 0.19;
3421
+ const terminalThickness = 0.12;
3422
+ const pitch = 0.35;
3423
+ const pinsPerSide = 3;
3424
+ const pinSpan = pitch * (pinsPerSide - 1);
3425
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
3426
+ /* @__PURE__ */ jsx(
3427
+ ChipBody,
3428
+ {
3429
+ center: { x: 0, y: 0, z: 0 },
3430
+ width: bodyWidth,
3431
+ length: bodyLength10,
3432
+ height: bodyHeight,
3433
+ heightAboveSurface: 0,
3434
+ color: "#1a1a1a",
3435
+ taperRatio: 0.15,
3436
+ straightHeightRatio: 0,
3437
+ notchPosition: {
3438
+ x: -bodyWidth / 4,
3439
+ y: pinSpan / 2.2,
3440
+ z: bodyHeight + 0.1
3441
+ }
3442
+ }
3443
+ ),
3444
+ [0, 1, 2].map((i) => {
3445
+ const y = -pinSpan / 2 + i * pitch;
3446
+ return /* @__PURE__ */ jsx(
3447
+ Cuboid,
3448
+ {
3449
+ center: [
3450
+ -bodyWidth / 2 + terminalLength / 2 - 0.1,
3451
+ y,
3452
+ terminalThickness / 2
3453
+ ],
3454
+ size: [terminalLength, terminalWidth, terminalThickness]
3455
+ },
3456
+ `left-${i}`
3457
+ );
3458
+ }),
3459
+ [0, 1, 2].map((i) => {
3460
+ const y = -pinSpan / 2 + i * pitch;
3461
+ return /* @__PURE__ */ jsx(
3462
+ Cuboid,
3463
+ {
3464
+ center: [
3465
+ bodyWidth / 2 - terminalLength / 2 + 0.1,
3466
+ y,
3467
+ terminalThickness / 2
3468
+ ],
3469
+ size: [terminalLength, terminalWidth, terminalThickness]
3470
+ },
3471
+ `right-${i}`
3472
+ );
3473
+ })
3474
+ ] });
3475
+ };
3476
+
3414
3477
  // lib/TO92.tsx
3415
3478
  var TO92 = () => {
3416
3479
  const bodyRadius = 2.4;
@@ -3579,6 +3642,64 @@ var SOT363 = () => {
3579
3642
  };
3580
3643
  var SOT_363_default = SOT363;
3581
3644
 
3645
+ // lib/SOT-886.tsx
3646
+ var SOT886 = () => {
3647
+ const bodyWidth = 1;
3648
+ const bodyLength10 = 1.45;
3649
+ const bodyHeight = 0.5;
3650
+ const terminalWidth = 0.2;
3651
+ const terminalLength = 0.3;
3652
+ const terminalThickness = 0.05;
3653
+ const pitch = 0.5;
3654
+ const pinsPerSide = 3;
3655
+ const pinSpan = pitch * (pinsPerSide - 1);
3656
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
3657
+ /* @__PURE__ */ jsx(
3658
+ ChipBody,
3659
+ {
3660
+ center: { x: 0, y: 0, z: terminalThickness },
3661
+ width: bodyWidth,
3662
+ length: bodyLength10,
3663
+ height: bodyHeight,
3664
+ heightAboveSurface: 0,
3665
+ color: "#1a1a1a",
3666
+ taperRatio: 0,
3667
+ includeNotch: false
3668
+ }
3669
+ ),
3670
+ [0, 1, 2].map((i) => {
3671
+ const y = -pinSpan / 2 + i * pitch;
3672
+ return /* @__PURE__ */ jsx(
3673
+ Cuboid,
3674
+ {
3675
+ center: [
3676
+ -bodyWidth / 2 + terminalLength / 2,
3677
+ y,
3678
+ terminalThickness / 2
3679
+ ],
3680
+ size: [terminalLength, terminalWidth, terminalThickness]
3681
+ },
3682
+ `left-${i}`
3683
+ );
3684
+ }),
3685
+ [0, 1, 2].map((i) => {
3686
+ const y = -pinSpan / 2 + i * pitch;
3687
+ return /* @__PURE__ */ jsx(
3688
+ Cuboid,
3689
+ {
3690
+ center: [
3691
+ bodyWidth / 2 - terminalLength / 2,
3692
+ y,
3693
+ terminalThickness / 2
3694
+ ],
3695
+ size: [terminalLength, terminalWidth, terminalThickness]
3696
+ },
3697
+ `right-${i}`
3698
+ );
3699
+ })
3700
+ ] });
3701
+ };
3702
+
3582
3703
  // lib/sod-323.tsx
3583
3704
  var SOD323 = () => {
3584
3705
  const fullWidth = 2.5;
@@ -3701,6 +3822,58 @@ var SOD323F = () => {
3701
3822
  ] });
3702
3823
  };
3703
3824
 
3825
+ // lib/sod-323FL.tsx
3826
+ var SOD323FL = () => {
3827
+ const fullWidth = 1.775;
3828
+ const bodyLength10 = 1.25;
3829
+ const bodyHeight = 0.725;
3830
+ const padWidth = 0.325;
3831
+ const padLength = 0.4;
3832
+ const padThickness = 0.13;
3833
+ const leftPadCenterX = -fullWidth / 2 - padLength / 2 + 0.04;
3834
+ const rightPadCenterX = fullWidth / 2 + padLength / 2 - 0.04;
3835
+ const taperOffset = 0.2;
3836
+ return /* @__PURE__ */ jsxs(Fragment2, { children: [
3837
+ /* @__PURE__ */ jsx(
3838
+ Cuboid,
3839
+ {
3840
+ color: "#ccc",
3841
+ size: [padLength, padWidth, padThickness],
3842
+ center: [leftPadCenterX, 0, padThickness / 2]
3843
+ }
3844
+ ),
3845
+ /* @__PURE__ */ jsx(
3846
+ Cuboid,
3847
+ {
3848
+ color: "#ccc",
3849
+ size: [padLength, padWidth, padThickness],
3850
+ center: [rightPadCenterX, 0, padThickness / 2]
3851
+ }
3852
+ ),
3853
+ /* @__PURE__ */ jsx(Colorize, { color: "#222", children: /* @__PURE__ */ jsx(
3854
+ ChipBody,
3855
+ {
3856
+ width: fullWidth,
3857
+ length: bodyLength10,
3858
+ height: bodyHeight,
3859
+ center: { x: 0, y: 0, z: 0 },
3860
+ heightAboveSurface: 0,
3861
+ straightHeightRatio: 0.7,
3862
+ taperRatio: 0.06,
3863
+ includeNotch: false
3864
+ }
3865
+ ) }),
3866
+ /* @__PURE__ */ jsx(
3867
+ Cuboid,
3868
+ {
3869
+ color: "#777",
3870
+ size: [fullWidth / 3, bodyLength10 - 0.05, 0.02],
3871
+ center: [leftPadCenterX + fullWidth / 4.4 + taperOffset, 0, bodyHeight]
3872
+ }
3873
+ )
3874
+ ] });
3875
+ };
3876
+
3704
3877
  // lib/Footprinter3d.tsx
3705
3878
  var Footprinter3d = ({ footprint }) => {
3706
3879
  const fpJson = fp.string(footprint).json();
@@ -3831,8 +4004,14 @@ var Footprinter3d = ({ footprint }) => {
3831
4004
  return /* @__PURE__ */ jsx(SOT323, {});
3832
4005
  case "sod323f":
3833
4006
  return /* @__PURE__ */ jsx(SOD323F, {});
4007
+ case "sod323fl":
4008
+ return /* @__PURE__ */ jsx(SOD323FL, {});
3834
4009
  case "sot363":
3835
4010
  return /* @__PURE__ */ jsx(SOT_363_default, {});
4011
+ case "sot886":
4012
+ return /* @__PURE__ */ jsx(SOT886, {});
4013
+ case "sot963":
4014
+ return /* @__PURE__ */ jsx(SOT963, {});
3836
4015
  case "pushbutton":
3837
4016
  return /* @__PURE__ */ jsx(
3838
4017
  PushButton,