mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-11 11:30:07 +02:00

committed by
GitHub

parent
9fa69448e4
commit
157f0eae0c
@@ -136,9 +136,12 @@ export const SidePanel: React.FC<SidePanelProps> = ({
|
|||||||
syncActionResult={syncActionResult}
|
syncActionResult={syncActionResult}
|
||||||
elements={elements}
|
elements={elements}
|
||||||
appState={appState}
|
appState={appState}
|
||||||
onExportCanvas={(type: ExportType) =>
|
onExportCanvas={(type: ExportType) => {
|
||||||
exportCanvas(type, elements, canvas, appState)
|
const exportedElements = elements.some(element => element.isSelected)
|
||||||
}
|
? elements.filter(element => element.isSelected)
|
||||||
|
: elements;
|
||||||
|
return exportCanvas(type, exportedElements, canvas, appState);
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user