Support CSV graphs and improve the look and feel (#2495)

Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Lipis
2020-12-11 13:13:23 +02:00
committed by GitHub
parent 7bfe7a1924
commit b2d442abce
8 changed files with 153 additions and 154 deletions

View File

@ -990,7 +990,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
this.setState({ errorMessage: data.errorMessage });
} else if (data.spreadsheet) {
this.addElementsFromPasteOrLibrary(
renderSpreadsheet(this.state, data.spreadsheet, cursorX, cursorY),
renderSpreadsheet(data.spreadsheet, cursorX, cursorY),
);
} else if (data.elements) {
this.addElementsFromPasteOrLibrary(data.elements);