Interface IViewerPluginSync<TViewer>

Interface for Viewer Plugins

interface IViewerPluginSync<TViewer> {
    constructor: {
        OldPluginType?: string;
        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: {
    OldPluginType?: string;
    PluginType: string;
}

Type declaration

  • Optional OldPluginType?: string
  • 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