mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
parent
9fa69448e4
commit
157f0eae0c
1 changed files with 6 additions and 3 deletions
|
@ -136,9 +136,12 @@ export const SidePanel: React.FC<SidePanelProps> = ({
|
|||
syncActionResult={syncActionResult}
|
||||
elements={elements}
|
||||
appState={appState}
|
||||
onExportCanvas={(type: ExportType) =>
|
||||
exportCanvas(type, elements, canvas, appState)
|
||||
}
|
||||
onExportCanvas={(type: ExportType) => {
|
||||
const exportedElements = elements.some(element => element.isSelected)
|
||||
? elements.filter(element => element.isSelected)
|
||||
: elements;
|
||||
return exportCanvas(type, exportedElements, canvas, appState);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue