2016-07-06 18:53:49 +08:00
|
|
|
<div [hidden]="!visible" #root>
|
2016-05-01 00:33:07 +08:00
|
|
|
|
2017-07-10 04:00:42 +08:00
|
|
|
<div class="blackCanvas"
|
|
|
|
[style.opacity]="blackCanvasOpacity">
|
|
|
|
</div>
|
|
|
|
|
2017-07-11 04:00:22 +08:00
|
|
|
<div class="lightbox" #lightbox>
|
2017-07-10 04:00:42 +08:00
|
|
|
<gallery-lightbox-photo [gridPhoto]="activePhoto ? activePhoto.gridPhoto : null"
|
2017-07-11 04:00:22 +08:00
|
|
|
#photo>
|
2017-07-10 04:00:42 +08:00
|
|
|
</gallery-lightbox-photo>
|
|
|
|
</div>
|
|
|
|
|
2017-07-11 04:00:22 +08:00
|
|
|
<!--
|
|
|
|
[@photoState]="{value:visible?'active':'inactive',
|
|
|
|
params:{
|
|
|
|
startWidth:startPhotoDimension.width,
|
|
|
|
startHeight:startPhotoDimension.height,
|
|
|
|
startTop:startPhotoDimension.top,
|
|
|
|
startLeft:startPhotoDimension.left,
|
|
|
|
endWidth:photoDimension.width,
|
|
|
|
endHeight:photoDimension.height,
|
|
|
|
endTop:photoDimension.top,
|
|
|
|
endLeft:photoDimension.left}}"
|
|
|
|
-->
|
2017-07-10 04:00:42 +08:00
|
|
|
<div id="controllers-container" #controls
|
|
|
|
[style.width.px]="contentWidth">
|
|
|
|
<div id="controls">
|
|
|
|
<a *ngIf="activePhoto" [href]="activePhoto.gridPhoto.getPhotoPath()"
|
|
|
|
[download]="activePhoto.gridPhoto.photo.name"><span class="glyphicon glyphicon-download-alt highlight"
|
|
|
|
title="download"></span></a>
|
|
|
|
<span class="glyphicon glyphicon-info-sign highlight" (click)="toggleInfoPanel()" title="info"></span>
|
|
|
|
|
|
|
|
<span class=" glyphicon glyphicon-resize-small highlight"
|
|
|
|
*ngIf="fullScreenService.isFullScreenEnabled()"
|
|
|
|
(click)="fullScreenService.exitFullScreen()" title="toggle fullscreen"></span>
|
|
|
|
|
|
|
|
<span class="glyphicon glyphicon-fullscreen highlight"
|
|
|
|
*ngIf="!fullScreenService.isFullScreenEnabled()"
|
|
|
|
(click)="fullScreenService.showFullScreen(root)" title="toggle fullscreen"></span>
|
|
|
|
|
|
|
|
<span class="glyphicon glyphicon-remove highlight" (click)="hide()" title="close"></span>
|
2016-05-01 00:33:07 +08:00
|
|
|
</div>
|
2016-05-13 20:27:00 +08:00
|
|
|
|
2017-07-10 04:00:42 +08:00
|
|
|
<div class="navigation-arrow highlight" *ngIf="navigation.hasPrev" title="key: left arrow" id="leftArrow"
|
|
|
|
(click)="prevImage()"><span
|
|
|
|
class="glyphicon glyphicon-chevron-left"></span></div>
|
|
|
|
<div class="navigation-arrow highlight" *ngIf="navigation.hasNext" title="key: right arrow" id="rightArrow"
|
|
|
|
(click)="nextImage()"><span
|
|
|
|
class="glyphicon glyphicon-chevron-right"></span></div>
|
|
|
|
</div>
|
|
|
|
<info-panel *ngIf="activePhoto && infoPanelVisible"
|
|
|
|
id="info-panel"
|
|
|
|
[style.width.px]="infoPanelWidth"
|
|
|
|
[photo]="activePhoto.gridPhoto.photo">
|
|
|
|
|
|
|
|
</info-panel>
|
2016-05-13 05:00:38 +08:00
|
|
|
</div>
|