You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2020. It is now read-only.
| [width](#width) | Number | window.innerWidth | The width of Excalidraw component |
89
93
| [height](#height) | Number | window.innerHeight | The height of Excalidraw component |
90
-
|[onResize](#onResize)| Function || This callback will be called when window resizes |
91
94
| [initialData](#initialData) | [ExcalidrawElement[]](https://github.com/excalidraw/excalidraw-embed/blob/58178c388ae577140a1c679b5733f33e3722498a/src/element/types.ts#L44) | [] | The initial data with which app loads. |
92
95
| [onChange](#onChange) | Function | | This callback is triggered whenever the component updates due to any change. This callback will receive the excalidraw elements and the current app state. |
93
96
| [options](#options) | Object | Each option has a default value. See [options](#options) section for more details | Options to be passed to Excalidraw |
@@ -106,12 +109,6 @@ This props defines the width of the Excalidraw component. Defaults to `window.in
106
109
107
110
This props defines the height of the Excalidraw component. Defaults to `window.innerHeight` if not passed.
108
111
109
-
<aname="onResize"><a/>
110
-
111
-
##### onResize
112
-
113
-
If this callback is passed, it gets triggered when window resizes. Some calculations which you might want to do here is calculating width and height of Excalidraw and pass it. Incase the updated width and height is not passed, then it will not get updated.
0 commit comments