From 6716b33fcc592495d4ad25ef2eda1d2f83ba0187 Mon Sep 17 00:00:00 2001 From: Georg Wicke-Arndt Date: Sat, 4 May 2024 17:45:40 +0200 Subject: [PATCH 1/2] Fux unicode variable names --- src/math/random.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/math/random.js b/src/math/random.js index d0c6ba07b92c3c..487eabd87ebf41 100644 --- a/src/math/random.js +++ b/src/math/random.js @@ -1,8 +1,8 @@ d3.random = { - normal: function(µ, σ) { + normal: function(mu, sigma) { var n = arguments.length; - if (n < 2) σ = 1; - if (n < 1) µ = 0; + if (n < 2) sigma = 1; + if (n < 1) mu = 0; return function() { var x, y, r; do { @@ -10,7 +10,7 @@ d3.random = { y = Math.random() * 2 - 1; r = x * x + y * y; } while (!r || r > 1); - return µ + σ * x * Math.sqrt(-2 * Math.log(r) / r); + return mu + sigma * x * Math.sqrt(-2 * Math.log(r) / r); }; }, logNormal: function() { From 20dcbdf628959653b93aad2ea931eab295770a20 Mon Sep 17 00:00:00 2001 From: Georg Wicke-Arndt Date: Tue, 7 May 2024 11:42:57 +0200 Subject: [PATCH 2/2] Replace nbsp with regular space --- src/geom/voronoi/cell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geom/voronoi/cell.js b/src/geom/voronoi/cell.js index 8c6628d31c192c..9f19de1fa6ebf7 100644 --- a/src/geom/voronoi/cell.js +++ b/src/geom/voronoi/cell.js @@ -1,6 +1,6 @@ import "../../math/abs"; -function d3_geom_voronoiCell(site) { +function d3_geom_voronoiCell(site) { this.site = site; this.edges = []; }