textmode.export.js / TextmodeExportAPI
Interface: TextmodeExportAPI
Runtime export helpers that createExportPlugin attaches to the Textmodifier instance.
Example
Properties
| Property | Type | Description |
|---|---|---|
exportOverlay | ExportOverlayController | Controller for managing the export overlay UI visibility at runtime. |
Methods
| Method | Description |
|---|---|
| saveCanvas | Saves the current canvas content to an image file ('png' by default). |
| copyCanvas | Copies the current canvas to the user's clipboard as an image. |
| saveSVG | Downloads the selected layer as an SVG file. |
| saveStrings | Downloads the selected layer's text content as a plain-text file. |
| toSVG | Generates SVG markup for the selected layer. |
| toString | Produces the selected layer's text content as a string. |
| toJSON | Produces the selected layer or layer stack as structured JSON data. |
| toJSONString | Produces the selected layer or layer stack as a JSON string. |
| saveJSON | Downloads the selected layer or layer stack as a JSON file. |
| saveGIF | Records an animated GIF and saves it to disk. |
| saveVideo | Captures a video and saves it to disk ('mp4' by default). |