tldraw/packages
Steve Ruiz 2a7b2dcdfd
[improvement] set horizontal position using text alignment (#1419)
This PR makes it so that horizontal alignment in geo and sticky note
shapes also effects the position of the text within the shape.

<img width="1169" alt="image"
src="https://github.com/tldraw/tldraw/assets/23072548/96b28a7d-0f13-46ba-9ea1-82d02b4f870b">

<img width="1274" alt="image"
src="https://github.com/tldraw/tldraw/assets/23072548/fa768c71-4e9e-4cfe-ad8a-94d7700c445d">

This PR also places the shape's label at the center when there is no
text and the shape is not editing.

### Change Type

- [x] `minor` — New Feature

### Test Plan

1. Create shapes with labels
2. Confirm that their labels are positioned correctly
3. Export the shapes and verify the export

### Release Notes

- Geo shapes and sticky notes now position their labels based on their
alignment.
2023-05-19 11:19:11 +00:00
..
assets [feature] add laser pointer (#1412) 2023-05-19 11:09:13 +00:00
editor [improvement] set horizontal position using text alignment (#1419) 2023-05-19 11:19:11 +00:00
file-format avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
polyfills avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
primitives avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
tldraw avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
tlschema [feature] add laser pointer (#1412) 2023-05-19 11:09:13 +00:00
tlstore Add stuff for new 'share project' flow (#1403) 2023-05-17 16:17:31 +00:00
tlsync-client avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
tlvalidate avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00
ui [feature] add laser pointer (#1412) 2023-05-19 11:09:13 +00:00
utils avoid lazy race conditions (#1364) 2023-05-12 15:41:40 +00:00