|
8 | 8 |
|
9 | 9 | <CropperWrapper @ref="CropperWrapperRef" OnReady="OnReady" ImageSrc="sample-data/testImage.jpeg" Alt="Test-Image"/> |
10 | 10 |
|
11 | | -<div class="vstack mt-5 gap-3"> |
12 | | - <button class="btn-primary w-auto mt-3" @onclick="@(() => CropperWrapperRef.Reset())">Reset</button> |
13 | | - <button class="btn-primary w-auto mt-3" @onclick="@(() => CropperWrapperRef.Clear())">Clear</button> |
14 | | - <button class="btn-primary w-auto mt-3" @onclick="@(() => CropperWrapperRef.Enable())">Enable</button> |
15 | | - <button class="btn-primary w-auto mt-3" @onclick="@(() => CropperWrapperRef.Disable())">Disable</button> |
16 | | - <button class="btn-primary w-auto mt-3" @onclick="@(() => CropperWrapperRef.Zoom(0.1))">Zoom</button> |
17 | | - <button class="btn-primary w-auto mt-3" @onclick="@(() => CropperWrapperRef.RotateTo(90))">RotateTo</button> |
| 11 | +<div class="hstack mt-5 gap-3"> |
| 12 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.RotateLeft())">Rotate Left</button> |
| 13 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.RotateRight())">Rotate Right</button> |
| 14 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.ScaleHorizontal())">Flip Horizontal</button> |
| 15 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.ScaleVertical())">Flip Vertical</button> |
| 16 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.GetCroppedArea())">Crop</button> |
| 17 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.GoBack())">Go back</button> |
| 18 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.Reset())">Reset</button> |
| 19 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.Clear())">Clear</button> |
| 20 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.Enable())">Enable</button> |
| 21 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.Disable())">Disable</button> |
| 22 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.Zoom(0.1))">Zoom</button> |
| 23 | + <button class="btn-primary w-25 mt-3" @onclick="@(() => CropperWrapperRef.RotateTo(90))">RotateTo</button> |
18 | 24 | </div> |
19 | 25 |
|
20 | 26 | @code |
|
0 commit comments