useLabelEdgeHover
useLabelEdgeHover(
__namedParameters):object
Tracks hover state for a single edge across both its line and its label (which live in different React subtrees) and returns the resolved style
- handlers a custom edge component should bind.
Suppresses hover while another edge is mid-segment-drag so the visual doesn’t flicker. Reach for it when authoring a custom edge type that wants the same hover feel as the built-in LabelEdge.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”UseLabelEdgeHoverParams
Returns
Section titled “Returns”object
hovered
Section titled “hovered”hovered:
boolean
onMouseEnter
Section titled “onMouseEnter”onMouseEnter: () =>
void=handleMouseEnter
Returns
Section titled “Returns”void
onMouseLeave
Section titled “onMouseLeave”onMouseLeave: () =>
void=handleMouseLeave
Returns
Section titled “Returns”void
style:
object
style.stroke
Section titled “style.stroke”stroke:
string
style.strokeWidth
Section titled “style.strokeWidth”strokeWidth:
string
style.transition
Section titled “style.transition”transition:
string