We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent babbe11 commit 307dd5fCopy full SHA for 307dd5f
samples/KristofferStrube.Blazor.SVGEditor.WasmExample/Pages/IconMaker.razor.cs
@@ -4,12 +4,12 @@ namespace KristofferStrube.Blazor.SVGEditor.WasmExample.Pages;
4
public partial class IconMaker
5
{
6
protected SVGEditor sVGEditor = default!;
7
-
8
protected string Input = "";
+ protected int width = 16;
9
10
protected void InputHasBeenRendered()
11
12
- double newScale = 1 / (16 / sVGEditor.BBox.Height);
+ double newScale = 1 / (width / sVGEditor.BBox.Height);
13
if (sVGEditor.Scale != newScale)
14
15
sVGEditor.Scale = newScale;
@@ -27,4 +27,4 @@ public async Task Copy()
27
28
await JSRuntime.InvokeVoidAsync("navigator.clipboard.writeText", SVG);
29
}
30
-}
+}
0 commit comments