No description
Find a file
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
.github Delete sponsors.yml 2021-11-19 14:14:45 +00:00
.husky [mega-chore] renaming (#223) 2021-11-06 11:16:30 +00:00
.vscode Add recommended extensions 2021-11-27 17:15:45 +00:00
apps Add support for persisting images/video in multiplayer (#475) 2022-01-10 15:13:52 +00:00
assets Add sponsor 2022-01-06 07:06:05 +00:00
examples Add support for persisting images/video in multiplayer (#475) 2022-01-10 15:13:52 +00:00
guides Fixed bunch of broken links (#471) 2021-12-29 06:39:08 +00:00
packages Add support for persisting images/video in multiplayer (#475) 2022-01-10 15:13:52 +00:00
.eslintignore Prepare for Publishing VS Code Extension (#227) 2021-11-10 15:35:51 +00:00
.eslintrc Prepare for Publishing VS Code Extension (#227) 2021-11-10 15:35:51 +00:00
.gitignore Add Image and Video shapes (#460) 2021-12-25 17:06:33 +00:00
.npmignore Replace 2021-08-10 17:12:55 +01:00
.prettierrc Prepare for Publishing VS Code Extension (#227) 2021-11-10 15:35:51 +00:00
CODE_OF_CONDUCT.md updates docs / readmes / adds contributor guide 2021-11-11 12:11:21 +00:00
CONTRIBUTING.md Update CONTRIBUTING.md 2021-11-23 15:09:51 +00:00
lerna.json v1.4.3 2022-01-07 09:01:48 +00:00
LICENSE.md Update documentation 2022-01-07 09:01:08 +00:00
package.json Fix/undo on menu open (#436) 2021-12-06 18:23:53 +00:00
README.md Add sponsor 2022-01-06 07:06:05 +00:00
repo-map.tldr [improvement] refactor multiplayer (#336) 2021-11-22 14:00:24 +00:00
setupTests.ts Adjusts small example, makes inputs unique to each instance 2021-09-08 17:18:43 +01:00
tsconfig.base.json [feature] Add grids (#344) 2021-11-26 15:14:10 +00:00
tsconfig.json [feature] Add grids (#344) 2021-11-26 15:14:10 +00:00
yarn.lock Add support for persisting images/video in multiplayer (#475) 2022-01-10 15:13:52 +00:00

A screenshot of the tldraw web app

Welcome to the tldraw monorepo.

🙌 Questions? Join the Discord channel or start a discussion.

💕 Love this project? Consider becoming a sponsor.

Thanks to our corporate sponsors:

...and to our individual sponsors!

Contents

This repository is a monorepo containing two packages:

  • packages/tldraw contains the source for the @tldraw/tldraw package. This is an editor as a React component named <Tldraw>. You can use this package to embed the tldraw editor in any React application.
  • packages/core contains the source for the @tldraw/core package. This is a renderer for React components in a canvas-style UI. It is used by @tldraw/tldraw as well as several other projects.

...and three apps:

...and three examples:

Discussion

Want to connect? Visit the Discord channel.

Contribution

Interested in contributing? See the contributing guide.

Support

Need help? Please open an issue for support.

License

This project is licensed under MIT.

If you're using the library in a commercial product, please consider becoming a sponsor.

Author