Skip to main content

Class: DropzonePlugin

Plugins.DropzonePlugin

Hierarchy

Implements

Properties

PluginType

Static Readonly PluginType: "Dropzone"

Defined in

webgi/src/plugins/DropzonePlugin.ts:11


importerParams

importerParams: Object

Type declaration

NameType
autoScaleboolean
autoScaleRadiusnumber
pseudoCenterboolean
autoCenterboolean
autoImportboolean
autoAddboolean
centerOffsetVector3

Defined in

webgi/src/plugins/DropzonePlugin.ts:14


dependencies

dependencies: typeof AssetManagerPlugin[]

Implementation of

IViewerPlugin.dependencies

Defined in

webgi/src/plugins/DropzonePlugin.ts:24


uiConfig

uiConfig: UiObjectConfig<any, string>

Implementation of

IUiConfigContainer.uiConfig

Defined in

webgi/src/plugins/DropzonePlugin.ts:97

Methods

addEventListener

addEventListener(type, listener): void

Adds a listener to an event type.

Parameters

NameType
type"drop"
listener(event: IEvent<"drop">) => void

Returns

void

Implementation of

IViewerPlugin.addEventListener

Inherited from

SimpleEventDispatcher.addEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:48


hasEventListener

hasEventListener(type, listener): boolean

Checks if listener is added to an event type.

Parameters

NameType
type"drop"
listener(event: IEvent<"drop">) => void

Returns

boolean

Implementation of

IViewerPlugin.hasEventListener

Inherited from

SimpleEventDispatcher.hasEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:56


removeEventListener

removeEventListener(type, listener): void

Removes a listener from an event type.

Parameters

NameType
type"drop"
listener(event: IEvent<"drop">) => void

Returns

void

Implementation of

IViewerPlugin.removeEventListener

Inherited from

SimpleEventDispatcher.removeEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:63


dispatchEvent

dispatchEvent(event): void

Fire an event type.

Parameters

NameType
eventIEvent<"drop">

Returns

void

Implementation of

IViewerPlugin.dispatchEvent

Inherited from

SimpleEventDispatcher.dispatchEvent

Defined in

webgi/src/helpers/EventDispatcher.ts:74


onAdded

onAdded(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onAdded

Defined in

webgi/src/plugins/DropzonePlugin.ts:31


promptForFile

promptForFile(): void

Returns

void

Defined in

webgi/src/plugins/DropzonePlugin.ts:74


onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onDispose

Defined in

webgi/src/plugins/DropzonePlugin.ts:79


onRemove

onRemove(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onRemove

Defined in

webgi/src/plugins/DropzonePlugin.ts:82

Constructors

constructor

new DropzonePlugin(_domElement?)

Parameters

NameType
_domElement?HTMLElement

Overrides

SimpleEventDispatcher.constructor

Defined in

webgi/src/plugins/DropzonePlugin.ts:27

Accessors

allowedExtensions

get allowedExtensions(): undefined | string[]

Returns

undefined | string[]

Defined in

webgi/src/plugins/DropzonePlugin.ts:88

set allowedExtensions(value): void

Parameters

NameType
valueundefined | string[]

Returns

void

Defined in

webgi/src/plugins/DropzonePlugin.ts:92