Skip to content

Commit

Permalink
upgrade NuGet packages
Browse files Browse the repository at this point in the history
  • Loading branch information
phmatray committed Mar 5, 2024
1 parent 1bf2243 commit d81fed8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.2" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.3" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="2.1.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ private static Color ConvertToSixLaborsColor(ThemeColor color)
_ => throw new ArgumentOutOfRangeException(nameof(color), color, null)
};

private List<Polygon> ConvertToPolygons(Pattern pattern, int cellWidthPixel)
private List<Polygon> 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<Polygon>()
.ToList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ILineSegment>
{
Expand Down
2 changes: 1 addition & 1 deletion geometrix-api/Geometrix.WebApi/Geometrix.WebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.2" />
<PackageReference Include="Microsoft.FeatureManagement.AspNetCore" Version="3.1.1" />
<PackageReference Include="Microsoft.FeatureManagement.AspNetCore" Version="3.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore" Version="8.0.2" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
Expand Down

0 comments on commit d81fed8

Please sign in to comment.