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/vanilla.js
CHANGED
|
@@ -4094,7 +4094,7 @@ var StampBoard = ({
|
|
|
4094
4094
|
for (let i = 0; i < leadsRight; i++) {
|
|
4095
4095
|
const y = yOffset + i * leadsPitch;
|
|
4096
4096
|
pads.push({
|
|
4097
|
-
x:
|
|
4097
|
+
x: halfBoardWidth - leadLength / 2,
|
|
4098
4098
|
y: -y,
|
|
4099
4099
|
// Flip y
|
|
4100
4100
|
pl: leadLength,
|
|
@@ -4102,8 +4102,8 @@ var StampBoard = ({
|
|
|
4102
4102
|
});
|
|
4103
4103
|
if (innerHoles) {
|
|
4104
4104
|
holes.push(
|
|
4105
|
-
{ x:
|
|
4106
|
-
{ x:
|
|
4105
|
+
{ x: halfBoardWidth, y: -y },
|
|
4106
|
+
{ x: halfBoardWidth - innerHoleEdgeDistance, y: -y }
|
|
4107
4107
|
);
|
|
4108
4108
|
}
|
|
4109
4109
|
}
|
|
@@ -4113,7 +4113,7 @@ var StampBoard = ({
|
|
|
4113
4113
|
for (let i = 0; i < leadsLeft; i++) {
|
|
4114
4114
|
const y = yOffset + i * leadsPitch;
|
|
4115
4115
|
pads.push({
|
|
4116
|
-
x: halfBoardWidth
|
|
4116
|
+
x: -halfBoardWidth + leadLength / 2,
|
|
4117
4117
|
y: -y,
|
|
4118
4118
|
// Flip y
|
|
4119
4119
|
pl: leadLength,
|
|
@@ -4121,8 +4121,8 @@ var StampBoard = ({
|
|
|
4121
4121
|
});
|
|
4122
4122
|
if (innerHoles) {
|
|
4123
4123
|
holes.push(
|
|
4124
|
-
{ x: halfBoardWidth, y: -y },
|
|
4125
|
-
{ x: halfBoardWidth
|
|
4124
|
+
{ x: -halfBoardWidth, y: -y },
|
|
4125
|
+
{ x: -halfBoardWidth + innerHoleEdgeDistance, y: -y }
|
|
4126
4126
|
);
|
|
4127
4127
|
}
|
|
4128
4128
|
}
|
|
@@ -4134,14 +4134,14 @@ var StampBoard = ({
|
|
|
4134
4134
|
pads.push({
|
|
4135
4135
|
x: -x,
|
|
4136
4136
|
// Flip x
|
|
4137
|
-
y:
|
|
4137
|
+
y: bodyLength10 / 2 - leadLength / 2,
|
|
4138
4138
|
pl: leadWidth,
|
|
4139
4139
|
pw: leadLength
|
|
4140
4140
|
});
|
|
4141
4141
|
if (innerHoles) {
|
|
4142
4142
|
holes.push(
|
|
4143
|
-
{ x: -x, y:
|
|
4144
|
-
{ x: -x, y:
|
|
4143
|
+
{ x: -x, y: bodyLength10 / 2 },
|
|
4144
|
+
{ x: -x, y: bodyLength10 / 2 - innerHoleEdgeDistance }
|
|
4145
4145
|
);
|
|
4146
4146
|
}
|
|
4147
4147
|
}
|
|
@@ -4153,14 +4153,14 @@ var StampBoard = ({
|
|
|
4153
4153
|
pads.push({
|
|
4154
4154
|
x: -x,
|
|
4155
4155
|
// Flip x
|
|
4156
|
-
y: bodyLength10 / 2
|
|
4156
|
+
y: -bodyLength10 / 2 + leadLength / 2,
|
|
4157
4157
|
pl: leadWidth,
|
|
4158
4158
|
pw: leadLength
|
|
4159
4159
|
});
|
|
4160
4160
|
if (innerHoles) {
|
|
4161
4161
|
holes.push(
|
|
4162
|
-
{ x: -x, y: bodyLength10 / 2 },
|
|
4163
|
-
{ x: -x, y: bodyLength10 / 2
|
|
4162
|
+
{ x: -x, y: -bodyLength10 / 2 },
|
|
4163
|
+
{ x: -x, y: -bodyLength10 / 2 + innerHoleEdgeDistance }
|
|
4164
4164
|
);
|
|
4165
4165
|
}
|
|
4166
4166
|
}
|