The events elementEvents: true dispatches on the chart's own elements. Merged into the DOM's ElementEventMap, DocumentEventMap and WindowEventMap, so document.addEventListener("scxml:enter", …) is typed.
elementEvents: true
ElementEventMap
DocumentEventMap
WindowEventMap
document.addEventListener("scxml:enter", …)
The session terminated (on the <scxml> element).
<scxml>
A state was entered (on the state's element).
A state was exited (on the state's element).
A transition fired (on the <transition> element).
<transition>
The events
elementEvents: truedispatches on the chart's own elements. Merged into the DOM'sElementEventMap,DocumentEventMapandWindowEventMap, sodocument.addEventListener("scxml:enter", …)is typed.