Tldraw/packages/editor/src/lib/utils
Steve Ruiz dfaa536370
[fix] tabs in text exports (#1323)
This PR fixes the appearance of tabs in labels and text when exporting
images.

This involved refactoring our CSS-text-to-multiline-SVG-text.

### Test Plan

1. Create a text or geo shape with a label that includes a tab character
at the beginning of a line (e.g. jsx)
2. Copy the image as SVG and paste

### Release Note

- Fixes a bug with trailing tab characters in text labels on image
export
2023-05-11 09:20:48 +00:00
..
reordering
WeakMapCache.ts
assets.test.ts
assets.ts Added `pHYs` to import/export of png images (#1200) 2023-04-29 22:10:01 +00:00
buildFromV1Document.ts
data.ts
debug-flags.ts [fix] publish (#1222) 2023-05-04 09:25:31 +00:00
dom.ts
embeds.test.ts
embeds.ts
export.ts Added `pHYs` to import/export of png images (#1200) 2023-04-29 22:10:01 +00:00
hard-reset.ts
is-gif-animated.ts
png.ts Added `pHYs` to import/export of png images (#1200) 2023-04-29 22:10:01 +00:00
props-for-next-shape.ts
refresh-page.ts
rotation.ts
runtime.ts
string.ts [fix] tabs in text exports (#1323) 2023-05-11 09:20:48 +00:00
svg.ts
window-open.ts