tldraw/packages
Mitja Bezenšek 7ac003cc05
Fix svg exporting for images with not fully qualified url (/tldraw.png or ./tldraw.png) (#2676)
Local images (like in our Local images example) could not be exported as
svg. We need to base64 encode them, but our check only matched images
with a `http` prefix, which local images like `/tldraw.png` don't have.

Fixes an issue reported here

https://discord.com/channels/859816885297741824/1198343938155745280/1198343938155745280

### Change Type

- [x] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [ ] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. Use our Local images example.
2. Export as svg.
3. The export should correctly show the image.

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Fix the svg export for images that have a local url.

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2024-01-30 10:11:10 +00:00
..
assets [dotcom] Delete service worker, cache tldraw assets (#2552) 2024-01-19 15:31:01 +00:00
editor dev: add test-dev command for easier testing of packages (#2627) 2024-01-29 10:29:38 +00:00
state dev: add test-dev command for easier testing of packages (#2627) 2024-01-29 10:29:38 +00:00
store dev: add test-dev command for easier testing of packages (#2627) 2024-01-29 10:29:38 +00:00
tldraw Fix svg exporting for images with not fully qualified url (/tldraw.png or ./tldraw.png) (#2676) 2024-01-30 10:11:10 +00:00
tlschema dev: add test-dev command for easier testing of packages (#2627) 2024-01-29 10:29:38 +00:00
tlsync dev: add test-dev command for easier testing of packages (#2627) 2024-01-29 10:29:38 +00:00
utils dev: add test-dev command for easier testing of packages (#2627) 2024-01-29 10:29:38 +00:00
validate dev: add test-dev command for easier testing of packages (#2627) 2024-01-29 10:29:38 +00:00