From 45c0febdad944f33724ba54ae1e70649f1266bd7 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Thu, 9 Dec 2021 22:55:52 +0000 Subject: [PATCH] fix selection for filled shapes --- .../state/shapes/EllipseUtil/EllipseUtil.tsx | 10 +++++----- .../shapes/RectangleUtil/RectangleUtil.tsx | 19 ++++++++++--------- .../shapes/TriangleUtil/TriangleUtil.tsx | 5 +---- 3 files changed, 16 insertions(+), 18 deletions(-) diff --git a/packages/tldraw/src/state/shapes/EllipseUtil/EllipseUtil.tsx b/packages/tldraw/src/state/shapes/EllipseUtil/EllipseUtil.tsx index f2c131433..32eec9c67 100644 --- a/packages/tldraw/src/state/shapes/EllipseUtil/EllipseUtil.tsx +++ b/packages/tldraw/src/state/shapes/EllipseUtil/EllipseUtil.tsx @@ -112,13 +112,13 @@ export class EllipseUtil extends TDShapeUtil { className="tl-binding-indicator" cx={radiusX} cy={radiusY} - rx={rx} - ry={ry} + rx={radiusX} + ry={radiusY} strokeWidth={this.bindingDistance} /> )} { { {isBinding && ( )} {style.isFilled && ( diff --git a/packages/tldraw/src/state/shapes/TriangleUtil/TriangleUtil.tsx b/packages/tldraw/src/state/shapes/TriangleUtil/TriangleUtil.tsx index b63f51d71..f8e1b265b 100644 --- a/packages/tldraw/src/state/shapes/TriangleUtil/TriangleUtil.tsx +++ b/packages/tldraw/src/state/shapes/TriangleUtil/TriangleUtil.tsx @@ -125,11 +125,8 @@ export class TriangleUtil extends TDShapeUtil { /> )} {paths}