@mescius/dsimageviewer
Version:
Document Solutions Image Viewer
20 lines (19 loc) • 690 B
TypeScript
import { GcImageViewer } from "./GcImageViewer";
import { ViewerOptions } from "./ViewerOptions";
import ImageReportPlugin from "./plugin";
declare type ViewerState = {
settings: any;
activePanelId?: string | null;
isSidebarPinned: boolean;
};
export declare class GcImageViewerStateStorage {
private _viewer;
private _plugin;
constructor(_viewer: GcImageViewer, _plugin: ImageReportPlugin);
save(viewerStateArg?: Partial<ViewerState>): void;
load(options: ViewerOptions, initialViewWasSet: boolean): void;
onFileClosed(): void;
onFileOpenByData(fileData: Uint8Array): void;
onFileOpenByUrl(pdfUrl: string): void;
}
export {};