jscad-electronics 0.0.216 → 0.0.217

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/vanilla.js CHANGED
@@ -2838,7 +2838,10 @@ function createHexNutMesh(input, options = {}) {
2838
2838
  previous = current;
2839
2839
  }
2840
2840
  const levels = new Set(
2841
- props.showThreads ? Array.from({ length: steps + 1 }, (_, i) => d.height * i / steps) : [0, d.height]
2841
+ props.showThreads ? Array.from(
2842
+ { length: steps + 1 },
2843
+ (_, i) => i === steps ? d.height : d.height * i / steps
2844
+ ) : [0, d.height]
2842
2845
  );
2843
2846
  levels.add(d.boreChamferDepth);
2844
2847
  levels.add(d.height - d.boreChamferDepth);