mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
This reverts commit 82f559f826
.
This commit is contained in:
parent
82f559f826
commit
d603921234
7 changed files with 60 additions and 86 deletions
|
@ -478,23 +478,18 @@ export class App extends React.Component<{}, AppState> {
|
|||
appState={this.state}
|
||||
actionManager={this.actionManager}
|
||||
syncActionResult={this.syncActionResult}
|
||||
onExportToPng={(exportedElements, scale) => {
|
||||
onExportToPng={exportedElements => {
|
||||
if (this.canvas)
|
||||
exportCanvas("png", exportedElements, this.canvas, {
|
||||
exportBackground: this.state.exportBackground,
|
||||
name: this.state.name,
|
||||
viewBackgroundColor: this.state.viewBackgroundColor,
|
||||
scale
|
||||
});
|
||||
exportCanvas("png", exportedElements, this.canvas, this.state);
|
||||
}}
|
||||
onExportToClipboard={(exportedElements, scale) => {
|
||||
onExportToClipboard={exportedElements => {
|
||||
if (this.canvas)
|
||||
exportCanvas("clipboard", exportedElements, this.canvas, {
|
||||
exportBackground: this.state.exportBackground,
|
||||
name: this.state.name,
|
||||
viewBackgroundColor: this.state.viewBackgroundColor,
|
||||
scale
|
||||
});
|
||||
exportCanvas(
|
||||
"clipboard",
|
||||
exportedElements,
|
||||
this.canvas,
|
||||
this.state
|
||||
);
|
||||
}}
|
||||
/>
|
||||
{this.actionManager.renderAction(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue