Skip to main content
Version: 4.3

GraphEventMap

type GraphEventMap = Partial<dia.Graph.EventMap>;

Maps JointJS graph event names to their handler callbacks, the shape useOnGraphEvents accepts. Every entry is optional, list only the events you want to react to. Keys and handler arguments mirror dia.Graph events one to one ('add', 'remove', 'change:position', …).