tldraw/examples/tldraw-example
Milo Hill e62755ef10
Add support for persisting images/video in multiplayer (#475)
* Kee track of changed assets

* Add support for multiplayer image assets

* fix tests

* Add images

* Improve asset deletion

* Remove assets from document

* Test with v small image only

* Add test for deleteShapes

* Cleanup document assets

* Add multiplayer assets to www

* remove default storage root, which was preventing migration

* Update onAssetDelete flow, rename some files

* bump upload size to 5mb

* Fix freeze bug where image fails to load

* fix logic for removing assets

* Update useMultiplayerState.ts

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-01-10 15:13:52 +00:00
..
scripts [improvement] Multiplayer + cursors (#457) 2021-12-22 00:14:38 +00:00
src Add support for persisting images/video in multiplayer (#475) 2022-01-10 15:13:52 +00:00
card-repo.png Update READMEs (#290) 2021-11-18 15:07:55 +00:00
LICENSE Update documentation 2022-01-07 09:01:08 +00:00
package.json v1.4.3 2022-01-07 09:01:48 +00:00
README.md Update READMEs (#290) 2021-11-18 15:07:55 +00:00
tsconfig.json [improvement] Multiplayer + cursors (#457) 2021-12-22 00:14:38 +00:00

@tldraw/tldraw-example

An example project for @tldraw/tldraw.

To start this project:

  • run yarn start from the repository's root directory
  • open http://localhost:5420 in your browser