Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/threejs_4_deno/src/Three.d.ts>ImageLoader

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class ImageLoader
extends Loader
import { ImageLoader } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";

A loader for loading an image. Unlike other loaders, this one emits events instead of using predefined callbacks. So if you're interested in getting notified when things happen, you need to add listeners to the object.

Constructors

new
ImageLoader(manager?: LoadingManager)

Methods

load(
url: string,
onLoad?: (image: HTMLImageElement) => void,
onProgress?: (event: ProgressEvent) => void,
onError?: (event: ErrorEvent) => void,
): HTMLImageElement