UNPKG

@joggs1/image-mapper

Version:

Adds SVG drawing capability (rectangles, circles, ellipses and polygons) on top of your image to let you make image maps

6 lines (5 loc) 373 B
import { Style, ComponentStylesHover, StylesUnion } from './types'; declare const getDefaultStyle: () => Style; declare const setStyle: (element: SVGElement, style: StylesUnion) => void; declare const addHover: (element: SVGElement, defaultStyle: ComponentStylesHover['off'], hoverStyle: ComponentStylesHover['on']) => void; export { getDefaultStyle, setStyle, addHover };