textmode.export.js / JSONExportOptions
Type Alias: JSONExportOptions
ts
type JSONExportOptions = LayerExportOptions & object;Options for exporting textmode content to JSON.
Type Declaration
| Name | Type | Description |
|---|---|---|
colorMode? | JSONExportColorMode | Foreground and background color representation. Defaults to hex. |
filename? | string | Filename used by the download helper. A default name is used when omitted. |
includeMetadata? | boolean | Include the creation timestamp and generator metadata. Defaults to true. |
pretty? | boolean | number | Pretty-print with two spaces when true, use the given indentation width when numeric, or produce compact JSON when false. Defaults to true. |
target? | JSONExportTarget | Export one selected layer or the complete layer stack. Defaults to selected. |