mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-15 08:21:16 +03:00
show vertex points in dialog only in motion search
This commit is contained in:
parent
a09dd8e828
commit
fade1086b3
@ -372,24 +372,25 @@ export default function MotionSearchROICanvas({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Vertex points */}
|
{/* Vertex points (only shown in interactive/dialog mode) */}
|
||||||
{scaledPoints.map((point, index) => (
|
{isInteractive &&
|
||||||
<Circle
|
scaledPoints.map((point, index) => (
|
||||||
key={index}
|
<Circle
|
||||||
name={`point-${index}`}
|
key={index}
|
||||||
x={point[0]}
|
name={`point-${index}`}
|
||||||
y={point[1]}
|
x={point[0]}
|
||||||
radius={vertexRadius}
|
y={point[1]}
|
||||||
fill={polygonColorString}
|
radius={vertexRadius}
|
||||||
stroke="white"
|
fill={polygonColorString}
|
||||||
strokeWidth={2}
|
stroke="white"
|
||||||
draggable={!isDrawing && isInteractive}
|
strokeWidth={2}
|
||||||
onDragMove={(e) => handlePointDragMove(e, index)}
|
draggable={!isDrawing}
|
||||||
onMouseOver={(e) => handleMouseOverPoint(e, index)}
|
onDragMove={(e) => handlePointDragMove(e, index)}
|
||||||
onMouseOut={(e) => handleMouseOutPoint(e, index)}
|
onMouseOver={(e) => handleMouseOverPoint(e, index)}
|
||||||
onContextMenu={(e) => handleContextMenu(e, index)}
|
onMouseOut={(e) => handleMouseOutPoint(e, index)}
|
||||||
/>
|
onContextMenu={(e) => handleContextMenu(e, index)}
|
||||||
))}
|
/>
|
||||||
|
))}
|
||||||
</Layer>
|
</Layer>
|
||||||
</Stage>
|
</Stage>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user