mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Allow user to set file name
This commit is contained in:
parent
7201198f23
commit
67e499321c
1 changed files with 1 additions and 0 deletions
|
@ -583,6 +583,7 @@ function exportAsPNG({
|
|||
}) {
|
||||
if (!elements.length) return window.alert("Cannot export empty canvas.");
|
||||
|
||||
const fileName = prompt("Enter name of project");
|
||||
// calculate smallest area to fit the contents in
|
||||
|
||||
let subCanvasX1 = Infinity;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue