Interface IViewerPluginSync<TViewer>

Interface for Viewer Plugins

interface IViewerPluginSync<TViewer> {
    constructor: {
        PluginType: string;
    };
    dependencies?: Class<IViewerPluginSync<ThreeViewer>>[];
    dirty?: boolean;
    loadState?: ((prefix?, storage?) => Promise<void>);
    serializeWithViewer?: boolean;
    storeState?: ((prefix?, storage?, data?) => void);
    onAdded(viewer): void;
    onRemove(viewer): void;
}

Type Parameters

Hierarchy (view full)

Implemented by

Properties

constructor: {
    PluginType: string;
}

Type declaration

  • PluginType: string
dirty?: boolean
loadState?: ((prefix?, storage?) => Promise<void>)

Type declaration

    • (prefix?, storage?): Promise<void>
    • Parameters

      • Optional prefix: string
      • Optional storage: Storage

      Returns Promise<void>

serializeWithViewer?: boolean
storeState?: ((prefix?, storage?, data?) => void)

Type declaration

    • (prefix?, storage?, data?): void
    • Parameters

      • Optional prefix: string
      • Optional storage: Storage
      • Optional data: any

      Returns void

Methods

Generated using TypeDoc