jscad-electronics 0.0.176 → 0.0.178
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 +249 -235
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +29 -18
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4381,41 +4381,55 @@ var MicroMELF = ({
|
|
|
4381
4381
|
};
|
|
4382
4382
|
|
|
4383
4383
|
// lib/MINIMELF.tsx
|
|
4384
|
-
import { Colorize as Colorize30, RoundedCylinder as RoundedCylinder3, Rotate as Rotate9 } from "jscad-fiber";
|
|
4384
|
+
import { Colorize as Colorize30, Cylinder as Cylinder12, RoundedCylinder as RoundedCylinder3, Rotate as Rotate9 } from "jscad-fiber";
|
|
4385
4385
|
import { Fragment as Fragment52, jsx as jsx57, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
4386
4386
|
var MINIMELF = ({
|
|
4387
4387
|
bodyLength: bodyLength10 = 3.5,
|
|
4388
4388
|
bodyDiameter = 1.5,
|
|
4389
|
-
color = "#
|
|
4390
|
-
contactColor = "#c6c6c6"
|
|
4389
|
+
color = "#202020",
|
|
4390
|
+
contactColor = "#c6c6c6",
|
|
4391
|
+
bandColor = "#f2f2f2"
|
|
4391
4392
|
}) => {
|
|
4392
|
-
const
|
|
4393
|
+
const contactLength = 0.4;
|
|
4394
|
+
const glassLength = bodyLength10 - 2 * contactLength + 0.04;
|
|
4395
|
+
const contactOffset = (bodyLength10 - contactLength) / 2;
|
|
4396
|
+
const contactRadius = bodyDiameter / 2 + 0.02;
|
|
4397
|
+
const bandLength = 0.14;
|
|
4398
|
+
const bandOffset = -bodyLength10 / 2 + contactLength + 0.35;
|
|
4393
4399
|
return /* @__PURE__ */ jsxs52(Fragment52, { children: [
|
|
4394
4400
|
/* @__PURE__ */ jsx57(Colorize30, { color, children: /* @__PURE__ */ jsx57(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx57(
|
|
4395
4401
|
RoundedCylinder3,
|
|
4396
4402
|
{
|
|
4397
|
-
height:
|
|
4403
|
+
height: glassLength,
|
|
4398
4404
|
radius: bodyDiameter / 2,
|
|
4399
|
-
roundRadius: 0.
|
|
4405
|
+
roundRadius: 0.05,
|
|
4400
4406
|
center: [-bodyDiameter / 2, 0, 0]
|
|
4401
4407
|
}
|
|
4402
4408
|
) }) }),
|
|
4409
|
+
/* @__PURE__ */ jsx57(Colorize30, { color: bandColor, children: /* @__PURE__ */ jsx57(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx57(
|
|
4410
|
+
Cylinder12,
|
|
4411
|
+
{
|
|
4412
|
+
height: bandLength,
|
|
4413
|
+
radius: bodyDiameter / 2 + 2e-3,
|
|
4414
|
+
center: [-bodyDiameter / 2, 0, bandOffset]
|
|
4415
|
+
}
|
|
4416
|
+
) }) }),
|
|
4403
4417
|
/* @__PURE__ */ jsx57(Colorize30, { color: contactColor, children: /* @__PURE__ */ jsx57(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx57(
|
|
4404
4418
|
RoundedCylinder3,
|
|
4405
4419
|
{
|
|
4406
|
-
height:
|
|
4407
|
-
radius:
|
|
4408
|
-
roundRadius: 0.
|
|
4409
|
-
center: [-bodyDiameter / 2, 0, -
|
|
4420
|
+
height: contactLength,
|
|
4421
|
+
radius: contactRadius,
|
|
4422
|
+
roundRadius: 0.04,
|
|
4423
|
+
center: [-bodyDiameter / 2, 0, -contactOffset]
|
|
4410
4424
|
}
|
|
4411
4425
|
) }) }),
|
|
4412
4426
|
/* @__PURE__ */ jsx57(Colorize30, { color: contactColor, children: /* @__PURE__ */ jsx57(Rotate9, { rotation: [0, "90deg", 0], children: /* @__PURE__ */ jsx57(
|
|
4413
4427
|
RoundedCylinder3,
|
|
4414
4428
|
{
|
|
4415
|
-
height:
|
|
4416
|
-
radius:
|
|
4417
|
-
roundRadius: 0.
|
|
4418
|
-
center: [-bodyDiameter / 2, 0,
|
|
4429
|
+
height: contactLength,
|
|
4430
|
+
radius: contactRadius,
|
|
4431
|
+
roundRadius: 0.04,
|
|
4432
|
+
center: [-bodyDiameter / 2, 0, contactOffset]
|
|
4419
4433
|
}
|
|
4420
4434
|
) }) })
|
|
4421
4435
|
] });
|
|
@@ -4603,8 +4617,8 @@ var MS013 = ({
|
|
|
4603
4617
|
// lib/TO220.tsx
|
|
4604
4618
|
import {
|
|
4605
4619
|
Colorize as Colorize32,
|
|
4606
|
-
Cuboid as
|
|
4607
|
-
Cylinder as
|
|
4620
|
+
Cuboid as Cuboid37,
|
|
4621
|
+
Cylinder as Cylinder13,
|
|
4608
4622
|
Rotate as Rotate11,
|
|
4609
4623
|
Subtract as Subtract9,
|
|
4610
4624
|
Translate as Translate26
|
|
@@ -4641,7 +4655,7 @@ var TO220 = ({
|
|
|
4641
4655
|
const leadThickness = 0.5;
|
|
4642
4656
|
return /* @__PURE__ */ jsxs56(Fragment56, { children: [
|
|
4643
4657
|
/* @__PURE__ */ jsx61(Colorize32, { color: bodyColor, children: /* @__PURE__ */ jsx61(
|
|
4644
|
-
|
|
4658
|
+
Cuboid37,
|
|
4645
4659
|
{
|
|
4646
4660
|
size: [bodyWidth, bodyThickness, bodyHeight],
|
|
4647
4661
|
center: [centerX, centerY, bodyBottom + bodyHeight / 2]
|
|
@@ -4649,14 +4663,14 @@ var TO220 = ({
|
|
|
4649
4663
|
) }),
|
|
4650
4664
|
/* @__PURE__ */ jsx61(Colorize32, { color: mouldedTab ? bodyColor : tabColor, children: /* @__PURE__ */ jsxs56(Subtract9, { children: [
|
|
4651
4665
|
/* @__PURE__ */ jsx61(
|
|
4652
|
-
|
|
4666
|
+
Cuboid37,
|
|
4653
4667
|
{
|
|
4654
4668
|
size: [bodyWidth, tabThickness, tabHeight],
|
|
4655
4669
|
center: [centerX, tabY, bodyTop + tabHeight / 2]
|
|
4656
4670
|
}
|
|
4657
4671
|
),
|
|
4658
4672
|
/* @__PURE__ */ jsx61(Rotate11, { rotation: ["90deg", 0, 0], children: /* @__PURE__ */ jsx61(Translate26, { center: [centerX, holeZ, -tabY], children: /* @__PURE__ */ jsx61(
|
|
4659
|
-
|
|
4673
|
+
Cylinder13,
|
|
4660
4674
|
{
|
|
4661
4675
|
radius: mountingHoleDiameter / 2,
|
|
4662
4676
|
height: tabThickness * 3
|
|
@@ -4664,7 +4678,7 @@ var TO220 = ({
|
|
|
4664
4678
|
) }) })
|
|
4665
4679
|
] }) }),
|
|
4666
4680
|
leads.map((lead) => /* @__PURE__ */ jsx61(Colorize32, { color: leadColor, children: /* @__PURE__ */ jsx61(
|
|
4667
|
-
|
|
4681
|
+
Cuboid37,
|
|
4668
4682
|
{
|
|
4669
4683
|
size: [leadWidth, leadThickness, standoff + leadLength],
|
|
4670
4684
|
center: [lead.x, lead.y, (standoff - leadLength) / 2]
|
|
@@ -4806,7 +4820,7 @@ var SOT457 = () => {
|
|
|
4806
4820
|
};
|
|
4807
4821
|
|
|
4808
4822
|
// lib/SOT-963.tsx
|
|
4809
|
-
import { Cuboid as
|
|
4823
|
+
import { Cuboid as Cuboid38 } from "jscad-fiber";
|
|
4810
4824
|
import { Fragment as Fragment58, jsx as jsx63, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
4811
4825
|
var SOT963 = () => {
|
|
4812
4826
|
const bodyWidth = 0.8;
|
|
@@ -4840,7 +4854,7 @@ var SOT963 = () => {
|
|
|
4840
4854
|
[0, 1, 2].map((i) => {
|
|
4841
4855
|
const y = -pinSpan / 2 + i * pitch;
|
|
4842
4856
|
return /* @__PURE__ */ jsx63(
|
|
4843
|
-
|
|
4857
|
+
Cuboid38,
|
|
4844
4858
|
{
|
|
4845
4859
|
center: [
|
|
4846
4860
|
-bodyWidth / 2 + terminalLength / 2 - 0.1,
|
|
@@ -4855,7 +4869,7 @@ var SOT963 = () => {
|
|
|
4855
4869
|
[0, 1, 2].map((i) => {
|
|
4856
4870
|
const y = -pinSpan / 2 + i * pitch;
|
|
4857
4871
|
return /* @__PURE__ */ jsx63(
|
|
4858
|
-
|
|
4872
|
+
Cuboid38,
|
|
4859
4873
|
{
|
|
4860
4874
|
center: [
|
|
4861
4875
|
bodyWidth / 2 - terminalLength / 2 + 0.1,
|
|
@@ -4873,10 +4887,10 @@ var SOT963 = () => {
|
|
|
4873
4887
|
// lib/TO92.tsx
|
|
4874
4888
|
import {
|
|
4875
4889
|
Colorize as Colorize33,
|
|
4876
|
-
Cuboid as
|
|
4890
|
+
Cuboid as Cuboid39,
|
|
4877
4891
|
Hull as Hull22,
|
|
4878
4892
|
Translate as Translate27,
|
|
4879
|
-
Cylinder as
|
|
4893
|
+
Cylinder as Cylinder14,
|
|
4880
4894
|
Subtract as Subtract10
|
|
4881
4895
|
} from "jscad-fiber";
|
|
4882
4896
|
import { Fragment as Fragment59, jsx as jsx64, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
@@ -4944,7 +4958,7 @@ var TO92 = ({
|
|
|
4944
4958
|
Translate27,
|
|
4945
4959
|
{
|
|
4946
4960
|
center: [bodyCenter.x, bodyCenter.y, standoff + bodyHeight / 2],
|
|
4947
|
-
children: /* @__PURE__ */ jsx64(
|
|
4961
|
+
children: /* @__PURE__ */ jsx64(Cylinder14, { radius: bodyRadius, height: bodyHeight })
|
|
4948
4962
|
}
|
|
4949
4963
|
),
|
|
4950
4964
|
/* @__PURE__ */ jsx64(
|
|
@@ -4955,7 +4969,7 @@ var TO92 = ({
|
|
|
4955
4969
|
bodyCenter.y - (bodyRadius - flatCut / 2),
|
|
4956
4970
|
standoff + bodyHeight / 2
|
|
4957
4971
|
],
|
|
4958
|
-
children: /* @__PURE__ */ jsx64(
|
|
4972
|
+
children: /* @__PURE__ */ jsx64(Cuboid39, { size: [bodyRadius * 2, flatCut, bodyHeight + 0.2] })
|
|
4959
4973
|
}
|
|
4960
4974
|
)
|
|
4961
4975
|
] }) }),
|
|
@@ -4963,10 +4977,10 @@ var TO92 = ({
|
|
|
4963
4977
|
const exit = exitFor(index);
|
|
4964
4978
|
return /* @__PURE__ */ jsxs59(Translate27, { center: [0, 0, 0], children: [
|
|
4965
4979
|
/* @__PURE__ */ jsxs59(Hull22, { children: [
|
|
4966
|
-
/* @__PURE__ */ jsx64(Translate27, { center: [lead.x, lead.y, 0], children: /* @__PURE__ */ jsx64(
|
|
4967
|
-
/* @__PURE__ */ jsx64(Translate27, { center: [exit.x, exit.y, standoff], children: /* @__PURE__ */ jsx64(
|
|
4980
|
+
/* @__PURE__ */ jsx64(Translate27, { center: [lead.x, lead.y, 0], children: /* @__PURE__ */ jsx64(Cuboid39, { size: leadSize }) }),
|
|
4981
|
+
/* @__PURE__ */ jsx64(Translate27, { center: [exit.x, exit.y, standoff], children: /* @__PURE__ */ jsx64(Cuboid39, { size: leadSize }) })
|
|
4968
4982
|
] }),
|
|
4969
|
-
/* @__PURE__ */ jsx64(Translate27, { center: [lead.x, lead.y, -leadLength / 2], children: /* @__PURE__ */ jsx64(
|
|
4983
|
+
/* @__PURE__ */ jsx64(Translate27, { center: [lead.x, lead.y, -leadLength / 2], children: /* @__PURE__ */ jsx64(Cuboid39, { size: [legThickness, legWidth, leadLength] }) })
|
|
4970
4984
|
] }, `lead-${lead.x}-${lead.y}`);
|
|
4971
4985
|
})
|
|
4972
4986
|
] });
|
|
@@ -5105,7 +5119,7 @@ var SOT363 = () => {
|
|
|
5105
5119
|
var SOT_363_default = SOT363;
|
|
5106
5120
|
|
|
5107
5121
|
// lib/SOT-886.tsx
|
|
5108
|
-
import { Cuboid as
|
|
5122
|
+
import { Cuboid as Cuboid40 } from "jscad-fiber";
|
|
5109
5123
|
import { Fragment as Fragment61, jsx as jsx66, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
5110
5124
|
var SOT886 = () => {
|
|
5111
5125
|
const bodyWidth = 1;
|
|
@@ -5134,7 +5148,7 @@ var SOT886 = () => {
|
|
|
5134
5148
|
[0, 1, 2].map((i) => {
|
|
5135
5149
|
const y = -pinSpan / 2 + i * pitch;
|
|
5136
5150
|
return /* @__PURE__ */ jsx66(
|
|
5137
|
-
|
|
5151
|
+
Cuboid40,
|
|
5138
5152
|
{
|
|
5139
5153
|
center: [
|
|
5140
5154
|
-bodyWidth / 2 + terminalLength / 2,
|
|
@@ -5149,7 +5163,7 @@ var SOT886 = () => {
|
|
|
5149
5163
|
[0, 1, 2].map((i) => {
|
|
5150
5164
|
const y = -pinSpan / 2 + i * pitch;
|
|
5151
5165
|
return /* @__PURE__ */ jsx66(
|
|
5152
|
-
|
|
5166
|
+
Cuboid40,
|
|
5153
5167
|
{
|
|
5154
5168
|
center: [
|
|
5155
5169
|
bodyWidth / 2 - terminalLength / 2,
|
|
@@ -5165,7 +5179,7 @@ var SOT886 = () => {
|
|
|
5165
5179
|
};
|
|
5166
5180
|
|
|
5167
5181
|
// lib/sod-323.tsx
|
|
5168
|
-
import { Colorize as Colorize34, Cuboid as
|
|
5182
|
+
import { Colorize as Colorize34, Cuboid as Cuboid41 } from "jscad-fiber";
|
|
5169
5183
|
import { Fragment as Fragment62, jsx as jsx67, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
5170
5184
|
var SOD323 = () => {
|
|
5171
5185
|
const fullWidth = 2.5;
|
|
@@ -5226,7 +5240,7 @@ var SOD323 = () => {
|
|
|
5226
5240
|
}
|
|
5227
5241
|
) }),
|
|
5228
5242
|
/* @__PURE__ */ jsx67(
|
|
5229
|
-
|
|
5243
|
+
Cuboid41,
|
|
5230
5244
|
{
|
|
5231
5245
|
color: "#777",
|
|
5232
5246
|
size: [bodyWidth / 3, bodyLength10 - 0.075, 0.02],
|
|
@@ -5237,7 +5251,7 @@ var SOD323 = () => {
|
|
|
5237
5251
|
};
|
|
5238
5252
|
|
|
5239
5253
|
// lib/sod-323F.tsx
|
|
5240
|
-
import { Colorize as Colorize35, Cuboid as
|
|
5254
|
+
import { Colorize as Colorize35, Cuboid as Cuboid42, Hull as Hull24, Translate as Translate29, Union as Union19 } from "jscad-fiber";
|
|
5241
5255
|
import { Fragment as Fragment63, jsx as jsx68, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
5242
5256
|
var SOD323F = () => {
|
|
5243
5257
|
const fullWidth = 1.7;
|
|
@@ -5252,7 +5266,7 @@ var SOD323F = () => {
|
|
|
5252
5266
|
const straightHeight = padThickness;
|
|
5253
5267
|
return /* @__PURE__ */ jsxs63(Fragment63, { children: [
|
|
5254
5268
|
/* @__PURE__ */ jsx68(
|
|
5255
|
-
|
|
5269
|
+
Cuboid42,
|
|
5256
5270
|
{
|
|
5257
5271
|
color: "#ccc",
|
|
5258
5272
|
size: [padLength, padWidth, padThickness],
|
|
@@ -5260,7 +5274,7 @@ var SOD323F = () => {
|
|
|
5260
5274
|
}
|
|
5261
5275
|
),
|
|
5262
5276
|
/* @__PURE__ */ jsx68(
|
|
5263
|
-
|
|
5277
|
+
Cuboid42,
|
|
5264
5278
|
{
|
|
5265
5279
|
color: "#ccc",
|
|
5266
5280
|
size: [padLength, padWidth, padThickness],
|
|
@@ -5268,11 +5282,11 @@ var SOD323F = () => {
|
|
|
5268
5282
|
}
|
|
5269
5283
|
),
|
|
5270
5284
|
/* @__PURE__ */ jsx68(Colorize35, { color: "#222", children: /* @__PURE__ */ jsxs63(Union19, { children: [
|
|
5271
|
-
/* @__PURE__ */ jsx68(Translate29, { z: straightHeight / 2, children: /* @__PURE__ */ jsx68(
|
|
5285
|
+
/* @__PURE__ */ jsx68(Translate29, { z: straightHeight / 2, children: /* @__PURE__ */ jsx68(Cuboid42, { size: [fullWidth, bodyLength10, straightHeight] }) }),
|
|
5272
5286
|
/* @__PURE__ */ jsxs63(Hull24, { children: [
|
|
5273
|
-
/* @__PURE__ */ jsx68(Translate29, { z: straightHeight, children: /* @__PURE__ */ jsx68(
|
|
5287
|
+
/* @__PURE__ */ jsx68(Translate29, { z: straightHeight, children: /* @__PURE__ */ jsx68(Cuboid42, { size: [fullWidth, bodyLength10, 0.01] }) }),
|
|
5274
5288
|
/* @__PURE__ */ jsx68(Translate29, { z: bodyHeight, children: /* @__PURE__ */ jsx68(
|
|
5275
|
-
|
|
5289
|
+
Cuboid42,
|
|
5276
5290
|
{
|
|
5277
5291
|
size: [fullWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
5278
5292
|
}
|
|
@@ -5280,7 +5294,7 @@ var SOD323F = () => {
|
|
|
5280
5294
|
] })
|
|
5281
5295
|
] }) }),
|
|
5282
5296
|
/* @__PURE__ */ jsx68(
|
|
5283
|
-
|
|
5297
|
+
Cuboid42,
|
|
5284
5298
|
{
|
|
5285
5299
|
color: "#777",
|
|
5286
5300
|
size: [fullWidth / 3, bodyLength10 - taperOffset, 0.02],
|
|
@@ -5291,7 +5305,7 @@ var SOD323F = () => {
|
|
|
5291
5305
|
};
|
|
5292
5306
|
|
|
5293
5307
|
// lib/sod-323FL.tsx
|
|
5294
|
-
import { Colorize as Colorize36, Cuboid as
|
|
5308
|
+
import { Colorize as Colorize36, Cuboid as Cuboid43 } from "jscad-fiber";
|
|
5295
5309
|
import { Fragment as Fragment64, jsx as jsx69, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
5296
5310
|
var SOD323FL = () => {
|
|
5297
5311
|
const fullWidth = 1.775;
|
|
@@ -5305,7 +5319,7 @@ var SOD323FL = () => {
|
|
|
5305
5319
|
const taperOffset = 0.2;
|
|
5306
5320
|
return /* @__PURE__ */ jsxs64(Fragment64, { children: [
|
|
5307
5321
|
/* @__PURE__ */ jsx69(
|
|
5308
|
-
|
|
5322
|
+
Cuboid43,
|
|
5309
5323
|
{
|
|
5310
5324
|
color: "#ccc",
|
|
5311
5325
|
size: [padLength, padWidth, padThickness],
|
|
@@ -5313,7 +5327,7 @@ var SOD323FL = () => {
|
|
|
5313
5327
|
}
|
|
5314
5328
|
),
|
|
5315
5329
|
/* @__PURE__ */ jsx69(
|
|
5316
|
-
|
|
5330
|
+
Cuboid43,
|
|
5317
5331
|
{
|
|
5318
5332
|
color: "#ccc",
|
|
5319
5333
|
size: [padLength, padWidth, padThickness],
|
|
@@ -5334,7 +5348,7 @@ var SOD323FL = () => {
|
|
|
5334
5348
|
}
|
|
5335
5349
|
) }),
|
|
5336
5350
|
/* @__PURE__ */ jsx69(
|
|
5337
|
-
|
|
5351
|
+
Cuboid43,
|
|
5338
5352
|
{
|
|
5339
5353
|
color: "#777",
|
|
5340
5354
|
size: [fullWidth / 3, bodyLength10 - 0.05, 0.02],
|
|
@@ -5345,12 +5359,12 @@ var SOD323FL = () => {
|
|
|
5345
5359
|
};
|
|
5346
5360
|
|
|
5347
5361
|
// lib/AxialCapacitor.tsx
|
|
5348
|
-
import { Colorize as Colorize37, Cylinder as
|
|
5362
|
+
import { Colorize as Colorize37, Cylinder as Cylinder15, Rotate as Rotate12, Sphere as Sphere2, Translate as Translate31 } from "jscad-fiber";
|
|
5349
5363
|
import { Fragment as Fragment65, jsx as jsx70, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
5350
5364
|
var AxialCapacitor = ({ pitch = 10 }) => {
|
|
5351
5365
|
const heightToCenterOfCapacitor = 0.5 + 4 / 2;
|
|
5352
5366
|
return /* @__PURE__ */ jsxs65(Fragment65, { children: [
|
|
5353
|
-
/* @__PURE__ */ jsx70(
|
|
5367
|
+
/* @__PURE__ */ jsx70(Cylinder15, { height: 4, radius: 0.5, center: [-pitch / 2, 0, 0.5] }),
|
|
5354
5368
|
/* @__PURE__ */ jsx70(
|
|
5355
5369
|
Sphere2,
|
|
5356
5370
|
{
|
|
@@ -5360,7 +5374,7 @@ var AxialCapacitor = ({ pitch = 10 }) => {
|
|
|
5360
5374
|
),
|
|
5361
5375
|
/* @__PURE__ */ jsx70(Translate31, { x: -2.5, y: 0, z: heightToCenterOfCapacitor, children: /* @__PURE__ */ jsxs65(Rotate12, { rotation: [0, Math.PI / 2, 0], children: [
|
|
5362
5376
|
/* @__PURE__ */ jsx70(
|
|
5363
|
-
|
|
5377
|
+
Cylinder15,
|
|
5364
5378
|
{
|
|
5365
5379
|
height: pitch,
|
|
5366
5380
|
radius: 0.5,
|
|
@@ -5368,7 +5382,7 @@ var AxialCapacitor = ({ pitch = 10 }) => {
|
|
|
5368
5382
|
}
|
|
5369
5383
|
),
|
|
5370
5384
|
/* @__PURE__ */ jsx70(Colorize37, { color: "#d2b48c", children: /* @__PURE__ */ jsx70(
|
|
5371
|
-
|
|
5385
|
+
Cylinder15,
|
|
5372
5386
|
{
|
|
5373
5387
|
height: 5,
|
|
5374
5388
|
radius: 1.3,
|
|
@@ -5376,13 +5390,13 @@ var AxialCapacitor = ({ pitch = 10 }) => {
|
|
|
5376
5390
|
}
|
|
5377
5391
|
) })
|
|
5378
5392
|
] }) }),
|
|
5379
|
-
/* @__PURE__ */ jsx70(
|
|
5393
|
+
/* @__PURE__ */ jsx70(Cylinder15, { height: 4, radius: 0.5, center: [pitch / 2, 0, 0.5] }),
|
|
5380
5394
|
/* @__PURE__ */ jsx70(Sphere2, { radius: 0.5, center: [pitch / 2, 0, heightToCenterOfCapacitor] })
|
|
5381
5395
|
] });
|
|
5382
5396
|
};
|
|
5383
5397
|
|
|
5384
5398
|
// lib/stampboard.tsx
|
|
5385
|
-
import { Colorize as Colorize38, Cuboid as
|
|
5399
|
+
import { Colorize as Colorize38, Cuboid as Cuboid44, Cylinder as Cylinder16, Subtract as Subtract11, Union as Union21 } from "jscad-fiber";
|
|
5386
5400
|
import { Fragment as Fragment66, jsx as jsx71, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
5387
5401
|
var StampBoard = ({
|
|
5388
5402
|
bodyWidth = 21,
|
|
@@ -5483,14 +5497,14 @@ var StampBoard = ({
|
|
|
5483
5497
|
}
|
|
5484
5498
|
const boardBody = /* @__PURE__ */ jsx71(Colorize38, { color: "#051a0a", children: /* @__PURE__ */ jsxs66(Subtract11, { children: [
|
|
5485
5499
|
/* @__PURE__ */ jsx71(
|
|
5486
|
-
|
|
5500
|
+
Cuboid44,
|
|
5487
5501
|
{
|
|
5488
5502
|
center: [0, 0, boardCenterZ],
|
|
5489
5503
|
size: [bodyWidth, bodyLength10, boardThickness]
|
|
5490
5504
|
}
|
|
5491
5505
|
),
|
|
5492
5506
|
pads.map((pad, index) => /* @__PURE__ */ jsx71(
|
|
5493
|
-
|
|
5507
|
+
Cuboid44,
|
|
5494
5508
|
{
|
|
5495
5509
|
center: [pad.x, pad.y, boardCenterZ],
|
|
5496
5510
|
size: [pad.pl + 0.01, pad.pw + 0.01, boardHeight]
|
|
@@ -5499,7 +5513,7 @@ var StampBoard = ({
|
|
|
5499
5513
|
))
|
|
5500
5514
|
] }) });
|
|
5501
5515
|
const holePads = innerHoles && holes.map((hole, index) => /* @__PURE__ */ jsx71(
|
|
5502
|
-
|
|
5516
|
+
Cylinder16,
|
|
5503
5517
|
{
|
|
5504
5518
|
color: "black",
|
|
5505
5519
|
center: [hole.x, hole.y, boardCenterZ],
|
|
@@ -5509,7 +5523,7 @@ var StampBoard = ({
|
|
|
5509
5523
|
index
|
|
5510
5524
|
));
|
|
5511
5525
|
const rectPads = pads.map((pad, index) => /* @__PURE__ */ jsx71(
|
|
5512
|
-
|
|
5526
|
+
Cuboid44,
|
|
5513
5527
|
{
|
|
5514
5528
|
center: [pad.x, pad.y, boardCenterZ],
|
|
5515
5529
|
size: [pad.pl + 0.01, pad.pw + 0.01, boardHeight]
|
|
@@ -5520,7 +5534,7 @@ var StampBoard = ({
|
|
|
5520
5534
|
boardBody,
|
|
5521
5535
|
/* @__PURE__ */ jsx71(Colorize38, { color: "#FFD700", children: innerHoles ? /* @__PURE__ */ jsxs66(Subtract11, { children: [
|
|
5522
5536
|
/* @__PURE__ */ jsx71(Union21, { children: pads.map((pad, index) => /* @__PURE__ */ jsx71(
|
|
5523
|
-
|
|
5537
|
+
Cuboid44,
|
|
5524
5538
|
{
|
|
5525
5539
|
center: [pad.x, pad.y, boardCenterZ],
|
|
5526
5540
|
size: [pad.pl + 0.01, pad.pw + 0.01, boardHeight]
|
|
@@ -5533,10 +5547,10 @@ var StampBoard = ({
|
|
|
5533
5547
|
};
|
|
5534
5548
|
|
|
5535
5549
|
// lib/MountedPcbModule.tsx
|
|
5536
|
-
import { Colorize as Colorize40, Cuboid as
|
|
5550
|
+
import { Colorize as Colorize40, Cuboid as Cuboid46, Cylinder as Cylinder17, Subtract as Subtract13 } from "jscad-fiber";
|
|
5537
5551
|
|
|
5538
5552
|
// lib/Screen.tsx
|
|
5539
|
-
import { Colorize as Colorize39, Cuboid as
|
|
5553
|
+
import { Colorize as Colorize39, Cuboid as Cuboid45, Subtract as Subtract12, Translate as Translate32 } from "jscad-fiber";
|
|
5540
5554
|
import { jsx as jsx72, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
5541
5555
|
var Screen = ({
|
|
5542
5556
|
width: width10 = 30,
|
|
@@ -5567,7 +5581,7 @@ var Screen = ({
|
|
|
5567
5581
|
const offsetZ = offset?.z ?? 0;
|
|
5568
5582
|
return /* @__PURE__ */ jsxs67(Translate32, { offset: { x: offsetX, y: offsetY, z: offsetZ }, children: [
|
|
5569
5583
|
backBlockHeight > 0 && /* @__PURE__ */ jsx72(Colorize39, { color: bezelColor, children: /* @__PURE__ */ jsx72(
|
|
5570
|
-
|
|
5584
|
+
Cuboid45,
|
|
5571
5585
|
{
|
|
5572
5586
|
size: [w, h, backBlockHeight],
|
|
5573
5587
|
offset: [0, 0, backBlockHeight / 2]
|
|
@@ -5575,14 +5589,14 @@ var Screen = ({
|
|
|
5575
5589
|
) }),
|
|
5576
5590
|
/* @__PURE__ */ jsx72(Colorize39, { color: bezelColor, children: /* @__PURE__ */ jsxs67(Subtract12, { children: [
|
|
5577
5591
|
/* @__PURE__ */ jsx72(
|
|
5578
|
-
|
|
5592
|
+
Cuboid45,
|
|
5579
5593
|
{
|
|
5580
5594
|
size: [w, h, clampedBezelDepth],
|
|
5581
5595
|
offset: [0, 0, backBlockHeight + clampedBezelDepth / 2]
|
|
5582
5596
|
}
|
|
5583
5597
|
),
|
|
5584
5598
|
/* @__PURE__ */ jsx72(
|
|
5585
|
-
|
|
5599
|
+
Cuboid45,
|
|
5586
5600
|
{
|
|
5587
5601
|
size: [innerWidth, innerHeight, clampedBezelDepth + 0.02],
|
|
5588
5602
|
offset: [0, 0, backBlockHeight + clampedBezelDepth / 2]
|
|
@@ -5590,7 +5604,7 @@ var Screen = ({
|
|
|
5590
5604
|
)
|
|
5591
5605
|
] }) }),
|
|
5592
5606
|
/* @__PURE__ */ jsx72(Colorize39, { color: screenColor, children: /* @__PURE__ */ jsx72(
|
|
5593
|
-
|
|
5607
|
+
Cuboid45,
|
|
5594
5608
|
{
|
|
5595
5609
|
size: [innerWidth, innerHeight, screenThickness],
|
|
5596
5610
|
offset: [0, 0, backBlockHeight + screenThickness / 2]
|
|
@@ -5704,14 +5718,14 @@ var MountedPcbModule = ({
|
|
|
5704
5718
|
const boardTopZ = boardOffsetZ + boardThickness;
|
|
5705
5719
|
const boardBody = /* @__PURE__ */ jsx73(Colorize40, { color: "#008080", children: /* @__PURE__ */ jsxs68(Subtract13, { children: [
|
|
5706
5720
|
/* @__PURE__ */ jsx73(
|
|
5707
|
-
|
|
5721
|
+
Cuboid46,
|
|
5708
5722
|
{
|
|
5709
5723
|
center: [0, 0, boardCenterZ + boardOffsetZ],
|
|
5710
5724
|
size: [finalWidth, finalHeight, boardThickness]
|
|
5711
5725
|
}
|
|
5712
5726
|
),
|
|
5713
5727
|
holePositions.map((hole, index) => /* @__PURE__ */ jsx73(
|
|
5714
|
-
|
|
5728
|
+
Cylinder17,
|
|
5715
5729
|
{
|
|
5716
5730
|
center: [hole.x, hole.y, boardCenterZ + boardOffsetZ],
|
|
5717
5731
|
radius: od / 2,
|
|
@@ -5720,7 +5734,7 @@ var MountedPcbModule = ({
|
|
|
5720
5734
|
`hole-${index}`
|
|
5721
5735
|
)),
|
|
5722
5736
|
pins.map((pin, index) => /* @__PURE__ */ jsx73(
|
|
5723
|
-
|
|
5737
|
+
Cylinder17,
|
|
5724
5738
|
{
|
|
5725
5739
|
center: [pin.x, pin.y, boardCenterZ + boardOffsetZ],
|
|
5726
5740
|
radius: od / 2,
|
|
@@ -5731,7 +5745,7 @@ var MountedPcbModule = ({
|
|
|
5731
5745
|
] }) });
|
|
5732
5746
|
const platedHoles = pins.map((pin, index) => /* @__PURE__ */ jsx73(Colorize40, { color: "#FFD700", children: /* @__PURE__ */ jsxs68(Subtract13, { children: [
|
|
5733
5747
|
/* @__PURE__ */ jsx73(
|
|
5734
|
-
|
|
5748
|
+
Cylinder17,
|
|
5735
5749
|
{
|
|
5736
5750
|
center: [pin.x, pin.y, boardThickness / 2 + boardOffsetZ],
|
|
5737
5751
|
radius: od / 2,
|
|
@@ -5739,7 +5753,7 @@ var MountedPcbModule = ({
|
|
|
5739
5753
|
}
|
|
5740
5754
|
),
|
|
5741
5755
|
/* @__PURE__ */ jsx73(
|
|
5742
|
-
|
|
5756
|
+
Cylinder17,
|
|
5743
5757
|
{
|
|
5744
5758
|
center: [pin.x, pin.y, boardThickness / 2 + boardOffsetZ],
|
|
5745
5759
|
radius: id / 2,
|
|
@@ -5790,7 +5804,7 @@ var MountedPcbModule = ({
|
|
|
5790
5804
|
};
|
|
5791
5805
|
|
|
5792
5806
|
// lib/SOD723.tsx
|
|
5793
|
-
import { Colorize as Colorize41, Cuboid as
|
|
5807
|
+
import { Colorize as Colorize41, Cuboid as Cuboid47, Hull as Hull26, Translate as Translate33, Union as Union22 } from "jscad-fiber";
|
|
5794
5808
|
import { Fragment as Fragment68, jsx as jsx74, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
5795
5809
|
var SOD723 = () => {
|
|
5796
5810
|
const fullWidth = 1.4;
|
|
@@ -5806,7 +5820,7 @@ var SOD723 = () => {
|
|
|
5806
5820
|
const straightHeight = bodyHeight * 0.24;
|
|
5807
5821
|
return /* @__PURE__ */ jsxs69(Fragment68, { children: [
|
|
5808
5822
|
/* @__PURE__ */ jsx74(
|
|
5809
|
-
|
|
5823
|
+
Cuboid47,
|
|
5810
5824
|
{
|
|
5811
5825
|
color: "#ccc",
|
|
5812
5826
|
size: [padLength, padWidth, padThickness],
|
|
@@ -5814,7 +5828,7 @@ var SOD723 = () => {
|
|
|
5814
5828
|
}
|
|
5815
5829
|
),
|
|
5816
5830
|
/* @__PURE__ */ jsx74(
|
|
5817
|
-
|
|
5831
|
+
Cuboid47,
|
|
5818
5832
|
{
|
|
5819
5833
|
color: "#ccc",
|
|
5820
5834
|
size: [padLength, padWidth, padThickness],
|
|
@@ -5822,11 +5836,11 @@ var SOD723 = () => {
|
|
|
5822
5836
|
}
|
|
5823
5837
|
),
|
|
5824
5838
|
/* @__PURE__ */ jsx74(Colorize41, { color: "#222", children: /* @__PURE__ */ jsxs69(Union22, { children: [
|
|
5825
|
-
/* @__PURE__ */ jsx74(Translate33, { z: straightHeight / 2, children: /* @__PURE__ */ jsx74(
|
|
5839
|
+
/* @__PURE__ */ jsx74(Translate33, { z: straightHeight / 2, children: /* @__PURE__ */ jsx74(Cuboid47, { size: [bodyWidth, bodyLength10, straightHeight] }) }),
|
|
5826
5840
|
/* @__PURE__ */ jsxs69(Hull26, { children: [
|
|
5827
|
-
/* @__PURE__ */ jsx74(Translate33, { z: straightHeight, children: /* @__PURE__ */ jsx74(
|
|
5841
|
+
/* @__PURE__ */ jsx74(Translate33, { z: straightHeight, children: /* @__PURE__ */ jsx74(Cuboid47, { size: [bodyWidth, bodyLength10, 0.01] }) }),
|
|
5828
5842
|
/* @__PURE__ */ jsx74(Translate33, { z: bodyHeight, children: /* @__PURE__ */ jsx74(
|
|
5829
|
-
|
|
5843
|
+
Cuboid47,
|
|
5830
5844
|
{
|
|
5831
5845
|
size: [bodyWidth - taperOffset, bodyLength10 - taperOffset, 0.01]
|
|
5832
5846
|
}
|
|
@@ -5834,7 +5848,7 @@ var SOD723 = () => {
|
|
|
5834
5848
|
] })
|
|
5835
5849
|
] }) }),
|
|
5836
5850
|
/* @__PURE__ */ jsx74(
|
|
5837
|
-
|
|
5851
|
+
Cuboid47,
|
|
5838
5852
|
{
|
|
5839
5853
|
color: "#777",
|
|
5840
5854
|
size: [fullWidth / 6, bodyLength10 - taperOffset, 0.02],
|
|
@@ -5848,8 +5862,8 @@ var SOD723_default = SOD723;
|
|
|
5848
5862
|
// lib/JSTZH1_5mm.tsx
|
|
5849
5863
|
import {
|
|
5850
5864
|
Colorize as Colorize42,
|
|
5851
|
-
Cuboid as
|
|
5852
|
-
Cylinder as
|
|
5865
|
+
Cuboid as Cuboid48,
|
|
5866
|
+
Cylinder as Cylinder18,
|
|
5853
5867
|
Rotate as Rotate13,
|
|
5854
5868
|
Subtract as Subtract14,
|
|
5855
5869
|
Translate as Translate34
|
|
@@ -5873,14 +5887,14 @@ var JSTZH1_5mm = ({
|
|
|
5873
5887
|
return /* @__PURE__ */ jsxs70(Fragment69, { children: [
|
|
5874
5888
|
/* @__PURE__ */ jsx75(Translate34, { offset: [0, 0, bodyHeight], children: /* @__PURE__ */ jsx75(Rotate13, { angles: [Math.PI, 0, 0], children: /* @__PURE__ */ jsx75(Colorize42, { color: bodyColor, children: /* @__PURE__ */ jsxs70(Subtract14, { children: [
|
|
5875
5889
|
/* @__PURE__ */ jsx75(
|
|
5876
|
-
|
|
5890
|
+
Cuboid48,
|
|
5877
5891
|
{
|
|
5878
5892
|
size: [bodyWidth, bodyDepth, bodyHeight],
|
|
5879
5893
|
center: [0, 0, bodyHeight / 2]
|
|
5880
5894
|
}
|
|
5881
5895
|
),
|
|
5882
5896
|
/* @__PURE__ */ jsx75(
|
|
5883
|
-
|
|
5897
|
+
Cuboid48,
|
|
5884
5898
|
{
|
|
5885
5899
|
size: [
|
|
5886
5900
|
bodyWidth - wallThickness * 2,
|
|
@@ -5891,14 +5905,14 @@ var JSTZH1_5mm = ({
|
|
|
5891
5905
|
}
|
|
5892
5906
|
),
|
|
5893
5907
|
/* @__PURE__ */ jsx75(
|
|
5894
|
-
|
|
5908
|
+
Cuboid48,
|
|
5895
5909
|
{
|
|
5896
5910
|
size: [bodyWidth, bodyDepth / 3, hollowHeight],
|
|
5897
5911
|
center: [0, 0, hollowHeight / 6]
|
|
5898
5912
|
}
|
|
5899
5913
|
),
|
|
5900
5914
|
/* @__PURE__ */ jsx75(
|
|
5901
|
-
|
|
5915
|
+
Cuboid48,
|
|
5902
5916
|
{
|
|
5903
5917
|
size: [
|
|
5904
5918
|
bodyWidth - wallThickness * 2,
|
|
@@ -5913,7 +5927,7 @@ var JSTZH1_5mm = ({
|
|
|
5913
5927
|
}
|
|
5914
5928
|
),
|
|
5915
5929
|
/* @__PURE__ */ jsx75(
|
|
5916
|
-
|
|
5930
|
+
Cuboid48,
|
|
5917
5931
|
{
|
|
5918
5932
|
size: [
|
|
5919
5933
|
bodyWidth - wallThickness * 2,
|
|
@@ -5928,28 +5942,28 @@ var JSTZH1_5mm = ({
|
|
|
5928
5942
|
}
|
|
5929
5943
|
),
|
|
5930
5944
|
/* @__PURE__ */ jsx75(
|
|
5931
|
-
|
|
5945
|
+
Cuboid48,
|
|
5932
5946
|
{
|
|
5933
5947
|
size: [1, wallThickness + 2, 1],
|
|
5934
5948
|
center: [-bodyWidth / 4, bodyDepth / 2, bodyHeight / 2]
|
|
5935
5949
|
}
|
|
5936
5950
|
),
|
|
5937
5951
|
/* @__PURE__ */ jsx75(
|
|
5938
|
-
|
|
5952
|
+
Cuboid48,
|
|
5939
5953
|
{
|
|
5940
5954
|
size: [1, wallThickness + 3, 1],
|
|
5941
5955
|
center: [bodyWidth / 4, bodyDepth / 2, bodyHeight / 2]
|
|
5942
5956
|
}
|
|
5943
5957
|
),
|
|
5944
5958
|
/* @__PURE__ */ jsx75(
|
|
5945
|
-
|
|
5959
|
+
Cuboid48,
|
|
5946
5960
|
{
|
|
5947
5961
|
size: [1, wallThickness + 2, 1],
|
|
5948
5962
|
center: [-bodyWidth / 4, -bodyDepth / 2, bodyHeight / 2]
|
|
5949
5963
|
}
|
|
5950
5964
|
),
|
|
5951
5965
|
/* @__PURE__ */ jsx75(
|
|
5952
|
-
|
|
5966
|
+
Cuboid48,
|
|
5953
5967
|
{
|
|
5954
5968
|
size: [1, wallThickness + 3, 1],
|
|
5955
5969
|
center: [bodyWidth / 4, -bodyDepth / 2, bodyHeight / 2]
|
|
@@ -5957,7 +5971,7 @@ var JSTZH1_5mm = ({
|
|
|
5957
5971
|
)
|
|
5958
5972
|
] }) }) }) }),
|
|
5959
5973
|
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx75(Colorize42, { color: pinColor, children: /* @__PURE__ */ jsx75(
|
|
5960
|
-
|
|
5974
|
+
Cylinder18,
|
|
5961
5975
|
{
|
|
5962
5976
|
height: pinLength,
|
|
5963
5977
|
radius: 0.35,
|
|
@@ -6007,8 +6021,8 @@ var JSTZH1_5mm = ({
|
|
|
6007
6021
|
// lib/JSTPH2_0mm.tsx
|
|
6008
6022
|
import {
|
|
6009
6023
|
Colorize as Colorize43,
|
|
6010
|
-
Cuboid as
|
|
6011
|
-
Cylinder as
|
|
6024
|
+
Cuboid as Cuboid49,
|
|
6025
|
+
Cylinder as Cylinder19,
|
|
6012
6026
|
Rotate as Rotate14,
|
|
6013
6027
|
Subtract as Subtract15,
|
|
6014
6028
|
Translate as Translate35
|
|
@@ -6040,14 +6054,14 @@ var JSTPH2_0mm = ({
|
|
|
6040
6054
|
return /* @__PURE__ */ jsxs71(Fragment70, { children: [
|
|
6041
6055
|
/* @__PURE__ */ jsx76(Translate35, { offset: [0, 0, bodyHeight], children: /* @__PURE__ */ jsx76(Rotate14, { angles: [Math.PI, 0, 0], children: /* @__PURE__ */ jsx76(Colorize43, { color: bodyColor, children: /* @__PURE__ */ jsxs71(Subtract15, { children: [
|
|
6042
6056
|
/* @__PURE__ */ jsx76(
|
|
6043
|
-
|
|
6057
|
+
Cuboid49,
|
|
6044
6058
|
{
|
|
6045
6059
|
size: [bodyWidth, bodyDepth, bodyHeight],
|
|
6046
6060
|
center: [0, 0, bodyHeight / 2]
|
|
6047
6061
|
}
|
|
6048
6062
|
),
|
|
6049
6063
|
/* @__PURE__ */ jsx76(
|
|
6050
|
-
|
|
6064
|
+
Cuboid49,
|
|
6051
6065
|
{
|
|
6052
6066
|
size: [
|
|
6053
6067
|
bodyWidth - wallThickness * 2,
|
|
@@ -6058,14 +6072,14 @@ var JSTPH2_0mm = ({
|
|
|
6058
6072
|
}
|
|
6059
6073
|
),
|
|
6060
6074
|
/* @__PURE__ */ jsx76(
|
|
6061
|
-
|
|
6075
|
+
Cuboid49,
|
|
6062
6076
|
{
|
|
6063
6077
|
size: [bodyWidth, bodyDepth / 3, hollowHeight],
|
|
6064
6078
|
center: [0, 0, hollowHeight / 6]
|
|
6065
6079
|
}
|
|
6066
6080
|
),
|
|
6067
6081
|
/* @__PURE__ */ jsx76(
|
|
6068
|
-
|
|
6082
|
+
Cuboid49,
|
|
6069
6083
|
{
|
|
6070
6084
|
size: [
|
|
6071
6085
|
bodyWidth - wallThickness * 2,
|
|
@@ -6080,7 +6094,7 @@ var JSTPH2_0mm = ({
|
|
|
6080
6094
|
}
|
|
6081
6095
|
),
|
|
6082
6096
|
/* @__PURE__ */ jsx76(
|
|
6083
|
-
|
|
6097
|
+
Cuboid49,
|
|
6084
6098
|
{
|
|
6085
6099
|
size: [
|
|
6086
6100
|
bodyWidth - wallThickness * 2,
|
|
@@ -6095,7 +6109,7 @@ var JSTPH2_0mm = ({
|
|
|
6095
6109
|
}
|
|
6096
6110
|
),
|
|
6097
6111
|
/* @__PURE__ */ jsx76(
|
|
6098
|
-
|
|
6112
|
+
Cuboid49,
|
|
6099
6113
|
{
|
|
6100
6114
|
size: [
|
|
6101
6115
|
latchWindowWidth,
|
|
@@ -6106,7 +6120,7 @@ var JSTPH2_0mm = ({
|
|
|
6106
6120
|
}
|
|
6107
6121
|
),
|
|
6108
6122
|
/* @__PURE__ */ jsx76(
|
|
6109
|
-
|
|
6123
|
+
Cuboid49,
|
|
6110
6124
|
{
|
|
6111
6125
|
size: [
|
|
6112
6126
|
latchWindowWidth,
|
|
@@ -6117,28 +6131,28 @@ var JSTPH2_0mm = ({
|
|
|
6117
6131
|
}
|
|
6118
6132
|
),
|
|
6119
6133
|
/* @__PURE__ */ jsx76(
|
|
6120
|
-
|
|
6134
|
+
Cuboid49,
|
|
6121
6135
|
{
|
|
6122
6136
|
size: [wallThickness * 3, topReliefWidth, topReliefDepth],
|
|
6123
6137
|
center: [-bodyWidth / 2, 0, topReliefDepth / 2]
|
|
6124
6138
|
}
|
|
6125
6139
|
),
|
|
6126
6140
|
/* @__PURE__ */ jsx76(Translate35, { offset: [-bodyWidth / 2, 0, topReliefDepth], children: /* @__PURE__ */ jsx76(Rotate14, { angles: [0, Math.PI / 2, 0], children: /* @__PURE__ */ jsx76(
|
|
6127
|
-
|
|
6141
|
+
Cylinder19,
|
|
6128
6142
|
{
|
|
6129
6143
|
height: wallThickness * 3,
|
|
6130
6144
|
radius: topReliefWidth / 2
|
|
6131
6145
|
}
|
|
6132
6146
|
) }) }),
|
|
6133
6147
|
/* @__PURE__ */ jsx76(
|
|
6134
|
-
|
|
6148
|
+
Cuboid49,
|
|
6135
6149
|
{
|
|
6136
6150
|
size: [wallThickness * 3, topReliefWidth, topReliefDepth],
|
|
6137
6151
|
center: [bodyWidth / 2, 0, topReliefDepth / 2]
|
|
6138
6152
|
}
|
|
6139
6153
|
),
|
|
6140
6154
|
/* @__PURE__ */ jsx76(Translate35, { offset: [bodyWidth / 2, 0, topReliefDepth], children: /* @__PURE__ */ jsx76(Rotate14, { angles: [0, Math.PI / 2, 0], children: /* @__PURE__ */ jsx76(
|
|
6141
|
-
|
|
6155
|
+
Cylinder19,
|
|
6142
6156
|
{
|
|
6143
6157
|
height: wallThickness * 3,
|
|
6144
6158
|
radius: topReliefWidth / 2
|
|
@@ -6146,7 +6160,7 @@ var JSTPH2_0mm = ({
|
|
|
6146
6160
|
) }) })
|
|
6147
6161
|
] }) }) }) }),
|
|
6148
6162
|
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx76(Colorize43, { color: pinColor, children: /* @__PURE__ */ jsx76(
|
|
6149
|
-
|
|
6163
|
+
Cuboid49,
|
|
6150
6164
|
{
|
|
6151
6165
|
size: [pinThickness, pinThickness, pinLength],
|
|
6152
6166
|
center: [startX + i * pitch, 0, (pinTop - pinTailLength) / 2]
|
|
@@ -6193,7 +6207,7 @@ var JSTPH2_0mm = ({
|
|
|
6193
6207
|
};
|
|
6194
6208
|
|
|
6195
6209
|
// lib/JSTXH2_5mm.tsx
|
|
6196
|
-
import { Colorize as Colorize44, Cuboid as
|
|
6210
|
+
import { Colorize as Colorize44, Cuboid as Cuboid50, Subtract as Subtract16, Translate as Translate36 } from "jscad-fiber";
|
|
6197
6211
|
import { fp as fp3 } from "@tscircuit/footprinter";
|
|
6198
6212
|
import { Fragment as Fragment71, jsx as jsx77, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
6199
6213
|
var JSTXH2_5mm = ({
|
|
@@ -6225,9 +6239,9 @@ var JSTXH2_5mm = ({
|
|
|
6225
6239
|
const lockNotchHeight = 2.4;
|
|
6226
6240
|
return /* @__PURE__ */ jsxs72(Fragment71, { children: [
|
|
6227
6241
|
/* @__PURE__ */ jsx77(Translate36, { offset: [0, 0, bodyHeight / 2], children: /* @__PURE__ */ jsx77(Colorize44, { color: bodyColor, children: /* @__PURE__ */ jsxs72(Subtract16, { children: [
|
|
6228
|
-
/* @__PURE__ */ jsx77(
|
|
6242
|
+
/* @__PURE__ */ jsx77(Cuboid50, { size: [bodyWidth, bodyDepth, bodyHeight] }),
|
|
6229
6243
|
/* @__PURE__ */ jsx77(Translate36, { offset: [0, 0, (bodyHeight - hollowHeight) / 2 + 0.1], children: /* @__PURE__ */ jsx77(
|
|
6230
|
-
|
|
6244
|
+
Cuboid50,
|
|
6231
6245
|
{
|
|
6232
6246
|
size: [
|
|
6233
6247
|
bodyWidth - wallThickness * 2,
|
|
@@ -6245,7 +6259,7 @@ var JSTXH2_5mm = ({
|
|
|
6245
6259
|
bodyHeight / 2 - lockNotchHeight / 2 + 0.1
|
|
6246
6260
|
],
|
|
6247
6261
|
children: /* @__PURE__ */ jsx77(
|
|
6248
|
-
|
|
6262
|
+
Cuboid50,
|
|
6249
6263
|
{
|
|
6250
6264
|
size: [
|
|
6251
6265
|
lockNotchWidth,
|
|
@@ -6265,7 +6279,7 @@ var JSTXH2_5mm = ({
|
|
|
6265
6279
|
bodyHeight / 2 - keySlotHeight / 2 + 0.1
|
|
6266
6280
|
],
|
|
6267
6281
|
children: /* @__PURE__ */ jsx77(
|
|
6268
|
-
|
|
6282
|
+
Cuboid50,
|
|
6269
6283
|
{
|
|
6270
6284
|
size: [keySlotWidth, keySlotDepth, keySlotHeight + 0.2]
|
|
6271
6285
|
}
|
|
@@ -6281,7 +6295,7 @@ var JSTXH2_5mm = ({
|
|
|
6281
6295
|
bodyHeight / 2 - keySlotHeight / 2 + 0.1
|
|
6282
6296
|
],
|
|
6283
6297
|
children: /* @__PURE__ */ jsx77(
|
|
6284
|
-
|
|
6298
|
+
Cuboid50,
|
|
6285
6299
|
{
|
|
6286
6300
|
size: [keySlotWidth, keySlotDepth, keySlotHeight + 0.2]
|
|
6287
6301
|
}
|
|
@@ -6296,12 +6310,12 @@ var JSTXH2_5mm = ({
|
|
|
6296
6310
|
-bodyDepth / 2 + 0.3,
|
|
6297
6311
|
-bodyHeight / 2 + 0.25
|
|
6298
6312
|
],
|
|
6299
|
-
children: /* @__PURE__ */ jsx77(
|
|
6313
|
+
children: /* @__PURE__ */ jsx77(Cuboid50, { size: [1, 0.8, 0.5] })
|
|
6300
6314
|
},
|
|
6301
6315
|
`vent_${i}`
|
|
6302
6316
|
))
|
|
6303
6317
|
] }) }) }),
|
|
6304
|
-
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx77(Colorize44, { color: pinColor, children: /* @__PURE__ */ jsx77(Translate36, { offset: [startX + i * pitch, 0, pinLength / 2 - 3.4], children: /* @__PURE__ */ jsx77(
|
|
6318
|
+
showPins && Array.from({ length: numPins }).map((_, i) => /* @__PURE__ */ jsx77(Colorize44, { color: pinColor, children: /* @__PURE__ */ jsx77(Translate36, { offset: [startX + i * pitch, 0, pinLength / 2 - 3.4], children: /* @__PURE__ */ jsx77(Cuboid50, { size: [0.64, 0.64, pinLength] }) }) }, i)),
|
|
6305
6319
|
showFootprint && (() => {
|
|
6306
6320
|
try {
|
|
6307
6321
|
const circuitJson = fp3.string(`jst${numPins}_xh`).circuitJson();
|
|
@@ -6326,7 +6340,7 @@ var JSTXH2_5mm = ({
|
|
|
6326
6340
|
// lib/JstSh.tsx
|
|
6327
6341
|
import { fp as fp4 } from "@tscircuit/footprinter";
|
|
6328
6342
|
import { mm } from "@tscircuit/mm";
|
|
6329
|
-
import { Colorize as Colorize45, Cuboid as
|
|
6343
|
+
import { Colorize as Colorize45, Cuboid as Cuboid51, Rotate as Rotate15, Subtract as Subtract17, Union as Union23 } from "jscad-fiber";
|
|
6330
6344
|
import { jsx as jsx78, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
6331
6345
|
function isJstShFootprint(footprint) {
|
|
6332
6346
|
const p = fp4.string(footprint).json();
|
|
@@ -6358,21 +6372,21 @@ var JstSh = ({ footprint = "jst6_sh" }) => {
|
|
|
6358
6372
|
return /* @__PURE__ */ jsxs73(Rotate15, { rotation: [0, 0, angle], children: [
|
|
6359
6373
|
/* @__PURE__ */ jsx78(Colorize45, { color: "#e4e1d6", children: /* @__PURE__ */ jsxs73(Subtract17, { children: [
|
|
6360
6374
|
/* @__PURE__ */ jsx78(
|
|
6361
|
-
|
|
6375
|
+
Cuboid51,
|
|
6362
6376
|
{
|
|
6363
6377
|
size: [width10, depth, height10],
|
|
6364
6378
|
center: [x, y, height10 / 2 + 0.05]
|
|
6365
6379
|
}
|
|
6366
6380
|
),
|
|
6367
6381
|
/* @__PURE__ */ jsx78(
|
|
6368
|
-
|
|
6382
|
+
Cuboid51,
|
|
6369
6383
|
{
|
|
6370
6384
|
size: [width10 - 1.3, 1.8, height10],
|
|
6371
6385
|
center: [x, y, height10 / 2 + 0.8]
|
|
6372
6386
|
}
|
|
6373
6387
|
),
|
|
6374
6388
|
mounts.map((pad, i) => /* @__PURE__ */ jsx78(
|
|
6375
|
-
|
|
6389
|
+
Cuboid51,
|
|
6376
6390
|
{
|
|
6377
6391
|
size: [0.7, pad.height * 0.8, 1.5],
|
|
6378
6392
|
center: [pad.x, pad.y, 0.75]
|
|
@@ -6380,7 +6394,7 @@ var JstSh = ({ footprint = "jst6_sh" }) => {
|
|
|
6380
6394
|
`recess-${i}`
|
|
6381
6395
|
)),
|
|
6382
6396
|
[-1, 1].map((side) => /* @__PURE__ */ jsx78(
|
|
6383
|
-
|
|
6397
|
+
Cuboid51,
|
|
6384
6398
|
{
|
|
6385
6399
|
size: [0.55, 0.6, 1],
|
|
6386
6400
|
center: [
|
|
@@ -6397,25 +6411,25 @@ var JstSh = ({ footprint = "jst6_sh" }) => {
|
|
|
6397
6411
|
const tailY = pad.y - direction * pad.height * 0.4;
|
|
6398
6412
|
return /* @__PURE__ */ jsxs73(Union23, { children: [
|
|
6399
6413
|
/* @__PURE__ */ jsx78(
|
|
6400
|
-
|
|
6414
|
+
Cuboid51,
|
|
6401
6415
|
{
|
|
6402
6416
|
size: [0.2, Math.abs(pinY - tailY) + 0.1, 0.2],
|
|
6403
6417
|
center: [pad.x, (pinY + tailY) / 2, 0.1]
|
|
6404
6418
|
}
|
|
6405
6419
|
),
|
|
6406
|
-
/* @__PURE__ */ jsx78(
|
|
6420
|
+
/* @__PURE__ */ jsx78(Cuboid51, { size: [0.2, 0.2, 3.45], center: [pad.x, pinY, 1.725] })
|
|
6407
6421
|
] }, i);
|
|
6408
6422
|
}),
|
|
6409
6423
|
mounts.map((pad, i) => /* @__PURE__ */ jsxs73(Union23, { children: [
|
|
6410
6424
|
/* @__PURE__ */ jsx78(
|
|
6411
|
-
|
|
6425
|
+
Cuboid51,
|
|
6412
6426
|
{
|
|
6413
6427
|
size: [0.7, pad.height * 0.75, 0.2],
|
|
6414
6428
|
center: [pad.x, pad.y, 0.1]
|
|
6415
6429
|
}
|
|
6416
6430
|
),
|
|
6417
6431
|
/* @__PURE__ */ jsx78(
|
|
6418
|
-
|
|
6432
|
+
Cuboid51,
|
|
6419
6433
|
{
|
|
6420
6434
|
size: [0.2, pad.height * 0.6, 1.35],
|
|
6421
6435
|
center: [pad.x, pad.y, 0.675]
|
|
@@ -6429,8 +6443,8 @@ var JstSh = ({ footprint = "jst6_sh" }) => {
|
|
|
6429
6443
|
// lib/FPC.tsx
|
|
6430
6444
|
import {
|
|
6431
6445
|
Colorize as Colorize46,
|
|
6432
|
-
Cuboid as
|
|
6433
|
-
Cylinder as
|
|
6446
|
+
Cuboid as Cuboid52,
|
|
6447
|
+
Cylinder as Cylinder20,
|
|
6434
6448
|
Rotate as Rotate16,
|
|
6435
6449
|
RoundedCuboid as RoundedCuboid3,
|
|
6436
6450
|
Subtract as Subtract18,
|
|
@@ -6525,7 +6539,7 @@ var FPC = ({
|
|
|
6525
6539
|
const sideBossWidth = 0.68;
|
|
6526
6540
|
return /* @__PURE__ */ jsxs74(Fragment72, { children: [
|
|
6527
6541
|
[-1, 1].map((direction) => /* @__PURE__ */ jsx79(
|
|
6528
|
-
|
|
6542
|
+
Cuboid52,
|
|
6529
6543
|
{
|
|
6530
6544
|
color: TIN_COLOR,
|
|
6531
6545
|
center: [direction * endClipX, mountY, 0.07],
|
|
@@ -6534,7 +6548,7 @@ var FPC = ({
|
|
|
6534
6548
|
`mount-pad:${direction}`
|
|
6535
6549
|
)),
|
|
6536
6550
|
contactRows.map((contact) => /* @__PURE__ */ jsx79(
|
|
6537
|
-
|
|
6551
|
+
Cuboid52,
|
|
6538
6552
|
{
|
|
6539
6553
|
color: TIN_COLOR,
|
|
6540
6554
|
center: [contact.x, terminalCenterY, 0.065],
|
|
@@ -6561,14 +6575,14 @@ var FPC = ({
|
|
|
6561
6575
|
}
|
|
6562
6576
|
),
|
|
6563
6577
|
/* @__PURE__ */ jsx79(
|
|
6564
|
-
|
|
6578
|
+
Cuboid52,
|
|
6565
6579
|
{
|
|
6566
6580
|
center: [0, throatCenterY, throatCenterZ],
|
|
6567
6581
|
size: [openingWidth, throatDepth, throatHeight]
|
|
6568
6582
|
}
|
|
6569
6583
|
),
|
|
6570
6584
|
/* @__PURE__ */ jsx79(
|
|
6571
|
-
|
|
6585
|
+
Cuboid52,
|
|
6572
6586
|
{
|
|
6573
6587
|
center: [0, actuatorCenterY, overallHeight - actuatorHeight * 0.72],
|
|
6574
6588
|
size: [actuatorWidth - 0.32, actuatorDepth - 0.16, actuatorHeight]
|
|
@@ -6586,7 +6600,7 @@ var FPC = ({
|
|
|
6586
6600
|
`spring:${contact.index}`
|
|
6587
6601
|
)),
|
|
6588
6602
|
contactRows.map((contact) => /* @__PURE__ */ jsx79(
|
|
6589
|
-
|
|
6603
|
+
Cuboid52,
|
|
6590
6604
|
{
|
|
6591
6605
|
color: TIN_COLOR,
|
|
6592
6606
|
center: [
|
|
@@ -6599,7 +6613,7 @@ var FPC = ({
|
|
|
6599
6613
|
`terminal-rise:${contact.index}`
|
|
6600
6614
|
)),
|
|
6601
6615
|
/* @__PURE__ */ jsx79(
|
|
6602
|
-
|
|
6616
|
+
Cuboid52,
|
|
6603
6617
|
{
|
|
6604
6618
|
color: HOUSING_SHADOW,
|
|
6605
6619
|
center: [
|
|
@@ -6620,7 +6634,7 @@ var FPC = ({
|
|
|
6620
6634
|
}
|
|
6621
6635
|
),
|
|
6622
6636
|
/* @__PURE__ */ jsx79(
|
|
6623
|
-
|
|
6637
|
+
Cuboid52,
|
|
6624
6638
|
{
|
|
6625
6639
|
color: ACTUATOR_HIGHLIGHT,
|
|
6626
6640
|
center: [
|
|
@@ -6648,7 +6662,7 @@ var FPC = ({
|
|
|
6648
6662
|
y: hingeY,
|
|
6649
6663
|
z: hingeZ,
|
|
6650
6664
|
children: /* @__PURE__ */ jsx79(Rotate16, { rotation: [0, Math.PI / 2, 0], children: /* @__PURE__ */ jsx79(
|
|
6651
|
-
|
|
6665
|
+
Cylinder20,
|
|
6652
6666
|
{
|
|
6653
6667
|
color: ACTUATOR_HIGHLIGHT,
|
|
6654
6668
|
height: sideBossWidth + 0.12,
|
|
@@ -6679,7 +6693,7 @@ var FPC = ({
|
|
|
6679
6693
|
`hold-down-cap:${direction}`
|
|
6680
6694
|
)),
|
|
6681
6695
|
/* @__PURE__ */ jsx79(
|
|
6682
|
-
|
|
6696
|
+
Cuboid52,
|
|
6683
6697
|
{
|
|
6684
6698
|
color: HOUSING_SHADOW,
|
|
6685
6699
|
center: [0, housingCenterY, 0.025],
|
|
@@ -6687,7 +6701,7 @@ var FPC = ({
|
|
|
6687
6701
|
}
|
|
6688
6702
|
),
|
|
6689
6703
|
/* @__PURE__ */ jsx79(
|
|
6690
|
-
|
|
6704
|
+
Cuboid52,
|
|
6691
6705
|
{
|
|
6692
6706
|
color: HOUSING_SHADOW,
|
|
6693
6707
|
center: [
|
|
@@ -6702,7 +6716,7 @@ var FPC = ({
|
|
|
6702
6716
|
};
|
|
6703
6717
|
|
|
6704
6718
|
// lib/SmdPinHeader.tsx
|
|
6705
|
-
import { Colorize as Colorize47, Cuboid as
|
|
6719
|
+
import { Colorize as Colorize47, Cuboid as Cuboid53, Hull as Hull27, Translate as Translate38 } from "jscad-fiber";
|
|
6706
6720
|
import { Fragment as Fragment73, jsx as jsx80, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
6707
6721
|
var SmdPinHeader = ({
|
|
6708
6722
|
numberOfPins,
|
|
@@ -6725,7 +6739,7 @@ var SmdPinHeader = ({
|
|
|
6725
6739
|
const verticalTailLength = standoffHeight - pinThickness / 2;
|
|
6726
6740
|
return /* @__PURE__ */ jsxs75(Translate38, { x, children: [
|
|
6727
6741
|
/* @__PURE__ */ jsx80(
|
|
6728
|
-
|
|
6742
|
+
Cuboid53,
|
|
6729
6743
|
{
|
|
6730
6744
|
color: "#222",
|
|
6731
6745
|
size: [pitch, bodyWidth, bodyHeight],
|
|
@@ -6734,21 +6748,21 @@ var SmdPinHeader = ({
|
|
|
6734
6748
|
),
|
|
6735
6749
|
/* @__PURE__ */ jsxs75(Colorize47, { color: "#d4af37", children: [
|
|
6736
6750
|
/* @__PURE__ */ jsx80(
|
|
6737
|
-
|
|
6751
|
+
Cuboid53,
|
|
6738
6752
|
{
|
|
6739
6753
|
size: [pinThickness, tailLength, pinThickness],
|
|
6740
6754
|
center: [0, tailDirection * (tailLength / 2), pinThickness / 2]
|
|
6741
6755
|
}
|
|
6742
6756
|
),
|
|
6743
6757
|
/* @__PURE__ */ jsx80(
|
|
6744
|
-
|
|
6758
|
+
Cuboid53,
|
|
6745
6759
|
{
|
|
6746
6760
|
size: [pinThickness, pinThickness, verticalTailLength],
|
|
6747
6761
|
center: [0, 0, pinThickness / 2 + verticalTailLength / 2]
|
|
6748
6762
|
}
|
|
6749
6763
|
),
|
|
6750
6764
|
/* @__PURE__ */ jsx80(
|
|
6751
|
-
|
|
6765
|
+
Cuboid53,
|
|
6752
6766
|
{
|
|
6753
6767
|
size: [pinThickness, pinThickness, postBodyLength],
|
|
6754
6768
|
center: [0, 0, bodyTop + postBodyLength / 2]
|
|
@@ -6756,14 +6770,14 @@ var SmdPinHeader = ({
|
|
|
6756
6770
|
),
|
|
6757
6771
|
/* @__PURE__ */ jsxs75(Hull27, { children: [
|
|
6758
6772
|
/* @__PURE__ */ jsx80(
|
|
6759
|
-
|
|
6773
|
+
Cuboid53,
|
|
6760
6774
|
{
|
|
6761
6775
|
size: [pinThickness, pinThickness, 0.01],
|
|
6762
6776
|
center: [0, 0, bodyTop + postBodyLength]
|
|
6763
6777
|
}
|
|
6764
6778
|
),
|
|
6765
6779
|
/* @__PURE__ */ jsx80(
|
|
6766
|
-
|
|
6780
|
+
Cuboid53,
|
|
6767
6781
|
{
|
|
6768
6782
|
size: [pinThickness * 0.65, pinThickness * 0.65, 0.01],
|
|
6769
6783
|
center: [0, 0, bodyTop + matingPinLength]
|
|
@@ -6858,7 +6872,7 @@ var GullWingBody = ({
|
|
|
6858
6872
|
};
|
|
6859
6873
|
|
|
6860
6874
|
// lib/ParametricChip.tsx
|
|
6861
|
-
import { Cuboid as
|
|
6875
|
+
import { Cuboid as Cuboid54 } from "jscad-fiber";
|
|
6862
6876
|
import { Fragment as Fragment75, jsx as jsx82, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
6863
6877
|
var ParametricChip = ({
|
|
6864
6878
|
padPitch,
|
|
@@ -6872,7 +6886,7 @@ var ParametricChip = ({
|
|
|
6872
6886
|
const bodyLength10 = fullLength10 - terminatorWidth9 * 2;
|
|
6873
6887
|
return /* @__PURE__ */ jsxs77(Fragment75, { children: [
|
|
6874
6888
|
/* @__PURE__ */ jsx82(
|
|
6875
|
-
|
|
6889
|
+
Cuboid54,
|
|
6876
6890
|
{
|
|
6877
6891
|
size: [bodyLength10, width10, height10],
|
|
6878
6892
|
offset: [0, 0, height10 / 2],
|
|
@@ -6880,7 +6894,7 @@ var ParametricChip = ({
|
|
|
6880
6894
|
}
|
|
6881
6895
|
),
|
|
6882
6896
|
/* @__PURE__ */ jsx82(
|
|
6883
|
-
|
|
6897
|
+
Cuboid54,
|
|
6884
6898
|
{
|
|
6885
6899
|
size: [terminatorWidth9, height10, width10],
|
|
6886
6900
|
offset: [fullLength10 / 2 - terminatorWidth9 / 2, 0, height10 / 2],
|
|
@@ -6888,7 +6902,7 @@ var ParametricChip = ({
|
|
|
6888
6902
|
}
|
|
6889
6903
|
),
|
|
6890
6904
|
/* @__PURE__ */ jsx82(
|
|
6891
|
-
|
|
6905
|
+
Cuboid54,
|
|
6892
6906
|
{
|
|
6893
6907
|
size: [terminatorWidth9, height10, width10],
|
|
6894
6908
|
offset: [-fullLength10 / 2 + terminatorWidth9 / 2, 0, height10 / 2],
|
|
@@ -6901,8 +6915,8 @@ var ParametricChip = ({
|
|
|
6901
6915
|
// lib/Led5050.tsx
|
|
6902
6916
|
import {
|
|
6903
6917
|
Colorize as Colorize48,
|
|
6904
|
-
Cuboid as
|
|
6905
|
-
Cylinder as
|
|
6918
|
+
Cuboid as Cuboid55,
|
|
6919
|
+
Cylinder as Cylinder21,
|
|
6906
6920
|
Rotate as Rotate17,
|
|
6907
6921
|
Subtract as Subtract19,
|
|
6908
6922
|
Translate as Translate39
|
|
@@ -6931,7 +6945,7 @@ var Led5050 = ({
|
|
|
6931
6945
|
return /* @__PURE__ */ jsxs78(Fragment76, { children: [
|
|
6932
6946
|
leadYPositions.flatMap(
|
|
6933
6947
|
(y) => leadSides.map((side) => /* @__PURE__ */ jsx83(
|
|
6934
|
-
|
|
6948
|
+
Cuboid55,
|
|
6935
6949
|
{
|
|
6936
6950
|
color: leadColor,
|
|
6937
6951
|
size: [leadLength, leadWidth, leadThickness],
|
|
@@ -6956,7 +6970,7 @@ var Led5050 = ({
|
|
|
6956
6970
|
}
|
|
6957
6971
|
),
|
|
6958
6972
|
/* @__PURE__ */ jsx83(
|
|
6959
|
-
|
|
6973
|
+
Cylinder21,
|
|
6960
6974
|
{
|
|
6961
6975
|
radius: lensRadius,
|
|
6962
6976
|
height: lensHeight,
|
|
@@ -6971,12 +6985,12 @@ var Led5050 = ({
|
|
|
6971
6985
|
bodySize / 2,
|
|
6972
6986
|
bodyTop - cornerCutDepth / 2 + 5e-3
|
|
6973
6987
|
],
|
|
6974
|
-
children: /* @__PURE__ */ jsx83(Rotate17, { rotation: [0, 0, Math.PI / 4], children: /* @__PURE__ */ jsx83(
|
|
6988
|
+
children: /* @__PURE__ */ jsx83(Rotate17, { rotation: [0, 0, Math.PI / 4], children: /* @__PURE__ */ jsx83(Cuboid55, { size: [0.9, 0.9, cornerCutDepth + 0.01] }) })
|
|
6975
6989
|
}
|
|
6976
6990
|
)
|
|
6977
6991
|
] }) }),
|
|
6978
6992
|
/* @__PURE__ */ jsx83(
|
|
6979
|
-
|
|
6993
|
+
Cylinder21,
|
|
6980
6994
|
{
|
|
6981
6995
|
color,
|
|
6982
6996
|
radius: lensRadius,
|
|
@@ -6988,7 +7002,7 @@ var Led5050 = ({
|
|
|
6988
7002
|
};
|
|
6989
7003
|
|
|
6990
7004
|
// lib/Led2835.tsx
|
|
6991
|
-
import { Colorize as Colorize49, Cuboid as
|
|
7005
|
+
import { Colorize as Colorize49, Cuboid as Cuboid56 } from "jscad-fiber";
|
|
6992
7006
|
import { Fragment as Fragment77, jsx as jsx84, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
6993
7007
|
var Led2835 = ({
|
|
6994
7008
|
bodyWidth = 3.5,
|
|
@@ -7013,21 +7027,21 @@ var Led2835 = ({
|
|
|
7013
7027
|
{ x: pad1X, w: pad1Width, key: "pad-1" },
|
|
7014
7028
|
{ x: pad2X, w: pad2Width, key: "pad-2" }
|
|
7015
7029
|
].map(({ x, w, key }) => /* @__PURE__ */ jsx84(Colorize49, { color: padColor, children: /* @__PURE__ */ jsx84(
|
|
7016
|
-
|
|
7030
|
+
Cuboid56,
|
|
7017
7031
|
{
|
|
7018
7032
|
size: [w, padLength, padThickness],
|
|
7019
7033
|
center: [x, 0, padThickness / 2]
|
|
7020
7034
|
}
|
|
7021
7035
|
) }, key)),
|
|
7022
7036
|
/* @__PURE__ */ jsx84(Colorize49, { color: bodyColor, children: /* @__PURE__ */ jsx84(
|
|
7023
|
-
|
|
7037
|
+
Cuboid56,
|
|
7024
7038
|
{
|
|
7025
7039
|
size: [bodyWidth, bodyLength10, bodyHeight],
|
|
7026
7040
|
center: [bodyCenterX, 0, padThickness + bodyHeight / 2]
|
|
7027
7041
|
}
|
|
7028
7042
|
) }),
|
|
7029
7043
|
/* @__PURE__ */ jsx84(Colorize49, { color, children: /* @__PURE__ */ jsx84(
|
|
7030
|
-
|
|
7044
|
+
Cuboid56,
|
|
7031
7045
|
{
|
|
7032
7046
|
size: [lensWidth, lensLength, lensHeight],
|
|
7033
7047
|
center: [
|
|
@@ -7043,8 +7057,8 @@ var Led2835 = ({
|
|
|
7043
7057
|
// lib/RJ45.tsx
|
|
7044
7058
|
import {
|
|
7045
7059
|
Colorize as Colorize50,
|
|
7046
|
-
Cuboid as
|
|
7047
|
-
Cylinder as
|
|
7060
|
+
Cuboid as Cuboid57,
|
|
7061
|
+
Cylinder as Cylinder22,
|
|
7048
7062
|
Rotate as Rotate18,
|
|
7049
7063
|
RoundedCuboid as RoundedCuboid4,
|
|
7050
7064
|
Subtract as Subtract20,
|
|
@@ -7112,14 +7126,14 @@ var RJ45 = ({
|
|
|
7112
7126
|
/* @__PURE__ */ jsxs80(Colorize50, { color: shellColor, children: [
|
|
7113
7127
|
/* @__PURE__ */ jsxs80(Subtract20, { children: [
|
|
7114
7128
|
/* @__PURE__ */ jsx85(
|
|
7115
|
-
|
|
7129
|
+
Cuboid57,
|
|
7116
7130
|
{
|
|
7117
7131
|
center: [0, bodyCenterY, bodyHeight / 2],
|
|
7118
7132
|
size: [bodyWidth, bodyDepth, bodyHeight]
|
|
7119
7133
|
}
|
|
7120
7134
|
),
|
|
7121
7135
|
/* @__PURE__ */ jsx85(
|
|
7122
|
-
|
|
7136
|
+
Cuboid57,
|
|
7123
7137
|
{
|
|
7124
7138
|
center: [0, cavityCenterY, openingCenterZ],
|
|
7125
7139
|
size: [
|
|
@@ -7131,14 +7145,14 @@ var RJ45 = ({
|
|
|
7131
7145
|
)
|
|
7132
7146
|
] }),
|
|
7133
7147
|
/* @__PURE__ */ jsx85(
|
|
7134
|
-
|
|
7148
|
+
Cuboid57,
|
|
7135
7149
|
{
|
|
7136
7150
|
center: [0, frontLipY, 0.72],
|
|
7137
7151
|
size: [openingWidth + 0.5, shellThickness * 1.25, 1.05]
|
|
7138
7152
|
}
|
|
7139
7153
|
),
|
|
7140
7154
|
[-1, 1].map((direction) => /* @__PURE__ */ jsx85(
|
|
7141
|
-
|
|
7155
|
+
Cuboid57,
|
|
7142
7156
|
{
|
|
7143
7157
|
center: [direction * shieldPinX, shieldPinY, 0.25],
|
|
7144
7158
|
size: [
|
|
@@ -7150,7 +7164,7 @@ var RJ45 = ({
|
|
|
7150
7164
|
`shield-tab:${direction}`
|
|
7151
7165
|
)),
|
|
7152
7166
|
[-1, 1].map((direction) => /* @__PURE__ */ jsx85(
|
|
7153
|
-
|
|
7167
|
+
Cuboid57,
|
|
7154
7168
|
{
|
|
7155
7169
|
center: [
|
|
7156
7170
|
direction * bodyWidth * 0.24,
|
|
@@ -7177,7 +7191,7 @@ var RJ45 = ({
|
|
|
7177
7191
|
}
|
|
7178
7192
|
),
|
|
7179
7193
|
/* @__PURE__ */ jsx85(
|
|
7180
|
-
|
|
7194
|
+
Cuboid57,
|
|
7181
7195
|
{
|
|
7182
7196
|
center: [
|
|
7183
7197
|
0,
|
|
@@ -7193,7 +7207,7 @@ var RJ45 = ({
|
|
|
7193
7207
|
)
|
|
7194
7208
|
] }),
|
|
7195
7209
|
/* @__PURE__ */ jsx85(
|
|
7196
|
-
|
|
7210
|
+
Cuboid57,
|
|
7197
7211
|
{
|
|
7198
7212
|
center: [0, backWallY, openingCenterZ],
|
|
7199
7213
|
size: [openingWidth - 1.15, shellThickness, openingHeight - 1.25]
|
|
@@ -7208,7 +7222,7 @@ var RJ45 = ({
|
|
|
7208
7222
|
}
|
|
7209
7223
|
),
|
|
7210
7224
|
[-1, 1].map((direction) => /* @__PURE__ */ jsx85(
|
|
7211
|
-
|
|
7225
|
+
Cylinder22,
|
|
7212
7226
|
{
|
|
7213
7227
|
center: [direction * locatorHoleX, locatorHoleY, -0.25],
|
|
7214
7228
|
radius: Math.max(locatorHoleDiameter * 0.41, 0.65),
|
|
@@ -7219,7 +7233,7 @@ var RJ45 = ({
|
|
|
7219
7233
|
] }),
|
|
7220
7234
|
/* @__PURE__ */ jsxs80(Colorize50, { color: contactColor, children: [
|
|
7221
7235
|
signalPinPositions.map(({ x, y }, index) => /* @__PURE__ */ jsx85(
|
|
7222
|
-
|
|
7236
|
+
Cylinder22,
|
|
7223
7237
|
{
|
|
7224
7238
|
center: [x, y, 0.15],
|
|
7225
7239
|
radius: signalLeadRadius,
|
|
@@ -7246,7 +7260,7 @@ var RJ45 = ({
|
|
|
7246
7260
|
`socket-contact:${index}`
|
|
7247
7261
|
)),
|
|
7248
7262
|
ledPins && ledPinPositions.map((x, index) => /* @__PURE__ */ jsx85(
|
|
7249
|
-
|
|
7263
|
+
Cylinder22,
|
|
7250
7264
|
{
|
|
7251
7265
|
center: [x, ledPinY, 0.15],
|
|
7252
7266
|
radius: signalLeadRadius,
|
|
@@ -7287,7 +7301,7 @@ var RJ45 = ({
|
|
|
7287
7301
|
};
|
|
7288
7302
|
|
|
7289
7303
|
// lib/DPAK.tsx
|
|
7290
|
-
import { Colorize as Colorize51, Cuboid as
|
|
7304
|
+
import { Colorize as Colorize51, Cuboid as Cuboid58, Hull as Hull28 } from "jscad-fiber";
|
|
7291
7305
|
import { Fragment as Fragment79, jsx as jsx86, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
7292
7306
|
var DPAK = ({
|
|
7293
7307
|
bodyWidth = 6.1,
|
|
@@ -7312,14 +7326,14 @@ var DPAK = ({
|
|
|
7312
7326
|
const leadThickness = 0.4;
|
|
7313
7327
|
return /* @__PURE__ */ jsxs81(Fragment79, { children: [
|
|
7314
7328
|
/* @__PURE__ */ jsx86(Colorize51, { color: tabColor, children: /* @__PURE__ */ jsx86(
|
|
7315
|
-
|
|
7329
|
+
Cuboid58,
|
|
7316
7330
|
{
|
|
7317
7331
|
size: [tabWidth, tabLength, tabThickness],
|
|
7318
7332
|
center: [tabCenterX, 0, tabThickness / 2]
|
|
7319
7333
|
}
|
|
7320
7334
|
) }),
|
|
7321
7335
|
/* @__PURE__ */ jsx86(Colorize51, { color, children: /* @__PURE__ */ jsx86(
|
|
7322
|
-
|
|
7336
|
+
Cuboid58,
|
|
7323
7337
|
{
|
|
7324
7338
|
size: [bodyWidth, bodyLength10, bodyHeight],
|
|
7325
7339
|
center: [bodyCenterX, 0, tabThickness + bodyHeight / 2]
|
|
@@ -7328,7 +7342,7 @@ var DPAK = ({
|
|
|
7328
7342
|
[-1, 1].map((side) => {
|
|
7329
7343
|
return /* @__PURE__ */ jsxs81(Colorize51, { color: leadColor, children: [
|
|
7330
7344
|
/* @__PURE__ */ jsx86(
|
|
7331
|
-
|
|
7345
|
+
Cuboid58,
|
|
7332
7346
|
{
|
|
7333
7347
|
size: [leadContactLength, leadWidth, leadThickness],
|
|
7334
7348
|
center: [
|
|
@@ -7340,7 +7354,7 @@ var DPAK = ({
|
|
|
7340
7354
|
),
|
|
7341
7355
|
/* @__PURE__ */ jsxs81(Hull28, { children: [
|
|
7342
7356
|
/* @__PURE__ */ jsx86(
|
|
7343
|
-
|
|
7357
|
+
Cuboid58,
|
|
7344
7358
|
{
|
|
7345
7359
|
size: [0.1, leadWidth, leadThickness],
|
|
7346
7360
|
center: [
|
|
@@ -7351,7 +7365,7 @@ var DPAK = ({
|
|
|
7351
7365
|
}
|
|
7352
7366
|
),
|
|
7353
7367
|
/* @__PURE__ */ jsx86(
|
|
7354
|
-
|
|
7368
|
+
Cuboid58,
|
|
7355
7369
|
{
|
|
7356
7370
|
size: [0.1, leadWidth, leadThickness],
|
|
7357
7371
|
center: [bodyFrontX, side * pitch, leadZ + tabThickness / 2]
|
|
@@ -7366,8 +7380,8 @@ var DPAK = ({
|
|
|
7366
7380
|
// lib/ElectrolyticCapacitor.tsx
|
|
7367
7381
|
import {
|
|
7368
7382
|
Colorize as Colorize52,
|
|
7369
|
-
Cuboid as
|
|
7370
|
-
Cylinder as
|
|
7383
|
+
Cuboid as Cuboid59,
|
|
7384
|
+
Cylinder as Cylinder23,
|
|
7371
7385
|
RoundedCylinder as RoundedCylinder5,
|
|
7372
7386
|
Subtract as Subtract21
|
|
7373
7387
|
} from "jscad-fiber";
|
|
@@ -7391,7 +7405,7 @@ var ElectrolyticCapacitor = ({
|
|
|
7391
7405
|
const grooveDepth = 0.3;
|
|
7392
7406
|
return /* @__PURE__ */ jsxs82(Fragment80, { children: [
|
|
7393
7407
|
/* @__PURE__ */ jsx87(Colorize52, { color: baseColor, children: /* @__PURE__ */ jsx87(
|
|
7394
|
-
|
|
7408
|
+
Cylinder23,
|
|
7395
7409
|
{
|
|
7396
7410
|
radius: radius - 0.05,
|
|
7397
7411
|
height: baseHeight,
|
|
@@ -7409,14 +7423,14 @@ var ElectrolyticCapacitor = ({
|
|
|
7409
7423
|
}
|
|
7410
7424
|
),
|
|
7411
7425
|
/* @__PURE__ */ jsx87(
|
|
7412
|
-
|
|
7426
|
+
Cuboid59,
|
|
7413
7427
|
{
|
|
7414
7428
|
size: [diameter, grooveWidth, grooveDepth * 2],
|
|
7415
7429
|
center: [0, 0, canTop]
|
|
7416
7430
|
}
|
|
7417
7431
|
),
|
|
7418
7432
|
/* @__PURE__ */ jsx87(
|
|
7419
|
-
|
|
7433
|
+
Cuboid59,
|
|
7420
7434
|
{
|
|
7421
7435
|
size: [grooveWidth, diameter, grooveDepth * 2],
|
|
7422
7436
|
center: [0, 0, canTop]
|
|
@@ -7424,7 +7438,7 @@ var ElectrolyticCapacitor = ({
|
|
|
7424
7438
|
)
|
|
7425
7439
|
] }) }),
|
|
7426
7440
|
[-1, 1].map((side) => /* @__PURE__ */ jsx87(Colorize52, { color: "#c0c0c0", children: /* @__PURE__ */ jsx87(
|
|
7427
|
-
|
|
7441
|
+
Cylinder23,
|
|
7428
7442
|
{
|
|
7429
7443
|
radius: leadDiameter / 2,
|
|
7430
7444
|
height: leadLength + baseHeight,
|
|
@@ -7435,7 +7449,7 @@ var ElectrolyticCapacitor = ({
|
|
|
7435
7449
|
};
|
|
7436
7450
|
|
|
7437
7451
|
// lib/Potentiometer.tsx
|
|
7438
|
-
import { Colorize as Colorize53, Cuboid as
|
|
7452
|
+
import { Colorize as Colorize53, Cuboid as Cuboid60, Cylinder as Cylinder24, Subtract as Subtract22 } from "jscad-fiber";
|
|
7439
7453
|
import { Fragment as Fragment81, jsx as jsx88, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
7440
7454
|
var Potentiometer = ({
|
|
7441
7455
|
bodyWidth = 5.35,
|
|
@@ -7456,7 +7470,7 @@ var Potentiometer = ({
|
|
|
7456
7470
|
const slotWidth = Math.max(adjusterDiameter * 0.16, 0.3);
|
|
7457
7471
|
return /* @__PURE__ */ jsxs83(Fragment81, { children: [
|
|
7458
7472
|
/* @__PURE__ */ jsx88(Colorize53, { color: bodyColor, children: /* @__PURE__ */ jsx88(
|
|
7459
|
-
|
|
7473
|
+
Cuboid60,
|
|
7460
7474
|
{
|
|
7461
7475
|
size: [bodyWidth, bodyLength10, bodyHeight],
|
|
7462
7476
|
center: [bodyCenterX, 0, bodyHeight / 2]
|
|
@@ -7464,7 +7478,7 @@ var Potentiometer = ({
|
|
|
7464
7478
|
) }),
|
|
7465
7479
|
/* @__PURE__ */ jsx88(Colorize53, { color: adjusterColor, children: /* @__PURE__ */ jsxs83(Subtract22, { children: [
|
|
7466
7480
|
/* @__PURE__ */ jsx88(
|
|
7467
|
-
|
|
7481
|
+
Cylinder24,
|
|
7468
7482
|
{
|
|
7469
7483
|
radius: adjusterDiameter / 2,
|
|
7470
7484
|
height: adjusterHeight,
|
|
@@ -7472,7 +7486,7 @@ var Potentiometer = ({
|
|
|
7472
7486
|
}
|
|
7473
7487
|
),
|
|
7474
7488
|
/* @__PURE__ */ jsx88(
|
|
7475
|
-
|
|
7489
|
+
Cuboid60,
|
|
7476
7490
|
{
|
|
7477
7491
|
size: [adjusterDiameter, slotWidth, adjusterHeight * 0.6],
|
|
7478
7492
|
center: [bodyCenterX, 0, adjusterZ + adjusterHeight / 2]
|
|
@@ -7480,7 +7494,7 @@ var Potentiometer = ({
|
|
|
7480
7494
|
)
|
|
7481
7495
|
] }) }),
|
|
7482
7496
|
shaftHeight > 0 && shaftDiameter > 0 ? /* @__PURE__ */ jsx88(Colorize53, { color: adjusterColor, children: /* @__PURE__ */ jsx88(
|
|
7483
|
-
|
|
7497
|
+
Cylinder24,
|
|
7484
7498
|
{
|
|
7485
7499
|
radius: shaftDiameter / 2,
|
|
7486
7500
|
height: shaftHeight,
|
|
@@ -7488,7 +7502,7 @@ var Potentiometer = ({
|
|
|
7488
7502
|
}
|
|
7489
7503
|
) }) : null,
|
|
7490
7504
|
leads.map((lead) => /* @__PURE__ */ jsx88(Colorize53, { color: "#c0c0c0", children: /* @__PURE__ */ jsx88(
|
|
7491
|
-
|
|
7505
|
+
Cylinder24,
|
|
7492
7506
|
{
|
|
7493
7507
|
radius: leadDiameter / 2,
|
|
7494
7508
|
height: bodyHeight / 2 + leadLength,
|
|
@@ -7499,7 +7513,7 @@ var Potentiometer = ({
|
|
|
7499
7513
|
};
|
|
7500
7514
|
|
|
7501
7515
|
// lib/SmdPushButton.tsx
|
|
7502
|
-
import { Colorize as Colorize54, Cuboid as
|
|
7516
|
+
import { Colorize as Colorize54, Cuboid as Cuboid61, Cylinder as Cylinder25 } from "jscad-fiber";
|
|
7503
7517
|
import { Fragment as Fragment82, jsx as jsx89, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
7504
7518
|
var SmdPushButton = ({
|
|
7505
7519
|
bodyWidth = 2.9,
|
|
@@ -7518,14 +7532,14 @@ var SmdPushButton = ({
|
|
|
7518
7532
|
const leadThickness = 0.15;
|
|
7519
7533
|
return /* @__PURE__ */ jsxs84(Fragment82, { children: [
|
|
7520
7534
|
/* @__PURE__ */ jsx89(Colorize54, { color: bodyColor, children: /* @__PURE__ */ jsx89(
|
|
7521
|
-
|
|
7535
|
+
Cuboid61,
|
|
7522
7536
|
{
|
|
7523
7537
|
size: [bodyWidth, bodyLength10, bodyHeight],
|
|
7524
7538
|
center: [0, 0, bodyHeight / 2]
|
|
7525
7539
|
}
|
|
7526
7540
|
) }),
|
|
7527
7541
|
/* @__PURE__ */ jsx89(Colorize54, { color: actuatorColor, children: /* @__PURE__ */ jsx89(
|
|
7528
|
-
|
|
7542
|
+
Cylinder25,
|
|
7529
7543
|
{
|
|
7530
7544
|
radius: actuatorDiameter / 2,
|
|
7531
7545
|
height: actuatorHeight,
|
|
@@ -7534,7 +7548,7 @@ var SmdPushButton = ({
|
|
|
7534
7548
|
) }),
|
|
7535
7549
|
[-1, 1].flatMap(
|
|
7536
7550
|
(sx) => [-1, 1].map((sy) => /* @__PURE__ */ jsx89(Colorize54, { color: leadColor, children: /* @__PURE__ */ jsx89(
|
|
7537
|
-
|
|
7551
|
+
Cuboid61,
|
|
7538
7552
|
{
|
|
7539
7553
|
size: [padWidth, padLength, leadThickness],
|
|
7540
7554
|
center: [
|
|
@@ -7550,7 +7564,7 @@ var SmdPushButton = ({
|
|
|
7550
7564
|
|
|
7551
7565
|
// lib/SmdSlideSwitch.tsx
|
|
7552
7566
|
import { fp as fp7 } from "@tscircuit/footprinter";
|
|
7553
|
-
import { Colorize as Colorize55, Cuboid as
|
|
7567
|
+
import { Colorize as Colorize55, Cuboid as Cuboid62, Cylinder as Cylinder26, Rotate as Rotate19, Subtract as Subtract23 } from "jscad-fiber";
|
|
7554
7568
|
import { jsx as jsx90, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
7555
7569
|
var SmdSlideSwitch = ({
|
|
7556
7570
|
footprint = "smdslideswitch7",
|
|
@@ -7571,26 +7585,26 @@ var SmdSlideSwitch = ({
|
|
|
7571
7585
|
const width10 = params.mpx - 0.5, depth = 2.7, height10 = params.mpx > 6 ? 1.5 : 1.4, y = params.mounty;
|
|
7572
7586
|
return /* @__PURE__ */ jsxs85(Rotate19, { rotation: [0, 0, angle], children: [
|
|
7573
7587
|
/* @__PURE__ */ jsx90(Colorize55, { color: "#aeb4ba", children: /* @__PURE__ */ jsxs85(Subtract23, { children: [
|
|
7574
|
-
/* @__PURE__ */ jsx90(
|
|
7588
|
+
/* @__PURE__ */ jsx90(Cuboid62, { size: [width10, depth, height10], center: [0, y, height10 / 2] }),
|
|
7575
7589
|
/* @__PURE__ */ jsx90(
|
|
7576
|
-
|
|
7590
|
+
Cuboid62,
|
|
7577
7591
|
{
|
|
7578
7592
|
size: [width10 - 0.3, depth - 0.3, height10],
|
|
7579
7593
|
center: [0, y, height10 / 2 - 0.15]
|
|
7580
7594
|
}
|
|
7581
7595
|
),
|
|
7582
|
-
/* @__PURE__ */ jsx90(
|
|
7596
|
+
/* @__PURE__ */ jsx90(Cuboid62, { size: [2.7, 0.5, 0.9], center: [0, y - depth / 2, 0.65] })
|
|
7583
7597
|
] }) }),
|
|
7584
7598
|
/* @__PURE__ */ jsxs85(Colorize55, { color: "#28292c", children: [
|
|
7585
7599
|
/* @__PURE__ */ jsx90(
|
|
7586
|
-
|
|
7600
|
+
Cuboid62,
|
|
7587
7601
|
{
|
|
7588
7602
|
size: [width10 - 0.32, depth - 0.32, 0.35],
|
|
7589
7603
|
center: [0, y, 0.175]
|
|
7590
7604
|
}
|
|
7591
7605
|
),
|
|
7592
7606
|
/* @__PURE__ */ jsx90(
|
|
7593
|
-
|
|
7607
|
+
Cuboid62,
|
|
7594
7608
|
{
|
|
7595
7609
|
size: [1, 2.25, 0.65],
|
|
7596
7610
|
center: [position === 0 ? -0.5 : 0.5, y - 1.5, 0.65]
|
|
@@ -7598,7 +7612,7 @@ var SmdSlideSwitch = ({
|
|
|
7598
7612
|
),
|
|
7599
7613
|
elements.filter((e) => e.type === "pcb_hole").map(
|
|
7600
7614
|
(hole, i) => "hole_diameter" in hole && "x" in hole ? /* @__PURE__ */ jsx90(
|
|
7601
|
-
|
|
7615
|
+
Cylinder26,
|
|
7602
7616
|
{
|
|
7603
7617
|
radius: hole.hole_diameter * 0.42,
|
|
7604
7618
|
height: 0.6,
|
|
@@ -7613,7 +7627,7 @@ var SmdSlideSwitch = ({
|
|
|
7613
7627
|
const outerY = pad.y + pad.height * 0.4;
|
|
7614
7628
|
const innerY = Math.min(pad.y - pad.height * 0.4, y + depth / 2 - 0.2);
|
|
7615
7629
|
return /* @__PURE__ */ jsx90(
|
|
7616
|
-
|
|
7630
|
+
Cuboid62,
|
|
7617
7631
|
{
|
|
7618
7632
|
size: [
|
|
7619
7633
|
pad.width * 0.8,
|
|
@@ -7629,7 +7643,7 @@ var SmdSlideSwitch = ({
|
|
|
7629
7643
|
};
|
|
7630
7644
|
|
|
7631
7645
|
// lib/SOT-563.tsx
|
|
7632
|
-
import { Cuboid as
|
|
7646
|
+
import { Cuboid as Cuboid63, Translate as Translate42, Rotate as Rotate20, Colorize as Colorize56 } from "jscad-fiber";
|
|
7633
7647
|
import { Fragment as Fragment83, jsx as jsx91, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
7634
7648
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
7635
7649
|
const bodyWidth = 1.2;
|
|
@@ -7641,7 +7655,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
7641
7655
|
const leadSpacing = 0.5;
|
|
7642
7656
|
const bodyZOffset = -0.4;
|
|
7643
7657
|
return /* @__PURE__ */ jsxs86(Fragment83, { children: [
|
|
7644
|
-
/* @__PURE__ */ jsx91(Rotate20, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx91(Translate42, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx91(Colorize56, { color: "grey", children: /* @__PURE__ */ jsx91(
|
|
7658
|
+
/* @__PURE__ */ jsx91(Rotate20, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ jsx91(Translate42, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ jsx91(Colorize56, { color: "grey", children: /* @__PURE__ */ jsx91(Cuboid63, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
7645
7659
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
7646
7660
|
// Left lead
|
|
7647
7661
|
/* @__PURE__ */ jsx91(
|
|
@@ -7652,7 +7666,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
7652
7666
|
yOffset * leadSpacing,
|
|
7653
7667
|
leadHeight / 2
|
|
7654
7668
|
],
|
|
7655
|
-
children: /* @__PURE__ */ jsx91(
|
|
7669
|
+
children: /* @__PURE__ */ jsx91(Cuboid63, { size: [leadLength, leadWidth, leadHeight] })
|
|
7656
7670
|
},
|
|
7657
7671
|
`left-${index}`
|
|
7658
7672
|
),
|
|
@@ -7661,7 +7675,7 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
7661
7675
|
Translate42,
|
|
7662
7676
|
{
|
|
7663
7677
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, leadHeight / 2],
|
|
7664
|
-
children: /* @__PURE__ */ jsx91(
|
|
7678
|
+
children: /* @__PURE__ */ jsx91(Cuboid63, { size: [leadLength, leadWidth, leadHeight] })
|
|
7665
7679
|
},
|
|
7666
7680
|
`right-${index}`
|
|
7667
7681
|
)
|
|
@@ -7673,8 +7687,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
7673
7687
|
import { fp as fp8 } from "@tscircuit/footprinter";
|
|
7674
7688
|
import {
|
|
7675
7689
|
Colorize as Colorize57,
|
|
7676
|
-
Cuboid as
|
|
7677
|
-
Cylinder as
|
|
7690
|
+
Cuboid as Cuboid64,
|
|
7691
|
+
Cylinder as Cylinder27,
|
|
7678
7692
|
Hull as Hull29,
|
|
7679
7693
|
Rotate as Rotate21,
|
|
7680
7694
|
Subtract as Subtract24,
|
|
@@ -7685,7 +7699,7 @@ var Capsule = ({
|
|
|
7685
7699
|
width: width10,
|
|
7686
7700
|
height: height10,
|
|
7687
7701
|
depth
|
|
7688
|
-
}) => /* @__PURE__ */ jsx92(Hull29, { children: [-1, 1].map((side) => /* @__PURE__ */ jsx92(Translate43, { offset: [side * (width10 - height10) / 2, 0, 0], children: /* @__PURE__ */ jsx92(Rotate21, { rotation: [Math.PI / 2, 0, 0], children: /* @__PURE__ */ jsx92(
|
|
7702
|
+
}) => /* @__PURE__ */ jsx92(Hull29, { children: [-1, 1].map((side) => /* @__PURE__ */ jsx92(Translate43, { offset: [side * (width10 - height10) / 2, 0, 0], children: /* @__PURE__ */ jsx92(Rotate21, { rotation: [Math.PI / 2, 0, 0], children: /* @__PURE__ */ jsx92(Cylinder27, { radius: height10 / 2, height: depth }) }) }, side)) });
|
|
7689
7703
|
var UsbCMidmount = ({
|
|
7690
7704
|
footprint = "usbcmidmount16"
|
|
7691
7705
|
}) => {
|
|
@@ -7722,16 +7736,16 @@ var UsbCMidmount = ({
|
|
|
7722
7736
|
] }) }) }),
|
|
7723
7737
|
/* @__PURE__ */ jsxs87(Colorize57, { color: "#242529", children: [
|
|
7724
7738
|
/* @__PURE__ */ jsx92(
|
|
7725
|
-
|
|
7739
|
+
Cuboid64,
|
|
7726
7740
|
{
|
|
7727
7741
|
size: [6.65, depth - 1.1, 0.7],
|
|
7728
7742
|
center: [0, centerY + 0.3, centerZ]
|
|
7729
7743
|
}
|
|
7730
7744
|
),
|
|
7731
|
-
/* @__PURE__ */ jsx92(
|
|
7745
|
+
/* @__PURE__ */ jsx92(Cuboid64, { size: [7.6, 1, 2.45], center: [0, back - 0.65, centerZ] }),
|
|
7732
7746
|
holes.map(
|
|
7733
7747
|
(hole, i) => "x" in hole && "hole_diameter" in hole ? /* @__PURE__ */ jsx92(
|
|
7734
|
-
|
|
7748
|
+
Cylinder27,
|
|
7735
7749
|
{
|
|
7736
7750
|
radius: hole.hole_diameter * 0.42,
|
|
7737
7751
|
height: 0.8,
|
|
@@ -7744,7 +7758,7 @@ var UsbCMidmount = ({
|
|
|
7744
7758
|
/* @__PURE__ */ jsxs87(Colorize57, { color: "#d3ad57", children: [
|
|
7745
7759
|
[-1, 1].flatMap(
|
|
7746
7760
|
(side) => [-2.75, -2.25, -1.25, -0.25, 0.25, 1.25, 2.25, 2.75].map((x) => /* @__PURE__ */ jsx92(
|
|
7747
|
-
|
|
7761
|
+
Cuboid64,
|
|
7748
7762
|
{
|
|
7749
7763
|
size: [0.24, depth - 2, 0.04],
|
|
7750
7764
|
center: [x, centerY + 0.1, centerZ + side * 0.365]
|
|
@@ -7753,7 +7767,7 @@ var UsbCMidmount = ({
|
|
|
7753
7767
|
))
|
|
7754
7768
|
),
|
|
7755
7769
|
pads.map((pad, i) => /* @__PURE__ */ jsx92(
|
|
7756
|
-
|
|
7770
|
+
Cuboid64,
|
|
7757
7771
|
{
|
|
7758
7772
|
size: [
|
|
7759
7773
|
Math.min(pad.width * 0.7, 0.35),
|
|
@@ -7766,7 +7780,7 @@ var UsbCMidmount = ({
|
|
|
7766
7780
|
))
|
|
7767
7781
|
] }),
|
|
7768
7782
|
/* @__PURE__ */ jsx92(Colorize57, { color: "#b8bdc4", children: slots.map((slot, i) => /* @__PURE__ */ jsx92(
|
|
7769
|
-
|
|
7783
|
+
Cuboid64,
|
|
7770
7784
|
{
|
|
7771
7785
|
size: [
|
|
7772
7786
|
0.4,
|
|
@@ -9046,7 +9060,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
9046
9060
|
};
|
|
9047
9061
|
|
|
9048
9062
|
// lib/utils/FlatLeadDiode.tsx
|
|
9049
|
-
import { Colorize as Colorize59, Cuboid as
|
|
9063
|
+
import { Colorize as Colorize59, Cuboid as Cuboid66, Hull as Hull30, Subtract as Subtract25 } from "jscad-fiber";
|
|
9050
9064
|
import { Fragment as Fragment87, jsx as jsx96, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
9051
9065
|
function createFlatLeadDiode(p) {
|
|
9052
9066
|
const dimensions = [
|
|
@@ -9077,14 +9091,14 @@ function createFlatLeadDiode(p) {
|
|
|
9077
9091
|
const slice = Math.min(p.bodyHeight - p.standoff, p.bodyWidth) / 100;
|
|
9078
9092
|
const body = /* @__PURE__ */ jsxs90(Hull30, { children: [
|
|
9079
9093
|
/* @__PURE__ */ jsx96(
|
|
9080
|
-
|
|
9094
|
+
Cuboid66,
|
|
9081
9095
|
{
|
|
9082
9096
|
size: [p.bodyLength, p.bodyWidth, slice],
|
|
9083
9097
|
center: [0, 0, p.standoff + slice / 2]
|
|
9084
9098
|
}
|
|
9085
9099
|
),
|
|
9086
9100
|
/* @__PURE__ */ jsx96(
|
|
9087
|
-
|
|
9101
|
+
Cuboid66,
|
|
9088
9102
|
{
|
|
9089
9103
|
size: [
|
|
9090
9104
|
p.bodyLength - p.taperInset * 2,
|
|
@@ -9096,7 +9110,7 @@ function createFlatLeadDiode(p) {
|
|
|
9096
9110
|
)
|
|
9097
9111
|
] });
|
|
9098
9112
|
const stripe = /* @__PURE__ */ jsx96(
|
|
9099
|
-
|
|
9113
|
+
Cuboid66,
|
|
9100
9114
|
{
|
|
9101
9115
|
size: [p.markingWidth, (p.bodyWidth - p.taperInset * 2) * 0.9, slice],
|
|
9102
9116
|
center: [
|
|
@@ -9113,7 +9127,7 @@ function createFlatLeadDiode(p) {
|
|
|
9113
9127
|
] }) : body }),
|
|
9114
9128
|
/* @__PURE__ */ jsxs90(Colorize59, { color: "#c7c9cd", children: [
|
|
9115
9129
|
/* @__PURE__ */ jsx96(
|
|
9116
|
-
|
|
9130
|
+
Cuboid66,
|
|
9117
9131
|
{
|
|
9118
9132
|
size: [p.cathodeLength, p.cathodeWidth, p.terminalThickness],
|
|
9119
9133
|
center: [
|
|
@@ -9124,7 +9138,7 @@ function createFlatLeadDiode(p) {
|
|
|
9124
9138
|
}
|
|
9125
9139
|
),
|
|
9126
9140
|
/* @__PURE__ */ jsx96(
|
|
9127
|
-
|
|
9141
|
+
Cuboid66,
|
|
9128
9142
|
{
|
|
9129
9143
|
size: [p.anodeLength, p.anodeWidth, p.terminalThickness],
|
|
9130
9144
|
center: [
|
|
@@ -9174,7 +9188,7 @@ var SOD323HE = (props) => createFlatLeadDiode({
|
|
|
9174
9188
|
});
|
|
9175
9189
|
|
|
9176
9190
|
// lib/SOT89.tsx
|
|
9177
|
-
import { Colorize as Colorize60, Cuboid as
|
|
9191
|
+
import { Colorize as Colorize60, Cuboid as Cuboid67, Translate as Translate46, Hull as Hull31, Union as Union24 } from "jscad-fiber";
|
|
9178
9192
|
import { Fragment as Fragment88, jsx as jsx97, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
9179
9193
|
function SOT89(p) {
|
|
9180
9194
|
for (const k of [
|
|
@@ -9196,12 +9210,12 @@ function SOT89(p) {
|
|
|
9196
9210
|
throw new Error("Invalid SOT-89 body or terminal layout");
|
|
9197
9211
|
const front = -p.bodyWidth / 2, rear = p.bodyWidth / 2 + p.rearExtension, tabFront = rear - p.tabLength;
|
|
9198
9212
|
const slice = Math.min(2e-3, (p.bodyHeight - p.standoff) / 100);
|
|
9199
|
-
const block = (x, y, length, width10) => /* @__PURE__ */ jsx97(Translate46, { offset: [x, y, p.terminalThickness / 2], children: /* @__PURE__ */ jsx97(
|
|
9213
|
+
const block = (x, y, length, width10) => /* @__PURE__ */ jsx97(Translate46, { offset: [x, y, p.terminalThickness / 2], children: /* @__PURE__ */ jsx97(Cuboid67, { size: [length, width10, p.terminalThickness] }) });
|
|
9200
9214
|
return /* @__PURE__ */ jsxs91(Fragment88, { children: [
|
|
9201
9215
|
/* @__PURE__ */ jsx97(Colorize60, { color: "#353535", children: /* @__PURE__ */ jsxs91(Hull31, { children: [
|
|
9202
|
-
/* @__PURE__ */ jsx97(Translate46, { z: p.standoff + slice / 2, children: /* @__PURE__ */ jsx97(
|
|
9216
|
+
/* @__PURE__ */ jsx97(Translate46, { z: p.standoff + slice / 2, children: /* @__PURE__ */ jsx97(Cuboid67, { size: [p.bodyWidth, p.bodyLength, slice] }) }),
|
|
9203
9217
|
/* @__PURE__ */ jsx97(Translate46, { z: p.bodyHeight - slice / 2, children: /* @__PURE__ */ jsx97(
|
|
9204
|
-
|
|
9218
|
+
Cuboid67,
|
|
9205
9219
|
{
|
|
9206
9220
|
size: [
|
|
9207
9221
|
p.bodyWidth - 2 * p.taperInset,
|
|
@@ -9232,7 +9246,7 @@ function SOT89(p) {
|
|
|
9232
9246
|
}
|
|
9233
9247
|
|
|
9234
9248
|
// lib/TO277.tsx
|
|
9235
|
-
import { Colorize as Colorize61, Cuboid as
|
|
9249
|
+
import { Colorize as Colorize61, Cuboid as Cuboid68, Translate as Translate47, Union as Union25 } from "jscad-fiber";
|
|
9236
9250
|
import { Fragment as Fragment89, jsx as jsx98, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
9237
9251
|
function TO277(p) {
|
|
9238
9252
|
for (const k of [
|
|
@@ -9256,10 +9270,10 @@ function TO277(p) {
|
|
|
9256
9270
|
const rear = p.terminalSpan / 2, front = -rear, tabFront = rear - p.tabLength;
|
|
9257
9271
|
if (p.terminalThickness >= p.bodyHeight || p.terminalSpan < p.bodyWidth || p.pitch + p.leadWidth >= p.bodyLength || p.leadWidth >= p.pitch || front + p.leadLength >= tabFront || front + p.leadLength <= -p.bodyWidth / 2 || tabFront >= p.bodyWidth / 2 || p.tabNeckWidth > p.tabWidth || p.tabWidth > p.bodyLength || p.tabBarWidth < p.tabWidth || p.tabNeckLength + p.tabBarLength >= p.tabLength)
|
|
9258
9272
|
throw new Error("Invalid TO-277 terminal geometry or clearance");
|
|
9259
|
-
const block = (x, y, length, width10) => /* @__PURE__ */ jsx98(Translate47, { offset: [x, y, p.terminalThickness / 2], children: /* @__PURE__ */ jsx98(
|
|
9273
|
+
const block = (x, y, length, width10) => /* @__PURE__ */ jsx98(Translate47, { offset: [x, y, p.terminalThickness / 2], children: /* @__PURE__ */ jsx98(Cuboid68, { size: [length, width10, p.terminalThickness] }) });
|
|
9260
9274
|
return /* @__PURE__ */ jsxs92(Fragment89, { children: [
|
|
9261
9275
|
/* @__PURE__ */ jsx98(Colorize61, { color: "#353535", children: /* @__PURE__ */ jsx98(Translate47, { z: (p.bodyHeight + p.terminalThickness / 2) / 2, children: /* @__PURE__ */ jsx98(
|
|
9262
|
-
|
|
9276
|
+
Cuboid68,
|
|
9263
9277
|
{
|
|
9264
9278
|
size: [
|
|
9265
9279
|
p.bodyWidth,
|
|
@@ -9301,7 +9315,7 @@ function TO277(p) {
|
|
|
9301
9315
|
|
|
9302
9316
|
// lib/TantalumCapacitor.tsx
|
|
9303
9317
|
import { fp as fp11 } from "@tscircuit/footprinter";
|
|
9304
|
-
import { Colorize as Colorize62, Cuboid as
|
|
9318
|
+
import { Colorize as Colorize62, Cuboid as Cuboid69, Hull as Hull32, Rotate as Rotate25, Translate as Translate48, Union as Union26 } from "jscad-fiber";
|
|
9305
9319
|
import { jsx as jsx99, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
9306
9320
|
var tantalumCases = {
|
|
9307
9321
|
A: [3.2, 1.6, 1.6, 1.2, 0.8],
|
|
@@ -9324,9 +9338,9 @@ var TantalumCapacitor = ({
|
|
|
9324
9338
|
const angle = Math.atan2(b.y - a.y, b.x - a.x);
|
|
9325
9339
|
return /* @__PURE__ */ jsx99(Translate48, { offset: [(a.x + b.x) / 2, (a.y + b.y) / 2, 0], children: /* @__PURE__ */ jsxs93(Rotate25, { rotation: [0, 0, angle], children: [
|
|
9326
9340
|
/* @__PURE__ */ jsx99(Colorize62, { color: "#d5a64e", children: /* @__PURE__ */ jsxs93(Hull32, { children: [
|
|
9327
|
-
/* @__PURE__ */ jsx99(
|
|
9341
|
+
/* @__PURE__ */ jsx99(Cuboid69, { size: [length - 0.1, width10, 0.02], center: [0, 0, 0.21] }),
|
|
9328
9342
|
/* @__PURE__ */ jsx99(
|
|
9329
|
-
|
|
9343
|
+
Cuboid69,
|
|
9330
9344
|
{
|
|
9331
9345
|
size: [length - 0.25, width10 - 0.15, 0.02],
|
|
9332
9346
|
center: [0, 0, height10 - 0.01]
|
|
@@ -9335,14 +9349,14 @@ var TantalumCapacitor = ({
|
|
|
9335
9349
|
] }) }),
|
|
9336
9350
|
/* @__PURE__ */ jsx99(Colorize62, { color: "#c5c8cb", children: [-1, 1].map((side) => /* @__PURE__ */ jsxs93(Union26, { children: [
|
|
9337
9351
|
/* @__PURE__ */ jsx99(
|
|
9338
|
-
|
|
9352
|
+
Cuboid69,
|
|
9339
9353
|
{
|
|
9340
9354
|
size: [leadLength, leadWidth, 0.25],
|
|
9341
9355
|
center: [side * (length - leadLength) / 2, 0, 0.125]
|
|
9342
9356
|
}
|
|
9343
9357
|
),
|
|
9344
9358
|
/* @__PURE__ */ jsx99(
|
|
9345
|
-
|
|
9359
|
+
Cuboid69,
|
|
9346
9360
|
{
|
|
9347
9361
|
size: [0.15, leadWidth, height10 * 0.45],
|
|
9348
9362
|
center: [side * (length - 0.15) / 2, 0, height10 * 0.225]
|
|
@@ -9350,7 +9364,7 @@ var TantalumCapacitor = ({
|
|
|
9350
9364
|
)
|
|
9351
9365
|
] }, side)) }),
|
|
9352
9366
|
/* @__PURE__ */ jsx99(
|
|
9353
|
-
|
|
9367
|
+
Cuboid69,
|
|
9354
9368
|
{
|
|
9355
9369
|
size: [0.25, width10 - 0.25, 0.01],
|
|
9356
9370
|
center: [-length / 2 + 0.5, 0, height10],
|
|
@@ -9362,7 +9376,7 @@ var TantalumCapacitor = ({
|
|
|
9362
9376
|
|
|
9363
9377
|
// lib/TwoPadCrystal.tsx
|
|
9364
9378
|
import { fp as fp12 } from "@tscircuit/footprinter";
|
|
9365
|
-
import { Colorize as Colorize63, Cuboid as
|
|
9379
|
+
import { Colorize as Colorize63, Cuboid as Cuboid70, RoundedCuboid as RoundedCuboid6, Rotate as Rotate26, Translate as Translate49 } from "jscad-fiber";
|
|
9366
9380
|
import { jsx as jsx100, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
9367
9381
|
var twoPadCrystalPackages = {
|
|
9368
9382
|
FC135: [3.2, 1.5, 0.9, 0.7],
|
|
@@ -9384,7 +9398,7 @@ var TwoPadCrystal = ({
|
|
|
9384
9398
|
const [a, b] = pads;
|
|
9385
9399
|
const angle = Math.atan2(b.y - a.y, b.x - a.x);
|
|
9386
9400
|
return /* @__PURE__ */ jsx100(Translate49, { offset: [(a.x + b.x) / 2, (a.y + b.y) / 2, 0], children: /* @__PURE__ */ jsxs94(Rotate26, { rotation: [0, 0, angle], children: [
|
|
9387
|
-
/* @__PURE__ */ jsx100(Colorize63, { color: "#e0dcca", children: /* @__PURE__ */ jsx100(
|
|
9401
|
+
/* @__PURE__ */ jsx100(Colorize63, { color: "#e0dcca", children: /* @__PURE__ */ jsx100(Cuboid70, { size: [length, width10, 0.2], center: [0, 0, 0.13] }) }),
|
|
9388
9402
|
/* @__PURE__ */ jsx100(Colorize63, { color: "#acb1b8", children: /* @__PURE__ */ jsx100(
|
|
9389
9403
|
RoundedCuboid6,
|
|
9390
9404
|
{
|
|
@@ -9394,7 +9408,7 @@ var TwoPadCrystal = ({
|
|
|
9394
9408
|
}
|
|
9395
9409
|
) }),
|
|
9396
9410
|
/* @__PURE__ */ jsx100(Colorize63, { color: "#c6af65", children: [-1, 1].map((side) => /* @__PURE__ */ jsx100(
|
|
9397
|
-
|
|
9411
|
+
Cuboid70,
|
|
9398
9412
|
{
|
|
9399
9413
|
size: [terminalLength, width10 - 0.12, 0.06],
|
|
9400
9414
|
center: [side * (length - terminalLength) / 2, 0, 0.03]
|
|
@@ -9406,7 +9420,7 @@ var TwoPadCrystal = ({
|
|
|
9406
9420
|
|
|
9407
9421
|
// lib/CeramicChipAntenna.tsx
|
|
9408
9422
|
import { fp as fp13 } from "@tscircuit/footprinter";
|
|
9409
|
-
import { Colorize as Colorize64, Cuboid as
|
|
9423
|
+
import { Colorize as Colorize64, Cuboid as Cuboid71, Rotate as Rotate27, Translate as Translate50 } from "jscad-fiber";
|
|
9410
9424
|
import { jsx as jsx101, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
9411
9425
|
var CeramicChipAntenna = ({
|
|
9412
9426
|
footprint = "smdpads2_p5.4mm_pw1mm_ph2mm"
|
|
@@ -9419,7 +9433,7 @@ var CeramicChipAntenna = ({
|
|
|
9419
9433
|
const angle = Math.atan2(b.y - a.y, b.x - a.x);
|
|
9420
9434
|
return /* @__PURE__ */ jsx101(Translate50, { offset: [(a.x + b.x) / 2, (a.y + b.y) / 2, 0], children: /* @__PURE__ */ jsxs95(Rotate27, { rotation: [0, 0, angle], children: [
|
|
9421
9435
|
/* @__PURE__ */ jsx101(
|
|
9422
|
-
|
|
9436
|
+
Cuboid71,
|
|
9423
9437
|
{
|
|
9424
9438
|
size: [4.44, 1.99, 1.14],
|
|
9425
9439
|
center: [0, 0, 0.575],
|
|
@@ -9427,7 +9441,7 @@ var CeramicChipAntenna = ({
|
|
|
9427
9441
|
}
|
|
9428
9442
|
),
|
|
9429
9443
|
/* @__PURE__ */ jsx101(Colorize64, { color: "#c2c4c7", children: [-1, 1].map((side) => /* @__PURE__ */ jsx101(
|
|
9430
|
-
|
|
9444
|
+
Cuboid71,
|
|
9431
9445
|
{
|
|
9432
9446
|
size: [0.4, 2, 1.15],
|
|
9433
9447
|
center: [side * 2.4, 0, 0.575],
|
|
@@ -9436,7 +9450,7 @@ var CeramicChipAntenna = ({
|
|
|
9436
9450
|
side
|
|
9437
9451
|
)) }),
|
|
9438
9452
|
/* @__PURE__ */ jsx101(
|
|
9439
|
-
|
|
9453
|
+
Cuboid71,
|
|
9440
9454
|
{
|
|
9441
9455
|
size: [0.9, 2, 0.01],
|
|
9442
9456
|
center: [-1.75, 0, 1.145],
|
|
@@ -9448,7 +9462,7 @@ var CeramicChipAntenna = ({
|
|
|
9448
9462
|
|
|
9449
9463
|
// lib/MelfResistor.tsx
|
|
9450
9464
|
import { fp as fp14 } from "@tscircuit/footprinter";
|
|
9451
|
-
import { Colorize as Colorize65, Cylinder as
|
|
9465
|
+
import { Colorize as Colorize65, Cylinder as Cylinder28, Rotate as Rotate28, Translate as Translate51 } from "jscad-fiber";
|
|
9452
9466
|
import { jsx as jsx102, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
9453
9467
|
var melfResistorSizes = {
|
|
9454
9468
|
"0102": [2.2, 1.1, 0.4],
|
|
@@ -9470,14 +9484,14 @@ var MelfResistor = ({
|
|
|
9470
9484
|
const angle = Math.atan2(b.y - a.y, b.x - a.x);
|
|
9471
9485
|
return /* @__PURE__ */ jsx102(Translate51, { offset: [(a.x + b.x) / 2, (a.y + b.y) / 2, diameter / 2], children: /* @__PURE__ */ jsx102(Rotate28, { rotation: [0, 0, angle], children: /* @__PURE__ */ jsxs96(Rotate28, { rotation: [0, Math.PI / 2, 0], children: [
|
|
9472
9486
|
/* @__PURE__ */ jsx102(Colorize65, { color: "#426d63", children: /* @__PURE__ */ jsx102(
|
|
9473
|
-
|
|
9487
|
+
Cylinder28,
|
|
9474
9488
|
{
|
|
9475
9489
|
radius: (diameter - 0.08) / 2,
|
|
9476
9490
|
height: length - 2 * capLength + 0.04
|
|
9477
9491
|
}
|
|
9478
9492
|
) }),
|
|
9479
9493
|
/* @__PURE__ */ jsx102(Colorize65, { color: "#c6c8cb", children: [-1, 1].map((side) => /* @__PURE__ */ jsx102(
|
|
9480
|
-
|
|
9494
|
+
Cylinder28,
|
|
9481
9495
|
{
|
|
9482
9496
|
radius: diameter / 2,
|
|
9483
9497
|
height: capLength,
|