Skip to content

Commit 2e6e63c

Browse files
authored
feat(ImageCorpper): update AspectRatio type to float (#6175)
* refactor: 增加比率参数示例 * chore: bump version 9.0.1
1 parent 4353628 commit 2e6e63c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<PackageReference Include="BootstrapBlazor.Html2Image" Version="9.0.2" />
4444
<PackageReference Include="BootstrapBlazor.Html2Pdf" Version="9.0.2" />
4545
<PackageReference Include="BootstrapBlazor.IconPark" Version="9.0.3" />
46-
<PackageReference Include="BootstrapBlazor.ImageCropper" Version="9.0.0" />
46+
<PackageReference Include="BootstrapBlazor.ImageCropper" Version="9.0.1" />
4747
<PackageReference Include="BootstrapBlazor.IP2Region" Version="9.0.1" />
4848
<PackageReference Include="BootstrapBlazor.JitsiMeet" Version="9.0.0" />
4949
<PackageReference Include="BootstrapBlazor.JuHeIpLocatorProvider" Version="9.0.0" />

src/BootstrapBlazor.Server/Components/Samples/ImageCroppers.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public partial class ImageCroppers
2222

2323
private string? _base64String2;
2424

25-
private readonly ImageCropperOption _roundOptions = new() { IsRound = true, Radius = "50%" };
25+
private readonly ImageCropperOption _roundOptions = new() { IsRound = true, Radius = "50%", AspectRatio = 3/4f };
2626

2727
/// <summary>
2828
/// <inheritdoc/>

0 commit comments

Comments
 (0)