jscad-electronics 0.0.26 → 0.0.28
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.js +343 -94
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7730,7 +7730,7 @@ var require_react_reconciler_development = __commonJS({
|
|
|
7730
7730
|
var HostPortal = 4;
|
|
7731
7731
|
var HostComponent = 5;
|
|
7732
7732
|
var HostText = 6;
|
|
7733
|
-
var
|
|
7733
|
+
var Fragment25 = 7;
|
|
7734
7734
|
var Mode = 8;
|
|
7735
7735
|
var ContextConsumer = 9;
|
|
7736
7736
|
var ContextProvider = 10;
|
|
@@ -7870,7 +7870,7 @@ var require_react_reconciler_development = __commonJS({
|
|
|
7870
7870
|
return "DehydratedFragment";
|
|
7871
7871
|
case ForwardRef:
|
|
7872
7872
|
return getWrappedName$1(type, type.render, "ForwardRef");
|
|
7873
|
-
case
|
|
7873
|
+
case Fragment25:
|
|
7874
7874
|
return "Fragment";
|
|
7875
7875
|
case HostComponent:
|
|
7876
7876
|
return type;
|
|
@@ -11004,7 +11004,7 @@ var require_react_reconciler_development = __commonJS({
|
|
|
11004
11004
|
}
|
|
11005
11005
|
}
|
|
11006
11006
|
function updateFragment2(returnFiber, current2, fragment, lanes, key) {
|
|
11007
|
-
if (current2 === null || current2.tag !==
|
|
11007
|
+
if (current2 === null || current2.tag !== Fragment25) {
|
|
11008
11008
|
var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key);
|
|
11009
11009
|
created.return = returnFiber;
|
|
11010
11010
|
return created;
|
|
@@ -11407,7 +11407,7 @@ var require_react_reconciler_development = __commonJS({
|
|
|
11407
11407
|
if (child.key === key) {
|
|
11408
11408
|
var elementType = element.type;
|
|
11409
11409
|
if (elementType === REACT_FRAGMENT_TYPE) {
|
|
11410
|
-
if (child.tag ===
|
|
11410
|
+
if (child.tag === Fragment25) {
|
|
11411
11411
|
deleteRemainingChildren(returnFiber, child.sibling);
|
|
11412
11412
|
var existing = useFiber(child, element.props.children);
|
|
11413
11413
|
existing.return = returnFiber;
|
|
@@ -16898,7 +16898,7 @@ var require_react_reconciler_development = __commonJS({
|
|
|
16898
16898
|
var _resolvedProps2 = workInProgress2.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
|
|
16899
16899
|
return updateForwardRef(current2, workInProgress2, type, _resolvedProps2, renderLanes2);
|
|
16900
16900
|
}
|
|
16901
|
-
case
|
|
16901
|
+
case Fragment25:
|
|
16902
16902
|
return updateFragment(current2, workInProgress2, renderLanes2);
|
|
16903
16903
|
case Mode:
|
|
16904
16904
|
return updateMode(current2, workInProgress2, renderLanes2);
|
|
@@ -17335,7 +17335,7 @@ var require_react_reconciler_development = __commonJS({
|
|
|
17335
17335
|
case SimpleMemoComponent:
|
|
17336
17336
|
case FunctionComponent:
|
|
17337
17337
|
case ForwardRef:
|
|
17338
|
-
case
|
|
17338
|
+
case Fragment25:
|
|
17339
17339
|
case Mode:
|
|
17340
17340
|
case Profiler:
|
|
17341
17341
|
case ContextConsumer:
|
|
@@ -22103,7 +22103,7 @@ var require_react_reconciler_development = __commonJS({
|
|
|
22103
22103
|
return fiber;
|
|
22104
22104
|
}
|
|
22105
22105
|
function createFiberFromFragment(elements, mode, lanes, key) {
|
|
22106
|
-
var fiber = createFiber(
|
|
22106
|
+
var fiber = createFiber(Fragment25, elements, key, mode);
|
|
22107
22107
|
fiber.lanes = lanes;
|
|
22108
22108
|
return fiber;
|
|
22109
22109
|
}
|
|
@@ -23704,11 +23704,11 @@ var require_react_jsx_runtime_development = __commonJS({
|
|
|
23704
23704
|
return jsxWithValidation(type, props, key, false);
|
|
23705
23705
|
}
|
|
23706
23706
|
}
|
|
23707
|
-
var
|
|
23708
|
-
var
|
|
23707
|
+
var jsx30 = jsxWithValidationDynamic;
|
|
23708
|
+
var jsxs26 = jsxWithValidationStatic;
|
|
23709
23709
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
23710
|
-
exports.jsx =
|
|
23711
|
-
exports.jsxs =
|
|
23710
|
+
exports.jsx = jsx30;
|
|
23711
|
+
exports.jsxs = jsxs26;
|
|
23712
23712
|
})();
|
|
23713
23713
|
}
|
|
23714
23714
|
}
|
|
@@ -77296,16 +77296,16 @@ var require_dist = __commonJS({
|
|
|
77296
77296
|
var lib_exports = {};
|
|
77297
77297
|
__export2(lib_exports, {
|
|
77298
77298
|
Circle: () => Circle,
|
|
77299
|
-
Colorize: () =>
|
|
77299
|
+
Colorize: () => Colorize12,
|
|
77300
77300
|
Cube: () => Cube2,
|
|
77301
|
-
Cuboid: () =>
|
|
77301
|
+
Cuboid: () => Cuboid19,
|
|
77302
77302
|
Custom: () => Custom,
|
|
77303
|
-
Cylinder: () =>
|
|
77303
|
+
Cylinder: () => Cylinder4,
|
|
77304
77304
|
CylinderElliptic: () => CylinderElliptic,
|
|
77305
77305
|
Ellipsoid: () => Ellipsoid,
|
|
77306
77306
|
ExtrudeFromSlices: () => ExtrudeFromSlices,
|
|
77307
77307
|
ExtrudeHelical: () => ExtrudeHelical,
|
|
77308
|
-
ExtrudeLinear: () =>
|
|
77308
|
+
ExtrudeLinear: () => ExtrudeLinear4,
|
|
77309
77309
|
ExtrudeRectangular: () => ExtrudeRectangular,
|
|
77310
77310
|
ExtrudeRotate: () => ExtrudeRotate,
|
|
77311
77311
|
GeodesicSphere: () => GeodesicSphere,
|
|
@@ -77313,16 +77313,16 @@ var require_dist = __commonJS({
|
|
|
77313
77313
|
HullChain: () => HullChain2,
|
|
77314
77314
|
JSCadThreeMesh: () => JSCadThreeMesh,
|
|
77315
77315
|
JsCadView: () => JsCadView,
|
|
77316
|
-
Polygon: () =>
|
|
77316
|
+
Polygon: () => Polygon4,
|
|
77317
77317
|
Project: () => Project,
|
|
77318
77318
|
Rectangle: () => Rectangle,
|
|
77319
|
-
Rotate: () =>
|
|
77320
|
-
RoundedCuboid: () =>
|
|
77319
|
+
Rotate: () => Rotate7,
|
|
77320
|
+
RoundedCuboid: () => RoundedCuboid3,
|
|
77321
77321
|
RoundedCylinder: () => RoundedCylinder,
|
|
77322
77322
|
Sphere: () => Sphere2,
|
|
77323
77323
|
Subtract: () => Subtract3,
|
|
77324
77324
|
Torus: () => Torus,
|
|
77325
|
-
Translate: () =>
|
|
77325
|
+
Translate: () => Translate11,
|
|
77326
77326
|
Union: () => Union4,
|
|
77327
77327
|
convertCSGToThreeGeom: () => convertCSGToThreeGeom,
|
|
77328
77328
|
createJSCADRenderer: () => createJSCADRenderer,
|
|
@@ -77715,17 +77715,17 @@ var require_dist = __commonJS({
|
|
|
77715
77715
|
};
|
|
77716
77716
|
return hostConfig2;
|
|
77717
77717
|
}
|
|
77718
|
-
var
|
|
77718
|
+
var import_jsx_runtime30 = require_jsx_runtime();
|
|
77719
77719
|
function Circle({ radius }) {
|
|
77720
|
-
return /* @__PURE__ */ (0,
|
|
77720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("circle", { radius });
|
|
77721
77721
|
}
|
|
77722
77722
|
var import_color = __toESM2(require_color(), 1);
|
|
77723
|
-
var
|
|
77724
|
-
function
|
|
77723
|
+
var import_jsx_runtime210 = require_jsx_runtime();
|
|
77724
|
+
function Colorize12({ color, children }) {
|
|
77725
77725
|
if (!Array.isArray(color)) {
|
|
77726
77726
|
color = (0, import_color.default)(color).rgb().array().map((v) => v / 255);
|
|
77727
77727
|
}
|
|
77728
|
-
return /* @__PURE__ */ (0,
|
|
77728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("colorize", { color, children });
|
|
77729
77729
|
}
|
|
77730
77730
|
var import_jsx_runtime32 = require_jsx_runtime();
|
|
77731
77731
|
function withColorProp(WrappedComponent) {
|
|
@@ -77734,7 +77734,7 @@ var require_dist = __commonJS({
|
|
|
77734
77734
|
if (!color) {
|
|
77735
77735
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(WrappedComponent, { ...restProps });
|
|
77736
77736
|
}
|
|
77737
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
77737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Colorize12, { color, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(WrappedComponent, { ...restProps }) });
|
|
77738
77738
|
};
|
|
77739
77739
|
WithColor.displayName = `WithColor(${WrappedComponent.displayName || WrappedComponent.name || "Component"})`;
|
|
77740
77740
|
return WithColor;
|
|
@@ -77747,7 +77747,7 @@ var require_dist = __commonJS({
|
|
|
77747
77747
|
}
|
|
77748
77748
|
return [point.x, point.y, point.z];
|
|
77749
77749
|
};
|
|
77750
|
-
function
|
|
77750
|
+
function Translate11({
|
|
77751
77751
|
offset,
|
|
77752
77752
|
center,
|
|
77753
77753
|
x,
|
|
@@ -77771,7 +77771,7 @@ var require_dist = __commonJS({
|
|
|
77771
77771
|
if (!center && !offset) {
|
|
77772
77772
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(WrappedComponent, { ...restProps });
|
|
77773
77773
|
}
|
|
77774
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
77774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Translate11, { offset: center || offset, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(WrappedComponent, { ...restProps }) });
|
|
77775
77775
|
};
|
|
77776
77776
|
WithOffset.displayName = `WithOffset(${WrappedComponent.displayName || WrappedComponent.name || "Component"})`;
|
|
77777
77777
|
return WithOffset;
|
|
@@ -77785,7 +77785,7 @@ var require_dist = __commonJS({
|
|
|
77785
77785
|
var CuboidBase = ({ size }) => {
|
|
77786
77786
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("cuboid", { size });
|
|
77787
77787
|
};
|
|
77788
|
-
var
|
|
77788
|
+
var Cuboid19 = withOffsetProp(withColorProp(CuboidBase));
|
|
77789
77789
|
var import_jsx_runtime82 = require_jsx_runtime();
|
|
77790
77790
|
function Custom({ geometry }) {
|
|
77791
77791
|
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("custom", { geometry });
|
|
@@ -77824,7 +77824,7 @@ var require_dist = __commonJS({
|
|
|
77824
77824
|
const finalRotation = rotation ? processRotation(rotation) : processRotation(angles);
|
|
77825
77825
|
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("rotate", { angles: finalRotation, children });
|
|
77826
77826
|
};
|
|
77827
|
-
var
|
|
77827
|
+
var Rotate7 = withOffsetProp(withColorProp(RotateBase));
|
|
77828
77828
|
var import_jsx_runtime102 = require_jsx_runtime();
|
|
77829
77829
|
function withRotationProp(WrappedComponent) {
|
|
77830
77830
|
const WithRotation = (props) => {
|
|
@@ -77832,7 +77832,7 @@ var require_dist = __commonJS({
|
|
|
77832
77832
|
if (!rotation) {
|
|
77833
77833
|
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(WrappedComponent, { ...restProps });
|
|
77834
77834
|
}
|
|
77835
|
-
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
77835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Rotate7, { rotation, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(WrappedComponent, { ...restProps }) });
|
|
77836
77836
|
};
|
|
77837
77837
|
WithRotation.displayName = `WithRotation(${WrappedComponent.displayName || WrappedComponent.name || "Component"})`;
|
|
77838
77838
|
return WithRotation;
|
|
@@ -77841,7 +77841,7 @@ var require_dist = __commonJS({
|
|
|
77841
77841
|
var CylinderBase = ({ radius, height: height10 }) => {
|
|
77842
77842
|
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("cylinder", { radius, height: height10 });
|
|
77843
77843
|
};
|
|
77844
|
-
var
|
|
77844
|
+
var Cylinder4 = withColorProp(
|
|
77845
77845
|
withOffsetProp(withRotationProp(CylinderBase))
|
|
77846
77846
|
);
|
|
77847
77847
|
var import_jsx_runtime122 = require_jsx_runtime();
|
|
@@ -77914,7 +77914,7 @@ var require_dist = __commonJS({
|
|
|
77914
77914
|
}
|
|
77915
77915
|
);
|
|
77916
77916
|
};
|
|
77917
|
-
var
|
|
77917
|
+
var ExtrudeLinear4 = withOffsetProp(withColorProp(ExtrudeLinearBase));
|
|
77918
77918
|
var import_jsx_runtime162 = require_jsx_runtime();
|
|
77919
77919
|
var ExtrudeRectangularBase = ({
|
|
77920
77920
|
size,
|
|
@@ -77952,7 +77952,7 @@ var require_dist = __commonJS({
|
|
|
77952
77952
|
};
|
|
77953
77953
|
var HullChain2 = withOffsetProp(withColorProp(HullChainBase));
|
|
77954
77954
|
var import_jsx_runtime212 = require_jsx_runtime();
|
|
77955
|
-
function
|
|
77955
|
+
function Polygon4({ points }) {
|
|
77956
77956
|
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("jscadPolygon", { points });
|
|
77957
77957
|
}
|
|
77958
77958
|
var import_jsx_runtime222 = require_jsx_runtime();
|
|
@@ -77967,7 +77967,7 @@ var require_dist = __commonJS({
|
|
|
77967
77967
|
var RoundedCuboidBase = ({ size, roundRadius }) => {
|
|
77968
77968
|
return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("roundedCuboid", { size, roundRadius });
|
|
77969
77969
|
};
|
|
77970
|
-
var
|
|
77970
|
+
var RoundedCuboid3 = withOffsetProp(withColorProp(RoundedCuboidBase));
|
|
77971
77971
|
var import_jsx_runtime252 = require_jsx_runtime();
|
|
77972
77972
|
var RoundedCylinderBase = ({
|
|
77973
77973
|
radius,
|
|
@@ -78027,7 +78027,7 @@ var require_dist = __commonJS({
|
|
|
78027
78027
|
function Union4({ children }) {
|
|
78028
78028
|
return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)("union", { children });
|
|
78029
78029
|
}
|
|
78030
|
-
var
|
|
78030
|
+
var import_jsx_runtime302 = require_jsx_runtime();
|
|
78031
78031
|
var ExtrudeFromSlicesBase = ({
|
|
78032
78032
|
numberOfSlices,
|
|
78033
78033
|
capStart,
|
|
@@ -78037,7 +78037,7 @@ var require_dist = __commonJS({
|
|
|
78037
78037
|
baseSlice,
|
|
78038
78038
|
callback
|
|
78039
78039
|
}) => {
|
|
78040
|
-
return /* @__PURE__ */ (0,
|
|
78040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
|
|
78041
78041
|
"extrudeFromSlices",
|
|
78042
78042
|
{
|
|
78043
78043
|
numberOfSlices,
|
|
@@ -79006,7 +79006,7 @@ var Tssop = ({
|
|
|
79006
79006
|
width: leadWidth,
|
|
79007
79007
|
thickness: leadThickness,
|
|
79008
79008
|
padContactLength: leadLength,
|
|
79009
|
-
bodyDistance: leadLength,
|
|
79009
|
+
bodyDistance: leadLength + 1,
|
|
79010
79010
|
height: 0.8
|
|
79011
79011
|
},
|
|
79012
79012
|
i
|
|
@@ -79023,7 +79023,7 @@ var Tssop = ({
|
|
|
79023
79023
|
width: leadWidth,
|
|
79024
79024
|
thickness: leadThickness,
|
|
79025
79025
|
padContactLength: leadLength,
|
|
79026
|
-
bodyDistance: leadLength +
|
|
79026
|
+
bodyDistance: leadLength + 1,
|
|
79027
79027
|
height: 0.8
|
|
79028
79028
|
},
|
|
79029
79029
|
i
|
|
@@ -79032,7 +79032,7 @@ var Tssop = ({
|
|
|
79032
79032
|
ChipBody,
|
|
79033
79033
|
{
|
|
79034
79034
|
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
79035
|
-
width: bodyWidth,
|
|
79035
|
+
width: bodyWidth - leadWidth - 1,
|
|
79036
79036
|
length: fullLength10,
|
|
79037
79037
|
height: 1.5
|
|
79038
79038
|
}
|
|
@@ -79590,15 +79590,255 @@ var FemaleHeader = ({
|
|
|
79590
79590
|
] });
|
|
79591
79591
|
};
|
|
79592
79592
|
|
|
79593
|
-
// lib/
|
|
79593
|
+
// lib/PushButton.tsx
|
|
79594
|
+
var import_jscad_fiber19 = __toESM(require_dist(), 1);
|
|
79594
79595
|
var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
|
|
79596
|
+
var PushButton = ({
|
|
79597
|
+
width: width10,
|
|
79598
|
+
length,
|
|
79599
|
+
innerDiameter = 1
|
|
79600
|
+
}) => {
|
|
79601
|
+
const bodyWidth = width10;
|
|
79602
|
+
const bodyLength10 = length;
|
|
79603
|
+
const bodyHeight = width10 * 0.7;
|
|
79604
|
+
const legWidth = innerDiameter / 2.5;
|
|
79605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
|
|
79606
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79607
|
+
import_jscad_fiber19.RoundedCuboid,
|
|
79608
|
+
{
|
|
79609
|
+
color: "#1a1a1f",
|
|
79610
|
+
center: [0, 0, bodyHeight / 2],
|
|
79611
|
+
size: [bodyLength10, bodyLength10, bodyHeight],
|
|
79612
|
+
roundRadius: 0.3
|
|
79613
|
+
}
|
|
79614
|
+
),
|
|
79615
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79616
|
+
import_jscad_fiber19.RoundedCuboid,
|
|
79617
|
+
{
|
|
79618
|
+
color: "#f2f2f2",
|
|
79619
|
+
center: [0, 0, bodyHeight + bodyHeight * 0.1 / 2.5],
|
|
79620
|
+
size: [bodyLength10, bodyLength10, bodyHeight * 0.1],
|
|
79621
|
+
roundRadius: 0.14
|
|
79622
|
+
}
|
|
79623
|
+
),
|
|
79624
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79625
|
+
import_jscad_fiber19.Cylinder,
|
|
79626
|
+
{
|
|
79627
|
+
color: "#1a1a1f",
|
|
79628
|
+
height: bodyHeight * 0.8,
|
|
79629
|
+
radius: bodyWidth / 3,
|
|
79630
|
+
center: [0, 0, bodyHeight + bodyHeight * 0.8 / 2]
|
|
79631
|
+
}
|
|
79632
|
+
),
|
|
79633
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79634
|
+
import_jscad_fiber19.Cylinder,
|
|
79635
|
+
{
|
|
79636
|
+
color: "#1a1a1f",
|
|
79637
|
+
height: bodyHeight * 0.2,
|
|
79638
|
+
radius: innerDiameter / 2,
|
|
79639
|
+
center: [
|
|
79640
|
+
bodyLength10 / 3,
|
|
79641
|
+
bodyLength10 / 3,
|
|
79642
|
+
bodyHeight + bodyHeight * 0.1 / 2
|
|
79643
|
+
]
|
|
79644
|
+
}
|
|
79645
|
+
),
|
|
79646
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79647
|
+
import_jscad_fiber19.Cylinder,
|
|
79648
|
+
{
|
|
79649
|
+
color: "#1a1a1f",
|
|
79650
|
+
height: bodyHeight * 0.2,
|
|
79651
|
+
radius: innerDiameter / 2,
|
|
79652
|
+
center: [
|
|
79653
|
+
-bodyLength10 / 3,
|
|
79654
|
+
-bodyLength10 / 3,
|
|
79655
|
+
bodyHeight + bodyHeight * 0.1 / 2
|
|
79656
|
+
]
|
|
79657
|
+
}
|
|
79658
|
+
),
|
|
79659
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79660
|
+
import_jscad_fiber19.Cylinder,
|
|
79661
|
+
{
|
|
79662
|
+
color: "#1a1a1f",
|
|
79663
|
+
height: bodyHeight * 0.2,
|
|
79664
|
+
radius: innerDiameter / 2,
|
|
79665
|
+
center: [
|
|
79666
|
+
-bodyLength10 / 3,
|
|
79667
|
+
bodyLength10 / 3,
|
|
79668
|
+
bodyHeight + bodyHeight * 0.1 / 2
|
|
79669
|
+
]
|
|
79670
|
+
}
|
|
79671
|
+
),
|
|
79672
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79673
|
+
import_jscad_fiber19.Cylinder,
|
|
79674
|
+
{
|
|
79675
|
+
color: "#1a1a1f",
|
|
79676
|
+
height: bodyHeight * 0.2,
|
|
79677
|
+
radius: innerDiameter / 2,
|
|
79678
|
+
center: [
|
|
79679
|
+
bodyLength10 / 3,
|
|
79680
|
+
-bodyLength10 / 3,
|
|
79681
|
+
bodyHeight + bodyHeight * 0.1 / 2
|
|
79682
|
+
]
|
|
79683
|
+
}
|
|
79684
|
+
),
|
|
79685
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79686
|
+
PushButtonLeg,
|
|
79687
|
+
{
|
|
79688
|
+
thickness: innerDiameter / 3,
|
|
79689
|
+
width: legWidth,
|
|
79690
|
+
horizontalLength: bodyLength10 * 0.8,
|
|
79691
|
+
verticalLength: bodyHeight / 2,
|
|
79692
|
+
position: {
|
|
79693
|
+
x: -bodyWidth / 2,
|
|
79694
|
+
y: -bodyLength10 / 2,
|
|
79695
|
+
z: -bodyHeight * 1.2
|
|
79696
|
+
}
|
|
79697
|
+
}
|
|
79698
|
+
),
|
|
79699
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79700
|
+
PushButtonLeg,
|
|
79701
|
+
{
|
|
79702
|
+
thickness: innerDiameter / 3,
|
|
79703
|
+
width: legWidth,
|
|
79704
|
+
horizontalLength: bodyLength10 * 0.8,
|
|
79705
|
+
verticalLength: bodyHeight / 2,
|
|
79706
|
+
position: {
|
|
79707
|
+
x: -bodyWidth / 2,
|
|
79708
|
+
y: bodyLength10 / 2,
|
|
79709
|
+
z: -bodyHeight * 1.2
|
|
79710
|
+
},
|
|
79711
|
+
rotation: Math.PI
|
|
79712
|
+
}
|
|
79713
|
+
),
|
|
79714
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79715
|
+
PushButtonLeg,
|
|
79716
|
+
{
|
|
79717
|
+
thickness: innerDiameter / 3,
|
|
79718
|
+
width: legWidth,
|
|
79719
|
+
horizontalLength: bodyLength10 * 0.8,
|
|
79720
|
+
verticalLength: bodyHeight / 2,
|
|
79721
|
+
position: { x: bodyWidth / 2, y: bodyLength10 / 2, z: -bodyHeight * 1.2 },
|
|
79722
|
+
rotation: Math.PI
|
|
79723
|
+
}
|
|
79724
|
+
),
|
|
79725
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79726
|
+
PushButtonLeg,
|
|
79727
|
+
{
|
|
79728
|
+
thickness: innerDiameter / 3,
|
|
79729
|
+
width: legWidth,
|
|
79730
|
+
horizontalLength: bodyLength10 * 0.8,
|
|
79731
|
+
verticalLength: bodyHeight / 2,
|
|
79732
|
+
position: {
|
|
79733
|
+
x: bodyWidth / 2 + innerDiameter / 3.6,
|
|
79734
|
+
y: -bodyLength10 / 2,
|
|
79735
|
+
z: -bodyHeight * 1.2
|
|
79736
|
+
}
|
|
79737
|
+
}
|
|
79738
|
+
)
|
|
79739
|
+
] });
|
|
79740
|
+
};
|
|
79741
|
+
var PushButtonLeg = (props) => {
|
|
79742
|
+
const {
|
|
79743
|
+
thickness,
|
|
79744
|
+
width: width10,
|
|
79745
|
+
horizontalLength,
|
|
79746
|
+
verticalLength,
|
|
79747
|
+
rotation = 0,
|
|
79748
|
+
position
|
|
79749
|
+
} = props;
|
|
79750
|
+
const points = [
|
|
79751
|
+
[0, horizontalLength],
|
|
79752
|
+
[-verticalLength / 3, horizontalLength / 3],
|
|
79753
|
+
[-verticalLength / 5, horizontalLength / 4],
|
|
79754
|
+
[0, 0]
|
|
79755
|
+
];
|
|
79756
|
+
const polygon = getExpandedStroke(points, thickness);
|
|
79757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jscad_fiber19.Colorize, { color: "#f2f2f2", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
79758
|
+
import_jscad_fiber19.Translate,
|
|
79759
|
+
{
|
|
79760
|
+
offset: {
|
|
79761
|
+
x: position?.x || 0,
|
|
79762
|
+
y: position?.y || 0,
|
|
79763
|
+
z: position?.z || 0
|
|
79764
|
+
},
|
|
79765
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jscad_fiber19.Rotate, { rotation: [0, 55, rotation], children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jscad_fiber19.ExtrudeLinear, { height: width10, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jscad_fiber19.Polygon, { points: polygon.map((p) => [p.y, p.x]) }) }) })
|
|
79766
|
+
}
|
|
79767
|
+
) });
|
|
79768
|
+
};
|
|
79769
|
+
|
|
79770
|
+
// lib/SOIC.tsx
|
|
79771
|
+
var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
|
|
79772
|
+
var SOIC = ({
|
|
79773
|
+
pinCount,
|
|
79774
|
+
leadLength,
|
|
79775
|
+
leadWidth,
|
|
79776
|
+
pitch,
|
|
79777
|
+
bodyWidth
|
|
79778
|
+
}) => {
|
|
79779
|
+
const sidePinCount = Math.ceil(pinCount / 2);
|
|
79780
|
+
const pinOffsetToCenter = (sidePinCount - 1) * pitch / 2;
|
|
79781
|
+
const leadThickness = 0.25;
|
|
79782
|
+
const bodyHeight = 1;
|
|
79783
|
+
const leadHeight = 0.8;
|
|
79784
|
+
const leadBodyOffset = leadLength * 0;
|
|
79785
|
+
const fullLength10 = pitch * (sidePinCount - 1) + leadWidth + 0.2;
|
|
79786
|
+
const bodyWidthAdjusted = bodyWidth * 0.55;
|
|
79787
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
79788
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
79789
|
+
SmdChipLead,
|
|
79790
|
+
{
|
|
79791
|
+
position: {
|
|
79792
|
+
x: -bodyWidth / 2 - leadBodyOffset,
|
|
79793
|
+
y: i * pitch - pinOffsetToCenter,
|
|
79794
|
+
z: leadThickness / 2
|
|
79795
|
+
},
|
|
79796
|
+
width: leadWidth,
|
|
79797
|
+
thickness: leadThickness,
|
|
79798
|
+
padContactLength: leadLength / 2,
|
|
79799
|
+
bodyDistance: leadLength + 0.2,
|
|
79800
|
+
height: leadHeight
|
|
79801
|
+
},
|
|
79802
|
+
i
|
|
79803
|
+
)),
|
|
79804
|
+
Array.from({ length: sidePinCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
79805
|
+
SmdChipLead,
|
|
79806
|
+
{
|
|
79807
|
+
rotation: Math.PI,
|
|
79808
|
+
position: {
|
|
79809
|
+
x: bodyWidth / 2 + leadBodyOffset,
|
|
79810
|
+
y: i * pitch - pinOffsetToCenter,
|
|
79811
|
+
z: leadThickness / 2
|
|
79812
|
+
},
|
|
79813
|
+
width: leadWidth,
|
|
79814
|
+
thickness: leadThickness,
|
|
79815
|
+
padContactLength: leadLength / 2,
|
|
79816
|
+
bodyDistance: leadLength + 0.2,
|
|
79817
|
+
height: leadHeight
|
|
79818
|
+
},
|
|
79819
|
+
i
|
|
79820
|
+
)),
|
|
79821
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
79822
|
+
ChipBody,
|
|
79823
|
+
{
|
|
79824
|
+
center: { x: 0, y: 0, z: leadThickness / 2 },
|
|
79825
|
+
width: bodyWidthAdjusted,
|
|
79826
|
+
length: fullLength10,
|
|
79827
|
+
height: bodyHeight
|
|
79828
|
+
}
|
|
79829
|
+
)
|
|
79830
|
+
] });
|
|
79831
|
+
};
|
|
79832
|
+
|
|
79833
|
+
// lib/Footprinter3d.tsx
|
|
79834
|
+
var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
|
|
79595
79835
|
var Footprinter3d = ({ footprint }) => {
|
|
79596
79836
|
const fpJson = fp3.string(footprint).json();
|
|
79597
79837
|
switch (fpJson.fn) {
|
|
79598
79838
|
case "dip":
|
|
79599
|
-
return /* @__PURE__ */ (0,
|
|
79839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Dip, { numPins: fpJson.num_pins, pitch: fpJson.p, bodyWidth: fpJson.w });
|
|
79600
79840
|
case "tssop":
|
|
79601
|
-
return /* @__PURE__ */ (0,
|
|
79841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
79602
79842
|
Tssop,
|
|
79603
79843
|
{
|
|
79604
79844
|
pinCount: fpJson.num_pins,
|
|
@@ -79609,7 +79849,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
79609
79849
|
}
|
|
79610
79850
|
);
|
|
79611
79851
|
case "qfp":
|
|
79612
|
-
return /* @__PURE__ */ (0,
|
|
79852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
79613
79853
|
QFP,
|
|
79614
79854
|
{
|
|
79615
79855
|
pinCount: fpJson.num_pins,
|
|
@@ -79620,7 +79860,7 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
79620
79860
|
}
|
|
79621
79861
|
);
|
|
79622
79862
|
case "qfn":
|
|
79623
|
-
return /* @__PURE__ */ (0,
|
|
79863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
79624
79864
|
qfn_default,
|
|
79625
79865
|
{
|
|
79626
79866
|
num_pins: fpJson.num_pins,
|
|
@@ -79637,36 +79877,45 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
79637
79877
|
);
|
|
79638
79878
|
case "pinrow":
|
|
79639
79879
|
if (fpJson.male)
|
|
79640
|
-
return /* @__PURE__ */ (0,
|
|
79880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(PinRow, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
79641
79881
|
if (fpJson.female)
|
|
79642
|
-
return /* @__PURE__ */ (0,
|
|
79882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FemaleHeader, { numberOfPins: fpJson.num_pins, pitch: fpJson.p });
|
|
79643
79883
|
case "cap": {
|
|
79644
79884
|
switch (fpJson.imperial) {
|
|
79645
79885
|
case "0402":
|
|
79646
|
-
return /* @__PURE__ */ (0,
|
|
79886
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0402, { color: "#856c4d" });
|
|
79647
79887
|
case "0603":
|
|
79648
|
-
return /* @__PURE__ */ (0,
|
|
79888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0603, { color: "#856c4d" });
|
|
79649
79889
|
case "0805":
|
|
79650
|
-
return /* @__PURE__ */ (0,
|
|
79890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0805, { color: "#856c4d" });
|
|
79651
79891
|
case "0201":
|
|
79652
|
-
return /* @__PURE__ */ (0,
|
|
79892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0201, { color: "#856c4d" });
|
|
79653
79893
|
case "01005":
|
|
79654
|
-
return /* @__PURE__ */ (0,
|
|
79894
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A01005, { color: "#856c4d" });
|
|
79655
79895
|
case "1206":
|
|
79656
|
-
return /* @__PURE__ */ (0,
|
|
79896
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A1206, { color: "#856c4d" });
|
|
79657
79897
|
case "1210":
|
|
79658
|
-
return /* @__PURE__ */ (0,
|
|
79898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A1210, { color: "#856c4d" });
|
|
79659
79899
|
case "2010":
|
|
79660
|
-
return /* @__PURE__ */ (0,
|
|
79900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A2010, { color: "#856c4d" });
|
|
79661
79901
|
case "2512":
|
|
79662
|
-
return /* @__PURE__ */ (0,
|
|
79902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A2512, { color: "#856c4d" });
|
|
79663
79903
|
}
|
|
79664
79904
|
}
|
|
79665
79905
|
case "sot235":
|
|
79666
|
-
return /* @__PURE__ */ (0,
|
|
79906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SOT_235_default, {});
|
|
79907
|
+
case "pushbutton":
|
|
79908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
79909
|
+
PushButton,
|
|
79910
|
+
{
|
|
79911
|
+
width: fpJson.w,
|
|
79912
|
+
length: fpJson.h,
|
|
79913
|
+
innerDiameter: fpJson.id
|
|
79914
|
+
}
|
|
79915
|
+
);
|
|
79667
79916
|
case "soic":
|
|
79668
|
-
return /* @__PURE__ */ (0,
|
|
79669
|
-
|
|
79917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
79918
|
+
SOIC,
|
|
79670
79919
|
{
|
|
79671
79920
|
pinCount: fpJson.num_pins,
|
|
79672
79921
|
leadLength: fpJson.pl,
|
|
@@ -79678,29 +79927,29 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
79678
79927
|
}
|
|
79679
79928
|
switch (fpJson.imperial) {
|
|
79680
79929
|
case "0402":
|
|
79681
|
-
return /* @__PURE__ */ (0,
|
|
79930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0402, {});
|
|
79682
79931
|
case "0603":
|
|
79683
|
-
return /* @__PURE__ */ (0,
|
|
79932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0603, {});
|
|
79684
79933
|
case "0805":
|
|
79685
|
-
return /* @__PURE__ */ (0,
|
|
79934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0805, {});
|
|
79686
79935
|
case "0201":
|
|
79687
|
-
return /* @__PURE__ */ (0,
|
|
79936
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A0201, {});
|
|
79688
79937
|
case "01005":
|
|
79689
|
-
return /* @__PURE__ */ (0,
|
|
79938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A01005, {});
|
|
79690
79939
|
case "1206":
|
|
79691
|
-
return /* @__PURE__ */ (0,
|
|
79940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A1206, {});
|
|
79692
79941
|
case "1210":
|
|
79693
|
-
return /* @__PURE__ */ (0,
|
|
79942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A1210, {});
|
|
79694
79943
|
case "2010":
|
|
79695
|
-
return /* @__PURE__ */ (0,
|
|
79944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A2010, {});
|
|
79696
79945
|
case "2512":
|
|
79697
|
-
return /* @__PURE__ */ (0,
|
|
79946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(A2512, {});
|
|
79698
79947
|
}
|
|
79699
79948
|
return null;
|
|
79700
79949
|
};
|
|
79701
79950
|
|
|
79702
79951
|
// lib/SOT-23-3P.tsx
|
|
79703
|
-
var
|
|
79952
|
+
var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
|
|
79704
79953
|
var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
79705
79954
|
const bodyWidth = 1.3;
|
|
79706
79955
|
const bodyLength10 = 2.9;
|
|
@@ -79710,8 +79959,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
79710
79959
|
const leadHeight = 0.95;
|
|
79711
79960
|
const padContactLength = 0.4;
|
|
79712
79961
|
const extendedBodyDistance = (fullWidth - bodyWidth) / 2 + 0.3;
|
|
79713
|
-
return /* @__PURE__ */ (0,
|
|
79714
|
-
/* @__PURE__ */ (0,
|
|
79962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
79963
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
79715
79964
|
SmdChipLead,
|
|
79716
79965
|
{
|
|
79717
79966
|
rotation: Math.PI,
|
|
@@ -79728,7 +79977,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
79728
79977
|
},
|
|
79729
79978
|
1
|
|
79730
79979
|
),
|
|
79731
|
-
/* @__PURE__ */ (0,
|
|
79980
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
79732
79981
|
SmdChipLead,
|
|
79733
79982
|
{
|
|
79734
79983
|
rotation: Math.PI,
|
|
@@ -79745,7 +79994,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
79745
79994
|
},
|
|
79746
79995
|
2
|
|
79747
79996
|
),
|
|
79748
|
-
/* @__PURE__ */ (0,
|
|
79997
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
79749
79998
|
SmdChipLead,
|
|
79750
79999
|
{
|
|
79751
80000
|
position: {
|
|
@@ -79761,7 +80010,7 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
79761
80010
|
},
|
|
79762
80011
|
3
|
|
79763
80012
|
),
|
|
79764
|
-
/* @__PURE__ */ (0,
|
|
80013
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
79765
80014
|
ChipBody,
|
|
79766
80015
|
{
|
|
79767
80016
|
center: { x: 0, y: 0, z: 0 },
|
|
@@ -79774,8 +80023,8 @@ var SOT233P = ({ fullWidth = 2.9, fullLength: fullLength10 = 2.8 }) => {
|
|
|
79774
80023
|
};
|
|
79775
80024
|
|
|
79776
80025
|
// lib/SOT-563.tsx
|
|
79777
|
-
var
|
|
79778
|
-
var
|
|
80026
|
+
var import_jscad_fiber20 = __toESM(require_dist(), 1);
|
|
80027
|
+
var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
|
|
79779
80028
|
var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
79780
80029
|
const bodyWidth = 1.2;
|
|
79781
80030
|
const bodyLength10 = 1.6;
|
|
@@ -79785,24 +80034,24 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
79785
80034
|
const leadHeight = 0.13;
|
|
79786
80035
|
const leadSpacing = 0.5;
|
|
79787
80036
|
const bodyZOffset = -0.3;
|
|
79788
|
-
return /* @__PURE__ */ (0,
|
|
79789
|
-
/* @__PURE__ */ (0,
|
|
80037
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
|
80038
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Translate, { center: [0, 0, bodyZOffset], children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Cuboid, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
79790
80039
|
[-1, 0, 1].flatMap((yOffset, index) => [
|
|
79791
80040
|
// Left lead
|
|
79792
|
-
/* @__PURE__ */ (0,
|
|
79793
|
-
|
|
80041
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
80042
|
+
import_jscad_fiber20.Translate,
|
|
79794
80043
|
{
|
|
79795
80044
|
center: [-bodyWidth / 2 - 0.03, yOffset * leadSpacing, 0],
|
|
79796
|
-
children: /* @__PURE__ */ (0,
|
|
80045
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
|
|
79797
80046
|
},
|
|
79798
80047
|
`left-${index}`
|
|
79799
80048
|
),
|
|
79800
80049
|
// Right lead
|
|
79801
|
-
/* @__PURE__ */ (0,
|
|
79802
|
-
|
|
80050
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
80051
|
+
import_jscad_fiber20.Translate,
|
|
79803
80052
|
{
|
|
79804
80053
|
center: [bodyWidth / 2 + 0.03, yOffset * leadSpacing, 0],
|
|
79805
|
-
children: /* @__PURE__ */ (0,
|
|
80054
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jscad_fiber20.Cuboid, { size: [leadLength, leadWidth, leadHeight] })
|
|
79806
80055
|
},
|
|
79807
80056
|
`right-${index}`
|
|
79808
80057
|
)
|
|
@@ -79811,8 +80060,8 @@ var SOT563 = ({ fullWidth = 1.94, fullLength: fullLength10 = 1.6 }) => {
|
|
|
79811
80060
|
};
|
|
79812
80061
|
|
|
79813
80062
|
// lib/SOT-723.tsx
|
|
79814
|
-
var
|
|
79815
|
-
var
|
|
80063
|
+
var import_jscad_fiber21 = __toESM(require_dist(), 1);
|
|
80064
|
+
var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
|
|
79816
80065
|
var getCcwSot723Coords = (pn) => {
|
|
79817
80066
|
if (pn === 1) {
|
|
79818
80067
|
return { x: 0, y: 0 };
|
|
@@ -79830,12 +80079,12 @@ var SOT723 = () => {
|
|
|
79830
80079
|
const leadLength = 0.3;
|
|
79831
80080
|
const leadHeight = 0.1;
|
|
79832
80081
|
const centerLeadWidth = 0.42;
|
|
79833
|
-
return /* @__PURE__ */ (0,
|
|
79834
|
-
/* @__PURE__ */ (0,
|
|
80082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
80083
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jscad_fiber21.Rotate, { rotation: [45 * Math.PI, 0, 0], children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jscad_fiber21.Translate, { center: [0.475, leadHeight / 2, -0.25], children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jscad_fiber21.Colorize, { color: "grey", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jscad_fiber21.Cuboid, { size: [bodyWidth, bodyLength10, bodyHeight] }) }) }) }),
|
|
79835
80084
|
[1, 2, 3].map((pn) => {
|
|
79836
80085
|
const { x, y } = getCcwSot723Coords(pn);
|
|
79837
|
-
return /* @__PURE__ */ (0,
|
|
79838
|
-
|
|
80086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jscad_fiber21.Translate, { center: [x, y, 0], children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
80087
|
+
import_jscad_fiber21.Cuboid,
|
|
79839
80088
|
{
|
|
79840
80089
|
size: [
|
|
79841
80090
|
leadLength,
|
|
@@ -79849,7 +80098,7 @@ var SOT723 = () => {
|
|
|
79849
80098
|
};
|
|
79850
80099
|
|
|
79851
80100
|
// lib/sod-123.tsx
|
|
79852
|
-
var
|
|
80101
|
+
var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
|
|
79853
80102
|
var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
79854
80103
|
const bodyWidth = 2.9;
|
|
79855
80104
|
const bodyLength10 = 1.3;
|
|
@@ -79861,8 +80110,8 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
79861
80110
|
const leadYOffset = leadHeight / 1 - 0.4;
|
|
79862
80111
|
const bodyYOffset = leadHeight / 2 - 0.4;
|
|
79863
80112
|
const bodyDistance = (fullWidth - bodyWidth) / 2;
|
|
79864
|
-
return /* @__PURE__ */ (0,
|
|
79865
|
-
/* @__PURE__ */ (0,
|
|
80113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
|
|
80114
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
79866
80115
|
SmdChipLead,
|
|
79867
80116
|
{
|
|
79868
80117
|
position: {
|
|
@@ -79878,7 +80127,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
79878
80127
|
},
|
|
79879
80128
|
1
|
|
79880
80129
|
),
|
|
79881
|
-
/* @__PURE__ */ (0,
|
|
80130
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
79882
80131
|
SmdChipLead,
|
|
79883
80132
|
{
|
|
79884
80133
|
rotation: Math.PI,
|
|
@@ -79895,7 +80144,7 @@ var SOD123 = ({ fullWidth = 3.8, fullLength: fullLength10 = 1.6 }) => {
|
|
|
79895
80144
|
},
|
|
79896
80145
|
2
|
|
79897
80146
|
),
|
|
79898
|
-
/* @__PURE__ */ (0,
|
|
80147
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
79899
80148
|
ChipBody,
|
|
79900
80149
|
{
|
|
79901
80150
|
center: { x: 0, y: bodyYOffset, z: 0 },
|