% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tag-grobs.R
\name{build_leader_grob}
\alias{build_leader_grob}
\title{Build the polyline leader for an exterior tag, or \code{\link[grid:grid.null]{grid::nullGrob()}}
for interior / missing-tether placements.}
\usage{
build_leader_grob(
  ax,
  ay,
  kind,
  tx,
  ty,
  lend_x,
  lend_y,
  waypoints_x = numeric(0),
  waypoints_y = numeric(0),
  leader_gp_list,
  fallback_gp,
  name
)
}
\description{
Draws the polyline \verb{tether → waypoints[1..] → leader_end}. For
straight leaders (raycast / force-directed) \verb{waypoints_*} are empty,
so the polyline collapses to the single \verb{tether → leader_end}
segment. For elbow leaders eunoia emits one knee waypoint, producing
the orthogonal \verb{tether → knee → leader_end} bend.
}
\details{
Terminates at \verb{(lend_x, lend_y)} — the point on the label box AABB
edge supplied by eunoia (\code{LabelPlacement::leader_end}). Falls back
to the anchor when the leader endpoint isn't finite so older /
partial placement results still draw something sensible.
}
\keyword{internal}
