events
import
{
...
}
from
"@motion-canvas/core/lib/events"
;
Subscriptions and triggering of events.
Classes
-
AsyncEventDispatcher -
EventDispatcher -
EventDispatcherBase -
FlagDispatcher -
Subscribable -
SubscribableValueEvent -
ValueDispatcher
Interfaces
-
AsyncEventHandler -
EventHandler
Type Aliases
SubscribableAsyncEvent
Provides safe access to the public interface of
AsyncEventDispatcher
.
External classes can use it to subscribe to an event without being able todispatch it.
Type Parameters
-
TThe type of the argument passed to subscribers.
SubscribableEvent
Provides safe access to the public interface of
EventDispatcher
.
External classes can use it to subscribe to an event without being able todispatch it.
Type Parameters
-
TThe type of the argument passed to subscribers.
SubscribableFlagEvent
type
SubscribableFlagEvent
=
Subscribable
void
Provides safe access to the public interface of
FlagDispatcher
.
External classes can use it to subscribe to an event without being able todispatch it.