UNPKG

@hmcts/media-viewer

Version:
57 lines 3.02 kB
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { PrintService } from '../../print.service'; import { AnnotationSet } from '../../annotations/annotation-set/annotation-set.model'; import { ToolbarEventService } from '../../toolbar/toolbar-event.service'; import { ResponseType, ViewerException } from '../viewer-exception.model'; import { ViewerUtilService } from '../viewer-util.service'; import { ToolbarButtonVisibilityService } from '../../toolbar/toolbar-button-visibility.service'; import { Store } from '@ngrx/store'; import * as fromStore from '../../store/reducers/reducers'; import { ViewerEventService } from '../viewer-event.service'; import * as i0 from "@angular/core"; export declare class ImageViewerComponent implements OnInit, OnDestroy, OnChanges { private store; private readonly printService; private readonly viewerUtilService; readonly toolbarEvents: ToolbarEventService; readonly toolbarButtons: ToolbarButtonVisibilityService; private viewerEvents; url: string; downloadFileName: string; enableAnnotations: boolean; annotationSet: AnnotationSet | null; height: string; mediaLoadStatus: EventEmitter<ResponseType>; imageViewerException: EventEmitter<ViewerException>; errorMessage: string; img: ElementRef; rotation: number; zoom: number; private subscriptions; private viewerException; private response; showCommentsPanel: boolean; enableGrabNDrag: boolean; imageHeight: number; imageWidth: number; imageLeft: number; imageTop: number; constructor(store: Store<fromStore.AnnotationSetState>, printService: PrintService, viewerUtilService: ViewerUtilService, toolbarEvents: ToolbarEventService, toolbarButtons: ToolbarButtonVisibilityService, viewerEvents: ViewerEventService); ngOnInit(): void; onImageViewerClick(event: MouseEvent): void; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; private rotateImage; private setZoom; private stepZoom; private download; setZoomValue(zoomValue: any): Promise<unknown>; calculateZoomValue(zoomValue: any, increment?: number): number; onLoadError(url: any): void; onLoad(img: any): void; initAnnoPage(img: any): void; toggleCommentsSummary(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ImageViewerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ImageViewerComponent, "mv-image-viewer", never, { "url": { "alias": "url"; "required": false; }; "downloadFileName": { "alias": "downloadFileName"; "required": false; }; "enableAnnotations": { "alias": "enableAnnotations"; "required": false; }; "annotationSet": { "alias": "annotationSet"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, { "mediaLoadStatus": "mediaLoadStatus"; "imageViewerException": "imageViewerException"; }, never, never, false, never>; } //# sourceMappingURL=image-viewer.component.d.ts.map