API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagecreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignMetadatagetDesignTokeninitAppElementoverlay.registerOnCanOpenopenDesignrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointui.startDrag
Intents: data
Intents: design
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInfonotification.addToastrequestOpenExternalUrl
prepareDesignEditor
API reference for the intents prepareDesignEditor method.
This version of the API is a preview. Preview APIs are unstable and may change without warning. You can't release public apps using this API until it's stable.
Prepares a DesignEditor Intent.
Usage
import { prepareDesignEditor } from '@canva/intents/design';prepareDesignEditor({render: async () => {// TODO: Implement the logic to render your app's UI},});
TSX
Parameters
implementation
DesignEditorIntent
RequiredMain interface for implementing the DesignEditor intent.
Implementing the DesignEditor Intent enables apps to assist users in editing designs, by presenting interactive and creative tooling alongside the Canva design surface.
render
function
RequiredRenders the UI containing the app’s functionality.
Example
function render() {// render your UI using your preferred framework}
TSX
Returns
void
Returns
void