From 157babcbb9bc1a803fa418432aaf54ea34a94217 Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Sun, 12 Nov 2023 07:10:32 -0500 Subject: [PATCH] =?UTF-8?q?L'OQLF=20est=20pass=C3=A9e.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BlazorCanvas/BlazorCanvas/Pages/Index.razor | 33 +++++++++++++-------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/BlazorCanvas/BlazorCanvas/Pages/Index.razor b/BlazorCanvas/BlazorCanvas/Pages/Index.razor index ab4bf37..0209b6a 100644 --- a/BlazorCanvas/BlazorCanvas/Pages/Index.razor +++ b/BlazorCanvas/BlazorCanvas/Pages/Index.razor @@ -8,23 +8,32 @@ @inject IJSRuntime jsRuntime
-

On dessine en gang!

- +

Canvas Communautaire!

+ - +
@@ -44,8 +53,7 @@ if (eventArgs.Buttons == 0) return; - if (divCanvas.Id?.Length > 0) - { + if (divCanvas.Id?.Length > 0) { string data = await jsRuntime.InvokeAsync("getDivCanvasOffsets", new object[] { divCanvas }); JObject? offsets = (JObject?)JsonConvert.DeserializeObject(data); @@ -59,7 +67,6 @@ await currentCanvasContext.SetFillStyleAsync(currentcolor); await currentCanvasContext.FillRectAsync(mouseX, mouseY, pointsize, pointsize); - } } } \ No newline at end of file