|
@@ -137,16 +137,18 @@ export const Canvas = observer(function Renderer<S extends TLReactShape>({
|
|
|
onEditingEnd={onEditingEnd}
|
|
|
/>
|
|
|
))}
|
|
|
- {!app.isIn('select.pinching') && selectedShapes?.map(shape => (
|
|
|
- <Indicator
|
|
|
- key={'selected_indicator_' + shape.id}
|
|
|
- shape={shape}
|
|
|
- isEditing={shape === editingShape}
|
|
|
- isHovered={false}
|
|
|
- isBinding={false}
|
|
|
- isSelected={true}
|
|
|
- />
|
|
|
- ))}
|
|
|
+ {!app.isIn('select.pinching') &&
|
|
|
+ selectedShapes?.length !== 1 &&
|
|
|
+ selectedShapes?.map(shape => (
|
|
|
+ <Indicator
|
|
|
+ key={'selected_indicator_' + shape.id}
|
|
|
+ shape={shape}
|
|
|
+ isEditing={shape === editingShape}
|
|
|
+ isHovered={false}
|
|
|
+ isBinding={false}
|
|
|
+ isSelected={true}
|
|
|
+ />
|
|
|
+ ))}
|
|
|
{hoveredShape && app.isInAny('creating') && (
|
|
|
<Indicator key={'hovered_indicator_' + hoveredShape.id} shape={hoveredShape} />
|
|
|
)}
|