Skip to main content

Class: DropzonePlugin

Plugins.DropzonePlugin

Hierarchy​

  • SimpleEventDispatcher<"drop">

    ↳ DropzonePlugin

Implements​

Properties​

PluginType​

▪ Static Readonly PluginType: "Dropzone"


importerParams​

• importerParams: Object

Type declaration​

NameType
autoScaleboolean
autoScaleRadiusnumber
pseudoCenterboolean
autoCenterboolean
autoImportboolean
autoAddboolean
centerOffsetVector3

dependencies​

• dependencies: typeof AssetManagerPlugin[]

Implementation of​

IViewerPluginSync.dependencies


uiConfig​

• uiConfig: UiObjectConfig<any, string>

Implementation of​

IUiConfigContainer.uiConfig

Constructors​

constructor​

• new DropzonePlugin(_domElement?)

Parameters​

NameType
_domElement?HTMLElement

Overrides​

SimpleEventDispatcher<'drop'\>.constructor

Methods​

onAdded​

▸ onAdded(viewer): void

Parameters​

NameType
viewerViewerApp

Returns​

void

Implementation of​

IViewerPluginSync.onAdded


promptForFile​

▸ promptForFile(): void

Returns​

void


onRemove​

▸ onRemove(viewer): void

Parameters​

NameType
viewerViewerApp

Returns​

void

Implementation of​

IViewerPluginSync.onRemove

Accessors​

allowedExtensions​

• get allowedExtensions(): undefined | string[]

Returns​

undefined | string[]

• set allowedExtensions(value): void

Parameters​

NameType
valueundefined | string[]

Returns​

void