FetchImageOptions

external interface FetchImageOptions(source)

Properties

Link copied to clipboard
abstract external val flipY: Boolean?

Whether to vertically flip the image during fetch and decode. Only applies when requesting an image and the browser supports createImageBitmap. Default value - false

Link copied to clipboard
abstract external val headers: JsAny?

Additional HTTP headers that will be sent. Default value - {}

Link copied to clipboard
abstract external val preferBlob: Boolean?

If true, we will load the image via a blob. Default value - false

Link copied to clipboard
abstract external val preferImageBitmap: Boolean?

If true, image will be decoded during fetch and an ImageBitmap is returned. Default value - false

Link copied to clipboard
abstract external val proxy: Proxy?

A proxy to be used when loading the resource.

Link copied to clipboard
abstract external val queryParameters: JsAny?

An object containing query parameters that will be sent when retrieving the resource.

Link copied to clipboard
abstract external val request: Request?

A Request object that will be used. Intended for internal use only.

Link copied to clipboard
abstract external val retryAttempts: Int?

The number of times the retryCallback should be called before giving up. Default value - 0

Link copied to clipboard
abstract external val retryCallback: RetryCallback?

The Function to call when a request for this resource fails. If it returns true, the request will be retried.

Link copied to clipboard
abstract external val skipColorSpaceConversion: Boolean?

If true, any custom gamma or color profiles in the image will be ignored. Only applies when requesting an image and the browser supports createImageBitmap. Default value - false

Link copied to clipboard
abstract external val templateValues: JsAny?

Key/Value pairs that are used to replace template values (eg. {x}).

Link copied to clipboard
abstract external val url: String

The url of the resource.