1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-04 10:34:45 +02:00

Enabling faces zoom in photo preview (lightbox) #249 #240

This commit is contained in:
Patrik J. Braun 2021-04-06 11:52:06 +02:00
parent 5c2c3c1ae7
commit 4ced2c3226

View File

@ -51,11 +51,11 @@
(click)="mediaElement.playPause()">
<div class="faces-container"
[style.top.px]="photoFrameDim.height/2"
[style.left.px]="photoFrameDim.width/2"
[style.width.px]="faceContainerDim.width"
[style.height.px]="faceContainerDim.height"
*ngIf="facesEnabled && activePhoto && zoom == 1 && activePhoto.gridMedia.Photo.metadata.faces && activePhoto.gridMedia.Photo.metadata.faces.length > 0">
[style.top.px]="photoFrameDim.height/2 + drag.y"
[style.left.px]="photoFrameDim.width/2 + drag.x"
[style.width.px]="faceContainerDim.width* zoom"
[style.height.px]="faceContainerDim.height* zoom"
*ngIf="facesEnabled && activePhoto && activePhoto.gridMedia.Photo.metadata.faces && activePhoto.gridMedia.Photo.metadata.faces.length > 0">
<a
class="face"
[routerLink]="['/search', getPersonSearchQuery(face.name)]"