Event Handlers.

Classes

EditedEvent

Dispatched when a mash Edit has been done or undone.

Extends CustomEvent<UndoableEdit>.

new EditedEvent(detail): EditedEvent

ParameterTypeDescription
detailUndoableEdit

Returns EditedEvent. Overrides CustomEvent<UndoableEdit>.constructor.

PropertyModifierType
Typestaticstring

ImportEvent

Dispatch to import file(s) and get promise for corresponding asset objects.

Extends CustomEvent<ImportEventDetail>.

new ImportEvent(fileList): ImportEvent

ParameterTypeDescription
fileListFileList

Returns ImportEvent. Overrides CustomEvent<ImportEventDetail>.constructor.

PropertyModifierType
Typestaticstring

ImportFileEvent

Dispatch to import a file and get promise for corresponding asset object.

Extends CustomEvent<ImportEventFileDetail>.

new ImportFileEvent(file, source?): ImportFileEvent

ParameterTypeDescription
fileFile
source?string

Returns ImportFileEvent. Overrides CustomEvent<ImportEventFileDetail>.constructor.

PropertyModifierType
Typestatic"import"

PickedEvent

Dispatch to retrieve the browser content.

Extends CustomEvent<EventPickedDetail>.

new PickedEvent(picker): PickedEvent

ParameterTypeDescription
pickerstring

Returns PickedEvent. Overrides CustomEvent<EventPickedDetail>.constructor.

PropertyModifierType
Typestaticstring

ScalarPropertyEvent

Dispatch to retrieve selected properties.

Extends CustomEvent<ScalarPropertyEventDetail>.

new ScalarPropertyEvent(propertyId): ScalarPropertyEvent

ParameterTypeDescription
propertyIdstring

Returns ScalarPropertyEvent. Overrides CustomEvent<ScalarPropertyEventDetail>.constructor.

PropertyModifierType
Typestaticstring

ScrollRootEvent

Dispatch to retrieve the root element that is scrolled.

Extends CustomEvent<object>.

new ScrollRootEvent(…args): ScrollRootEvent

ParameterTypeDescription
argsany[]

Returns ScrollRootEvent. Overrides CustomEvent<{ root?: Element; }>.constructor.

PropertyModifierType
Typestaticstring

SignalIdsEvent

Dispatch to retreve the property ids of the mash's current targets.

Extends CustomEvent<SignalIdsEventDetail>.

new SignalIdsEvent(target, signalIds?): SignalIdsEvent

ParameterTypeDescription
targetstring
signalIds?`${string}.${string}`[]

Returns SignalIdsEvent. Overrides CustomEvent<SignalIdsEventDetail>.constructor.

PropertyModifierType
Typestaticstring

Interfaces

EventDispatcherListeners<T>

Extends Record<string, EventDispatcherListener<T>>.

Type ParameterDefault type
TMixinArg

EventHandler<T>

Type ParameterDefault type
TEvent

EventHandler(event): void

ParameterType
eventT

Returns void.

EventPickedDetail

PropertyType
picked?string
pickerstring

ImportEventDetail

PropertyType
fileListFileList
promise?Promise<StorableMedia[]>

ImportEventFileDetail

PropertyType
fileFile
promise?Promise<DataOrError<StorableMedia>>
source?string

ScalarPropertyEventDetail

PropertyType
propertyIdstring
scalarProperty?ScalarProperty

SignalIdsEventDetail

PropertyType
signalIds`${string}.${string}`[]
targetstring

Type Aliases

EventDispatcherListener<T>

EventDispatcherListener<T>: (event) => void

Type ParameterDefault type
TMixinArg
ParameterType
eventCustomEvent<T>

Returns void.

EventListeners

EventListeners: Record<string, EventListener>

ListenersFunction

ListenersFunction: () => EventDispatcherListeners

Returns EventDispatcherListeners.

Variables

$CustomEvent

const $CustomEvent: "CustomEvent"

Functions

ClientRawImportListeners

ClientRawImportListeners(): EventListeners

Returns EventListeners.

ClientTextImportListeners

ClientTextImportListeners(): EventListeners

Returns EventListeners.

stopEvent

stopEvent(event): void

ParameterType
eventEvent

Returns void.