aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/graph/export/exportDiagram.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/graph/export/exportDiagram.tsx')
-rw-r--r--subprojects/frontend/src/graph/export/exportDiagram.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/subprojects/frontend/src/graph/export/exportDiagram.tsx b/subprojects/frontend/src/graph/export/exportDiagram.tsx
index cd374d23..44489d28 100644
--- a/subprojects/frontend/src/graph/export/exportDiagram.tsx
+++ b/subprojects/frontend/src/graph/export/exportDiagram.tsx
@@ -340,7 +340,7 @@ export default async function exportDiagram(
340 340
341 if (settings.format === 'pdf') { 341 if (settings.format === 'pdf') {
342 const pdf = await serializePDF(copyOfSVG, settings); 342 const pdf = await serializePDF(copyOfSVG, settings);
343 await saveBlob(pdf, 'graph.pdf', { 343 await saveBlob(pdf, `${graph.name}.pdf`, {
344 id: EXPORT_ID, 344 id: EXPORT_ID,
345 types: [ 345 types: [
346 { 346 {
@@ -359,7 +359,7 @@ export default async function exportDiagram(
359 if (mode === 'copy') { 359 if (mode === 'copy') {
360 await copyBlob(png); 360 await copyBlob(png);
361 } else { 361 } else {
362 await saveBlob(png, 'graph.png', { 362 await saveBlob(png, `${graph.name}.png`, {
363 id: EXPORT_ID, 363 id: EXPORT_ID,
364 types: [ 364 types: [
365 { 365 {
@@ -374,7 +374,7 @@ export default async function exportDiagram(
374 } else if (mode === 'copy') { 374 } else if (mode === 'copy') {
375 await copyBlob(serializedSVG); 375 await copyBlob(serializedSVG);
376 } else { 376 } else {
377 await saveBlob(serializedSVG, 'graph.svg', { 377 await saveBlob(serializedSVG, `${graph.name}.svg`, {
378 id: EXPORT_ID, 378 id: EXPORT_ID,
379 types: [ 379 types: [
380 { 380 {