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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);