Field type
hotspots
Reference, generated from the plugin source
No doc in the plugin covers hotspots on its own page yet. What follows is read from the code.
- Type:
hotspots - Stored attribute type:
object - Editor component:
src/controls/HotspotsControl.jsx - Config keys the component reads:
fields - Value:
{ image: {id, url, alt}, pins: [ {_id, point:{x,y}, …row fields} ] }— one field holds the picture and its pins;pinsis a repeater whosefieldsyou write, one of them a point.
For when to use hotspots, pin-map or point, see "Pins on a picture" in Writing a block.