Skip to content

textmode.export.js / SVGExportOptions

Type Alias: SVGExportOptions

ts
type SVGExportOptions = LayerExportOptions & object;

Options for exporting the textmode content to SVG format.

Type Declaration

NameTypeDescription
filename?stringThe filename to save the SVG file as. If not provided, a default filename is used.
includeBackgroundRectangles?booleanWhether to include cell background rectangles in the SVG output. When false, only the character paths are included. Defaults to true.
drawMode?"fill" | "stroke"The drawing mode for ASCII characters. When set to 'fill', characters are rendered as filled shapes. When set to 'stroke', characters are rendered as outlines. Defaults to 'fill'.
strokeWidth?numberThe stroke width to use when drawMode is set to 'stroke'. Defaults to 1.0.