Audio track to be added to the design at the end of a drag event.
The type of element.
This must be "audio"
.
A function that returns a reference (ref) to an audio asset in Canva's backend.
Returns
A Promise
that resolves with the following object:
A unique identifier that references an audio asset in Canva's backend.
The duration of the audio track, in milliseconds.
A human readable title for the audio track.
Embed element to be added to the design at the end of a drag event.
The type of element.
This must be "embed"
.
The dimensions of the preview image.
Properties of previewSize
The URL of an image to display under the user's cursor during the drag and drop event.
The URL of media that can be embedded, such as the URL of a YouTube video.
This URL must be supported by the Iframely API.
Text element or content to be added to the design at the end of a drag event.
The type of element.
This must be "text"
.
The text content to drag.
The alignment of the text.
Default Value: "start"
The available options include:
"start"
"center"
"end"
"justify"
The weight (thickness) of the font.
Default Value: "normal"
The available options include:
"normal"
"thin"
"extralight"
"light"
"medium"
"semibold"
"bold"
"ultrabold"
"heavy"
The style of the font.
Default Value: "normal"
The available options include:
The decoration of the font.
Default Value: "none"
The available options include:
Video element or content to be added to the design at the end of a drag event.
The type of element.
This must be "video"
.
A function that returns a reference (ref) to a video asset in Canva's backend.
Returns
A Promise
that resolves with the following object:
A unique identifier that references a video asset in Canva's backend.
The dimensions of the preview image.
Properties of previewSize
The URL of an image to display under the user's cursor during the drag and drop event.
The dimensions of the full-size video.
- These dimensions are used when adding the video to the design
- If omitted, the
previewSize
dimensions are used as a fallback.
Properties of fullSize
Image element or content to be added to the design at the end of a drag event.
The type of element.
This must be "image"
.
The dimensions of the preview image.
Properties of previewSize
A function that returns a reference (ref) to an audio asset in Canva's backend.
Returns
A Promise
that resolves with the following object:
A unique identifier that references an image asset in Canva's backend.
The URL of an image to display under the user's cursor during the drag and drop event.
The dimensions of the full-size image.
Properties of fullSize