commit d3c8a7235a8e4b0faab66f0b9922864fe5ab3494
parent a596dea2626935daba969efa02850fd1d7cf0bd4
Author: hrryt <harry@mayesfield.uk>
Date: Fri, 25 Sep 2026 17:18:03 +0100
Attempt to fix Safari SVG transform
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/plotting/Plot.jsx b/src/components/plotting/Plot.jsx
@@ -79,7 +79,7 @@ export default function Plot({ children, mode="graph", viewBox, width="300", hei
return (
<svg
width={width} height={height} viewBox={viewBox.join(' ')}
- transform="scale(1 -1)" xmlns="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
>
<defs>
<g>
@@ -145,7 +145,7 @@ export default function Plot({ children, mode="graph", viewBox, width="300", hei
</style>
</defs>
<PlotContext value={p}>
- <g id={id}>
+ <g id={id} transform="scale(1 -1)">
{mode === "graph" && (
<g>
<Grid />