export diagram to HTML

This commit is contained in:
Jan Prochazka
2022-01-16 19:18:28 +01:00
parent 5752eaa2b4
commit 7f750077dd
6 changed files with 66 additions and 42 deletions

View File

@@ -0,0 +1,21 @@
const getDiagramExport = (html,css) => {
return `<html>
<meta charset='utf-8'>
<head>
<style>
${css}
</style>
<link rel="stylesheet" href='https://cdn.jsdelivr.net/npm/@mdi/font@6.5.95/css/materialdesignicons.css' />
</head>
<body class='theme-light'>
${html}
</body>
</html>`;
};
module.exports = getDiagramExport;