Skip to content

Interface: ImageOptions ​

Experimental

Options for createImagePrimitive.

Methods ​

load()? ​

ts
optional load(source): Promise<ImageSourceLike>;

Experimental

Loader override (tests, custom fetching). Default: an HTMLImageElement with crossOrigin 'anonymous' for non-data:/blob: URLs, awaiting decode() when available.

Parameters ​

ParameterType
sourcestring

Returns ​

Promise<ImageSourceLike>


warn()? ​

ts
optional warn(message): void;

Experimental

Warning sink (default console.warn).

Parameters ​

ParameterType
messagestring

Returns ​

void

Released under the MIT License.