2a7b2dcdfd
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. |
||
---|---|---|
.. | ||
src | ||
api-extractor.json | ||
api-report.md | ||
CHANGELOG.md | ||
editor.css | ||
LICENSE | ||
package.json | ||
README.md | ||
setupTests.js | ||
tsconfig.json |
tldraw/tldraw
Benchmark
To run the benchmarks
yarn workspace @tldraw/tldraw benchmark
Or
yarn workspace @tldraw/tldraw benchmark "file_search_string"