import { three } from "https://deno.land/x/remapper@3.0.0/src/deps.ts";
const { EventDispatcher } = three;
JavaScript events for custom objects
Methods
addEventListener<T extends E["type"]>(type: T, listener: EventListener<E, T, this>): void
Adds a listener to an event type.
hasEventListener<T extends E["type"]>(type: T, listener: EventListener<E, T, this>): boolean
Checks if listener is added to an event type.
removeEventListener<T extends E["type"]>(type: T, listener: EventListener<E, T, this>): void
Removes a listener from an event type.