You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b32302e
Browse filesBrowse the repository at this point in the historyBrowse files
inset strain labels from the chart edge and add a spacing parameter
With `connect_leader_to_label` on, the strain labels were anchored exactly at
`chart_edge_branch` — the tree panel's chart-facing edge — and right-aligned, so
the text ran up against the chart's frame and the frame line stopped reading as
a line. `label_pad_px` was already counted into the label strip's width, but
because the anchor sat on the edge that pad landed on the tree side of the text
rather than between the text and the chart.
Reserve a pad at each end of the strip and anchor the labels one pad inside the
chart-facing edge, with the leader lines stopping at the same place so they meet
the text instead of passing under it to the panel edge. The tree panel grows by
one pad, so a hand-tuned `shift_tree_loc` may want the same adjustment.
Separately, `_concat_for_location` hardcoded `spacing=0` at all four
`tree_location` branches, leaving callers no way to open a gap between the
panels. Expose it as `spacing`, defaulting to 0 so existing charts are
unchanged. It is easy to confuse with `shift_tree_loc`, which moves the tree
within its own panel by resizing the label strip, so the two descriptions now
cross-reference each other.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments