Skip to content

textmode.export.js / TextmodeExportAPI

Interface: TextmodeExportAPI

Runtime export helpers that createExportPlugin attaches to the Textmodifier instance.

Example

Properties

PropertyTypeDescription
exportOverlayExportOverlayControllerController for managing the export overlay UI visibility at runtime.

Methods

MethodDescription
saveCanvasSaves the current canvas content to an image file ('png' by default).
copyCanvasCopies the current canvas to the user's clipboard as an image.
saveSVGDownloads the selected layer as an SVG file.
saveStringsDownloads the selected layer's text content as a plain-text file.
toSVGGenerates SVG markup for the selected layer.
toStringProduces the selected layer's text content as a string.
toJSONProduces the selected layer or layer stack as structured JSON data.
toJSONStringProduces the selected layer or layer stack as a JSON string.
saveJSONDownloads the selected layer or layer stack as a JSON file.
saveGIFRecords an animated GIF and saves it to disk.
saveVideoCaptures a video and saves it to disk ('mp4' by default).