Skip to main content
Version: 4.3

PaperEventMap

type PaperEventMap = Partial<dia.Paper.EventMap> & PaperEventHandlers;

Every paper-event handler accepted by useOnPaperEvents: the typed camelCase on* handlers (each delivering a single params object) plus any raw native event name with its positional arguments. Mix both freely in one map.