From 37f3700a183f83c712626ded228892fd6d834e9e Mon Sep 17 00:00:00 2001 From: igurielidze Date: Mon, 30 Mar 2026 20:42:39 +0400 Subject: [PATCH] Name SVG export after current MCM (e.g. MCM09_Detailed_View.svg) Co-Authored-By: Claude Opus 4.6 (1M context) --- svelte-app/src/lib/export.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/svelte-app/src/lib/export.ts b/svelte-app/src/lib/export.ts index 2229702..68342b6 100644 --- a/svelte-app/src/lib/export.ts +++ b/svelte-app/src/lib/export.ts @@ -248,7 +248,8 @@ export async function exportSVG() { } lines.push(''); - downloadBlob(new Blob([lines.join('\n')], { type: 'image/svg+xml' }), 'test_view.svg'); + const mcmName = layout.currentMcm || 'export'; + downloadBlob(new Blob([lines.join('\n')], { type: 'image/svg+xml' }), `${mcmName}_Detailed_View.svg`); } /** Emit EPC symbol — polyline + icon + right box, wrapped in with id/label */