From e3ec44c01145ae9ffa93c7fcf6b6fcfea6beae04 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Thu, 28 Oct 2021 22:31:29 +0100 Subject: [PATCH] Fix bounds issue --- packages/tldraw/src/components/tldraw/tldraw.tsx | 2 +- packages/tldraw/src/shape-utils/arrow/arrow.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/tldraw/src/components/tldraw/tldraw.tsx b/packages/tldraw/src/components/tldraw/tldraw.tsx index 68081193a..1b024fa87 100644 --- a/packages/tldraw/src/components/tldraw/tldraw.tsx +++ b/packages/tldraw/src/components/tldraw/tldraw.tsx @@ -23,7 +23,7 @@ const isHideBoundsShapeSelector = (s: Data) => { const { selectedIds } = s.document.pageStates[s.appState.currentPageId] return ( selectedIds.length === 1 && - selectedIds.every((id) => !TLDR.getShapeUtils(shapes[id].type).hideBounds) + selectedIds.every((id) => TLDR.getShapeUtils(shapes[id].type).hideBounds) ) } diff --git a/packages/tldraw/src/shape-utils/arrow/arrow.tsx b/packages/tldraw/src/shape-utils/arrow/arrow.tsx index a0457b866..c044e0e43 100644 --- a/packages/tldraw/src/shape-utils/arrow/arrow.tsx +++ b/packages/tldraw/src/shape-utils/arrow/arrow.tsx @@ -34,7 +34,7 @@ export class ArrowUtil extends TLDrawShapeUtil { canStyleFill = false - showBounds = false + hideBounds = true pathCache = new WeakMap()