Skip to content

Commit

Permalink
Update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mawi137 committed Jun 5, 2024
1 parent 41a11b5 commit 8c598ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/demo-app/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</section>
<br />
<button (click)="maintainAspectRatio = !maintainAspectRatio;" [class.enabled]="maintainAspectRatio">Maintain Aspect Ratio</button>
<button (click)="toggleAspectRatio()" [class.enabled]="maintainAspectRatio">Aspect ratio: {{aspectRatio === 4/3 ? '4/3' : '16/5'}}</button>
<button (click)="toggleAspectRatio()" [class.enabled]="maintainAspectRatio || containWithinAspectRatio">Aspect ratio: {{aspectRatio === 4/3 ? '4/3' : '16/5'}}</button>
<button (click)="containWithinAspectRatio = !containWithinAspectRatio;" [class.enabled]="containWithinAspectRatio">Fill Aspect Ratio</button>
<button (click)="rotateLeft()">Rotate left</button>
<button (click)="rotateRight()">Rotate right</button>
Expand Down Expand Up @@ -70,7 +70,7 @@
[cropperMaxWidth]="cropperMaxWidth"
[cropperMaxHeight]="cropperMaxHeight"
[resetCropOnAspectRatioChange]="resetCropOnAspectRatioChange"
[cropper]="cropper"
[(cropper)]="cropper"
[(transform)]="transform"
[onlyScaleDown]="true"
output="blob"
Expand Down

0 comments on commit 8c598ab

Please sign in to comment.