From e77fd12a22eecf3bb4f4bc589bd632f6f0905d29 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Sat, 6 Aug 2022 23:27:47 +0800 Subject: [PATCH] fix: disable rotate --- .../SelectionForeground.tsx | 35 ++----------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/tldraw/packages/react/src/components/ui/SelectionForeground/SelectionForeground.tsx b/tldraw/packages/react/src/components/ui/SelectionForeground/SelectionForeground.tsx index 7ec211bd1..cbc59d29e 100644 --- a/tldraw/packages/react/src/components/ui/SelectionForeground/SelectionForeground.tsx +++ b/tldraw/packages/react/src/components/ui/SelectionForeground/SelectionForeground.tsx @@ -1,17 +1,14 @@ -import * as React from 'react' -import { TLResizeCorner, TLResizeEdge, TLRotateCorner } from '@tldraw/core' +import { TLResizeCorner, TLResizeEdge } from '@tldraw/core' import { observer } from 'mobx-react-lite' -import { EdgeHandle, CornerHandle, RotateHandle } from './handles' import { SVGContainer } from '~components' import type { TLReactShape } from '~lib' import type { TLSelectionComponentProps } from '~types' -import { RotateCornerHandle } from './handles/RotateCornerHandle.tsx' +import { CornerHandle, EdgeHandle } from './handles' export const SelectionForeground = observer(function SelectionForeground({ bounds, zoom, showResizeHandles, - showRotateHandles, shapes, }: TLSelectionComponentProps) { const { width, height } = bounds @@ -69,34 +66,6 @@ export const SelectionForeground = observer(function SelectionForeground - - - - {canResize?.every(r => r) && ( <>