1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/ui/gallery/lightbox/lightbox.gallery.component.html

37 lines
1.2 KiB
HTML
Raw Normal View History

<div [hidden]="!isVisible()" #root>
2016-05-01 00:33:07 +08:00
<div class="blackCanvas"
[style.opacity]="blackCanvasOpacity">
</div>
2017-07-11 04:00:22 +08:00
<div class="lightbox" #lightbox>
<app-gallery-lightbox-media [gridMedia]="activePhoto ? activePhoto.gridPhoto : null"
2018-11-05 02:28:32 +08:00
[loadMedia]="!animating"
2019-07-15 01:31:34 +08:00
[zoom]="controls ? controls.Zoom : 1"
[drag]="controls ? controls.drag : {x:0,y:0}"
[windowAspect]="photoFrameDim.aspect"
2018-05-04 07:17:08 +08:00
#photo>
</app-gallery-lightbox-media>
2019-07-15 01:31:34 +08:00
<app-lightbox-controls
#controls
[activePhoto]="activePhoto"
(closed)="hide()"
[navigation]="navigation"
(nextPhoto)="nextImage()"
(previousPhoto)="prevImage()"
(toggleInfoPanel)="toggleInfoPanel()"
(toggleFullScreen)="toggleFullscreen()"
[photoFrameDim]="photoFrameDim"
[mediaElement]="mediaElement">
</app-lightbox-controls>
</div>
2018-05-04 07:17:08 +08:00
<app-info-panel *ngIf="activePhoto && infoPanelVisible"
id="info-panel"
[style.width.px]="infoPanelWidth"
2018-11-18 03:15:48 +08:00
[media]="activePhoto.gridPhoto.media"
(closed)="hideInfoPanel()">
2018-05-04 07:17:08 +08:00
</app-info-panel>
2016-05-13 05:00:38 +08:00
</div>