Add a new template to the template list on the left sidebar.
the template definition including name, structure and icon
Applies editor settings.
set of settings client would like to apply.
Exports the current content of the canvas as a document format.
the document type in which to export, currently supported types: cxon.
The generated document as a string value.
Exports the current content of the canvas as an image.
currently supported image types: JPG, PNG, SVG, WEBP (WebP image format is partially supported on Safari).
Optional
exportOptions: ExportOptionssettings to be used for image export.
The generated image as a string value.
Retrieves the current settings of the editor.
Imports document. Content is displayed on the previously cleared canvas.
the document content. Source format determined automatically.
Optional
importOptions: ImportOptionsto configure import if differ from default. Default values are { clearCanvas: true, select: false, throwError: true, placement: 'TOP_LEFT', scale: 'NONE' }
Deregister a previously registered event handler.
the event type associated to the client event handler.
Optional
eventHandler: EventHandlerthe event handler function.
Register event handler.
passes the event type client needs notification for.
the event handler function.
Optional
eventInit: ReopenEventInitializerRemove a template from the template list on the left sidebar.
the template definition including name, structure and icon
Functions supported by Marvin.