diff --git a/src/components/ExportDialog.tsx b/src/components/ExportDialog.tsx index 8b45b16b3..fec4cc004 100644 --- a/src/components/ExportDialog.tsx +++ b/src/components/ExportDialog.tsx @@ -23,7 +23,10 @@ const probablySupportsClipboard = const scales = [1, 2, 3]; const defaultScale = scales.includes(devicePixelRatio) ? devicePixelRatio : 1; -type ExportCB = (elements: readonly ExcalidrawElement[], scale: number) => void; +type ExportCB = ( + elements: readonly ExcalidrawElement[], + scale?: number +) => void; export function ExportDialog({ elements, @@ -129,7 +132,7 @@ export function ExportDialog({ icon={link} title={t("buttons.getShareableLink")} aria-label={t("buttons.getShareableLink")} - onClick={() => onExportToBackend(exportedElements, 1)} + onClick={() => onExportToBackend(exportedElements)} /> diff --git a/src/index.tsx b/src/index.tsx index 8020eb5cd..9e4143378 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -552,7 +552,10 @@ export class App extends React.Component { if (this.canvas) exportCanvas( "backend", - exportedElements, + exportedElements.map(element => ({ + ...element, + isSelected: false + })), this.canvas, this.state );