tldraw/examples/tldraw-example
Faraz Shaikh 1c65c031b2
Add Image and Video shapes (#460)
* Added image and video shapes

* Fixed bugs; Added optional onImageUpload callback

* Added id field to onImageUpload

* Added onImageDelete callback for cleanup

* Added firebase storage to multiplayer for media

* Added firebase storage to multiplayer for media

* Silence unnecessary TS errors

* Fixed bugs; Added tests

* Added tests

* Disable images for multiplayer example

* switch to assets in document, rather than on shapes, fix resize, fix sizes

* bump version, add migration for assets table

* Rename onImageUpload

* Add isPlaying state to video (not complete)

* Revert "Add isPlaying state to video (not complete)"

This reverts commit 3dc2ba703f4194eb7c47524d384dc8392daa18be.

* Adds controls when editing video, sync current time when cloning

* Remove unused tools

* avoid duplication in assets

* Remove unused image styles from style menu

* Fix placement of clone buttons

* Fix flag to hide image assets in multiplayer

* move getSizeFromDataUrl to filesystem

* Update VideoUtil.tsx

* Re-center video after it loads

* Add copy and paste support for assets

* Fix bug in state manager, remove unused assets on load, fix indicators

* Add multiplayer with images example

* Update MultiplayerEditor.tsx

* Add images to copy SVG

* tighten up some code around svg export

* Update TldrawApp.spec.ts

* Update useBoundsHandleEvents.tsx

* Reset image size by double clicking bounds

* fix reset size

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-12-25 17:06:33 +00:00
..
scripts [improvement] Multiplayer + cursors (#457) 2021-12-22 00:14:38 +00:00
src Add Image and Video shapes (#460) 2021-12-25 17:06:33 +00:00
card-repo.png Update READMEs (#290) 2021-11-18 15:07:55 +00:00
LICENSE [big chore] restore core to monorepo (#287) 2021-11-18 13:09:18 +00:00
package.json Add Image and Video shapes (#460) 2021-12-25 17:06:33 +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