diff options
Diffstat (limited to 'subprojects/frontend/src/graph/export/exportDiagram.tsx')
-rw-r--r-- | subprojects/frontend/src/graph/export/exportDiagram.tsx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/subprojects/frontend/src/graph/export/exportDiagram.tsx b/subprojects/frontend/src/graph/export/exportDiagram.tsx index 44489d28..6abbcfdf 100644 --- a/subprojects/frontend/src/graph/export/exportDiagram.tsx +++ b/subprojects/frontend/src/graph/export/exportDiagram.tsx | |||
@@ -147,6 +147,7 @@ function appendStyles( | |||
147 | svg: SVGSVGElement, | 147 | svg: SVGSVGElement, |
148 | theme: Theme, | 148 | theme: Theme, |
149 | colorNodes: boolean, | 149 | colorNodes: boolean, |
150 | hexTypeHashes: string[], | ||
150 | fontsCSS: string, | 151 | fontsCSS: string, |
151 | ): void { | 152 | ): void { |
152 | const cache = createCache({ | 153 | const cache = createCache({ |
@@ -159,6 +160,7 @@ function appendStyles( | |||
159 | const styles = serializeStyles([createGraphTheme], cache.registered, { | 160 | const styles = serializeStyles([createGraphTheme], cache.registered, { |
160 | theme, | 161 | theme, |
161 | colorNodes, | 162 | colorNodes, |
163 | hexTypeHashes, | ||
162 | noEmbedIcons: true, | 164 | noEmbedIcons: true, |
163 | }); | 165 | }); |
164 | const rules: string[] = [fontsCSS]; | 166 | const rules: string[] = [fontsCSS]; |
@@ -336,7 +338,14 @@ export default async function exportDiagram( | |||
336 | } else if (settings.format === 'svg' && settings.embedFonts) { | 338 | } else if (settings.format === 'svg' && settings.embedFonts) { |
337 | fontsCSS = await fetchFontCSS(); | 339 | fontsCSS = await fetchFontCSS(); |
338 | } | 340 | } |
339 | appendStyles(svgDocument, copyOfSVG, theme, colorNodes, fontsCSS); | 341 | appendStyles( |
342 | svgDocument, | ||
343 | copyOfSVG, | ||
344 | theme, | ||
345 | colorNodes, | ||
346 | graph.hexTypeHashes, | ||
347 | fontsCSS, | ||
348 | ); | ||
340 | 349 | ||
341 | if (settings.format === 'pdf') { | 350 | if (settings.format === 'pdf') { |
342 | const pdf = await serializePDF(copyOfSVG, settings); | 351 | const pdf = await serializePDF(copyOfSVG, settings); |