Skip to content

Commit

Permalink
ObjectLoader.parseImages: onLoad is optional, returns a record of `…
Browse files Browse the repository at this point in the history
…Source`. (#298)
  • Loading branch information
Hoodgail authored Dec 23, 2022
1 parent d955a59 commit 5604422
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/three/src/loaders/ObjectLoader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Material } from './../materials/Material';
import { AnimationClip } from './../animation/AnimationClip';
import { InstancedBufferGeometry } from '../core/InstancedBufferGeometry';
import { BufferGeometry } from '../core/BufferGeometry';
import { Source } from '../textures/Source';

export class ObjectLoader extends Loader {
constructor(manager?: LoadingManager);
Expand All @@ -29,8 +30,8 @@ export class ObjectLoader extends Loader {
parseGeometries(json: any): { [key: string]: InstancedBufferGeometry | BufferGeometry }; // Array of BufferGeometry or Geometry or Geometry2.
parseMaterials(json: any, textures: Texture[]): Material[]; // Array of Classes that inherits from Matrial.
parseAnimations(json: any): AnimationClip[];
parseImages(json: any, onLoad: () => void): { [key: string]: HTMLImageElement };
parseImagesAsync(json: any): Promise<{ [key: string]: HTMLImageElement }>;
parseImages(json: any, onLoad?: () => void): { [key: string]: Source };
parseImagesAsync(json: any): Promise<{ [key: string]: Source }>;
parseTextures(json: any, images: any): Texture[];
parseObject<T extends Object3D>(
data: any,
Expand Down

0 comments on commit 5604422

Please sign in to comment.