Skip to content

Commit

Permalink
feature: Load embedded images from excalidraw files
Browse files Browse the repository at this point in the history
This was contributed by @lionelhorn. Approach is to wait for
the "update" message that has the embedded files then create
`initialData` with the files and only then render the
Excalidraw component.

Mobx is used for state management replacing react `useState`.
Which is easier to get the code a bit cleaner code
than passing the setters of `useState` to the bridge.

Co-authored-by: Lionel <[email protected]>
  • Loading branch information
bric3 and lionelhorn committed Aug 27, 2024
1 parent 80c2bef commit fc21b8b
Show file tree
Hide file tree
Showing 10 changed files with 506 additions and 365 deletions.
2 changes: 2 additions & 0 deletions excalidraw-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"awesome-debounce-promise": "^2.1.0",
"mobx": "6.13.1",
"mobx-react": "9.1.1",
"react": "^18.0.0",
"react-app-rewired": "^2.1.8",
"react-dom": "^18.0.0",
Expand Down
Loading

0 comments on commit fc21b8b

Please sign in to comment.