0.0.2 • Published 4 months ago
viewerjs-fun v0.0.2
viewerjs-fun
Functional invocation for viewerjs
Usage
/**
* @param image A picture or a set of pictures.
* @param options The options of the viewer.
*/
export function preview(image: string | string[], options?: Viewer.Options): void
/**
* @param image A set of pictures.
* @param indexOrSrc The index of the picture or the src to be displayed.
* @param options The options of the viewer.
*/
export function preview(image: string[], indexOrSrc: number | string, options?: Viewer.Options): void