a722e3e6f0
This PR updates tests for the text shape, as well as updating the logic of `getTextLines`. We now: - allow leading whitespace - allow white space to cause line breaks, trim the whitespace off of the end of the line. Crazy times! - fix a bug with geo shapes changes width when growY changes Note that this is not a "full solution" to line breaks that are caused by whitespace + wrapping. AFAIK this is impossible to fix in SVG-land without measuring the SVG element in order to collapse whitespace in the same way that it collapses in HTML layout. ### Change Type - [x] `patch` — Bug Fix - [ ] `minor` — New Feature - [ ] `major` — Breaking Change - [ ] `dependencies` — Dependency Update (publishes a `patch` release, for devDependencies use `internal`) - [ ] `documentation` — Changes to the documentation only (will not publish a new version) - [ ] `tests` — Changes to any testing-related code only (will not publish a new version) - [ ] `internal` — Any other changes that don't affect the published package (will not publish a new version) ### Test Plan - [x] Webdriver tests ### Release Notes - Allow leading whitespace |
||
---|---|---|
.. | ||
assets | ||
editor | ||
file-format | ||
polyfills | ||
primitives | ||
tldraw | ||
tlschema | ||
tlstore | ||
tlsync-client | ||
tlvalidate | ||
ui | ||
utils |