@tindtechnologies/universalviewer
Version:
The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎
75 lines (74 loc) • 2.77 kB
TypeScript
import { BaseConfig, CenterPanelContent, CenterPanelOptions, DownloadDialogueContent, DownloadDialogueOptions, ModuleConfig, SettingsDialogueContent, SettingsDialogueOptions, ShareDialogueContent, ShareDialogueOptions, FooterPanelContent, FooterPanelOptions } from "@/content-handlers/iiif/BaseConfig";
type AVCenterPanelOptions = CenterPanelOptions & {
/** Determines if the poster image is expanded */
posterImageExpanded: boolean;
/** Determines if media errors are hidden */
hideMediaError: boolean;
/** Determines if parent is included in title */
includeParentInTitleEnabled: boolean;
/** Field for subtitle metadata */
subtitleMetadataField: string;
/** Determines if auto play is enabled */
autoPlay: boolean;
/** Determines if fast forward is enabled */
enableFastForward: boolean;
/** Determines if fast rewind is enabled */
enableFastRewind: boolean;
/** Ratio of the poster image */
posterImageRatio: number;
/** Determines if limit is set to range */
limitToRange: boolean;
/** Determines if ranges auto advance */
autoAdvanceRanges: boolean;
};
type AVCenterPanelContent = CenterPanelContent & {
delimiter: string;
};
type AVCenterPanel = {
options: AVCenterPanelOptions;
content: AVCenterPanelContent;
};
type AVDownloadDialogueOptions = DownloadDialogueOptions & {};
type AVDownloadDialogueContent = DownloadDialogueContent & {};
type AVDownloadDialogue = ModuleConfig & {
options: AVDownloadDialogueOptions;
content: AVDownloadDialogueContent;
};
type AVShareDialogueOptions = ShareDialogueOptions & {};
type AVShareDialogueContent = ShareDialogueContent & {};
type AVShareDialogue = ModuleConfig & {
options: AVShareDialogueOptions;
content: AVShareDialogueContent;
};
type AVSettingsDialogueOptions = SettingsDialogueOptions & {};
type AVSettingsDialogueContent = SettingsDialogueContent & {};
type AVSettingsDialogue = ModuleConfig & {
options: AVSettingsDialogueOptions;
content: AVSettingsDialogueContent;
};
type MobileFooterPanelOptions = FooterPanelOptions & {};
type MobileFooterPanelContent = FooterPanelContent & {
rotateRight: string;
moreInfo: string;
openLeftPanel: string;
closeLeftPanel: string;
openRightPanel: string;
closeRightPanel: string;
zoomIn: string;
zoomOut: string;
};
type MobileFooterPanel = ModuleConfig & {
options: MobileFooterPanelOptions;
content: MobileFooterPanelContent;
};
type Modules = {
avCenterPanel: AVCenterPanel;
downloadDialogue: AVDownloadDialogue;
shareDialogue: AVShareDialogue;
settingsDialogue: AVSettingsDialogue;
mobileFooterPanel: MobileFooterPanel;
};
export type Config = BaseConfig & {
modules: Modules;
};
export {};