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

22 lines (21 loc) 867 B
import { SvgPropertiesHyphen } from 'csstype'; type ComponentStyles = SvgPropertiesHyphen; type ComponentStylesHover = { off: SvgPropertiesHyphen; on: SvgPropertiesHyphen; }; type ComponentStylesSelect = { off: SvgPropertiesHyphen; on: SvgPropertiesHyphen; }; type HandleStyles = SvgPropertiesHyphen; type HandleStylesHover = SvgPropertiesHyphen; type Style = { component: ComponentStyles; componentHover: ComponentStylesHover; componentSelect: ComponentStylesSelect; handle: HandleStyles; handleHover: HandleStylesHover; }; type StylesUnion = ComponentStyles | ComponentStylesHover[keyof ComponentStylesHover] | HandleStyles | HandleStylesHover | ComponentStylesSelect[keyof ComponentStylesSelect]; export type { Style, ComponentStyles, ComponentStylesHover, HandleStylesHover, ComponentStylesSelect, HandleStyles, StylesUnion };