Skip to content

Commit

Permalink
fix: hide arrow selection bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 authored and tiensonqin committed Dec 16, 2022
1 parent e5cfde0 commit 8ac7d56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tldraw/apps/tldraw-logseq/src/lib/shapes/LineShape.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class LineShape extends TLLineShape<LineShapeProps> {
label: '',
}

hideSelection = false
hideSelection = true
canEdit = true

ReactComponent = observer(({ events, isErasing, isEditing, onEditingEnd }: TLComponentProps) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 8ac7d56

Please sign in to comment.