@fluxhub/fluxhub-lib 1.0.247 → 1.0.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/fluxhub-fluxhub-lib.umd.js +12 -4
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/components/ImageViewerComponent.html +1 -1
- package/esm2015/lib/controls/image-viewer/fullscreen.directive.js +4 -2
- package/esm2015/lib/controls/image-viewer/image-viewer.component.js +1 -1
- package/esm2015/lib/controls/image_preview.js +9 -3
- package/esm5/lib/controls/image-viewer/fullscreen.directive.js +4 -2
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +1 -1
- package/esm5/lib/controls/image_preview.js +9 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +12 -4
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -13708,10 +13708,13 @@
|
|
|
13708
13708
|
*/
|
|
13709
13709
|
function () {
|
|
13710
13710
|
console.log('fullScreenEvent');
|
|
13711
|
+
console.log('u ', this.u);
|
|
13712
|
+
console.log('preview ', this.photo_c);
|
|
13711
13713
|
if (this.u != null)
|
|
13712
13714
|
if (this.u.image_thumbnail != null)
|
|
13713
|
-
if (this.u.image_thumbnail.length > 0 && this.photo_c.preview)
|
|
13715
|
+
if (this.u.image_thumbnail.length > 0 && this.photo_c.preview) {
|
|
13714
13716
|
this.toggle_up();
|
|
13717
|
+
}
|
|
13715
13718
|
};
|
|
13716
13719
|
/**
|
|
13717
13720
|
* @param {?} event
|
|
@@ -13759,9 +13762,12 @@
|
|
|
13759
13762
|
this._preview_c = false;
|
|
13760
13763
|
if (this.u != null)
|
|
13761
13764
|
if (this.u.image_thumbnail != null)
|
|
13762
|
-
if (this.u.image_thumbnail.length > 0)
|
|
13765
|
+
if (this.u.image_thumbnail.length > 0) {
|
|
13763
13766
|
if (this.u.image_thumbnail[0] != this.u.image_original[0])
|
|
13764
13767
|
this._preview_c = true;
|
|
13768
|
+
console.log('this._preview_c ', this._preview_c);
|
|
13769
|
+
}
|
|
13770
|
+
console.log('this.photo_c ', this.photo_c);
|
|
13765
13771
|
if (this.photo_c != null)
|
|
13766
13772
|
this.photo_c.preview = this._preview_c;
|
|
13767
13773
|
};
|
|
@@ -14095,7 +14101,7 @@
|
|
|
14095
14101
|
ImageViewerComponent.decorators = [
|
|
14096
14102
|
{ type: i0.Component, args: [{
|
|
14097
14103
|
selector: 'fh-image-viewer',
|
|
14098
|
-
template: "<div [ngxToggleFullscreen]=\"fullscreen\" class=\"img-container\" [style.backgroundColor]=\"config.containerBackgroundColor\"\n (wheel)=\"scrollZoom($event)\" (dragover)=\"onDragOver($event)\">\n <img [src]=\"src[index]\" [ngStyle]=\"style\" alt=\"Image not found...\" style=\"min-height:
|
|
14104
|
+
template: "<div [ngxToggleFullscreen]=\"fullscreen\" class=\"img-container\" [style.backgroundColor]=\"config.containerBackgroundColor\"\n (wheel)=\"scrollZoom($event)\" (dragover)=\"onDragOver($event)\">\n <img [src]=\"src[index]\" [ngStyle]=\"style\" alt=\"Image not found...\" style=\"min-height:260px\" (dragstart)=\"onDragStart($event)\" (load)=\"onLoad()\" (loadstart)=\"onLoadStart()\"/>\n <!-- Div below will be used to hide the 'ghost' image when dragging -->\n <div></div>\n <div class=\"spinner-container\" *ngIf=\"loading\">\n <div class=\"spinner\"></div>\n </div>\n\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.rotateCounterClockwise && !preview\" (click)=\"rotateCounterClockwise()\">\n <span [class]=\"config.btnIcons.rotateCounterClockwise\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.rotateClockwise && !preview\" (click)=\"rotateClockwise()\">\n <span [class]=\"config.btnIcons.rotateClockwise\"></span>\n </button>\n\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.zoomOut && !preview\" (click)=\"zoomOut()\">\n <span [class]=\"config.btnIcons.zoomOut\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" *ngIf=\"config.btnShow.zoomIn && !preview\" (click)=\"zoomIn()\">\n <span [class]=\"config.btnIcons.zoomIn\"></span>\n </button>\n\n\n\n <button type=\"button\" id=\"ngx-fs-btn\" [class]=\"config.btnClass\" (click)=\"toggleFullscreen()\" *ngIf=\"config.allowFullscreen\">\n <span [class]=\"config.btnIcons.fullscreen\"></span>\n </button>\n\n <div class=\"nav-button-container\" *ngIf=\"src.length > 1\">\n <button type=\"button\" [class]=\"config.btnClass\" (click)=\"prevImage($event)\" [disabled]=\"index === 0\">\n <span [class]=\"config.btnIcons.prev\"></span>\n </button>\n <button type=\"button\" [class]=\"config.btnClass\" (click)=\"nextImage($event)\" [disabled]=\"index === src.length - 1\">\n <span [class]=\"config.btnIcons.next\"></span>\n </button>\n </div>\n</div>\n",
|
|
14099
14105
|
styles: [".img-container{height:100%;width:100%;overflow:hidden;position:relative}.img-container img{z-index:2;margin:0 auto;display:block;max-width:100%;max-height:100%}.img-container button{z-index:99;position:absolute;right:15px}.img-container button:not(:disabled){cursor:pointer}.img-container>button:nth-of-type(1):not(#ngx-fs-btn){bottom:15px}.img-container>button:nth-of-type(2):not(#ngx-fs-btn){bottom:65px}.img-container>button:nth-of-type(3):not(#ngx-fs-btn){bottom:115px}.img-container>button:nth-of-type(4):not(#ngx-fs-btn){bottom:165px}.img-container>button:nth-of-type(5):not(#ngx-fs-btn){bottom:215px}.img-container>button:nth-of-type(6):not(#ngx-fs-btn){bottom:265px}.img-container>button:nth-of-type(7):not(#ngx-fs-btn){bottom:315px}#ngx-fs-btn{top:15px}button.default{height:40px;width:40px;border:1px solid #555;border-radius:50%;background-color:#fff;opacity:.7;transition:opacity .2s}button.default:hover{opacity:1}button.default:disabled{opacity:.25}.nav-button-container>button{position:relative;right:0;margin:0 10px}.nav-button-container{text-align:center;position:absolute;z-index:98;bottom:10px;left:0;right:0}.spinner-container{position:absolute;left:0;right:0;top:0;bottom:0;width:60px;height:60px;margin:auto;padding:10px;background-color:rgba(0,0,0,.4);border-radius:25%}.spinner{border-width:7px;border-style:solid;border-color:#ccc #ccc #222;border-radius:50%;height:100%;width:100%;box-sizing:border-box;-webkit-animation:2s linear infinite rotation;animation:2s linear infinite rotation}@keyframes rotation{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(359deg)}}@-webkit-keyframes rotation{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(359deg)}}"]
|
|
14100
14106
|
}] }
|
|
14101
14107
|
];
|
|
@@ -14138,7 +14144,9 @@
|
|
|
14138
14144
|
*/
|
|
14139
14145
|
function () {
|
|
14140
14146
|
if (this.isFullscreen && screenfull.enabled) {
|
|
14141
|
-
|
|
14147
|
+
if (this.el != null)
|
|
14148
|
+
if (this.el.nativeElement != null)
|
|
14149
|
+
screenfull.request(this.el.nativeElement);
|
|
14142
14150
|
}
|
|
14143
14151
|
else if (screenfull.enabled) {
|
|
14144
14152
|
screenfull.exit();
|