OptionalclockWhere time comes from: realClock (default), a VirtualClock for tests, a PlaybackClock for UIs.
OptionaldataInitial values overriding <data> of the same id (the host's or the invoker's params).
OptionaldatamodelThe ECMAScript engine. Set by the entry point you import: sandboxed
(QuickJS/WebAssembly) from @tinyactors/scxmljs, trusted (the host's
own engine) from @tinyactors/scxmljs/trusted. Invoked children inherit it.
OptionaldomNeeded to parse SCXML given as text (invoke src/srcexpr/content expressions). Defaults to the global DOMParser.
OptionalelementDispatch bubbling scxml:exit, scxml:transition, scxml:enter and
scxml:done events on the chart's own source elements. Off by default:
sessions sharing one model would share its elements.
OptionalinvokersHandlers for <invoke> types other than SCXML.
OptionalioprocessorsEvent I/O Processors in addition to the built-in SCXML one.
OptionalloaderResolves src attributes (<script>, <data>, <invoke>). May return synchronously.
OptionalmaxStop after this many microsteps in one macrostep, to keep a UI responsive (default 100000).
OptionalmemoryMemory limit of the session's QuickJS context, in bytes (default 64 MiB). Sandboxed data model only.
OptionalreflectKeep data-active, data-enabled, data-fired, data-initial and
data-status attributes on the source elements in sync, for CSS. Off by default.
OptionalscriptInterrupt a single evaluation after this many ms (default 2000). Sandboxed data model only.
OptionalsessionThe session's id (_sessionid, and the #_scxml_<id> address). Default: generated and unique.
Options for
createSession()and theSessionconstructors.