@tindtechnologies/universalviewer
Version:
The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎
41 lines (40 loc) • 1.97 kB
TypeScript
import { BaseExtension } from "../../modules/uv-shared-module/BaseExtension";
import { ContentLeftPanel } from "../../modules/uv-contentleftpanel-module/ContentLeftPanel";
import { DownloadDialogue } from "./DownloadDialogue";
import { FooterPanel } from "../../modules/uv-shared-module/FooterPanel";
import { HeaderPanel } from "../../modules/uv-shared-module/HeaderPanel";
import { HelpDialogue } from "../../modules/uv-dialogues-module/HelpDialogue";
import { MoreInfoRightPanel } from "../../modules/uv-moreinforightpanel-module/MoreInfoRightPanel";
import { SettingsDialogue } from "./SettingsDialogue";
import { ShareDialogue } from "./ShareDialogue";
import { ModelViewerCenterPanel } from "../../modules/uv-modelviewercenterpanel-module/ModelViewerCenterPanel";
import "./theme/theme.less";
import { AnnotationGroup } from "@iiif/manifold";
import { Config } from "./config/Config";
export default class ModelViewerExtension extends BaseExtension<Config> {
$downloadDialogue: JQuery;
$shareDialogue: JQuery;
$helpDialogue: JQuery;
$settingsDialogue: JQuery;
centerPanel: ModelViewerCenterPanel;
downloadDialogue: DownloadDialogue;
footerPanel: FooterPanel<Config["modules"]["footerPanel"]>;
headerPanel: HeaderPanel<Config["modules"]["headerPanel"]>;
helpDialogue: HelpDialogue;
leftPanel: ContentLeftPanel;
mobileFooterPanel: FooterPanel<Config["modules"]["footerPanel"]>;
rightPanel: MoreInfoRightPanel;
settingsDialogue: SettingsDialogue;
shareDialogue: ShareDialogue;
defaultConfig: Config;
create(): void;
createModules(): void;
render(): void;
checkForTarget(): void;
checkForAnnotations(): void;
annotate(annotations: AnnotationGroup[], terms?: string): void;
groupWebAnnotationsByTarget(annotations: any): AnnotationGroup[];
isLeftPanelEnabled(): boolean;
bookmark(): void;
getEmbedScript(template: string, width: number, height: number): string;
}