mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-16 17:01:14 +03:00
show vertex points in dialog only in motion search
This commit is contained in:
parent
a09dd8e828
commit
fade1086b3
@ -372,8 +372,9 @@ export default function MotionSearchROICanvas({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Vertex points */}
|
{/* Vertex points (only shown in interactive/dialog mode) */}
|
||||||
{scaledPoints.map((point, index) => (
|
{isInteractive &&
|
||||||
|
scaledPoints.map((point, index) => (
|
||||||
<Circle
|
<Circle
|
||||||
key={index}
|
key={index}
|
||||||
name={`point-${index}`}
|
name={`point-${index}`}
|
||||||
@ -383,7 +384,7 @@ export default function MotionSearchROICanvas({
|
|||||||
fill={polygonColorString}
|
fill={polygonColorString}
|
||||||
stroke="white"
|
stroke="white"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
draggable={!isDrawing && isInteractive}
|
draggable={!isDrawing}
|
||||||
onDragMove={(e) => handlePointDragMove(e, index)}
|
onDragMove={(e) => handlePointDragMove(e, index)}
|
||||||
onMouseOver={(e) => handleMouseOverPoint(e, index)}
|
onMouseOver={(e) => handleMouseOverPoint(e, index)}
|
||||||
onMouseOut={(e) => handleMouseOutPoint(e, index)}
|
onMouseOut={(e) => handleMouseOutPoint(e, index)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user