From 454e19a3b55d80dd9664bbdd07448d5a1048caf4 Mon Sep 17 00:00:00 2001 From: Marco Massarelli Date: Mon, 16 Oct 2023 12:39:00 -0400 Subject: [PATCH] Change point precision to 3 decimals --- ergogen/footprints/sk6812mini-e.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ergogen/footprints/sk6812mini-e.js b/ergogen/footprints/sk6812mini-e.js index dc18258..eb0a393 100644 --- a/ergogen/footprints/sk6812mini-e.js +++ b/ergogen/footprints/sk6812mini-e.js @@ -43,7 +43,7 @@ module.exports = { nx = (cos * (adj_x - at_x)) + (sin * (adj_y - at_y)) + at_x, ny = (cos * (adj_y - at_y)) - (sin * (adj_x - at_x)) + at_y; - const point_str = `${nx.toFixed(2)} ${ny.toFixed(2)}`; + const point_str = `${nx.toFixed(3)} ${ny.toFixed(3)}`; return point_str; }