From 4a791dff60aca7edd06ed3cb1673b1e85df30df5 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Tue, 18 Jun 2024 11:47:03 +0100 Subject: [PATCH] Fix solid style draw shape. (#3963) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR fixes the way that solid-style heart shapes are drawn. image ### Change Type - [x] `sdk` — Changes the tldraw SDK - [x] `bugfix` — Bug fix ### Release Notes - Fixes the appearance of solid-style heart shapes. --- packages/tldraw/src/lib/shapes/geo/components/GeoShapeBody.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tldraw/src/lib/shapes/geo/components/GeoShapeBody.tsx b/packages/tldraw/src/lib/shapes/geo/components/GeoShapeBody.tsx index de452a9b7..5030089ac 100644 --- a/packages/tldraw/src/lib/shapes/geo/components/GeoShapeBody.tsx +++ b/packages/tldraw/src/lib/shapes/geo/components/GeoShapeBody.tsx @@ -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)