Skip to content

textmode.export.js / ExportDefaults

Type Alias: ExportDefaults ​

ts
type ExportDefaults = object;

Per-format default options used to seed the overlay UI inputs at mount time and after a ExportOverlayController.resetDefaults call.

Each sub-object contains the library-chosen defaults for the fields that the overlay exposes. Top-level format controls which export format is selected in the overlay. You can read and override them at runtime via ExportOverlayController.getDefaults and ExportOverlayController.setDefaults.

Properties ​

format ​

ts
format: "txt" | "json" | "image" | "gif" | "video" | "svg";

Export format selected by default in the overlay.


gif ​

ts
gif: GIFOverlayDefaults;

image ​

ts
image: ImageOverlayDefaults;

json ​

ts
json: JSONOverlayDefaults;

svg ​

ts
svg: SVGOverlayDefaults;

txt ​

ts
txt: TXTOverlayDefaults;

video ​

ts
video: VideoOverlayDefaults;