aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2025-08-06 18:40:45 +0200
committerhellekin <hellekin@cepheide.org>2025-08-06 18:40:45 +0200
commitc373c86a39d726984a7ced93a55fb5a6a346efc9 (patch)
tree9bec1c9d68f19e4ab3570a764148e2fa58df597c
parent995ebb12bfeee56849b78bf2b99c0cf612da2c1c (diff)
downloadlesoiseaux.io-c373c86a39d726984a7ced93a55fb5a6a346efc9.tar.gz
Fix JS error?v1.4.13
-rw-r--r--ps/gfx/sine.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ps/gfx/sine.js b/ps/gfx/sine.js
index 678fd26..181270b 100644
--- a/ps/gfx/sine.js
+++ b/ps/gfx/sine.js
@@ -46,7 +46,7 @@
.append("rect").attr("width", h).attr("height", w)
const graphContainer = svg.append("g")
- .attr('transform', `translate(-${initialX}, ${initialY})`);
+ .attr('transform', `translate(${-Math.abs(initialX)}, ${-Math.abs(initialY)})`);
const state = {
initialX,