diff options
author | hellekin <hellekin@cepheide.org> | 2025-08-06 18:40:45 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2025-08-06 18:40:45 +0200 |
commit | c373c86a39d726984a7ced93a55fb5a6a346efc9 (patch) | |
tree | 9bec1c9d68f19e4ab3570a764148e2fa58df597c | |
parent | 995ebb12bfeee56849b78bf2b99c0cf612da2c1c (diff) | |
download | lesoiseaux.io-c373c86a39d726984a7ced93a55fb5a6a346efc9.tar.gz |
Fix JS error?v1.4.13
-rw-r--r-- | ps/gfx/sine.js | 2 |
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, |