Class CanvasSnapshotPlugin

Base Class for Sync Viewer Plugins

Hierarchy (view full)

Constructors

Properties

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

Type declaration

constructor: typeof AViewerPluginSync & typeof AViewerPlugin
defaultOptions: CanvasSnapshotOptions & {
    waitForProgressive?: boolean;
} = ...

Only for downloadSnapshot and functions using that

Type declaration

  • Optional waitForProgressive?: boolean
enabled: boolean = true
filename: string = 'snapshot.png'
uiConfig?: UiObjectConfig<any, string, any> = undefined
PluginType: "CanvasSnapshotPlugin" = 'CanvasSnapshotPlugin'

Accessors

Methods

  • Returns a data url of the screenshot of the viewer canvas

    Parameters

    • options: CanvasSnapshotOptions & {
          waitForProgressive?: boolean;
      } = {}

      waitForProgressive: wait for progressive rendering to finish, default: true

    Returns Promise<string>

Generated using TypeDoc