Class FileTransferPlugin

File Transfer Plugin

Provides a way to extend the viewer.export functionality with custom actions. Used in AWSClientPlugin to upload files directly to S3.

Hierarchy (view full)

Constructors

Properties

_dirty: boolean = false
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<"update" | "dispose" | "preRender" | "postRender" | "preFrame" | "postFrame" | "*" | "addPlugin" | "removePlugin" | "renderEnabled" | "renderDisabled", ((e) => void)> = {}

Type declaration

actions: {
    exportFile: ((blob, name, _onProgress?) => Promise<void>);
} = ...

Type declaration

  • exportFile: ((blob, name, _onProgress?) => Promise<void>)
      • (blob, name, _onProgress?): Promise<void>
      • Parameters

        • blob: Blob
        • name: string
        • Optional _onProgress: ((d) => void)
            • (d): void
            • Parameters

              • d: {
                    progress?: number;
                    state?: string;
                }
                • Optional progress?: number
                • Optional state?: string

              Returns void

        Returns Promise<void>

constructor: typeof AViewerPluginSync & typeof AViewerPlugin
defaultActions: {
    exportFile: ((blob, name, _onProgress?) => Promise<void>);
} = ...

Type declaration

  • exportFile: ((blob, name, _onProgress?) => Promise<void>)
      • (blob, name, _onProgress?): Promise<void>
      • Parameters

        • blob: Blob
        • name: string
        • Optional _onProgress: ((d) => void)
            • (d): void
            • Parameters

              • d: {
                    progress?: number;
                    state?: string;
                }
                • Optional progress?: number
                • Optional state?: string

              Returns void

        Returns Promise<void>

enabled: boolean = true
toJSON: any = undefined
uiConfig?: UiObjectConfig<any, string, any> = undefined
OldPluginType?: string
PluginType: "FileTransferPlugin" = 'FileTransferPlugin'

Accessors

Methods

  • Parameters

    • data: {
          path: string;
          progress?: number;
          state: string;
      }
      • path: string
      • Optional progress?: number
      • state: string

    Returns void

Generated using TypeDoc