|
7 | 7 | <PackageTips Name="BootstrapBlazor.ImageCropper" /> |
8 | 8 |
|
9 | 9 | <DemoBlock Title="@Localizer["ImageCropperNormalText"]" Introduction="@Localizer["ImageCropperNormalIntro"]" Name="Normal"> |
10 | | - <ImageCropper @ref="_cropper" Url="@_images[0]" Options="_roundOptions1"></ImageCropper> |
| 10 | + <ImageCropper @ref="_cropper" Url="@_images[0]" Options="_roundOptions1" OnCropChangedAsync="OnCropChangedAsync"></ImageCropper> |
11 | 11 | <section ignore> |
12 | 12 | <BootstrapInputGroup> |
13 | 13 | <Button Text="OK" OnClick="Crop"></Button> |
|
26 | 26 | <div class="bb-cropper-preview bb-cropper-preview1 bb-cropper-preview-xs"></div> |
27 | 27 | </div> |
28 | 28 |
|
| 29 | + <div class="row g-3 mt-3"> |
| 30 | + <div class="col-12 col-sm-6"> |
| 31 | + <BootstrapInputGroup> |
| 32 | + <BootstrapInputGroupLabel DisplayText="X"></BootstrapInputGroupLabel> |
| 33 | + <Display Value="_data.X"></Display> |
| 34 | + <BootstrapInputGroupLabel DisplayText="px"></BootstrapInputGroupLabel> |
| 35 | + </BootstrapInputGroup> |
| 36 | + </div> |
| 37 | + <div class="col-12 col-sm-6"> |
| 38 | + <BootstrapInputGroup> |
| 39 | + <BootstrapInputGroupLabel DisplayText="Y"></BootstrapInputGroupLabel> |
| 40 | + <Display Value="_data.Y"></Display> |
| 41 | + <BootstrapInputGroupLabel DisplayText="px"></BootstrapInputGroupLabel> |
| 42 | + </BootstrapInputGroup> |
| 43 | + </div> |
| 44 | + <div class="col-12 col-sm-6"> |
| 45 | + <BootstrapInputGroup> |
| 46 | + <BootstrapInputGroupLabel DisplayText="Width"></BootstrapInputGroupLabel> |
| 47 | + <Display Value="_data.Width"></Display> |
| 48 | + <BootstrapInputGroupLabel DisplayText="px"></BootstrapInputGroupLabel> |
| 49 | + </BootstrapInputGroup> |
| 50 | + </div> |
| 51 | + <div class="col-12 col-sm-6"> |
| 52 | + <BootstrapInputGroup> |
| 53 | + <BootstrapInputGroupLabel DisplayText="Height"></BootstrapInputGroupLabel> |
| 54 | + <Display Value="_data.Height"></Display> |
| 55 | + <BootstrapInputGroupLabel DisplayText="px"></BootstrapInputGroupLabel> |
| 56 | + </BootstrapInputGroup> |
| 57 | + </div> |
| 58 | + <div class="col-12 col-sm-6"> |
| 59 | + <BootstrapInputGroup> |
| 60 | + <BootstrapInputGroupLabel DisplayText="Rotate"></BootstrapInputGroupLabel> |
| 61 | + <Display Value="_data.Rotate"></Display> |
| 62 | + <BootstrapInputGroupLabel DisplayText="deg"></BootstrapInputGroupLabel> |
| 63 | + </BootstrapInputGroup> |
| 64 | + </div> |
| 65 | + <div class="col-12 col-sm-6 d-none d-sm-flex"> |
| 66 | + </div> |
| 67 | + <div class="col-12 col-sm-6"> |
| 68 | + <BootstrapInputGroup> |
| 69 | + <BootstrapInputGroupLabel DisplayText="ScaleX"></BootstrapInputGroupLabel> |
| 70 | + <Display Value="_data.ScaleX"></Display> |
| 71 | + </BootstrapInputGroup> |
| 72 | + </div> |
| 73 | + <div class="col-12 col-sm-6"> |
| 74 | + <BootstrapInputGroup> |
| 75 | + <BootstrapInputGroupLabel DisplayText="ScaleY"></BootstrapInputGroupLabel> |
| 76 | + <Display Value="_data.ScaleY"></Display> |
| 77 | + </BootstrapInputGroup> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + |
29 | 81 | @if (!string.IsNullOrEmpty(_base64String)) |
30 | 82 | { |
31 | 83 | <img src="@_base64String" style="width: 240px; margin-top: 1rem;" /> |
|
0 commit comments