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

x/remapper/src/deps.ts>three.ImageLoader

A framework for Beat Saber map scripting.
Go to Latest
class three.ImageLoader
extends Loader
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { ImageLoader } = three;

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
loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<HTMLImageElement>