导出svg显示不全 #2899
Unanswered
LXY12121234
asked this question in
Q&A
导出svg显示不全
#2899
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
代码:
const DownloadSvg = () => { if (!graph) { return; } const theme = editorService.themeService.getCurrentTheme(); setTimeout(() => { graph.toSVG((dataUri: string) => { DataUri.downloadDataUri(DataUri.svgToDataUrl(dataUri),
${tableName}.svg); }, { copyStyles: false, stylesheet: theme.type === 'light' ? svgStylesheetLight : svgStylesheetDark, }) }, 1000); }
下载的图片:
![1668676638834](https://user-images.githubusercontent.com/52768004/202405691-a53f0a5c-7875-4ca7-8ef8-d7bbc5cbf44b.png)
Beta Was this translation helpful? Give feedback.
All reactions