Optionalconfig: SettingsConfig<EmptySettings>ReadonlynameDisplay name of the plugin
ReadonlysettingsIts settings: those saved in the local storage set, then config.
ReadonlyviewerStatic ReadonlyToolbarToolbar items provided by the plugin
Toolbar item opening the given document in a DocumentViewerWidget.
List of plugins this plugin depends on
Whether the plugin has at least one setting an interface shows (not hidden).
Called when the plugin is registered in the viewer.
Called when the plugin is unregistred from the viewer.
StaticCreate
Plugin registering the
DocumentViewerwidget, used to display a document (pdf, image, video, audio) in the viewport. Open it with the ShowDocumentViewerWidgetToolbarItem or anOpenWidgetCommand.Requires the
Viewportplugin to be registered. Call setupLegacyPluginsTranslation once i18next is initialized to load its translations.