Browse Source

docs: correct exportToBackend to onExportToBackend in README (#3952)

* docs: correct exportToBackend to onExportToBackend in README

* Update changelog with link to PR

* Add Excalidraw API title to changelog section

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
vanilla_orig
Pim Otte 4 years ago
parent
commit
5da3207633
No account linked to committer's email address

+ 6
- 0
src/packages/excalidraw/CHANGELOG.md View File

19
 
19
 
20
 - Prevent gradual misalignment of the canvas due to floating point rounding errors [#3833](https://github.com/excalidraw/excalidraw/pull/3833).
20
 - Prevent gradual misalignment of the canvas due to floating point rounding errors [#3833](https://github.com/excalidraw/excalidraw/pull/3833).
21
 
21
 
22
+## Excalidraw API
23
+
24
+### Docs
25
+
26
+- Correct exportToBackend in README to onExportToBackend [#3952](https://github.com/excalidraw/excalidraw/pull/3952)
27
+
22
 ## 0.9.0 (2021-07-10)
28
 ## 0.9.0 (2021-07-10)
23
 
29
 
24
 ## Excalidraw API
30
 ## Excalidraw API

+ 1
- 1
src/packages/excalidraw/README.md View File

591
 | Attribute | Type | Default | Description |
591
 | Attribute | Type | Default | Description |
592
 | --- | --- | --- | --- |
592
 | --- | --- | --- | --- |
593
 | `saveFileToDisk` | boolean | true | Implies if save file to disk button should be shown |
593
 | `saveFileToDisk` | boolean | true | Implies if save file to disk button should be shown |
594
-| `exportToBackend` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback is triggered when the shareable-link button is clicked in the export dialog. The link button will only be shown if this callback is passed. |
594
+| `onExportToBackend` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback is triggered when the shareable-link button is clicked in the export dialog. The link button will only be shown if this callback is passed. |
595
 | `renderCustomUI` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback should be supplied if you want to render custom UI in the export dialog. |
595
 | `renderCustomUI` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback should be supplied if you want to render custom UI in the export dialog. |
596
 
596
 
597
 #### `onPaste`
597
 #### `onPaste`

+ 1
- 1
src/packages/excalidraw/README_NEXT.md View File

597
 | Attribute | Type | Default | Description |
597
 | Attribute | Type | Default | Description |
598
 | --- | --- | --- | --- |
598
 | --- | --- | --- | --- |
599
 | `saveFileToDisk` | boolean | true | Implies if save file to disk button should be shown |
599
 | `saveFileToDisk` | boolean | true | Implies if save file to disk button should be shown |
600
-| `exportToBackend` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback is triggered when the shareable-link button is clicked in the export dialog. The link button will only be shown if this callback is passed. |
600
+| `onExportToBackend` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback is triggered when the shareable-link button is clicked in the export dialog. The link button will only be shown if this callback is passed. |
601
 | `renderCustomUI` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback should be supplied if you want to render custom UI in the export dialog. |
601
 | `renderCustomUI` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback should be supplied if you want to render custom UI in the export dialog. |
602
 
602
 
603
 #### `onPaste`
603
 #### `onPaste`

Loading…
Cancel
Save