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 }
)

The options object for the ImageSource.updateImage method.

Provide exactly one of url (to load an image over the network) or image (an already-decoded image to display directly, without a network request).

Type Declaration

  • Optionalcoordinates?: Coordinates

    The image coordinates

  • { url: string }
    • url: string

      The image URL to load.

  • { image: ImageSourceImage }
    • image: ImageSourceImage

      An already-decoded image (HTMLImageElement, HTMLCanvasElement, ImageBitmap or ImageData) to display directly, without a network request.

Was this helpful?