ui.startDragToPoint

API reference for the ui.startDragToPoint method.

Adds the specified element or content to fixed designs, which use a coordinate-based positioning system at the end of a drag event.

#eventDragStartEvent<E>
Required

A drag start event.

Properties of event
#currentTargetE
Required
#dragDataobject
Required

Element or content to be added to the design at the end of the drag event.

Audio track to be added to the design at the end of a drag event.

#durationMsnumber
Required

The duration of the audio track, in milliseconds.

#resolveAudioReffunction
Required

A function that returns a reference (ref) to an audio asset in Canva's backend.

Returns

A Promise that resolves with the following object:

#refAudioRef

A unique identifier that references an audio asset in Canva's backend.

#titlestring
Required

A human readable title for the audio track.

#typestring
Required

The type of element.

This must be "audio".

Promise<void>