Skip to content

textmode.export.js / JSONExportOptions

Type Alias: JSONExportOptions ​

ts
type JSONExportOptions = LayerExportOptions & object;

Options for exporting textmode content to JSON.

Type Declaration ​

NameTypeDescription
colorMode?JSONExportColorModeForeground and background color representation. Defaults to hex.
filename?stringFilename used by the download helper. A default name is used when omitted.
includeMetadata?booleanInclude the creation timestamp and generator metadata. Defaults to true.
pretty?boolean | numberPretty-print with two spaces when true, use the given indentation width when numeric, or produce compact JSON when false. Defaults to true.
target?JSONExportTargetExport one selected layer or the complete layer stack. Defaults to selected.