Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/core/EventDispatcher.js>EventDispatcher#addEventListener

A simple transformation of three.js for use within a Deno workflow
Go to Latest
method EventDispatcher.prototype.addEventListener
import { EventDispatcher } from "https://deno.land/x/threejs_4_deno@v121/src/core/EventDispatcher.js";

Adds a listener to an event type.

Parameters

type: string

The type of event to listen to.

listener: (event: Event) => void

The function that gets called when the event is fired.