Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/threejs_4_deno/src/Three.js>Loader

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

Base class for implementing loaders.

Constructors

new
Loader(manager?: LoadingManager)

Properties

crossOrigin: string
path: string
requestHeader: { [header: string]: string; }
resourcePath: string
withCredentials: boolean

Methods

loadAsync(url: string, onProgress?: (event: ProgressEvent) => void): Promise<any>
setCrossOrigin(crossOrigin: string): this
setPath(path: string): this
setRequestHeader(requestHeader: { [header: string]: string; }): this
setResourcePath(resourcePath: string): this
setWithCredentials(value: boolean): this