tldraw/assets/translations
Mitja Bezenšek 300466f52a
Add fit to content for frames. (#2275)
Adds Fit to content option for frames. This resizes the frames so that
the whole content fits. It also adds 50px padding on all sides so that
the content does not touch the frame's borders.



https://github.com/tldraw/tldraw/assets/2523721/b2f86e31-7dfb-495f-ac31-f1e0125e0af1



https://github.com/tldraw/tldraw/assets/2523721/e0a73d25-ac9f-4a35-a1fd-4aed7a5b151c



Fixes #1407

### Change Type

- [ ] `patch` — Bug fix
- [x] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [ ] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. Add some shapes.
2. Add a frame that encloses those shapes.
3. Right click on the frame and choose `Fit to content`
4. The frame should resize to fit all the children with some padding on
all sides of the frame.

- [x] Unit Tests
- [ ] End to end tests

### Release Notes

- Add Fit to content option to the context menu for frames. This resizes
the frames to correctly fit all their content.

---------

Co-authored-by: David Sheldrick <d.j.sheldrick@gmail.com>
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-12-07 12:57:56 +00:00
..
ar.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
ca.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
da.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
de.json Lokalise: Translations update (#1964) 2023-09-28 17:52:47 +00:00
en.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
es.json Update translations from community submissions (#2201) 2023-11-14 08:21:49 +00:00
fa.json Lokalise: Translations update (#1694) 2023-07-04 10:10:57 +00:00
fi.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
fr.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
gl.json Lokalise: Translations update (#1964) 2023-09-28 17:52:47 +00:00
he.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
hi-in.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
hu.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
it.json Lokalise: Translations update (#1572) 2023-06-12 12:29:07 +00:00
ja.json Update translations from community submissions (#2201) 2023-11-14 08:21:49 +00:00
ko-kr.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
ku.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
languages.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
main.json Add fit to content for frames. (#2275) 2023-12-07 12:57:56 +00:00
my.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
ne.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
no.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
pl.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
pt-br.json improves translation into pt-br (#2231) 2023-11-27 13:45:25 +00:00
pt-pt.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
ro.json Lokalise: Translations update (#2248) 2023-11-21 09:39:25 +00:00
ru.json Update translations from community submissions (#2201) 2023-11-14 08:21:49 +00:00
sv.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
te.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
th.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
tr.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
uk.json Update translations from community submissions (#2201) 2023-11-14 08:21:49 +00:00
vi.json Update community translations + remove unused translations (#1356) 2023-05-12 15:32:22 +00:00
zh-cn.json Update translations from community submissions (#2201) 2023-11-14 08:21:49 +00:00
zh-tw.json Lokalise: Translations update (#1515) 2023-06-05 18:05:10 +00:00