Fix solid style draw shape. (#3963)

This PR fixes the way that solid-style heart shapes are drawn.

<img width="630" alt="image"
src="https://github.com/tldraw/tldraw/assets/23072548/fd9c2f85-7448-448f-b75b-9c84b17145da">

### Change Type

- [x] `sdk` — Changes the tldraw SDK
- [x] `bugfix` — Bug fix

### Release Notes

- Fixes the appearance of solid-style heart shapes.
This commit is contained in:
Steve Ruiz 2024-06-18 11:47:03 +01:00 committed by GitHub
parent 487b1beb85
commit 4a791dff60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,7 +184,7 @@ export function GeoShapeBody({ shape, shouldScale }: { shape: TLGeoShape; should
}
}
case 'heart': {
if (dash === 'dashed' || dash === 'dotted') {
if (dash === 'dashed' || dash === 'dotted' || dash === 'solid') {
const d = getHeartPath(w, h)
const curves = getHeartParts(w, h)