@wocart/theme / index / MediaReference
Interface: MediaReference
A stored image: the object's key in the store's media bucket
(products/3f2a….webp), never a URL, plus what the editor knows about it.
width/height are the original's pixels; focal is the point to keep in
view when the image is cropped, from 0 to 1 on each axis.
Properties
alt?
optionalalt?:LocalizedText
focal?
optionalfocal?:object
x
x:
number
y
y:
number
height?
optionalheight?:number
key
key:
string
width?
optionalwidth?:number