1 | import { Loader } from "./Loader.js";
|
2 | import { LoadingManager } from "./LoadingManager.js";
|
3 |
|
4 | export class ImageBitmapLoader extends Loader<ImageBitmap> {
|
5 | constructor(manager?: LoadingManager);
|
6 |
|
7 | load(
|
8 | url: string,
|
9 | onLoad?: (data: ImageBitmap) => void,
|
10 | onProgress?: (event: ProgressEvent) => void,
|
11 | onError?: (err: unknown) => void,
|
12 | ): void;
|
13 |
|
14 | /**
|
15 | * @default { premultiplyAlpha: 'none' }
|
16 | */
|
17 | options: undefined | object;
|
18 |
|
19 | readonly isImageBitmapLoader: true;
|
20 |
|
21 | setOptions(options: object): ImageBitmapLoader;
|
22 | }
|