From 893cf02a5700ce562c6d67470883123a2d84c3c1 Mon Sep 17 00:00:00 2001 From: Pierre Irrmann Date: Wed, 8 Sep 2021 16:10:35 +0200 Subject: [PATCH] Set the export scale in back to 1 This fixes #178 --- src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs b/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs index 462903f1c..0038a6256 100644 --- a/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs +++ b/src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs @@ -41,7 +41,7 @@ type PuppeteerSharpRenderer() = fun (x:Match) -> x.Result( "$1" - + $".then(x => Plotly.toImage(x, {{ format: '{StyleParam.ImageFormat.toString format}', scale: 2, width: {width}, height: {height} }}))" + + $".then(x => Plotly.toImage(x, {{ format: '{StyleParam.ImageFormat.toString format}', scale: 1, width: {width}, height: {height} }}))" + ".then(img => window.plotlyImage = img)" ) ) @@ -193,4 +193,4 @@ type PuppeteerSharpRenderer() = member this.SaveSVG (path:string, width:int, height: int, gChart:GenericChart.GenericChart) = (this :> IGenericChartRenderer).SaveSVGAsync(path, width, height, gChart) - |> Async.RunSynchronously \ No newline at end of file + |> Async.RunSynchronously