=== Image Hotspot Block ===
Contributors: snehalpancholi
Tags: hotspot, annotation, image, block, gutenberg
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Place interactive clickable hotspot pins on any image, each revealing a labelled tooltip with text.

== Description ==

Image Hotspot Block registers a native Gutenberg block (no build step, no page-builder dependency). Upload or select an image, click "Add Hotspot," then click anywhere on the image to place a numbered pin. Edit each pin's label and tooltip content in the block inspector.

**Features**

* Click-to-place pin workflow in the block editor.
* Per-pin label and rich-text tooltip content.
* Drag-free precision: fine-tune X/Y position via range sliders in the inspector.
* Configurable pin accent color via the editor color picker.
* Light and dark tooltip themes.
* Smart tooltip repositioning: stays within image bounds near edges.
* Server-side render callback — block markup never goes stale.
* Accessible: ARIA `aria-expanded` / `aria-controls` / `role="tooltip"` on all interactive elements.
* Pure vanilla JS frontend — no jQuery, no CDN.
* Responsive image with native srcset support when using media library images.

== Installation ==

1. Upload the `image-hotspot-block` folder to `/wp-content/plugins/`.
2. Activate via **Plugins > Installed Plugins**.
3. Open the Gutenberg block editor and search for "Image Hotspot."

== Frequently Asked Questions ==

= How do I add a hotspot? =
Select the block, click "Add Hotspot" in the inspector sidebar, then click anywhere on the image. The pin is placed immediately. Edit its label and content in the inspector.

= Can I move a pin after placing it? =
Yes. Select the pin in the inspector to reveal X (%) and Y (%) sliders for precise repositioning.

= Does the tooltip show on mobile? =
Yes. Tapping the pin opens the tooltip; tapping elsewhere closes it.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
First release.
