alfresco-ng2-components/lib/core/viewer/components/imgViewer.component.html
Denys Vuika 8a4959d172 [ADF-1416] image viewer enhancements (#2895)
* image viewer enhancements

* code improvements

* fix scrolling of the zommed in content

* remove flip for now as it needs much efforts

* unit tests, thumbnail selector enhancements
2018-01-30 16:30:41 +00:00

57 lines
2.0 KiB
HTML

<div class="image-container" [ngStyle]="{ transform: transform }">
<img id="viewer-image" [src]="urlFile" [alt]="nameFile" [ngStyle]="{ 'cursor' : isDragged ? 'move': 'default' } " />
</div>
<div class="adf-image-viewer__toolbar" *ngIf="showToolbar">
<adf-toolbar>
<button
id="viewer-zoom-in-button"
mat-icon-button
title="{{ 'ADF_VIEWER.ARIA.ZOOM_IN' | translate }}"
attr.aria-label="{{ 'ADF_VIEWER.ARIA.ZOOM_IN' | translate }}"
(click)="zoomIn()">
<mat-icon>zoom_in</mat-icon>
</button>
<button
id="viewer-zoom-out-button"
title="{{ 'ADF_VIEWER.ARIA.ZOOM_OUT' | translate }}"
attr.aria-label="{{ 'ADF_VIEWER.ARIA.ZOOM_OUT' | translate }}"
mat-icon-button
(click)="zoomOut()">
<mat-icon>zoom_out</mat-icon>
</button>
<div class="adf-viewer__toolbar-page-scale">
{{ currentScaleText }}
</div>
<button
id="viewer-rotate-left-button"
title="{{ 'ADF_VIEWER.ARIA.ROTATE_LEFT' | translate }}"
attr.aria-label="{{ 'ADF_VIEWER.ARIA.ROTATE_LEFT' | translate }}"
mat-icon-button
(click)="rotateLeft()">
<mat-icon>rotate_left</mat-icon>
</button>
<button
id="viewer-rotate-right-button"
title="{{ 'ADF_VIEWER.ARIA.ROTATE_RIGHT' | translate }}"
attr.aria-label="{{ 'ADF_VIEWER.ARIA.ROTATE_RIGHT' | translate }}"
mat-icon-button
(click)="rotateRight()">
<mat-icon>rotate_right</mat-icon>
</button>
<button
id="viewer-reset-button"
title="{{ 'ADF_VIEWER.ARIA.RESET' | translate }}"
attr.aria-label="{{ 'ADF_VIEWER.ARIA.RESET' | translate }}"
mat-icon-button
(click)="reset()">
<mat-icon>zoom_out_map</mat-icon>
</button>
</adf-toolbar>
</div>