mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 05:22:58 -05:00
Document.exportForScreens(exportFolder, exportFormat, options?, itemToExport?, fileNamePrefix?) runs document.exportForScreens with one format row. The option classes ExportForScreensOptionsJPEG, ExportForScreensOptionsPNG24, ExportForScreensOptionsPNG8, ExportForScreensOptionsWebOptimizedSVG and ExportForScreensPDFOptions, ExportForScreensItemToExport and the enumerations they use follow the public reference pages. An omitted options object takes a new one's defaults; a bad argument, an options object of another class and an item that names nothing throw before anything is written. The folder gets the same write-access check as a File opened for writing: a folder outside the script's folders is refused, and so is an existing file. A prefix character that a file name may not hold is written as "-". A Folder object passed to a host method now carries its path, as a File does; before, it arrived as an empty object. The script checker counts exportForScreens under filesWritten. Docs: docs/mcp.md, docs/target-app-parity.md, docs/gaps.md.