浏览代码

fix: hide arrow selection bounds

Peng Xiao 3 年之前
父节点
当前提交
8ac7d565b1

+ 1 - 1
tldraw/apps/tldraw-logseq/src/lib/shapes/LineShape.tsx

@@ -46,7 +46,7 @@ export class LineShape extends TLLineShape<LineShapeProps> {
     label: '',
   }
 
-  hideSelection = false
+  hideSelection = true
   canEdit = true
 
   ReactComponent = observer(({ events, isErasing, isEditing, onEditingEnd }: TLComponentProps) => {

+ 2 - 1
tldraw/packages/react/src/components/BacklinksCountContainer/BacklinksCountContainer.tsx

@@ -28,7 +28,8 @@ export const BacklinksCountContainer = observer(function BacklinksCountContainer
 
   const stop: React.EventHandler<any> = e => e.stopPropagation()
 
-  const rounded = bounds.height * zoom < 50 || !app.selectedShapesArray.includes(shape)
+  const rounded =
+    bounds.height * zoom < 50 || !app.selectedShapesArray.includes(shape) || shape.hideSelection
 
   return (
     <Container bounds={bounds} className="tl-backlinks-count-container">