We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e975e0b commit c7a0de6Copy full SHA for c7a0de6
1 file changed
src/renderer/src/lib/ExportModal.svelte
@@ -158,14 +158,16 @@
158
},
159
);
160
161
- const legendImageUrl = await convertSvgToPng(legendTarget.firstChild as SVGElement, {
162
- left: 0,
163
- top: 0,
164
- width: (1000 * imageWidth) / imageHeight,
165
- height: 1000,
166
- outputWidth: imageWidth,
167
- outputHeight: imageHeight,
168
- }).then(convertBlobToDataUrl);
+ const legendImageUrl = $mapSettings.legend
+ ? await convertSvgToPng(legendTarget.firstChild as SVGElement, {
+ left: 0,
+ top: 0,
+ width: (1000 * imageWidth) / imageHeight,
+ height: 1000,
+ outputWidth: imageWidth,
+ outputHeight: imageHeight,
169
+ }).then(convertBlobToDataUrl)
170
+ : undefined;
171
172
const buffer = await convertSvgToPng(
173
solarSystemMap ? (solarSystemMapTarget.firstChild as SVGElement) : galaxyMapSvg,
0 commit comments