=== Swapan Interactive Hotspots ===
Contributors: swapanmiah120
Donate link: https://ismail-hossen-swapan.vercel.app
Tags: image annotation, hotspot, interactive image, polygon, image map
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Draw custom polygon shapes and add hotspots to your WordPress images. Perfect for interactive diagrams, floor plans, and shop-the-look images.

== Description ==

Swapan Interactive Hotspots is a lightweight, responsive WordPress plugin that allows you to draw polygon annotations and add hotspots to any image in your Media Library. Visitors can hover or tap on marked areas to reveal customizable tooltips with titles, descriptions, and links.

Built with performance in mind using native HTML5 and SVG coordinate calculations.

=== Key Features ===
*   **Interactive Polygon Canvas:** Draw, edit, and drag vertices of custom shapes on any image.
*   **Fully Responsive Coordinates:** Math calculated as percentages ensures annotations always point to the correct visual areas across all screen sizes.
*   **Glassmorphic Design:** Sleek modern tooltips with blur effects and smooth animations.
*   **Shortcode & Block Support:** Render annotated images anywhere using shortcodes or filters.

== Installation ==

1. Upload the `swapan-interactive-hotspots` directory to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Open any image in your WordPress Media Library, click the **Edit Annotations** button to begin drawing.

== Frequently Asked Questions ==

= How do I display the annotated image? =
You can use the shortcode `[swapan_interactive_hotspots id="YOUR_ATTACHMENT_ID"]` anywhere in your post content. Alternatively, the plugin automatically filters standard images embedded in your content to display annotations if they have drawn metadata.

= How do I draw a shape? =
Click on the image to place vertices. A line will connect your points. Click on the first red vertex to close the polygon shape. Once closed, you can customize the label, details, and color in the sidebar.

== Changelog ==

= 1.0.0 =
* Initial Release. Stable polygon drawing canvas and responsive tooltip overlays.
