jscad-electronics 0.0.116 → 0.0.117
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 +11 -8
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +11 -8
- package/dist/vanilla.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -367,7 +367,7 @@ declare const TO220: () => react_jsx_runtime.JSX.Element;
|
|
|
367
367
|
|
|
368
368
|
declare const TO92: () => react_jsx_runtime.JSX.Element;
|
|
369
369
|
|
|
370
|
-
declare const MountedPcbModule: ({ numPins, rows, p, id, od, boardThickness, width, height, pinRowSide, holes, holeInset, pinRowHoleEdgeToEdgeDist, }: {
|
|
370
|
+
declare const MountedPcbModule: ({ numPins, rows, p, id, od, boardThickness, width, height, pinRowSide, holes, holeInset, pinRowHoleEdgeToEdgeDist, nopin, }: {
|
|
371
371
|
numPins?: number;
|
|
372
372
|
rows?: number;
|
|
373
373
|
p?: number;
|
|
@@ -380,6 +380,7 @@ declare const MountedPcbModule: ({ numPins, rows, p, id, od, boardThickness, wid
|
|
|
380
380
|
holes?: string[];
|
|
381
381
|
holeInset?: number;
|
|
382
382
|
pinRowHoleEdgeToEdgeDist?: number;
|
|
383
|
+
nopin?: boolean;
|
|
383
384
|
}) => react_jsx_runtime.JSX.Element;
|
|
384
385
|
|
|
385
386
|
export { A01005, A0201, A0402, A0603, A0805, A1206, A1210, A2010, A2512, AxialCapacitor, BGA, ChipBody, type ChipBodyProps, DFN, ExtrudedPads, FootprintPad, FootprintPlatedHole, Footprinter3d, HC49, type HC49Props, LQFP, MELF, type MELFProps, MINIMELF, type MINIMELFProps, MS012, MS013, MSOP, MicroMELF, type MicroMELFProps, MountedPcbModule, PinHeader, PinRow, QFN, QFP, SMA, SMB, SMC, SMF, SOD123, SOD123F, SOD123FL, SOD123W, SOD128, SOD323, SOD323F, SOD323FL, SOD523, SOD882, SOD923, SOT223, SOT233P, SOT23W, SOT323, SOT363, SOT457, SOT563, SOT723, SOT886, SOT963, SmdChipLead, type SmdChipLeadProps, StampBoard, TO220, TO92, TQFP, Tssop, VSSOP };
|
package/dist/index.js
CHANGED
|
@@ -4376,7 +4376,8 @@ var MountedPcbModule = ({
|
|
|
4376
4376
|
pinRowSide = "left",
|
|
4377
4377
|
holes = [],
|
|
4378
4378
|
holeInset = 1,
|
|
4379
|
-
pinRowHoleEdgeToEdgeDist = 2
|
|
4379
|
+
pinRowHoleEdgeToEdgeDist = 2,
|
|
4380
|
+
nopin
|
|
4380
4381
|
}) => {
|
|
4381
4382
|
const boardCenterZ = boardThickness / 2;
|
|
4382
4383
|
const numPinsPerRow = Math.ceil(numPins / rows);
|
|
@@ -4454,18 +4455,19 @@ var MountedPcbModule = ({
|
|
|
4454
4455
|
const pinBodyHeight = 2;
|
|
4455
4456
|
const longSidePinLength = 6;
|
|
4456
4457
|
const shortSidePinLength = 3;
|
|
4458
|
+
const boardOffsetZ = nopin ? 0 : pinBodyHeight;
|
|
4457
4459
|
const boardBody = /* @__PURE__ */ jsx63(Colorize33, { color: "#008080", children: /* @__PURE__ */ jsxs60(Subtract7, { children: [
|
|
4458
4460
|
/* @__PURE__ */ jsx63(
|
|
4459
4461
|
Cuboid41,
|
|
4460
4462
|
{
|
|
4461
|
-
center: [0, 0, boardCenterZ +
|
|
4463
|
+
center: [0, 0, boardCenterZ + boardOffsetZ],
|
|
4462
4464
|
size: [finalWidth, finalHeight, boardThickness]
|
|
4463
4465
|
}
|
|
4464
4466
|
),
|
|
4465
4467
|
holePositions.map((hole, index) => /* @__PURE__ */ jsx63(
|
|
4466
4468
|
Cylinder11,
|
|
4467
4469
|
{
|
|
4468
|
-
center: [hole.x, hole.y, boardCenterZ +
|
|
4470
|
+
center: [hole.x, hole.y, boardCenterZ + boardOffsetZ],
|
|
4469
4471
|
radius: od / 2,
|
|
4470
4472
|
height: boardThickness
|
|
4471
4473
|
},
|
|
@@ -4474,7 +4476,7 @@ var MountedPcbModule = ({
|
|
|
4474
4476
|
pins.map((pin, index) => /* @__PURE__ */ jsx63(
|
|
4475
4477
|
Cylinder11,
|
|
4476
4478
|
{
|
|
4477
|
-
center: [pin.x, pin.y, boardCenterZ +
|
|
4479
|
+
center: [pin.x, pin.y, boardCenterZ + boardOffsetZ],
|
|
4478
4480
|
radius: od / 2,
|
|
4479
4481
|
height: boardThickness
|
|
4480
4482
|
},
|
|
@@ -4485,7 +4487,7 @@ var MountedPcbModule = ({
|
|
|
4485
4487
|
/* @__PURE__ */ jsx63(
|
|
4486
4488
|
Cylinder11,
|
|
4487
4489
|
{
|
|
4488
|
-
center: [pin.x, pin.y, boardThickness / 2 +
|
|
4490
|
+
center: [pin.x, pin.y, boardThickness / 2 + boardOffsetZ],
|
|
4489
4491
|
radius: od / 2,
|
|
4490
4492
|
height: boardThickness
|
|
4491
4493
|
}
|
|
@@ -4493,7 +4495,7 @@ var MountedPcbModule = ({
|
|
|
4493
4495
|
/* @__PURE__ */ jsx63(
|
|
4494
4496
|
Cylinder11,
|
|
4495
4497
|
{
|
|
4496
|
-
center: [pin.x, pin.y, boardThickness / 2 +
|
|
4498
|
+
center: [pin.x, pin.y, boardThickness / 2 + boardOffsetZ],
|
|
4497
4499
|
radius: id / 2,
|
|
4498
4500
|
height: boardThickness
|
|
4499
4501
|
}
|
|
@@ -4515,7 +4517,7 @@ var MountedPcbModule = ({
|
|
|
4515
4517
|
return /* @__PURE__ */ jsxs60(Fragment58, { children: [
|
|
4516
4518
|
boardBody,
|
|
4517
4519
|
platedHoles,
|
|
4518
|
-
headerPins
|
|
4520
|
+
!nopin && headerPins
|
|
4519
4521
|
] });
|
|
4520
4522
|
};
|
|
4521
4523
|
|
|
@@ -4798,7 +4800,8 @@ var Footprinter3d = ({ footprint }) => {
|
|
|
4798
4800
|
pinRowSide,
|
|
4799
4801
|
holes,
|
|
4800
4802
|
holeInset,
|
|
4801
|
-
pinRowHoleEdgeToEdgeDist
|
|
4803
|
+
pinRowHoleEdgeToEdgeDist,
|
|
4804
|
+
nopin: fpJson.nopin
|
|
4802
4805
|
}
|
|
4803
4806
|
);
|
|
4804
4807
|
}
|