This is an attempt to provide similar functionality to what was previously available with the uComponents ImagePoint data type in Umbraco, versions 4 and 6.
This one's just called “Image Hotspot” because that's what our clients call it when they ask for this kind of thing :-)
PLEASE NOTE: This may not at all be production ready for your particular use, but if you want to try it out there's an Umbraco package available on the releases page.
Currently, it looks like this:
DataType Configuration
Property editor with variant themes
("Theme" just defines the color of the Hotspot - all four variations shown above)
JSON Data
The hotspot coordinate is saved both as exact pixel values and as percentage values, along with the image's path and width & height.
- Get
imageSrc
from a mediapicker value of some sorts (e.g. recursively look forumbracoFile
as the uComponents data type did) - Add configuration prevalue for the
width
used in the backoffice - Rename Theme config to Hotspot Color (or similar)
- Add configuration prevalue for
theme
- Build script
- LEGO image from Louieland