tldraw / tldraw

SDK for creating whiteboards and canvas experiences on the web.
https://tldraw.dev
Other
33.4k stars 1.99k forks source link

[Feature]: text - remember alignment setting or align to start by default #1634

Open szamanr opened 11 months ago

szamanr commented 11 months ago

What's the feature?

in the add text tool, it's aligned to centre by default. if you change the alignment, it remembers that value but only until the end of the session. i always align to start, so i find myself having to change this once per session.

i would like the app to either remember the setting and persist it across sessions, or make it align to start by default, which seems like a more common use case.

tldraw text default

Contact Details

No response

Code of Conduct

steveruizok commented 11 months ago

We used to persist these properties but this was dropped after some changes to user presence / styles. @ds300 could you provide context on this one?

ds300 commented 11 months ago

Yeah we no longer persist the propsForNextShape when stashing instance state. It could be done pretty easily. Shall I do it?

szamanr commented 10 months ago

@steveruizok bump on the above :)

szamanr commented 6 months ago

@steveruizok @ds300 bump. it's a daily annoyance for me and seems like an easy fix?

szamanr commented 5 months ago

@ds300 @steveruizok bump

hxgqh commented 4 months ago

It will be very useful

szamanr commented 3 months ago

@steveruizok @ds300 any plans to add this functionality?

steveruizok commented 3 months ago

Sorry, it's a bit more complicated. I'd like to find a solution but our current "shared styles across tools" pattern doesn't really support it, so we're considering changing that pattern!

xuanswe commented 1 month ago

Not only the alignment, but also remembering other settings is very useful. I think usually settings should be considered globally remembering across tools. Example, when we want to use red for Draw tool, we want to keep this color when switching to Line tool.