jscad-electronics 0.0.119 → 0.0.120
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 +12 -12
- package/dist/index.js.map +1 -1
- package/dist/vanilla.js +12 -12
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4255,7 +4255,7 @@ var StampBoard = ({
|
|
|
4255
4255
|
for (let i = 0; i < leadsRight; i++) {
|
|
4256
4256
|
const y = yOffset + i * leadsPitch;
|
|
4257
4257
|
pads.push({
|
|
4258
|
-
x:
|
|
4258
|
+
x: halfBoardWidth - leadLength / 2,
|
|
4259
4259
|
y: -y,
|
|
4260
4260
|
// Flip y
|
|
4261
4261
|
pl: leadLength,
|
|
@@ -4263,8 +4263,8 @@ var StampBoard = ({
|
|
|
4263
4263
|
});
|
|
4264
4264
|
if (innerHoles) {
|
|
4265
4265
|
holes.push(
|
|
4266
|
-
{ x:
|
|
4267
|
-
{ x:
|
|
4266
|
+
{ x: halfBoardWidth, y: -y },
|
|
4267
|
+
{ x: halfBoardWidth - innerHoleEdgeDistance, y: -y }
|
|
4268
4268
|
);
|
|
4269
4269
|
}
|
|
4270
4270
|
}
|
|
@@ -4274,7 +4274,7 @@ var StampBoard = ({
|
|
|
4274
4274
|
for (let i = 0; i < leadsLeft; i++) {
|
|
4275
4275
|
const y = yOffset + i * leadsPitch;
|
|
4276
4276
|
pads.push({
|
|
4277
|
-
x: halfBoardWidth
|
|
4277
|
+
x: -halfBoardWidth + leadLength / 2,
|
|
4278
4278
|
y: -y,
|
|
4279
4279
|
// Flip y
|
|
4280
4280
|
pl: leadLength,
|
|
@@ -4282,8 +4282,8 @@ var StampBoard = ({
|
|
|
4282
4282
|
});
|
|
4283
4283
|
if (innerHoles) {
|
|
4284
4284
|
holes.push(
|
|
4285
|
-
{ x: halfBoardWidth, y: -y },
|
|
4286
|
-
{ x: halfBoardWidth
|
|
4285
|
+
{ x: -halfBoardWidth, y: -y },
|
|
4286
|
+
{ x: -halfBoardWidth + innerHoleEdgeDistance, y: -y }
|
|
4287
4287
|
);
|
|
4288
4288
|
}
|
|
4289
4289
|
}
|
|
@@ -4295,14 +4295,14 @@ var StampBoard = ({
|
|
|
4295
4295
|
pads.push({
|
|
4296
4296
|
x: -x,
|
|
4297
4297
|
// Flip x
|
|
4298
|
-
y:
|
|
4298
|
+
y: bodyLength10 / 2 - leadLength / 2,
|
|
4299
4299
|
pl: leadWidth,
|
|
4300
4300
|
pw: leadLength
|
|
4301
4301
|
});
|
|
4302
4302
|
if (innerHoles) {
|
|
4303
4303
|
holes.push(
|
|
4304
|
-
{ x: -x, y:
|
|
4305
|
-
{ x: -x, y:
|
|
4304
|
+
{ x: -x, y: bodyLength10 / 2 },
|
|
4305
|
+
{ x: -x, y: bodyLength10 / 2 - innerHoleEdgeDistance }
|
|
4306
4306
|
);
|
|
4307
4307
|
}
|
|
4308
4308
|
}
|
|
@@ -4314,14 +4314,14 @@ var StampBoard = ({
|
|
|
4314
4314
|
pads.push({
|
|
4315
4315
|
x: -x,
|
|
4316
4316
|
// Flip x
|
|
4317
|
-
y: bodyLength10 / 2
|
|
4317
|
+
y: -bodyLength10 / 2 + leadLength / 2,
|
|
4318
4318
|
pl: leadWidth,
|
|
4319
4319
|
pw: leadLength
|
|
4320
4320
|
});
|
|
4321
4321
|
if (innerHoles) {
|
|
4322
4322
|
holes.push(
|
|
4323
|
-
{ x: -x, y: bodyLength10 / 2 },
|
|
4324
|
-
{ x: -x, y: bodyLength10 / 2
|
|
4323
|
+
{ x: -x, y: -bodyLength10 / 2 },
|
|
4324
|
+
{ x: -x, y: -bodyLength10 / 2 + innerHoleEdgeDistance }
|
|
4325
4325
|
);
|
|
4326
4326
|
}
|
|
4327
4327
|
}
|