mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: Add onExportToBackend prop so host can handle it (#2612)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
b917e42694
commit
325d1bec91
11 changed files with 164 additions and 117 deletions
|
@ -345,7 +345,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
offsetLeft,
|
||||
} = this.state;
|
||||
|
||||
const { onCollabButtonClick } = this.props;
|
||||
const { onCollabButtonClick, onExportToBackend } = this.props;
|
||||
const canvasScale = window.devicePixelRatio;
|
||||
|
||||
const canvasWidth = canvasDOMWidth * canvasScale;
|
||||
|
@ -384,6 +384,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
toggleZenMode={this.toggleZenMode}
|
||||
lng={getLanguage().lng}
|
||||
isCollaborating={this.props.isCollaborating || false}
|
||||
onExportToBackend={onExportToBackend}
|
||||
/>
|
||||
{this.state.showStats && (
|
||||
<Stats
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue