build_tag_grobs: Build the leader / label / quantity / annotation gList for...

View source: R/tag-grobs.R

build_tag_grobsR Documentation

Build the leader / label / quantity / annotation gList for one tag.

Description

Shared between setup_tag() (initial construction in setup_grobs()) and makeContent.EulerTags() (draw-time re-placement on resize). Pure factory — no measurement; takes anchor + tether already in native units, plus the stashed text / gpar bundle. The label / quantity / annotation stack is centered vertically on ⁠(ax, ay)⁠ so the bbox center matches the anchor eunoia placed and leader endpoints land on the actual bbox edge.

Usage

build_tag_grobs(
  ax,
  ay,
  kind,
  tx,
  ty,
  lend_x,
  lend_y,
  label_text,
  quantity_text,
  annotation_text,
  has_label,
  has_quantity,
  has_annotation,
  label_gp,
  quantity_gp,
  annotation_gp,
  label_rot,
  quantity_rot,
  annotation_rot,
  number,
  leader_gp_list,
  padding,
  waypoints_x = numeric(0),
  waypoints_y = numeric(0),
  name_prefix = "tag"
)

eulerr documentation built on May 30, 2026, 1:07 a.m.