For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Type Alias UpdateImageOptions
UpdateImageOptions: { coordinates?: Coordinates } & (
{ url: string }
| { image: ImageSourceImage }
)
{ url: string }
| { image: ImageSourceImage }
)
Type Declaration
Optionalcoordinates?: CoordinatesThe image coordinates
- { url: string }
url: string
The image URL to load.
- { image: ImageSourceImage }
image: ImageSourceImage
An already-decoded image (
HTMLImageElement,HTMLCanvasElement,ImageBitmaporImageData) to display directly, without a network request.
The options object for the ImageSource.updateImage method.
Provide exactly one of
url(to load an image over the network) orimage(an already-decoded image to display directly, without a network request).