Skip to main content

Image

An image item that loads from a url

Extends Item

TYPE
object

Properties

NAMETYPEDESCRIPTION
type"IMAGE"The type of item
imageImageContentThe image to show
gridImageGridThe grid scale of the image
textTextContentThe text displayed over the image
textItemType"LABEL" | "TEXT"The type of text to use for this image. The "LABEL" option will display the text as a label on the bottom of the image. The "TEXT" option will display the text over the top of the image.

Type Definitions

ImageContent

TYPE
object

Properties

NAMETYPEDESCRIPTION
widthnumberThe width of the image in pixels
heightnumberThe height of the image in pixels
mimestringThe mime type of the image e.g. "image/jpeg" or "video/mp4"
urlstringThe url of the image to load. The image must have CORS enabled

ImageGrid

TYPE
object

Properties

NAMETYPEDESCRIPTION
offsetVector2[]Offset relative to the image dimensions
dpinumberDots per inch of the image. Determines the resolution of one grid cell in the image.