Node and Line Tooltips with Context Menu
This example shows how to attach custom hover tooltips and right-click menus to both nodes and lines in a relation-graph viewer. It uses graph hit-testing, view-relative overlay positioning, and slot-based rendering to keep those panels aligned inside the graph surface. A shared helper window also exposes canvas settings and image export.
Custom Tooltips and Right-Click Menus for Nodes and Lines
What This Example Builds
This example builds a viewer-style relation graph with two kinds of contextual overlays: hover tooltips and right-click menus. Users see a full-screen graph with circular icon-based nodes, curved labeled lines, a dotted canvas background, and a floating helper window. Hovering a node shows its label and icon key, hovering a line shows its label plus resolved source and target nodes, and right-clicking eithe