Name SVG export after current MCM (e.g. MCM09_Detailed_View.svg)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
igurielidze 2026-03-30 20:42:39 +04:00
parent bf0eced44c
commit 37f3700a18

View File

@ -248,7 +248,8 @@ export async function exportSVG() {
}
lines.push('</svg>');
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 <g> with id/label */