"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
//import Viewer from 'viewerjs/dist/viewer';
const viewerjs_1 = __importDefault(require("viewerjs"));
require("viewerjs/dist/viewer.css");
const defaultOptions = {
    toolbar: false,
    title: false,
    navbar: false
};
function init(element) {
    // @ts-ignore
    if (element.viewer) {
        // @ts-ignore
        element.viewer.destroy();
    }
    return new viewerjs_1.default(element, defaultOptions);
}
exports.default = init;
