circuit-json-to-lbrn 0.0.26 → 0.0.27

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 CHANGED
@@ -425,8 +425,8 @@ var addCircularHoleWithRectPad = (platedHole, ctx) => {
425
425
  );
426
426
  }
427
427
  if (holeRadius > 0 && includeCopper) {
428
- const holeCenterX = centerX + platedHole.hole_offset_x;
429
- const holeCenterY = centerY + platedHole.hole_offset_y;
428
+ const holeCenterX = centerX + (platedHole.hole_offset_x ?? 0);
429
+ const holeCenterY = centerY + (platedHole.hole_offset_y ?? 0);
430
430
  const holePath = createCirclePath({
431
431
  centerX: holeCenterX,
432
432
  centerY: holeCenterY,
@@ -85,8 +85,8 @@ export const addCircularHoleWithRectPad = (
85
85
 
86
86
  // Add the circular hole (as a cutout) - always cut through the board regardless of mode
87
87
  if (holeRadius > 0 && includeCopper) {
88
- const holeCenterX = centerX + platedHole.hole_offset_x
89
- const holeCenterY = centerY + platedHole.hole_offset_y
88
+ const holeCenterX = centerX + (platedHole.hole_offset_x ?? 0)
89
+ const holeCenterY = centerY + (platedHole.hole_offset_y ?? 0)
90
90
  const holePath = createCirclePath({
91
91
  centerX: holeCenterX,
92
92
  centerY: holeCenterY,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "circuit-json-to-lbrn",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.26",
4
+ "version": "0.0.27",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "bun run site/index.html",