badgeArea

fun badgeArea(node: GraphNode, key: Any): Rectangle?(source)

the area of the window of the badge of node with key, or with that index when the badges have no keys; null when it has none, like when the node is removed, or when the badge is out of view of the editor. For a popover that follows the badge when the graph pans and zooms, and hides while it is out of view: cm.popover({ editor.badgeArea(node, key) }) { ... }