Tree: clicking ×N flies to the person's other copy #249
Reference in New Issue
Block a user
Delete Branch "tree-fly-to-duplicate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The tree is too big for an in-place flash to help — the other copy is usually off-screen. Clicking the
×Nbadge now pans/zooms the view to center the other copy and flashes it on arrival; clicking again cycles through the remaining copies (for someone drawn 3+ times).Uses family-chart's exported
handlers.cardToMiddle(centers a datum) keeping the current zoom viagetCurrentZoom. The target coords come from the card's boundx/y(fallback: itstransformattr). Verified against the library internals:setupZoom(f3Canvas)puts the zoom object on the svg's parent (sogetCurrentZoom(svg)resolves), and.card_contis positioned byd.x/d.y— the same spacecardToMiddleuses. Falls back to an in-place flash if the zoom object isn't ready.Frontend only, type-checks clean. Supersedes the flash-only behavior from the previous PR.
🤖 Generated with Claude Code