Save a text file to disk * @param {string} text * @param {string} [filename] * @param {string} [type] * @memberof Utilities
(text, filename='text', type='text/plain')
| 133 | * @param {string} [type] |
| 134 | * @memberof Utilities */ |
| 135 | function saveText(text, filename='text', type='text/plain') |
| 136 | { saveDataURL(URL.createObjectURL(new Blob([text], {'type':type})), filename); } |
| 137 | |
| 138 | /** Save a canvas to disk |
| 139 | * @param {HTMLCanvasElement|OffscreenCanvas} canvas |
nothing calls this directly
no test coverage detected