tldraw/packages
Steve Ruiz 57fcb3d07b
[feature] Asset props (#1824)
This PR adds additional props to the <Tldraw> component for setting the
maximum asset size, maximum image dimensions, accepted image types, and
accepted video types. It adds an example for using these properties and
for uploading image assets.

### Change Type

- [x] `minor` — New feature

### Test Plan

1. Try (and fail) to upload image types other than the default types.
2. Try (and fail) to upload images / videos larger than 10mb.
3. Use the example to customize the properties.

### Release Notes

- [@tldraw/tldraw] add asset props
2023-08-25 17:30:09 +00:00
..
assets [feature] Add val town embed (#1777) 2023-07-31 15:44:33 +00:00
editor [fix] text editing outline when scaled (#1826) 2023-08-25 17:27:32 +00:00
state [improvement] More selection logic (#1806) 2023-08-13 15:55:24 +00:00
store SideEffectManager (#1785) 2023-08-02 11:05:14 +00:00
tldraw [feature] Asset props (#1824) 2023-08-25 17:30:09 +00:00
tlschema [fix] embeds switching / tldraw embed (#1792) 2023-08-03 14:55:46 +00:00
utils move some utils into tldraw/utils (#1750) 2023-07-19 10:50:40 +00:00
validate Add shapes to exports (#1776) 2023-07-28 16:08:59 +00:00