events
import {...} from "@motion-canvas/core/lib/events";
Subscriptions and triggering of events.
Classes​
AsyncEventDispatcherEventDispatcherEventDispatcherBaseFlagDispatcherSubscribableSubscribableValueEventValueDispatcher
Interfaces​
Type Aliases​
SubscribableAsyncEvent​
type SubscribableAsyncEventT = SubscribableTAsyncEventHandlerT
Provides safe access to the public interface of AsyncEventDispatcher.
External classes can use it to subscribe to an event without being able to dispatch it.
Type Parameters
TThe type of the argument passed to subscribers.
SubscribableEvent​
type SubscribableEventT = SubscribableT
Provides safe access to the public interface of EventDispatcher.
External classes can use it to subscribe to an event without being able to dispatch it.
Type Parameters
TThe type of the argument passed to subscribers.
SubscribableFlagEvent​
type SubscribableFlagEvent = Subscribablevoid
Provides safe access to the public interface of FlagDispatcher.
External classes can use it to subscribe to an event without being able to dispatch it.