Revert "Set scale for export images (#416)" (#420)

This reverts commit 82f559f826.
This commit is contained in:
Timur Khazamov 2020-01-17 15:55:17 +03:00 committed by GitHub
parent 82f559f826
commit d603921234
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 60 additions and 86 deletions

View file

@ -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(