From d81fed886ba4eff4f66314bfbbe6cd5fd32d4f25 Mon Sep 17 00:00:00 2001 From: Philippe Matray Date: Tue, 5 Mar 2024 14:01:06 +0100 Subject: [PATCH] upgrade NuGet packages --- .../Geometrix.Infrastructure.csproj | 2 +- .../ImageCreation/ImageEditionService.cs | 8 ++++---- .../ImageCreation/TriangleService.cs | 2 +- geometrix-api/Geometrix.WebApi/Geometrix.WebApi.csproj | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/geometrix-api/Geometrix.Infrastructure/Geometrix.Infrastructure.csproj b/geometrix-api/Geometrix.Infrastructure/Geometrix.Infrastructure.csproj index 6dcc007..fff57a7 100644 --- a/geometrix-api/Geometrix.Infrastructure/Geometrix.Infrastructure.csproj +++ b/geometrix-api/Geometrix.Infrastructure/Geometrix.Infrastructure.csproj @@ -11,7 +11,7 @@ - + diff --git a/geometrix-api/Geometrix.Infrastructure/ImageCreation/ImageEditionService.cs b/geometrix-api/Geometrix.Infrastructure/ImageCreation/ImageEditionService.cs index 86a7126..3eddd4c 100644 --- a/geometrix-api/Geometrix.Infrastructure/ImageCreation/ImageEditionService.cs +++ b/geometrix-api/Geometrix.Infrastructure/ImageCreation/ImageEditionService.cs @@ -54,15 +54,15 @@ private static Color ConvertToSixLaborsColor(ThemeColor color) _ => throw new ArgumentOutOfRangeException(nameof(color), color, null) }; - private List ConvertToPolygons(Pattern pattern, int cellWidthPixel) + private List ConvertToPolygons(Pattern pattern, CellWidthPixel cellWidthPixel) => pattern.Cells .Select(cell => new { - X = cell.X * cellWidthPixel, - Y = cell.Y * cellWidthPixel, + X = cell.X * cellWidthPixel.Value, + Y = cell.Y * cellWidthPixel.Value, Direction = cell.TriangleDirection }) - .Select(cell => triangleService.GetTriangle(cell.Direction, cell.X, cell.Y, cellWidthPixel)) + .Select(cell => triangleService.GetTriangle(cell.Direction, cell.X, cell.Y, cellWidthPixel.Value)) .Where(polygon => polygon is not null) .Cast() .ToList(); diff --git a/geometrix-api/Geometrix.Infrastructure/ImageCreation/TriangleService.cs b/geometrix-api/Geometrix.Infrastructure/ImageCreation/TriangleService.cs index 265c250..6e1a02f 100644 --- a/geometrix-api/Geometrix.Infrastructure/ImageCreation/TriangleService.cs +++ b/geometrix-api/Geometrix.Infrastructure/ImageCreation/TriangleService.cs @@ -40,7 +40,7 @@ public Polygon CreateTriangle(TriangleDirection direction, int x, int y, int cel }; } - private Polygon CreateTriangle((int x, int y)[] points) + private Polygon CreateTriangle(IList<(int x, int y)> points) { var lineSegments = new List { diff --git a/geometrix-api/Geometrix.WebApi/Geometrix.WebApi.csproj b/geometrix-api/Geometrix.WebApi/Geometrix.WebApi.csproj index adbed17..dc9d06b 100644 --- a/geometrix-api/Geometrix.WebApi/Geometrix.WebApi.csproj +++ b/geometrix-api/Geometrix.WebApi/Geometrix.WebApi.csproj @@ -23,7 +23,7 @@ - +