From e42d07c5448baa2b435f7aa73f662d1241ddb6dd Mon Sep 17 00:00:00 2001 From: Haytam Zanid Date: Wed, 10 May 2023 14:30:01 +0100 Subject: [PATCH 1/2] Update Diagram.cs --- src/Blazor.Diagrams.Core/Diagram.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Blazor.Diagrams.Core/Diagram.cs b/src/Blazor.Diagrams.Core/Diagram.cs index 4467a62f..3284429b 100644 --- a/src/Blazor.Diagrams.Core/Diagram.cs +++ b/src/Blazor.Diagrams.Core/Diagram.cs @@ -355,11 +355,11 @@ public void RefreshOrders(bool refresh = true) private void OnSelectableAdded(SelectableModel model) { + var maxOrder = GetMaxOrder(); _orderedSelectables.Add(model); if (model.Order == 0) { - var maxOrder = GetMaxOrder(); model.Order = maxOrder + 1; } From 0f7cc884898dac2de25495640eb69696abf5026c Mon Sep 17 00:00:00 2001 From: Haytam Zanid Date: Wed, 10 May 2023 14:31:44 +0100 Subject: [PATCH 2/2] Update Versions & CHANGELOG --- .../Blazor.Diagrams.Algorithms.csproj | 4 ++-- src/Blazor.Diagrams.Core/Blazor.Diagrams.Core.csproj | 2 +- src/Blazor.Diagrams/Blazor.Diagrams.csproj | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Blazor.Diagrams.Algorithms/Blazor.Diagrams.Algorithms.csproj b/src/Blazor.Diagrams.Algorithms/Blazor.Diagrams.Algorithms.csproj index 78a50f4e..ee22699f 100644 --- a/src/Blazor.Diagrams.Algorithms/Blazor.Diagrams.Algorithms.csproj +++ b/src/Blazor.Diagrams.Algorithms/Blazor.Diagrams.Algorithms.csproj @@ -1,4 +1,4 @@ - + net6.0 @@ -10,7 +10,7 @@ 3.0.0 3.0.0 https://github.com/zHaytam/Blazor.Diagrams - 3.0.0-beta.6 + 3.0.0-beta.7 Z.Blazor.Diagrams.Algorithms blazor diagrams diagramming svg drag algorithms layouts Z.Blazor.Diagrams.Algorithms diff --git a/src/Blazor.Diagrams.Core/Blazor.Diagrams.Core.csproj b/src/Blazor.Diagrams.Core/Blazor.Diagrams.Core.csproj index 0c637566..513db949 100644 --- a/src/Blazor.Diagrams.Core/Blazor.Diagrams.Core.csproj +++ b/src/Blazor.Diagrams.Core/Blazor.Diagrams.Core.csproj @@ -10,7 +10,7 @@ 3.0.0 3.0.0 https://github.com/Blazor-Diagrams/Blazor.Diagrams - 3.0.0-beta.6 + 3.0.0-beta.7 Z.Blazor.Diagrams.Core blazor diagrams diagramming svg drag Z.Blazor.Diagrams.Core diff --git a/src/Blazor.Diagrams/Blazor.Diagrams.csproj b/src/Blazor.Diagrams/Blazor.Diagrams.csproj index 6113ca47..f62649b1 100644 --- a/src/Blazor.Diagrams/Blazor.Diagrams.csproj +++ b/src/Blazor.Diagrams/Blazor.Diagrams.csproj @@ -9,7 +9,7 @@ 3.0.0 https://github.com/Blazor-Diagrams/Blazor.Diagrams A fully customizable and extensible all-purpose diagrams library for Blazor - 3.0.0-beta.6 + 3.0.0-beta.7 true blazor diagrams diagramming svg drag Z.Blazor.Diagrams