///
//@ts-ignore
import React, { Component } from 'react';
import { GcTiffPane } from './../ImagePanel/GcTiffPane';
import { GcIcoPane } from './../ImagePanel/GcIcoPane';
import { GcImgPane } from './../ImagePanel/GcImgPane';
import { ImageFormatCode, GcImageViewerRunEventsSink, OpenParameters } from '../Models/Types';
import { ViewerOptions } from '../ViewerOptions';
import { GcPaneBase } from '../ImagePanel/GcPaneBase';
import { GcImageViewer } from '../GcImageViewer';
import { GcPanSupport } from '../Utils/GcPanSupport';
import { ImageMimeType } from '../Utils/ImageFormatUtils';
/**
* Image pane view.
* @ignore exclude from docs
**/
export declare class ImagePaneView extends Component {
private _openParams;
private _activePane?;
private _options;
/**
* ImagePane view, used as scroll container.
**/
private _imagePaneViewElement;
_imageUrl: string;
_imagePane: GcImgPane;
_tiffPane: GcTiffPane;
_icoPane: GcIcoPane;
initialized: boolean;
imageUrl: string;
private _viewer;
private _originalImageDataUrl;
private _scaleFactor;
private _panSupport?;
private _initialFrameIndex?;
private _naturalSize;
private _imageFormat;
private _watermark;
constructor(props: any, state: any);
render(): React.JSX.Element;
componentDidMount(): void;
componentWillUnmount(): void;
componentDidUpdate(): void;
get panSupport(): GcPanSupport | undefined;
get options(): ViewerOptions;
set options(opts: ViewerOptions);
invalidate(): void;
get pageScale(): number;
set pageScale(zoomVal: number);
get actualZoomFactor(): number;
setPageScaleToCursor(zoomVal: number): void;
private setScaleToWidthInternal;
setScaleToWidth(): void;
setScaleToWholeImage(): void;
/**
* Gets the active image DPI adaptive natural size.
* This is the image size that will be used to display the image at 100%.
* The adaptiveNaturalSize property is used for the actual size calculations.
**/
get adaptiveNaturalSize(): {
width: number;
height: number;
};
/**
* Retrieves the initial frame index.
*
* If the initial frame index is not set, this method returns 0 as the default value.
*
* @returns {number} The initial frame index, or 0 if not set.
*/
get initialFrameIndex(): number;
/**
* Gets the active image natural size.
* The natural size is the image's width/height if drawn with nothing constraining its width/height,
* this is the number of CSS pixels wide the image will be.
**/
get naturalSize(): {
width: number;
height: number;
};
/**
* Gets the active image actual size.
**/
get actualSize(): {
width: number;
height: number;
};
set actualSize(size: {
width: number;
height: number;
});
updateRightSidebarMargin(): void;
centerActiveImageElement(): void;
updateActualSize(): void;
onScaleChanged(): void;
onImageNaturalSizeChanged(size: {
width: number;
height: number;
}): void;
onWindowResize(): void;
updateToSpecialZoomMode(): void;
get imagePaneViewElement(): HTMLDivElement;
get imagePaneViewContentElement(): HTMLElement;
init(): void;
/**
* Gets active image pane if any.
**/
get activePane(): GcPaneBase;
get imageFormat(): ImageFormatCode;
set imageFormat(imageFormat: ImageFormatCode);
get viewer(): GcImageViewer;
set viewer(viewer: GcImageViewer);
/**
* Creates image pane for the given image format.
* @param imageFormat
*/
createImagePane(imageFormat: ImageFormatCode, uri: string): GcPaneBase;
generateFileName(ext: string): string;
getOriginalImageDataUrl(): string;
getImageDataUrl(): string;
setImageDataUrl(dataUrl: any): Promise;
get fileName(): string;
get fileNameExt(): string;
/**
* Download the image file to local device.
* @param fileName
*/
downloadImage(fileName?: string, original?: boolean, convertToFormat?: ImageFormatCode | ImageMimeType): Promise;
dispose(): void;
private openInternal;
close(): Promise;
open(sink: GcImageViewerRunEventsSink, uri: string | Uint8Array, params?: OpenParameters): Promise;
get framesCount(): number;
get frameIndex(): number;
set frameIndex(ind: number);
private _closeActivePane;
private _ensureWatermark;
showWatermark(watermark?: string): void;
}