import { IImageViewer } from "."; import { PluginType } from "../Core/ImageViewerPluginBase"; /** * Defines the interface for plugins used by `GcImageViewer` and `DsImageViewer`. * * The plugin system is now intended for **internal use only**. * Starting from version 9.0, only official plugins developed and distributed * as part of the product are supported. * * Custom or third-party plugins are no longer supported and may not function properly. * * Internal plugins will continue to use this interface to extend viewer functionality. */ export interface IViewerPlugin { /** * Unique plug-in identifier. **/ id: PluginType; /** * The method is called when the GcImageViewer component is initialized. * @param viewer **/ initialize(viewer: IImageViewer): void; /** * The method is called when the GcImageViewer component is about to be disposed. **/ dispose(): void; }